OSDN Git Service

85551cbde9142e7278c658428b7081c9e916ca4f
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2004-10-04  Javier Miranda  <miranda@gnat.com>
2
3         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
4         in-line the code corresponding to subprogram Analyze_Actuals. In
5         addition, analyze the actuals only in case of subprogram call.
6
7 2004-10-04  Ed Falis  <falis@gnat.com>
8
9         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
10
11 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
12
13         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
14         in the documentation.
15
16 2004-10-04  Robert Dewar  <dewar@gnat.com>
17
18         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
19         IF and CASE.
20         (Analyze_Block_Statement): Add circuitry to detect following dead code
21         (Check_Unreachable_Code): Handle case of block exit
22
23 2004-10-04  Robert Dewar  <dewar@gnat.com>
24
25         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
26         (XMatchD): Avoid warning for Logic_Error call
27
28 2004-10-04  Robert Dewar  <dewar@gnat.com>
29
30         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
31         consider expressions buried within a procedure actual to be an actual.
32         This caused some blowups with uses of packed slices within a procedure
33         actual.
34
35 2004-10-04  Robert Dewar  <dewar@gnat.com>
36
37         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
38         longer need to be initialized to zero.
39         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
40         initialized to zero.
41
42         * checks.adb (Expr_Known_Valid): Packed arrays are now always
43         considered valid, even if the representation is modular. That's correct
44         now that we no longer initialize packed modular arrays to zero.
45
46         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
47         suffixes. These are now documented as the only cases in which the
48         debugger ignores outer records.
49         Previously, the spec allowed arbitrary suffixes for this purpose.
50         Change name of LJM to JM for packed array pad records
51         Create separate section on packed array handling, and add a whole new
52         set of comments to this section describing the situation with packed
53         modular types and justification requirements depending on endianness.
54
55 2004-10-04  Robert Dewar  <dewar@gnat.com>
56
57         * a-except.adb: Add a comment for last change
58
59         * einfo.ads: Minor spelling correction in comment
60
61         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
62
63         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
64         messages.
65
66         * sem_util.ads: Minor comment update
67
68 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
69
70         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
71         Inline_Always when in Configurable_Run_Time mode.
72
73         * sem_prag.adb (Process_Convention): If entity is an inherited
74         subprogram, apply convention to parent subprogram if in same scope.
75         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
76         when in Configurable_Run_Time mode.
77
78 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
79
80         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
81         class_wide type after component list has been inherited.
82
83 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
84
85         * sem_ch12.adb (Check_Generic_Actuals): New predicate
86         Denotes_Previous_Actual, to handle properly the case of a private
87         actual that is also the component type of a subsequent array actual.
88         The visibility status of the first actual is not affected when the
89         second is installed.
90         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
91         make fully recursive the treatment of formals of packages declared
92         with a box.
93         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
94         the above on exit from an instantiation.
95         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
96         current instantiation which is now complete.
97         (Analyze_Package_Instantiation): No instantiated body is needed if the
98         main unit is generic. Efficient, and avoid anomalies when a instance
99         appears in a package accessed through rtsfind.
100
101 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
102
103         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
104         do not generate a declaration for a temporary if the call is part of a
105         library-level instantiation.
106
107 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
108
109         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
110         searching for a limited component to flag.
111
112         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
113         expansion of Input, to account for the fact that the implicit call
114         generated by the attribute reference must freeze the user-defined
115         stream subprogram. This is only relevant to 'Input, because it can
116         appear in an object declaration, prior to the body of the subprogram.
117
118         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
119         expansion can proceed and further errors uncovered.
120         (Minor clean up): Fix cases of using | instead of \ for continuation
121         messages.
122
123 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
124
125         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
126
127         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
128         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
129         Use gcc_assert and gcc_unreachable.
130
131         * decl.c (gnat_to_gnu_entity, case object): Check and process a
132         specified alignment before validating size.
133         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
134         stripped-down declaration for the type of the inner field when making
135         a JM type.
136
137         * utils.c (finish_record_type): Do not compute the size in units
138         incrementally. Instead compute it once for the rep clause case.
139         Use gcc_assert and gcc_unreachable.
140
141 2004-10-04  Vincent Celier  <celier@gnat.com>
142
143         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
144         in file name.
145         (Is_Valid_Path_Name): Take '/' as a directory separator.
146
147 2004-10-04  Vincent Celier  <celier@gnat.com>
148
149         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
150         (Extended_Project) only if Extended_Project is defined, to avoid
151         assertion error.
152         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
153         resolved path.
154         (Parse_Single_Project): Ditto.
155
156         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
157         Add_To_Project_Path for virtual projects.
158
159 2004-10-04  Vincent Celier  <celier@gnat.com>
160
161         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, 
162         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb, 
163         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, 
164         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
165         parameter Options_2.
166
167         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
168         Build_Dynamic_Library with an empty Options_2.
169
170         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
171         default anymore.
172
173         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
174         directory separator, if any.
175         (Gprmake): Do not allow mains on the command line for library projects.
176         Do not attempt to link when the project is a library project.
177         (Library_Opts): New table to store Library_Options.
178         (Build_Library): If Library_Options is specified, pass these options
179         when building a shared library.
180
181 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
182
183         * s-tposen.adb (Service_Entry): The object must be always unlocked at
184         the end of this procedure now that the unlock operation was inserted
185         by the expander.
186
187 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
188
189         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
190         corresponding to the Preallocated_Stacks flags in System.
191         (Get_Target_Parameters): Including the processing for
192         Preallocated_Stacks.
193
194         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads, 
195         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads, 
196         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads, 
197         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads, 
198         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads, 
199         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads, 
200         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads, 
201         system-vxworks-mips.ads, system-os2.ads, system-interix.ads, 
202         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
203         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
204         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
205         used to signal whether the compiler creates the required stacks and
206         descriptors for the different tasks (when True) or it is done by the
207         underlying operating system at run time (when False).
208         It is initially set to False in all targets.
209
210         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
211         if it is supported by the target.
212         (Make_Task_Create_Call): Pass the stack address if it has been
213         previously created. Otherwise pass a Null_Address.
214
215         * snames.adb: Add _stack.
216
217         * snames.ads: Add Name_uStack. Required to allow the expander to
218         statically allocated task stacks.
219
220         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
221         Stack_Address argument.
222         Check that its value is equal to Null_Address because this target does
223         not support the static stack allocation.
224
225 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
226
227         * usage.adb: Change "pragma inline" to "pragma Inline" in information
228         and error messages
229
230 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
231
232         * exp_dist.adb: Split declaration of asynchronous flag out of
233         Add_RACW_Read_Attribute.
234         Minor reformatting for better alignment with PolyORB version.
235         Store the entity for the asynchronous flag of an RACW, rather than the
236         expression, in the asynchronous flags table. This will allow this flag
237         to be used in other subprograms beside Add_RACW_Read_Attribute.
238
239 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
240
241         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
242         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, 
243         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb, 
244         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads, 
245         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
246         sockets constant MSG_NOSIGNAL (Linux-specific).
247         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
248         all Send operations.
249         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
250         from trigerring SIGPIPE.
251         Rename components to avoid clash with Ada 2005 possible reserved
252         word 'interface'.
253         (Check_Selector): When the select system call returns with an error
254         condition, propagate Socket_Error to the caller.
255
256 2004-10-01  Jan Hubicka  <jh@suse.cz>
257
258         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
259
260 2004-09-23  Robert Dewar  <dewar@gnat.com>
261
262         PR ada/17540
263
264         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
265         instead do this at freeze time (we won't do it if there is an address
266         clause).
267         Change "pragma inline" to "pragma Inline" in information and error
268         messages.
269         Minor reformatting.
270
271         * freeze.adb (Check_Address_Clause): Remove previous change, not the
272         right way of doing things after all.
273         (Freeze_Entity): For object, set Is_Public for imported entities
274         unless there is an address clause present.
275
276 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
277
278         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
279         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
280         ensures proper handling of types with rep clauses, which might have
281         their TYPE_SIZE set already.
282
283 2004-09-21  Robert Dewar  <dewar@gnat.com>
284
285         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
286         packed array types in both little- and big-endian cases. This change
287         ensures that we no longer count on the unused bits being initialized
288         for such types (and in particular ensures that equality testing will
289         only read the relevant bits).
290         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
291         These changes mean that we no longer need to initialize small packed
292         arrays.
293         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
294         optimization to an LJM field as to its parent field.
295
296         * ada-tree.h, trans.c, utils.c, utils2.c:
297         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
298
299 2004-09-20  Jan Hubicka  <jh@suse.cz>
300
301         * utils.c (gnat_finalize): Remove.
302         (end_subprog_body): Directly call cgraph_finalize_function;
303         do not lower the nested functions.
304
305 2004-09-20  Robert Dewar  <dewar@gnat.com>
306
307         PR ada/17540
308
309         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
310         if an address clause is present, since that means that the Import
311         should be ignored.
312
313 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
314
315         * 5tsystem.ads: Removed, no longer used.
316
317 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
318             Zack Weinberg  <zack@codesourcery.com>
319
320         * ada-tree.def: Use tree_code_class enumeration constants
321         instead of code letters.
322         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
323         Update for new tree-class enumeration constants.
324
325 2004-09-17  Vincent Celier  <celier@gnat.com>
326
327         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
328         capabilities of the general project manager.
329
330 2004-09-09  Vincent Celier  <celier@gnat.com>
331
332         * a-direct.ads: Add pragma Ada_05
333         (Directory_Entry_Type): Give default value to component Kind to avoid
334         not initialized warnings.
335
336         * a-direct.adb (Current_Directory): Remove directory separator at the
337         end.
338         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
339         an existing directory.
340         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
341         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
342         Convert the result to File_Size.
343
344         * prj.ads: (Project_Error): New exception
345
346         * prj-attr.adb: Except in procedure Initialize, Fail comes from
347         Prj.Com, not from Osint.
348         (Attrs, Package_Attributes): Tables moved to private part of spec
349         (Add_Attribute, Add_Unknown_Package): Moved to new child package
350         Prj.Attr.PM.
351         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
352         Prj.Project_Error after call to Fail.
353         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
354         Fail. Check that package name is not already in use.
355
356         * prj-attr.ads: Comment updates to indicate that all subprograms may be
357         used by tools, not only by the project manager, and to indicate that
358         exception Prj.Prj_Error may be raised in case of problem.
359         (Add_Unknown_Package, Add_Attribute): Moved to new child package
360         Prj.Attr.PM.
361         (Attrs, Package_Attributes): Table instantiations moved from the body to
362         the private part to be accessible from Prj.Attr.PM body.
363
364         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
365         from new package Prj.Attr.PM.
366         (Parse_Attribute_Declaration): Call Add_Attribute from new package
367         Prj.Attr.PM.
368
369         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
370
371         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
372         instead of Elaboration_Checks).
373
374         * a-calend.adb: Minor reformatting
375
376 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
377
378         * gigi.h (maybe_pad_type): New declaration.
379         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
380
381         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
382
383         * cuintp.c: Convert to use buildN.
384
385         * decl.c (maybe_pad_type): No longer static.
386         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
387         target pointer.
388         Convert to use buildN.
389
390         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
391         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
392         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
393         RHS.
394         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
395         (gnat_gimplify_expr, case ADDR_EXPR): New case.
396         Convert to use buildN.
397
398         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
399         TREE_READONLY for const.
400         Convert to use buildN.
401
402         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
403         (create_var_decl): Refine when TREE_STATIC is set.
404         Convert to use buildN.
405
406 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
407
408         * gnat_ugn.texi: Delete text relating to checking of ali and object
409         consistency.
410
411         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
412         routines.
413
414 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
415
416         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
417         pragmas recognized by GNAT.
418
419         * gnat_rm.texi: Document pragma Detect_Blocking.
420
421         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
422         raise Program_Error if called from a protected operation.
423
424         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
425         the protected action nesting level.
426         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
427         protected action nesting level.
428         (Unlock): When pragma Detect_Blocking is active decrease the protected
429         action nesting level.
430
431         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
432         Protected_Action_Nesting.
433
434         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
435         Common_ATCB record. It contains the dynamic level of protected action
436         nesting for each task. It is needed for checking whether potentially
437         blocking operations are called from protected operations.
438         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
439         Detect_Blocking is active or not in the partition.
440
441         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
442         raise Program_Error if called from a protected operation.
443         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
444         Program_Error if called from a protected operation.
445         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
446         Program_Error if called from a protected operation.
447
448         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
449         raise Program_Error if called from a protected operation.
450
451         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
452         raise Program_Error if called from a protected operation, and increase
453         the protected action nesting level.
454         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
455         Program_Error if called from a protected operation, and increase the
456         protected action nesting level.
457         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
458         protected action nesting level.
459
460         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
461         raise Program_Error if called from a protected operation, and increase
462         the protected action nesting level.
463         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
464         Program_Error if called from a protected operation, and increase the
465         protected action nesting level.
466         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
467         raise Program_Error if called from a protected operation.
468         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
469         active, raise Program_Error if called from a protected operation.
470         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
471         protected action nesting level.
472
473         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
474         insertion of the statement raising Program_Error. The run time
475         contains the required machinery for handling that.
476
477         * sem_util.ads: Change comment associated to procedure
478         Check_Potentially_Blocking_Operation.
479         This procedure does not insert a call for raising the exception because
480         that is currently done by the run time.
481
482         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
483
484         * init.c: Add the global variable __gl_detect_blocking that indicates
485         whether pragma Detect_Blocking is active (1) or not (0). Needed for
486         making the pragma available at run time.
487         (__gnat_set_globals): Pass and update the detect_blocking parameter.
488
489         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
490         pragma Detect_Blocking is active.
491
492         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
493
494         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
495         DB is found in the ali file. Any unit compiled with pragma
496         Detect_Blocking active forces its effect in the whole partition.
497
498         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
499         Detect_Blocking is active and delay is called from a protected
500         operation.
501
502         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
503         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
504         Detect_Blocking is active (0 otherwise).
505         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
506         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
507         otherwise).
508
509 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
510
511         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
512         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
513         package.
514
515         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
516         (Register_Receiving_Stub): Add Subp_Info formal parameter.
517         Update API in placeholder implemetation of s-parint to reflect changes
518         in distribution runtime library.
519
520         * sem_ch3.adb (Expand_Derived_Record): Rename to
521         Expand_Record_Extension.
522
523         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
524         primitive operations of potentially distributed object types that have
525         non-controlling anonymous access formals.
526
527         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
528         subprogram.
529         New implementation of expansion for remote access-to-subprogram types,
530         based on the RACW infrastructure.
531         This version of sem_dist is compatible with PolyORB/DSA as well as
532         GLADE.
533
534         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
535         Asynchrronous that applies to a remote access-to-subprogram type, mark
536         the underlying RACW type as asynchronous.
537
538         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
539          __gnat_using_gnu_linker to 1.
540
541         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
542         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
543         GNAT.Perfect_Hash_Generators, and remove the empty
544         GNAT.Perfect_Hash package.
545
546         * atree.adb: Minor reformatting
547
548         * exp_ch3.adb (Expand_Derived_Record): Rename to
549         Expand_Record_Extension.
550         (Build_Record_Init_Proc.Build_Assignment): The default expression in
551         a component declaration must remain attached at that point in the
552         tree so New_Copy_Tree copies it if the enclosing record type is derived.
553         It is therefore necessary to take a copy of the expression when building
554         the corresponding assignment statement in the init proc.
555         As a side effect, in the case of a derived record type, we now see the
556         original expression, without any rewriting that could have occurred
557         during expansion of the ancestor type's init proc, and we do not need
558         to go back to Original_Node.
559
560         * exp_ch3.ads (Expand_Derived_Record): Rename to
561         Expand_Record_Extension.
562
563         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
564         Returns the RACW type used to implement a remote access-to-subprogram
565         type.
566         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
567         New subprograms. Used to create a proxy tagged object for a remote
568         subprogram. The proxy object is used as the designated object
569         for RAS values on the same partition (unless All_Calls_Remote applies).
570         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
571         System.Partition_Interface.Get_Unique_Remote_Pointer.
572         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
573         Renamed from Add_RAS_*_Attribute.
574         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
575         subprograms.
576         New implementation of expansion for remote access-to-subprogram types,
577         based on the RACW infrastructure.
578
579         * exp_dist.ads (Copy_Specification): Update comment to note that this
580         function can copy the specification from either a subprogram
581         specification or an access-to-subprogram type definition.
582
583 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
584
585         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
586         in an instance, between an explicit subprogram an one inherited from a
587         type derived from an actual.
588
589         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
590         add a polling call if the subprogram is to be inlined by the back-end,
591         to avoid repeated calls with multiple inlinings.
592
593         * checks.adb (Apply_Alignment_Check): If the expression in the address
594         clause is a call whose name is not a static entity (e.g. a dispatching
595         call), treat as dynamic.
596
597 2004-09-09  Robert Dewar  <dewar@gnat.com>
598
599         * g-trasym.ads: Minor reformatting
600
601         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
602         packed arrays, since unused bits are expected to be zero for a
603         comparison.
604
605 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
606
607         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
608         comment.
609
610 2004-09-09  Pascal Obry  <obry@gnat.com>
611
612         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
613         enable map file generation. Add the right option to generate the map
614         file if Map_File is set to True.
615
616         * gnatdll.adb (Gen_Map_File): New variable.
617         (Syntax): Add info about new -m (Map_File) option.
618         (Parse_Command_Line): Add support for -m option.
619         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
620         Minor reformatting.
621
622 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
623
624         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
625         new gnatdist implementation.
626         Define a subpackage isolating the output routines specific to this
627         verbose mode.
628
629 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
630
631         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
632
633         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
634
635 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
636
637         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
638         internal unit.
639
640         * opt.ads: Add Ada_Version_Runtime constant used to decide which
641         version of the language is used to compile the run time.
642
643 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
644
645         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
646         of variable length temporaries for function return now that the
647         back-end and gigi support it.
648
649 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
650
651         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
652
653         * trans.c (struct stmt_group): Delete field GLOBAL.
654         (gnat_init_stmt_group): Do not initialize it.
655         (call_to_gnu): Use save_expr, not protect_multiple_eval.
656         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
657         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
658         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
659         (start_stmt_group): Likewise.
660         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
661
662         * utils2.c (ggc.h): Include.
663         (build_call_raise): Call build_int_cst, not build_int_2.
664
665         * utils.c (gnat_init_decl_processing): Fix arg to
666         build_common_tree_nodes.
667         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
668         (gnat_define_builtin): Set built_in_decls.
669         (init_gigi_decls): Call build_int_cst, not build_int_2.
670
671         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
672         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
673         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
674         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
675         SET_TYPE_MODULE): Use them.
676         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
677         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
678         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
679         SET_TYPE_ADA_SIZE): Likewise.
680         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
681         (DECL_CONST_CORRESPONDING_VAR,
682         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
683         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
684         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
685         (TYPE_RM_SIZE_NUM): New macro.
686         (TYPE_RM_SIZE): Modified to use above.
687
688         * cuintp.c: (build_cst_from_int): New function.
689         (UI_To_gnu): Use it.
690
691         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
692         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
693         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
694         MIN_EXPR for the size, copy it into new.
695
696 2004-09-01  Robert Dewar  <dewar@gnat.com>
697
698         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
699         packed indexed component where array is an IN OUT formal. This
700         generated garbage code previously.
701
702         * gnat_ugn.texi: Document -fverbose-asm
703
704         * gnat-style.texi: Minor updates (note that boolean constants and
705         variables are joined with AND/OR rather than short circuit forms).
706
707 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
708
709         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
710         it is an upward conversion of an untagged type with no representation
711         change.
712
713 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
714
715         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
716         System.Partition_Interface.
717
718         * checks.adb (Apply_Access_Checks): Do not generate checks when
719         expander is not active (but check for unset reference to prefix of
720         dereference).
721
722         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
723         pragma Debug as an if statement with a constant condition, for
724         consistent treatment of entity references contained within the
725         enclosed procedure call.
726
727 2004-09-01  Vincent Celier  <celier@gnat.com>
728
729         * bindgen.adb: (Set_EA_Last): New procedure
730         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
731         Set_EA_Last.
732         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
733         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
734         linked without errors.
735         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
736         ST and EA.
737         (Gen_Exception_Table_C): Correct same bugs
738
739         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
740
741         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
742         on Windows, make sure that the drive letter is in upper case.
743
744         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
745         Windows, when the drive letter is added and Case_Sensitive is True, the
746         drive letter is forced to upper case.
747
748         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
749         to Options_2 for the call to MLib.Utl.Gcc.
750
751         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
752         directory separator when defining BASE_DIR.
753
754 2004-09-01  Pascal Obry  <obry@gnat.com>
755
756         * gprcmd.adb (Extend): Do not output trailing directory separator. This
757         is not needed and it confuses Windows GNU/make which does not report
758         directory terminated by a slash as a directory.
759         (gprcmd): Idem for "pwd" internal command.
760
761         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
762         target names rewrite to fix regressions with recent version of
763         GNU/make. Starting with GNU/make 3.80 the pipe character was not
764         handled properly anymore.
765
766 2004-09-01  Andreas Schwab  <schwab@suse.de>
767
768         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
769         * raise.c [!IN_RTS]: Undef abort.
770
771 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
772
773         * utils2.c (build_allocator): Use ssize_int.
774
775         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
776
777 2004-08-27  Andreas Schwab  <schwab@suse.de>
778
779         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
780
781 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
782             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
783
784         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
785
786 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
787
788         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
789         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
790         * utils.c (init_gigi_decls): Likewise.
791         * utils2.c (build_call_raise, build_allocator): Likewise.
792
793 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
794
795         * utils.c (gnat_init_decl_processing): Adjust
796         build_common_tree_nodes call.
797
798 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
799
800         * utils2.c (build_allocator): Use build_int_cst for negative
801         size types.
802
803 2004-08-18  Richard Henderson  <rth@redhat.com>
804
805         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
806
807 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
808
809         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
810         call.s
811         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
812         (gnat_to_gnu): Likewise.
813
814 2004-08-16  Pascal Obry  <obry@gnat.com>
815
816         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
817         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
818         option and not mdll anymore. Update comment.
819
820 2004-08-16  Pascal Obry  <obry@gnat.com>
821
822         * bld.adb (Put_Include_Project): Properly handle directory separators
823         on Windows.
824
825 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
826
827         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
828         decreasing the number of allocated junk nodes while searching for the
829         appropriate subprogram.
830
831 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
832
833         * cuintp.c (UI_To_gnu): Use build_int_cst..
834         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
835         * utils.c (init_gigi_decls): Likewise.
836         * utils2.c (build_call_raise): Likewise.
837
838 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
839
840         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
841         for a global aliased object with a variable size and an unconstrained
842         nominal subtype, pretend there is no initializer if the one we have is
843         incomplete, and avoid referencing an inexistant component in there. The
844         part we have will be rebuilt anyway and the reference may confuse
845         further operations.
846
847 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
848
849         * einfo.ads: Minor reformatting
850
851         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
852         restrictions in the ALI if we only want to warn about violations.
853
854 2004-08-13  Vincent Celier  <celier@gnat.com>
855
856         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
857         when creating a new Unit_Record in table Units.
858
859         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
860         that are violated, if any.
861
862         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
863         add directory separator if path already ends with a directory separator.
864
865 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
866
867         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
868         unit, this is an attempt to inline a construct that is not available in
869         the current restricted mode, so abort rather than trying to continue.
870
871         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
872         discriminants that rename those of the parent, recover names of
873         original discriminants for the constraint on the full view of the
874         parent.
875         (Complete_Private_Subtype): Do not create a subtype declaration if the
876         subtype is an itype.
877
878         * gnat_rm.texi: Added section on implementation of discriminated
879         records with default values for discriminants.
880
881 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
882
883         PR ada/15601
884         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
885         the second operand is overloaded.
886
887 2004-08-10  Richard Henderson  <rth@redhat.com>
888
889         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
890         add __builtin_alloca.
891
892 2004-08-10  Richard Henderson  <rth@redhat.com>
893
894         * config-lang.in (boot_language): Yes.
895
896 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
897
898         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
899         from complaining on potential uninitialized reference.
900         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
901         new specification and test explicitly for non-zero return value.
902
903         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
904         returning C.int, to avoid using a derived boolean type.
905
906         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
907         Duplicate_Subexpr_No_Checks in preference to direct use of
908         Remove_Side_Effects and New_Copy_Tree.
909         Clear Comes_From_Source on prefix of 'Size attribute reference.
910
911         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
912         g-socthi-vxworks.adb: Change calls to
913         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
914         and test explicitly for non-zero return value.
915
916         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
917         (Is_Socket_In_Set): Declare imported function as returning C.int, to
918         avoid using a derived boolean type.
919
920 2004-08-09  Albert Lee  <lee@gnat.com>
921
922         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
923
924 2004-08-09  Pascal Obry  <obry@gnat.com>
925
926         * gnat_ugn.texi: Document new way to build DLLs on Windows using
927         GCC's -shared option.
928
929         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
930         Options_2 parameter (options put after object files).
931
932 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
933
934         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
935         ignore overflows on low and high bounds of an index to also account for
936         differences in signedness between sizetype and gnu_index_subtype.
937         These are as legitimate as the ones caused by a lower TYPE_PRECISION
938         on sizetype.
939
940 2004-08-09  Robert Dewar  <dewar@gnat.com>
941
942         * s-solita.ads, s-solita.adb: Minor reformatting
943
944         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
945         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
946         obsolescent section
947         Add note that No_Implicit_Conditionals does not suppress
948         run time constraint checks.
949
950         * vms_conv.ads: Minor reformatting
951
952         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
953         and necessary for following change).
954         (Mark): Return new format Mark_Id containing sec stack address
955         (Release): Use sec stack address from Mark_Id avoiding Self call
956
957         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
958         pointer (cleanup and necessary for following change).
959         Define Mark_Id as record containing address of secondary stack, that way
960         Release does not need to find the stack again, decreasing the number of
961         calls to Self and improving efficiency.
962
963         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
964
965         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
966         case variable into the individual case branches when possible.
967
968         * sem_ch11.adb: Minor reformatting
969
970         * prj.ads: Correct spelling of suffixs
971
972         * prj-nmsc.adb: Minor reformatting
973         Correct spelling suffixs throughout (also in identifiers)
974
975         * freeze.adb: Minor spelling correction
976
977         * exp_ch2.adb: Cleanups to handling of Current_Value
978         (no functional effect).
979
980         * bld.adb: Correct spelling of suffixs
981
982         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
983
984 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
985
986         PR ada/15408
987
988         * sem_ch7.adb (Install_Private_Declarations): In the body of the
989         package or of a child, private entities are both immediately_visible
990         and not hidden.
991
992 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
993
994         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
995         there are no range checks on the value of the literal.
996
997         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
998         wrapped is the triggering alternative of an asynchronous select, action
999         statements mustbe inserted before the select itself.
1000
1001         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
1002         case where the prefix is a protected function call.
1003         (Resolve_Attribute, case 'Access): The attribute reference on a
1004         subprogram is legal in a generic body if the subprogram is declared
1005         elsewhere.
1006
1007 2004-08-09  Vincent Celier  <celier@gnat.com>
1008
1009         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
1010         languages, otherwise building the library may fail with unresolved
1011         symbols.
1012         (Compile_Sources): Do not build libraries if -c switch is used
1013
1014         * gnatlink.adb (Process_Args): New switches -M and -Mmap
1015         (Write_Usage): If map file creation is supported, output new switches
1016         -M and -Mmap.
1017         (Gnatlink): When -M is specified, add the necessary switch(es) to the
1018         gcc call, when supported.
1019
1020         * Makefile.in: Added indepsw.o to the object list for gnatlink
1021         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
1022
1023         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
1024         indepsw.adb, indepsw.ads: New files.
1025
1026 2004-08-09  Bernard Banner  <banner@gnat.com>
1027
1028         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
1029
1030         * Makefile.in: add section for vxworks x86
1031
1032 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
1033
1034         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
1035         per-object constrained components where the discriminant is of an
1036         Access type.
1037         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
1038         the parent initialization procedure for derived Unchecked_Unions.
1039         Instead, derived Unchecked_Unions build their own initialization
1040         procedure.
1041         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
1042         Check the body of the subprogram for details.
1043         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
1044         functions for derived Unchecked_Union types by introducing a condition.
1045         Allow the creation of TSS equality functions for Unchecked_Unions.
1046         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
1047         Add formal parameter Discr to function signature. Discr is used to
1048         control the generated case statement for Unchecked_Union types.
1049         (Make_Eq_If): Rename formal parameter Node to E in function signature.
1050
1051         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
1052         Unchecked_Unions.
1053         Check the body of the subprogram for details.
1054         (Expand_Composite_Equality): Augment composite type equality to include
1055         correct handling of Unchecked_Union components.
1056         (Expand_N_In): Add condition to detect illegal membership tests when the
1057         subtype mark is a constrained Unchecked_Union and the expression lacks
1058         inferable discriminants, and build a Raise_Program_Error node.
1059         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
1060         to detect types that contain components of unconstrained Unchecked_Union
1061         subtype. Add condition to detect equality between types that have an
1062         unconstrained Unchecked_Union component, and build a Raise_Program_Error
1063         node. Add condition to detect equality between Unchecked_Union types
1064         that lack inferable discriminants, and build a Raise_Program_Error node.
1065         Otherwise build a TSS equality function call.
1066         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
1067         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
1068         with the operand lacking inferable discriminants, and build a Raise_
1069         Program_Error node.
1070         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
1071         composite equality.
1072         (Has_Inferable_Discriminants): Implement new predicate for objects and
1073         expressions of Unchecked_Union type. Check the body of subprogram for
1074         details.
1075         (Has_Unconstrained_UU_Components): Add function
1076         Component_Is_Unconstrained_UU. It is used to detect whether a single
1077         component is of an unconstrained Unchecked_Union subtype. Add function
1078         Variant_Is_Unconstrained_UU. It is used to detect whether a single
1079         component inside a variant is of an unconstrained Unchecked_Union type.
1080
1081         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
1082         inferred discriminant values. Add condition to generate a case
1083         statement with an inferred discriminant as the switch.
1084         (Make_Component_List_Assign): Introduce a Boolean flag that determines
1085         the behaviour of the subprogram in the presence of an Unchecked_Union.
1086         Add condition to trigger the usage of the inferred discriminant value
1087         as the generated case statement switch.
1088         (Make_Field_Assign): Introduce a Boolean flag that determines the
1089         behaviour of the subprogram in the presence of an Unchecked_Union. Add
1090         condition to trigger the usage of the inferred discriminant value as
1091         the right-hand side of the generated assignment.
1092
1093         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
1094         parameter generation when dealing with Unchecked_Unions.
1095
1096         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
1097         checks for Unchecked_Unions.
1098
1099         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
1100
1101         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
1102         Raise_Program_Error nodes for the execution of Read and Write
1103         attributes of Unchecked_Union types and the execution of Input and
1104         Output attributes of Unchecked_Union types that lack default
1105         discriminant values.
1106
1107         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
1108         Unchecked_Union. Add procedure Check_Component. It is used to inspect
1109         per-object constrained components of Unchecked_Unions for being
1110         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
1111         check individual components withing a variant.
1112
1113         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
1114         comparison of Unchecked_Unions.
1115         (Resolve_Equality_OP): Remove guard that prevents equality between
1116         Unchecked_Unions.
1117
1118         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
1119         of component subtypes for Unchecked_Union components.
1120         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
1121         since it is the actual subtype.
1122
1123         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
1124         pass of Unchecked_Union subtypes as generic actuals to formal types
1125         that lack known_discriminant_parts or that are derived Unchecked_Union
1126         types, and do nothing. In any other case, produce an error message.
1127
1128         * sem_ch3.adb (Analyze_Component_Declaration): Add function
1129         Contains_POC. It determines whether a constraint uses the discriminant
1130         of an enclosing record type.
1131         Add condition to detect per-object constrained component and set the
1132         appropriate flag.
1133         (Derived_Type_Declaration): Remove guard that prevents derivation from
1134         Unchecked_Union types.
1135         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
1136         Union subtypes.
1137
1138         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
1139         references to Unchecked_Union discriminants.
1140
1141         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
1142         formal generation when dealing with Unchecked_Unions.
1143         (Set_Actual_Subtypes): Add condition to prevent generation of actual
1144         subtypes for Unchecked_Unions.
1145
1146         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
1147         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
1148         completions of discriminated partial views by Unchecked_Unions and
1149         produce an error message.
1150
1151 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1152
1153         * trans.c (struct stmt_group): New field, GLOBAL.
1154         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
1155         (struct elab_info): New struct.
1156         (elab_info_list, gnu_elab_proc_stack): New variables.
1157         (Compilation_Unit_to_gnu): New procedure.
1158         (gigi): Call it and also handle elaboration procs we've saved.
1159         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
1160         global field from parent.
1161         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
1162         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
1163         (start_stmt_group): Initialize global field from parent.
1164         (add_decl_expr): Set to global for current statement group.
1165         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
1166         post.
1167
1168         * utils.c (global_bindings_p): True when no current_function_decl; no
1169         longer check current_binding_level.
1170
1171 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
1172
1173         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
1174         choice.
1175
1176         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
1177
1178 2004-08-06  Andreas Schwab  <schwab@suse.de>
1179
1180         * utils.c (gnat_define_builtin): Remove second parameter of
1181         make_decl_rtl.
1182         (begin_subprog_body): Likewise.
1183
1184 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
1185
1186         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
1187         optimization, not supported by the tree-ssa back-end.
1188
1189 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
1190
1191         * s-mastop-irix.adb: Update comments.
1192
1193         * a-except.adb (Exception_Information): Raise Constraint_Error if
1194         exception Id is Null_Id.
1195         This is required behavior, which is more reliably and clearly checked
1196         at the top level interface level.
1197
1198 2004-07-26  Javier Miranda  <miranda@gnat.com>
1199
1200         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
1201         call if a component has no default_expression and the box is used.
1202
1203         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
1204         default_expression and you use box, it behaves as if you had declared a
1205         stand-alone object.
1206         (Resolve_Record_Aggregate): If a component has no default_expression and
1207         you use box, it behaves as if you had declared a stand-alone object.
1208
1209         * sem_ch10.adb (Install_Siblings): Do not make visible the private
1210         entities of private-with siblings.
1211
1212 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
1213
1214         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
1215         for a component of an itype, set the parent pointer for analysis,
1216         there is no list in which to insert it.
1217
1218         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
1219         bona-fide renamings, not for inherited operations.
1220
1221         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
1222         actual for a formal that is an access parameter, create local
1223         finalization list even if the expression is not an aggregate.
1224
1225 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
1226
1227         PR ada/16213
1228         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
1229         Diagnose properly illegal subprogram renamings that are library units.
1230
1231 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
1232
1233         PR ada/15588
1234         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
1235         conversion rewritten as an unchecked conversion, check that original
1236         expression is a variable.
1237
1238         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
1239         unchecked_conversion, create new node rather than rewriting in place,
1240         to preserve original construct.
1241
1242 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1243
1244         * gigi.h (gnat_expand_body): Deleted.
1245
1246         * Make-lang.in: (trans.o): Depends on function.h.
1247
1248         * misc.c: (gnat_expand_body): Moved to here.
1249
1250         * trans.c (gnat_expand_body_1): Deleted.
1251         (gnat_expand_body): Moved from here.
1252         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
1253         (add_stmt): Check for marked visited with global_bindings_p.
1254         (gnat_gimplify_expr, case COMPONENT_REF): New case.
1255         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
1256
1257         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
1258         VIEW_CONVERT_EXPR if not operation type.
1259
1260         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
1261         fat pointer.
1262
1263         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
1264         changes: reformatting of negation operators, removing unneeded
1265         inequality comparison with zero, converting equality comparisons with
1266         zero to negations, changing int/0/1 to bool/false/true, replace calls
1267         to gigi_abort with abort, and various other similar changes.
1268
1269 2004-07-26  Vincent Celier  <celier@gnat.com>
1270
1271         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
1272         "setup".
1273
1274         * make.adb (Gnatmake): Fail when a library is not present and there is
1275         no object directory.
1276
1277         * mlib-prj.adb (Check_Library): No need to check if the library needs
1278         to be rebuilt if there is no object directory, hence no object files
1279         to build the library.
1280
1281         * opt.ads (Setup_Projects): New Boolean flag.
1282
1283         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
1284         Location.
1285         Create directory when Kind /= "" and in "gnat setup". Report error if
1286         directory cannot be created.
1287         (Ada_Check): Create library interface copy dir if it does not exist
1288         and we are in "gnat setup".
1289         (Find_Sources): No error if in "gnat setup" and no Ada sources were
1290         found.
1291         (Language_Independent_Check): Create object directory, exec directory
1292         and/or library directory if they do not exist and we are in
1293         "gnat setup".
1294
1295         * vms_conv.ads: (Command_Type): New command Setup.
1296
1297         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
1298
1299         * vms_data.ads: Add qualifiers/switches for new built-in command
1300         "setup".
1301
1302 2004-07-25  Richard Henderson  <rth@redhat.com>
1303
1304         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
1305         DECL_IGNORED_P on RESULT_DECL.
1306
1307 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
1308
1309         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
1310         allocation and potentially overflowing update with
1311         Tailored_Exception_Information. Use the sec-stack free procedural
1312         interface to output Exception_Information instead.
1313
1314         * a-except.adb (To_Stderr): New subprogram for character, and string
1315         version moved from a-exextr to be visible from other separate units.
1316         (Tailored_Exception_Information): Remove the procedural version,
1317         previously used by the default Last_Chance_Handler and not any more.
1318         Adjust various comments.
1319
1320         * a-exexda.adb: Generalize the exception information procedural
1321         interface, to minimize the use of secondary stack and the need for
1322         local buffers when the info is to be output to stderr:
1323         (Address_Image): Removed.
1324         (Append_Info_Character): New subprogram, checking for overflows and
1325         outputing to stderr if buffer to fill is of length 0.
1326         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
1327         (Append_Info_Address, Append_Info_Exception_Name,
1328         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
1329         Append_Info_Basic_Exception_Traceback,
1330         Append_Info_Exception_Information): New subprograms.
1331         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
1332         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
1333         Exception_Info_Maxlength, Exception_Name_Length,
1334         Exception_Message_Length): New subprograms.
1335         (Exception_Information): Use Append_Info_Exception_Information.
1336         (Tailored_Exception_Information): Use
1337         Append_Info_Basic_Exception_Information.
1338         Export services for the default Last_Chance_Handler.
1339
1340         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
1341         other separate units.
1342
1343 2004-07-20  Vincent Celier  <celier@gnat.com>
1344
1345         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
1346
1347 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
1348
1349         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
1350         emit itype references for the designated types of component types that
1351         are declared outside of the full record declaration, and that may
1352         denote a partial view of that record type.
1353
1354 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
1355
1356         PR ada/15607
1357         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
1358         which is the designated type in an access component declaration, to the
1359         list of incomplete dependents of the parent type, to avoid elaboration
1360         issues with out-of-scope subtypes.
1361         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
1362         full view of the parent.
1363
1364 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
1365
1366         PR ada/15610
1367         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
1368         entities that are hidden, such as references to generic actuals
1369         outside an instance.
1370
1371 2004-07-20  Javier Miranda  <miranda@gnat.com>
1372
1373         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
1374         support to the new notation.
1375         (Analyze_Selected_Component): Add call to Try_Object_Operation.
1376
1377 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
1378
1379         * s-taprob.adb: Adding the elaboration code required for initializing
1380         the tasking soft links that are common to the full and the restricted
1381         run times.
1382
1383         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
1384         restricted run time has been moved to the package
1385         System.Soft_Links.Tasking.
1386
1387         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
1388         restricted run time has been moved to the package
1389         System.Soft_Links.Tasking.
1390
1391         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
1392
1393         * s-solita.ads, s-solita.adb: New files.
1394
1395 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1396
1397         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
1398         Case_Statement_to_gnu): Split off from gnat_to_gnu.
1399         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
1400         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
1401         Exception_Handler_to_gnu_zcx): Likewise.
1402
1403 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
1404
1405         * gigi.h (builtin_function): Declare.
1406
1407 2004-07-15  Robert Dewar  <dewar@gnat.com>
1408
1409         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
1410         reformatting
1411
1412         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
1413         access values as an example of a warning.
1414
1415         * gnat_rm.texi: Document new attribute Has_Access_Values
1416
1417         * gnat-style.texi: Document that box comments belong on nested
1418         subprograms
1419
1420         * sem_util.ads (Has_Access_Values): Improved documentation
1421
1422         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
1423
1424         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
1425         (Process_Interface_Name): Call to this new procedure
1426         (Set_Extended_Import_Export_External_Name): Call to this new procedure
1427
1428         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
1429
1430         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
1431
1432         * einfo.ads: Minor comment typo fixed
1433
1434 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
1435
1436         * snames.adb: Add _atcb.
1437
1438         * snames.ads: Add Name_uATCB.
1439
1440         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
1441         (in the expanded code) when using the restricted run time.
1442
1443         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
1444         a in parameter in order to allow ATCBs to be preallocated (in the
1445         expanded code).
1446
1447         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
1448         order to allow ATCBs to be preallocated. In case of error, the ATCB is
1449         deallocated in System.Tasking.Stages.
1450
1451         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
1452         order to allow ATCBs to be preallocated.
1453
1454         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
1455         here. It was previously done in Initialize_ATCB.
1456
1457         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
1458
1459         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
1460         Restricted run time.
1461
1462         * exp_ch3.adb: When using the Restricted run time, pass the
1463         preallocated Ada_Task_Control_Block when creating a task.
1464
1465 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
1466
1467         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
1468         function call that is itself an actual in an enclosing call, diagnose
1469         problem here rather than assuming that resolution will catch it.
1470
1471         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
1472         the local copy of a generic unit for a formal package, and the generic
1473         is a child unit, install private part of ancestors before compiling
1474         private part of spec.
1475
1476         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
1477         use scope entities rather than tree structures, to handle properly
1478         parent units that are instances rewritten as bodies for inlining
1479         purposes.
1480
1481         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
1482         Remove_Parents): Handle properly a parent unit that is an
1483         instantiation, when the unit has been rewritten as a body for inlining
1484         purposes.
1485
1486         * par.adb (Goto_List): Global variable to collect goto statements in a
1487         given unit, for use in detecting natural loops.
1488
1489         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
1490         use in detecting natural loops.
1491
1492         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
1493         backwards goto's, and rewrite as a infinite loop, to improve locality
1494         of temporaries.
1495
1496         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
1497         subcomponent that includes an indexed reference, to prevent the
1498         generation of copies that would miscompile the desired assignment
1499         statement.
1500         (Build_Task_Image_Decls): Add a numeric suffix to
1501         generated name for string variable, to avoid spurious conflicts with
1502         the name of the type of a single protected object.
1503
1504         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
1505         loop with an explicit exit statement, to avoid generating an
1506         out-of-range value with 'Succ leading to spurious constraint_errors
1507         when compiling with -gnatVo.
1508
1509 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
1510
1511         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
1512         might not be analyzed yet, even if its Etype is already set (case of an
1513         unchecked conversion built using Unchecked_Convert_To, for example).
1514         If the prefix has already been analyzed, this will be a nop anyway.
1515
1516         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
1517         controller type, or an assignment of a record type with controlled
1518         components, copy only user data, and leave the finalization chain
1519         pointers untouched.
1520
1521 2004-07-15  Vincent Celier  <celier@gnat.com>
1522
1523         * make.adb (Collect_Arguments): Improve error message when attempting
1524         to compile a source not part of any project, when -x is not used.
1525
1526         * prj.ads: (Defined_Variable_Kind): New subtype
1527
1528         * prj-attr.adb (Register_New_Package): Two new procedures to register
1529         a package with or without its attributes.
1530         (Register_New_Attribute): Mew procedure to register a new attribute in a
1531         package.
1532         New attribute oriented subprograms: Attribute_Node_Id_Of,
1533         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
1534         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
1535         Next_Attribute.
1536         New package oriented subprograms: Package_Node_Id_Of,
1537         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
1538
1539         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
1540         type.
1541         (Package_Node_Id): Now a private, self initialized type
1542         (Register_New_Package): New procedure to register a package with its
1543         attributes.
1544         New attribute oriented subprograms: Attribute_Node_Id_Of,
1545         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
1546         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
1547         Next_Attribute.
1548         New package oriented subprograms: Package_Node_Id_Of,
1549         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
1550
1551         * prj-dect.adb (Parse_Attribute_Declaration,
1552         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
1553
1554         * prj-makr.adb (Make): Parse existing project file before creating
1555         other files. Fail if there was an error during parsing.
1556
1557         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
1558         new spec of Prj.Attr.
1559
1560         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
1561         to new spec of Prj.Attr.
1562
1563 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1564
1565         * utils2.c: Fix typo in comment.
1566
1567 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1568
1569         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
1570         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
1571
1572 2004-07-14  Andreas Schwab  <schwab@suse.de>
1573
1574         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
1575
1576 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1577
1578         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
1579         object type.
1580         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
1581         TYPE_STUB_DECL.
1582
1583         * misc.c (gnat_types_compatible_p): New function.
1584         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
1585         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
1586
1587         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
1588         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
1589         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
1590         (mark_visited): Don't mark dummy type.
1591         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
1592         parameter, we must remove any LJM building from GNU_NAME.
1593         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
1594         (pos_to_constructor): Use int_const_binop.
1595         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
1596         PARM_DECL.
1597
1598         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
1599         (gnat_pushlevel): Set TREE_USE on BLOCK node.
1600         (gnat_install_builtins): Add __builtin_memset.
1601
1602 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
1603
1604         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
1605         for a renaming, stabilize the initialization expression if we are at a
1606         local level.  At the local level, uses of the renaming may be performed
1607         by a direct dereference of the initializing expression, and we don't
1608         want possible variables there to be evaluated for every use.
1609
1610         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
1611         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
1612         them on the way.  Account for the fact that we may introduce side
1613         effects in the process.
1614
1615 2004-07-13  Richard Henderson  <rth@redhat.com>
1616
1617         * misc.c (default_pass_by_ref): Use pass_by_reference.
1618
1619 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
1620
1621         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
1622         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
1623
1624 2004-07-08  Richard Henderson  <rth@redhat.com>
1625
1626         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
1627         commentary.
1628
1629 2004-07-06  Vincent Celier  <celier@gnat.com>
1630
1631         * vms_conv.ads: Minor reformatting.
1632         Alphabetical order for enumerated values of type Command_Type, to have
1633         the command in alphabetical order for the usage.
1634
1635         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
1636         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
1637
1638         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
1639
1640         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
1641         (Add_Archive_Path): Only add the global archive if there is one.
1642         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
1643         or not any object file to put in the global archive, and don't build
1644         a global archive if there is none.
1645         (X_Switches): New table
1646         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
1647         in the X_Switches table, if any.
1648         (Initialize): Make sure the X_Switches table is empty
1649         (Scan_Arg): Record -X switches in table X_Switches
1650
1651         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
1652
1653         * make.adb: Minor comment fix
1654
1655         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
1656         invoked with directory information, add the directory in front of the
1657         path.
1658
1659         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
1660         invoked with directory information, add the directory in front of the
1661         path.
1662
1663         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
1664         when Keep_Temporary_Files is False.
1665         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
1666         directory information, add the directory in front of the path.
1667         When not on VMS, handle new switch -dn before the command to set
1668         Keep_Temporary_Files to True.
1669         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
1670         everywhere.
1671
1672         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
1673         invoked with directory information, add the directory in front of the
1674         path.
1675
1676 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
1677
1678         * snames.ads, snames.adb (Name_Stub): New name for the distributed
1679         systems annex.
1680
1681         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
1682         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
1683
1684         * g-socket.adb (To_Timeval): Fix incorrect conversion of
1685         Selector_Duration to Timeval for the case of 0.0.
1686
1687         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
1688         documentation from Evolve_And_Then.
1689
1690 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
1691
1692         * s-taprop-tru64.adb, s-taprop-os2.adb,
1693         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
1694
1695 2004-07-06  Robert Dewar  <dewar@gnat.com>
1696
1697         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
1698         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
1699         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
1700         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
1701         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
1702         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
1703         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
1704         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
1705         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
1706         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
1707         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
1708         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
1709         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
1710         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
1711         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
1712         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
1713         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
1714         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
1715         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
1716         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
1717         vms_data.ads: Minor reformatting,
1718         Fix bad box comment format.
1719
1720         * gnat_rm.texi: Fix minor grammatical error
1721
1722         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
1723
1724         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
1725         more cases of discriminated records to be recognized as not needing a
1726         secondary stack.
1727         (Has_Access_Values): New function.
1728
1729         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
1730
1731         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
1732         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
1733         with LRM terminology).
1734         Change terminology in comments primitive type => elementary type.
1735
1736 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
1737
1738         PR ada/15602
1739         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
1740         parameters do not impose any requirements on the presence of a body.
1741
1742 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
1743
1744         PR ada/15593
1745         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
1746         compilation unit and is in an open scope at the point of instantiation,
1747         assume that a body may be present later.
1748
1749 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
1750
1751         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
1752         Improve error message when specified size is not supported.
1753
1754         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
1755         is never a primitive operation.
1756
1757 2004-07-05  Andreas Schwab  <schwab@suse.de>
1758
1759         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
1760         RECORD_OR_UNION_CHECK.
1761         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
1762
1763 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
1764
1765         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
1766         dependency on xgnatugn, instead build it via a submake.
1767         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
1768
1769 2004-07-04  Richard Henderson  <rth@redhat.com>
1770
1771         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
1772
1773 2004-07-01  Richard Henderson  <rth@redhat.com>
1774
1775         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
1776         * utils.c (max_size): Likewise.
1777
1778 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1779
1780         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
1781         and rest_of_type_compilation; add arg to create_*_decl.
1782         (annotate_decl_with_node): Deleted.
1783         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
1784         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
1785         (get_current_block_context, gnat_pushdecl): New declarations.
1786         (gnat_init_stmt_group): Likewise.
1787         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
1788         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
1789         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
1790         (gnat_init): Call gnat_init_stmt_group.
1791         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
1792         (gnu_pending_elaboration_list): Deleted.
1793         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
1794         (gigi): Rearrange initialization calls and move some to last above.
1795         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
1796         Delete calls to add_decl_expr; add arg to create_*_decl.
1797         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
1798         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
1799         begin_subprog_body and call it.
1800         Don't push and pop ggc context.
1801         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
1802         (add_stmt): Remove handling of DECL_EXPR from here.
1803         If not in function, mark visited.
1804         (add_decl_expr): Put global at top level.
1805         Check for cases of DECL_INITIAL we have to handle here.
1806         (process_type): Add extra arg to create_type_decl.
1807         (build_unit_elab): Rework to just gimplify.
1808         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
1809         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
1810         (get_pending_elaborations, pending_elaborations_p): Likewise.
1811         (push_pending_elaborations, pop_pending_elaborations): Likewise.
1812         (get_elaboration_location, insert_elaboration_list): Likewise.
1813         (gnat_binding_level): Renamed from ada_binding_level.
1814         (init_gnat_to_gnu): Don't clear pending_elaborations.
1815         (global_bindings_p): Treat as global if no current_binding_level.
1816         (set_current_block_context): New function.
1817         (gnat_pushdecl): Renamed from pushdecl; major rework.
1818         All callers changed.
1819         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
1820         (finish_record_type): Call call pushdecl for stub decl.
1821         (function_nesting_depth): Deleted.
1822         (begin_subprog_body): Delete obsolete code.
1823         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
1824
1825 2004-06-28  Robert Dewar  <dewar@gnat.com>
1826
1827         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1828         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
1829         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
1830         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
1831         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
1832
1833         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
1834         deal with problem of inefficient slices on machines with strict
1835         alignment, when the slice is a component of a composite.
1836
1837         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
1838         machines, we need the check there as well.
1839
1840 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
1841
1842         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
1843         determine safe copying direction for overlapping slice assignments
1844         when component is controlled.
1845
1846         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
1847         formal derived type in the actual for a formal package are visible in
1848         the enclosing instance.
1849
1850 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
1851
1852         PR ada/15600
1853         * sem_util.adb (Trace_Components): Diagnose properly an illegal
1854         circularity involving a private type whose completion includes a
1855         self-referential component.
1856         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
1857         renaming or an instantiation from an implicit derived operation.
1858
1859 2004-06-28  Pascal Obry  <obry@gnat.com>
1860
1861         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
1862         DLL.
1863         (Library_File_Name_For): Idem.
1864
1865 2004-06-28  Matthew Gingell  <gingell@gnat.com>
1866
1867         * g-traceb.ads: Add explanatory note on the format of addresses
1868         expected by addr2line.
1869
1870 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
1871
1872         * Makefile.in: Force debugging information on s-tasdeb.adb,
1873         a-except.adb and s-assert.adb needed by the debugger.
1874
1875 2004-06-28  Vincent Celier  <celier@gnat.com>
1876
1877         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
1878         Need_To_Build_Lib.
1879         (Gnatmake): Ditto.
1880
1881         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
1882
1883         * prj.adb: Minor reformatting
1884         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
1885
1886         * prj.ads: Comment updates
1887         Minor reformatting
1888         (Project_Data): Change Flag1 to Need_To_Build_Lib.
1889         Remove Flag2: not used.
1890
1891         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
1892         declaration.
1893
1894         * gnat_ugn.texi: Put a "null;" declaration in one project file example
1895
1896         * gnat_rm.texi: Document Empty declarations "null;".
1897
1898         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
1899         front of the linker options.
1900         (Link_Foreign): Put the global archives and the libraries in front of
1901         the linker options.
1902
1903 2004-06-28  Javier Miranda  <miranda@gnat.com>
1904
1905         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
1906         (RTU_Loaded): Code cleanup
1907         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
1908         withed predefined units.
1909
1910         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
1911         explicitly withed predefined units.
1912         Fix typo in comment
1913
1914         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
1915         explicitly withed predefined units.
1916
1917 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1918
1919         * ada-tree.def (DECL_STMT): Deleted.
1920         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
1921         (DECL_STMT_VAR): Deleted.
1922         * decl.c: add_decl_stmt now add_decl_expr.
1923         * gigi.h: Likewise.
1924         * trans.c: Likewise.
1925         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
1926         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
1927         (add_stmt): Only handle padded type here.
1928         (add_stmt_with_node): Allow gnat_node to not be present.
1929         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
1930         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
1931         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
1932         make a SAVE_EXPR for the entire fat pointer.
1933         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
1934         (create_index_type): Make a DECL_EXPR.
1935         (end_subprog_body): Don't call allocate_struct_function here but
1936         do clear cfun.
1937
1938 2004-06-25  Pascal Obry  <obry@gnat.com>
1939
1940         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
1941         Relocatable from Build_Dynamic_Library call.
1942
1943         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
1944         Relocatable are now synonym.
1945
1946         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
1947
1948         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
1949         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
1950         call.
1951
1952         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
1953         Lib_Address and Relocatable.
1954         (Default_DLL_Address): Removed.
1955
1956         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1957         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
1958         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
1959         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
1960         (Default_DLL_Address): Removed.
1961
1962         * mlib-tgt-mingw.adb: Ditto.
1963         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
1964
1965         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
1966         the initial thread stack size.
1967
1968         * a-strmap.ads: Move package L to private part as it is not used in
1969         the spec. Found while reading code.
1970
1971 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
1972
1973         * tracebak.c: Introduce support for a GCC infrastructure based
1974         implementation of __gnat_backtrace.
1975
1976         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
1977         any more. Use accessors instead. This eases maintenance and relaxes
1978         some alignment constraints.
1979         (_GNAT_Exception structure): Remove the Ada specific fields
1980         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
1981         a-exexpr.adb.
1982         (is_handled_by, __gnat_eh_personality): Replace component references to
1983         exception structure by use of the new accessors.
1984
1985         * init.c (__gnat_initialize): Adjust comments to match the just
1986         reverted meaning of the -static link-time option.
1987
1988         * adaint.c (convert_addresses): Arrange not to define a stub for
1989         mips-irix any more, as we now want to rely on a real version from a
1990         recent libaddr2line.
1991
1992         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
1993         the personality routine can use them and not have to rely on a C
1994         counterpart of the record anymore. This simplifies maintenance and
1995         relaxes the constraint of having Standard'Maximum_Alignment match
1996         BIGGEST_ALIGNMENT.
1997         Update comments, and add a section on the common header alignment issue.
1998
1999 2004-06-25  Geert Bosch  <bosch@gnat.com>
2000
2001         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
2002         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
2003
2004 2004-06-25  Robert Dewar  <dewar@gnat.com>
2005
2006         * gnat_rm.texi: Fix section on component clauses to indicate that the
2007         restriction on byte boundary placement still applies for bit packed
2008         arrays.
2009         Add comment on stack usage from Initialize_Scalars
2010
2011         * gnat_ugn.texi: Add documentation for -gnatyLnnn
2012
2013         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
2014         limiting nesting level.
2015
2016         * usage.adb: Add line for -gnatyLnnn switch
2017
2018         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
2019         sem_ch13.adb, exp_aggr.adb: Minor reformatting
2020
2021         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
2022         type as well as on the subtype. This corrects a problem in freeze in
2023         setting alignments of atomic types.
2024
2025         * sem_eval.ads: Minor comment typo fixed
2026
2027         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
2028         level.  Minor reformatting.
2029
2030         * fname.adb (Is_Predefined_File_Name): Require a letter after the
2031         minus sign. This means that file names like a--b.adb will not be
2032         considered predefined.
2033
2034         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
2035         record Test new flag and give diagnostic for bad component clause.
2036         (Freeze_Entity): Set alignment of array from component alignment in
2037         cases where this is safe to do.
2038
2039         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
2040         arrays.
2041
2042         * cstand.adb: (Create_Standard): Set alignment of String to 1
2043
2044         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
2045
2046         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
2047         code in the common constrained array cases.
2048
2049         * a-storio.adb: Change implementation to avoid possible alignment
2050         problems on machines requiring strict alignment (data should be moved
2051         as type Buffer, not type Elmt).
2052
2053         * checks.adb (Apply_Array_Size_Check): Improve these checks by
2054         killing the overflow checks which we really do not need (64-bits is
2055         enough).
2056
2057 2004-06-25  Vincent Celier  <celier@gnat.com>
2058
2059         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
2060         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
2061         inconditionally for the main project.
2062         (Recursive_Add_Archives.Add_Archive_Path): New procedure
2063         (Link_Executables.Check_Time_Stamps): New procedure
2064         (Link_Executables.Link_Foreign): New procedure
2065         Changes made to reduce nesting level of this package
2066         (Check): New procedure
2067         (Add_Switches): When not in quiet output, check that a switch is not
2068         the concatenation of several valid switches. If it is, issue a warning.
2069         (Build_Global_Archive): If the global archive is rebuilt, linking need
2070         to be done.
2071         (Compile_Sources): Rebuilding a library archive does not imply
2072         rebuilding the global archive.
2073         (Build_Global_Archive): New procedure
2074         (Build_Library): New name for Build_Archive, now only for library
2075         project
2076         (Check_Archive_Builder): New procedure
2077         (Create_Global_Archive_Dependency_File): New procedure
2078         (Gprmake): Call Build_Global_Archive before linking
2079         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
2080         throughout.
2081         (Scan_Arg): Display the Copyright notice when -v is used
2082
2083         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
2084         for gnatls.
2085
2086         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
2087         COMPILE.
2088         Add new GNAT LIST qualifier /FILES=
2089         Added qualifier /DIRECTORY= to GNAT METRIC
2090         Added qualifier /FILES= to GNAT METRIC
2091         Added qualifier /FILES to GNAT PRETTY
2092
2093         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
2094         to take into account both versions of the switch.
2095
2096         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
2097         always be the last switch to the gcc driver. Disable switch storing so
2098         that switches automatically added by the gcc driver are not put in the
2099         ALI file.
2100
2101         * prj.adb (Project_Empty): Take into account changes in components of
2102         Project_Data.
2103
2104         * prj.ads (Languages_Processed): New enumaration value All_Languages.
2105
2106         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
2107         used. Split Boolean component Ada_Sources_Present in two Boolean
2108         components Ada_Sources_Present and Other_Sources_Present.
2109         Minor reformatting
2110
2111         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
2112         instead of Sources_Present.
2113         (Set_Ada_Paths.Add.Recursive_Add): Ditto
2114
2115         * prj-nmsc.adb: Minor reformatting
2116         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
2117         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
2118         Check_Ada_Naming_Scheme.
2119         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
2120         throughout.
2121
2122         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
2123         In_Limited.
2124         Make sure that all cycles where there is at least one "limited with"
2125         are detected.
2126         (Parse_Single_Project): New Boolean parameter In_Limited
2127
2128         * prj-proc.adb (Recursive_Check): When Process_Languages is
2129         All_Languages, call first Prj.Nmsc.Ada_Check, then
2130         Prj.Nmsc.Other_Languages_Check.
2131
2132         * prj-proc.adb (Process): Use Ada_Sources_Present or
2133         Other_Sources_Present (instead of Sources_Present) depending on
2134         Process_Languages.
2135
2136         * lang-specs.h: Keep -g and -m switches in the same order, and as the
2137         last switches.
2138
2139         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
2140         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
2141         False.
2142         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
2143         False.
2144
2145         * lib.ads (Disable_Switch_Storing): New procedure.
2146
2147         * make.adb: Modifications to reduce nesting level of this package.
2148         (Check_Standard_Library): New procedure
2149         (Gnatmake.Check_Mains): New procedure
2150         (Gnatmake.Create_Binder_Mapping_File): New procedure
2151         (Compile_Sources.Compile): Add switch -gnatez as the last option
2152         (Display): Never display -gnatez
2153
2154         * Makefile.generic:
2155         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
2156
2157         * gnatcmd.adb (Check_Project): New function
2158         (Process_Link): New procedure to reduce nesting depth
2159         (Check_Files): New procedure to reduce the nesting depth.
2160         For GNAT METRIC, include the inherited sources in extending projects.
2161         (GNATCmd): When GNAT LS is invoked with a project file and no files,
2162         add the list of files from the sources of the project file. If this list
2163         is too long, put it in a temp text files and use switch -files=
2164         (Delete_Temp_Config_Files): Delete the temp text file that contains
2165         a list of source for gnatpp or gnatmetric, if one has been created.
2166         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
2167         in the project file is too large, create a temporary text file that
2168         list them and pass it to the tool with "-files=<temp text file>".
2169         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
2170
2171         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
2172         generated file is in not in Ada.
2173
2174         * gnatls.adb: Remove all parameters And_Save that are no longer used.
2175         (Scan_Ls_Arg): Add processing for -files=
2176         (Usage): Add line for -files=
2177
2178         * g-os_lib.adb (On_Windows): New global constant Boolean flag
2179         (Normalize_Pathname): When on Windows and the path starts with a
2180         directory separator, make sure that the resulting path will start with
2181         a drive letter.
2182
2183         * clean.adb (Clean_Archive): New procedure
2184         (Clean_Project): When there is non-Ada code, delete the global archive,
2185         the archive dependency files, the object files and their dependency
2186         files, if they exist.
2187         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
2188
2189 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
2190
2191         * sinfo.ads: Fix typo in comment.
2192
2193         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
2194         the TSS for remote access-to-subprogram types, since these TSS are
2195         always present once the type has been analyzed.
2196         (RAS_E_Dereference): Same.
2197
2198         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
2199         reference raises Bad_Attribute, mark the reference as analyzed so the
2200         node (and any children resulting from rewrites that could have occurred
2201         during the analysis that ultimately failed) is not analyzed again.
2202
2203         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
2204
2205         * exp_dist.adb: Minor comment fix.
2206
2207         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
2208         type is an anonymous access type, no unchecked deallocation of the
2209         allocated object can occur. If the object is controlled, attach it with
2210         a count of 1. This allows attachment to the Global_Final_List, if
2211         no other relevant list is available.
2212         (Get_Allocator_Final_List): For an anonymous access type that is
2213         the type of a discriminant or record component, the corresponding
2214         finalisation list is the one of the scope of the type.
2215
2216 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
2217
2218         * sem_ch3.adb (Replace_Type): When computing the signature of an
2219         inherited subprogram, use the first subtype if the derived type
2220         declaration has no constraint.
2221
2222         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
2223         before applying previous optimization. Minor code cleanup.
2224
2225         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
2226         placed at the beginning of an unpacked record without explicit
2227         alignment, a slice of it will be aligned and does not need a copy when
2228         used as an actual.
2229
2230 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
2231
2232         PR ada/15591
2233         PR ada/15592
2234         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
2235         reference is written with expressions mimicking parameters.
2236
2237 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
2238
2239         PR ada/15589
2240         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
2241         STEP 2a. The constraints of a full type declaration of a derived record
2242         type are checked for conformance with those declared in the
2243         corresponding private extension declaration. The message
2244         "not conformant with previous declaration" is emitted if an error is
2245         detected.
2246
2247 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
2248
2249         * g-traceb.ads: Document the need for -E binder switch in the spec.
2250
2251         * g-trasym.ads: Document the need for -E binder switch in the spec.
2252
2253 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
2254
2255         * sem_prag.adb: Add handling of pragma Detect_Blocking.
2256
2257         * snames.h, snames.ads, snames.adb: Add entry for pragma
2258         Detect_Blocking.
2259
2260         * s-rident.ads: Change reference to pragma Detect_Blocking.
2261
2262         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
2263         system.ads.
2264
2265         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
2266         to indicate whether pragma Detect_Blocking is active.
2267
2268         * par-prag.adb: Add entry for pragma Detect_Blocking.
2269
2270         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
2271         of not handling WITH.
2272         Note that this replaces the previous update which was incorrect.
2273
2274 2004-06-25  Javier Miranda  <miranda@gnat.com>
2275
2276         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
2277         use-clauses to have a clean environment.
2278
2279         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
2280         the installation of the use-clauses to stablish a clean environment in
2281         case of compilation of a separate unit; otherwise the call to
2282         use_one_package is protected by the barrier Applicable_Use.
2283
2284         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
2285         the installation of the use-clauses to stablish a clean environment in
2286         case of compilation of a separate unit.
2287         (End_Use_Clauses): Minor comment cleanup.
2288
2289 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
2290
2291         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
2292
2293 2004-06-23  Richard Henderson  <rth@redhat.com>
2294
2295         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
2296
2297 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2298
2299         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
2300         now bool instead of int.
2301         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
2302         * trans.c (gnu_switch_label_stack): New function.
2303         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
2304         elaboration of renamed entity returns.
2305         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
2306         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
2307         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
2308         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
2309         DECL_SIZE_UNIT and simplify variable-sized case.
2310         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
2311         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
2312         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
2313         (build_unit_elab): Disable for now.
2314         * utils.c (mark_visited): New function.
2315         (pushdecl): Walk tree to call it for global decl.
2316         (update_pointer_to): Update all variants of pointer and ref types.
2317         Add arg to COMPONENT_REF.
2318         (convert): Likewise.
2319         Move check for converting between variants lower down.
2320         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
2321         (build_allocator): Don't force type of MODIFY_EXPR.
2322         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
2323         put_var_into_stack.
2324
2325 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2326
2327         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
2328         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
2329         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
2330         subprograms.
2331         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
2332         all callers changed.
2333         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
2334         the way that EXIT_STMT finds the loop label.
2335         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
2336         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
2337         (add_stmt): Use annotate_with_locus insted of setting directly.
2338         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
2339         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
2340         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
2341         (build_vms_descriptor): Add extra args to ARRAY_REF.
2342         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
2343         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
2344         New cases.
2345         (build_binary_op): Don't make explicit CONVERT_EXPR.
2346         Add extra rgs to ARRAY_REF.
2347
2348 2004-06-14  Pascal Obry  <obry@gnat.com>
2349
2350         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
2351         Windows.  Fix minor typo.
2352
2353         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
2354         which is now supported on Windows. With this implementation using the
2355         Library Project feature is no different on Windows than on UNIX.
2356
2357 2004-06-14  Vincent Celier  <celier@gnat.com>
2358
2359         * makegpr.adb (Compile_Sources): Nothing to do when there are no
2360         non-Ada sources.
2361
2362         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
2363
2364         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
2365         found, show the project name and the path of the previously parsed
2366         project file.
2367
2368 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
2369
2370         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
2371         array, avoid copying the actual before the call.
2372
2373 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
2374
2375         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
2376         Instead, allocate memory on worst-case alignment assumptions, and then
2377         return an aligned address within the allocated zone.
2378
2379 2004-06-14  Robert Dewar  <dewar@gnat.com>
2380
2381         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
2382         elab entities in predefined units in No_Run_Time_Mode.
2383         (Gen_Adainit_C): Same fix
2384         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
2385         units in No_Run_Time_Mode
2386         (Gen_Elab_Calls_C): Same fix
2387
2388         * symbols-vms-alpha.adb: Minor reformatting
2389
2390         * g-debpoo.ads: Minor reformatting
2391
2392         * lib.adb (In_Same_Extended_Unit): Version working on node id's
2393
2394         * lib.ads (In_Same_Extended_Unit): Version working on node id's
2395
2396         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
2397         working on nodes.
2398
2399         * make.adb: Minor reformatting
2400
2401         * par-ch12.adb: Minor reformatting
2402
2403         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
2404
2405         * prj-strt.adb: Minor reformatting
2406
2407         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
2408         be more general.
2409
2410         * sem_attr.adb: Minor reformatting
2411
2412         * sem_ch7.adb: Minor reformatting
2413
2414         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
2415         for type in the same unit as the object declaration.
2416
2417         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
2418         static string expressions and not just string literals.
2419         Minor reformatting
2420         (Set_Warning): Reset restriction warning flag for restriction pragma
2421         Implement pragma Profile_Warnings
2422         Implement pragma Profile (Restricted)
2423         Give obolescent messages for old restrictions and pragmas
2424
2425         * snames.h, snames.ads, snames.adb: Add new entry for pragma
2426         Profile_Warnings.
2427
2428         * s-rident.ads: Add declarations for restrictions required by profile
2429         Restricted and profile Ravenscar.
2430
2431         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
2432
2433         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
2434         configuration pragmas.
2435
2436 2004-06-11  Vincent Celier  <celier@gnat.com>
2437
2438         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
2439         gnatsym, when symbol policy is Restricted.
2440
2441         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
2442         gnatsym, when symbol policy is Restricted.
2443
2444         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
2445         read the symbol file.
2446         (Finalize): Fail in symbol policy Restricted if a symbol in the original
2447         symbol file is not in the object files. Do not create a new symbol file
2448         when symbol policy is Restricted.
2449
2450         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
2451         in Scng.
2452
2453         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
2454         Restricted.
2455         (Usage): Line for new switch -R
2456
2457         * make.adb (Initialize): When the platform is not VMS, add the
2458         directory where gnatmake is invoked in the front of the path, if
2459         gnatmake is invoked with directory information.  Change the Scan_Args
2460         while loop to a for loop.
2461         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
2462         if Depth is equal or greater than the proposed depth, there is nothing
2463         to do.
2464         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
2465         instead of 0.
2466
2467         * prj.ads: Add new symbol policy Restricted.
2468
2469         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
2470         with the new parameters Check_All_Labels and Case_Location.
2471
2472         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
2473         (Library_Symbol_File needs to be defined).
2474
2475         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
2476         and Case_Location If Check_All_Labels is True, check that all values of
2477         the string type are used, and output warning(s) if they are not.
2478
2479         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
2480         and Case_Location.
2481
2482         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
2483
2484         * gnat_ugn.texi: Update documentation about the library directory in
2485         Library Projects.
2486
2487         * makegpr.adb (Display_Command): In verbose mode, also display the
2488         value of the CPATH env var, when the compiler is gcc.
2489         (Initialize): Change the Scan_Args while loop to a for loop
2490         (Compile_Individual_Sources): Change directory to object directory
2491         before compilations.
2492
2493         * symbols.ads: New symbol policy Restricted.
2494
2495 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
2496
2497         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
2498         is now taken care of internally in the Exception_Propagation package
2499         and does not require clients assistance any more.
2500
2501         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
2502         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
2503         functions. Helpers to maintain a predicate required in the handling of
2504         occurrence transfer between tasks.
2505         This is now handled internally and does not require clients assistance
2506         for the setup/propagate separation anymore.
2507         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
2508         allocation strategy, handle the Setup_And_Not_Propagated predicate and
2509         document.
2510
2511         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
2512         raise_after_setup, now that everything is handled internally within the
2513         setup/propagation engine.
2514
2515 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
2516
2517         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
2518         Add additional conditions for the case of an actual being a simple
2519         name or literal. Improve inlining by preventing the generation
2520         of temporaries with a short lifetime (one use).
2521
2522 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
2523
2524         PR ada/15587
2525
2526         * einfo.ads: Minor comment updates for Has_Completion and
2527         E_Constant list of flags.
2528
2529         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
2530         and constant redeclarations now set the Has_Completion flag of their
2531         defining identifiers.
2532
2533         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
2534         Inspect_Deferred_Constant_Completion.
2535         Used to detect private deferred constants that have not been completed
2536         either by a constant redeclaration or pragma Import. Emits error message
2537         "constant declaration requires initialization expression".
2538
2539         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
2540         completes a deferred constant.
2541
2542 2004-06-11  Geert Bosch  <bosch@gnat.com>
2543
2544         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
2545
2546         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
2547         calculating exponent for scaling denormal numbers.
2548         (Leading_Part): Properly raise Constraint_Error for zero or negative
2549         Adjustment.
2550         (Remainder): Properly raise Constraint_Error for zero divisor.
2551
2552 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
2553
2554         * sem_util.adb: Minor reformatting.
2555
2556         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
2557         dereference when accessing the entry parameter record.
2558         (Check_Array_Type): Always check for possible implicit dereference.
2559         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
2560         Abort if a pointer is still present (denoting that an implicit
2561         dereference was left in the tree by the front-end).
2562
2563         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
2564         dereference when accessing the entry parameter record.
2565         (Check_Array_Type): Always check for possible implicit dereference.
2566         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
2567         Abort if a pointer is still present (denoting that an implicit
2568         dereference was left in the tree by the front-end).
2569
2570 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
2571
2572         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
2573         message, like the compiler itself does. Easier to parse the output.
2574
2575         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
2576
2577         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
2578         be base names, and not includes directories.
2579
2580 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
2581
2582         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
2583         so that dependencies are properly taken into account by make.
2584
2585 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
2586
2587         PR ada/15622
2588         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
2589         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
2590
2591 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
2592
2593         * Makefile.in (install-gnatlib): install target-specific run-time files.
2594
2595         * Make-lang.in: Remove obsolete targets.
2596
2597 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
2598
2599         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
2600         specification, to catch misuses of program unit names.
2601
2602         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
2603         superfluous conversions in an instance.
2604
2605 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
2606
2607         PR ada/15403
2608
2609         * sem_ch12.adb (Save_References): If operator node has been folded to
2610         enumeration literal, associated_node must be discarded.
2611
2612 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
2613
2614         * s-stchop-vxworks.adb: Add required pragma Convention to
2615         Task_Descriptor because it is updated by a C function.
2616
2617 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
2618
2619         PR ada/15568
2620
2621         * Makefile.in: Remove target specific SO_OPT on IRIX
2622
2623 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2624
2625         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
2626         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
2627         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
2628         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
2629         (STMT_STMT, USE_STMT): New statement codes.
2630         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
2631         * ada-tree.h: Reflect above changes.
2632         (struct tree_loop_id): Deleted.
2633         (union lang_tree_node, struct lang_decl, struct lang_type):
2634         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
2635         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
2636         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
2637         (IS_ADA_STMT): New macro.
2638         * decl.c (annotate_decl_with_node): New function.
2639         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
2640         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
2641         Call add_stmt_with_node to do needed assignments.
2642         Add call to update setjmp buffer directly, not via EXPR_STMT.
2643         (maybe_variable): Argment GNAT_NODE deleted.
2644         * gigi.h (maybe_variable): Likewise.
2645         (make_transform, add_stmt_with_node, set_block_for_group): New.
2646         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
2647         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
2648         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
2649         (set_lineno, set_lineno_from_sloc): Likewise.
2650         (record_code_position, insert_code_for): Likewise.
2651         (gnat_poplevel): Now returns void.
2652         (end_subprog_body): Now takes argument.
2653         * misc.c (cgraph.h, tree-inline.h): New includes.
2654         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
2655         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
2656         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
2657         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
2658         (gnat_parse_file): Don't set immediate_size_expand.
2659         Call cgraph functions.
2660         (gnat_expand_expr): Remove most cases.
2661         (record_code_position, insert_code_for): Remove from here.
2662         * trans.c (toplev.h, tree-gimple.h): Now included.
2663         (discard_file_names): Deleted.
2664         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
2665         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
2666         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
2667         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
2668         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
2669         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
2670         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
2671         (set_block_for_group, add_stmt_list): Likewise.
2672         (start_stmt_group): Renamed from start_block_stmt.
2673         (end_stmt_group): Likewise, from end_block_stmt.
2674         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
2675         (gigi): Don't set discard_file_names or call set_lineno.
2676         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
2677         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
2678         Numerous changes throughout to reflect new names and complete
2679         function-at-a-time implementation.
2680         (gnat_expand_stmt): Delete or comment out all cases.
2681         (process_inlined_subprograms): Use add_stmt.
2682         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
2683         call set_lineno; also remove unneeded block handling.
2684         (process_type): Remove unneeded block handling.
2685         (build_unit_elab): Remove calls to deleted functions.
2686         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
2687         (tree-dump.h): Likewise.
2688         (struct ada_binding_level): Add field jmpbuf_decl.
2689         (gnat_define_builtin, gnat_install_builtins): New.
2690         (gnat_gimplify_function, gnat_finalize): Likewise.
2691         (gnat_poplevel): No longer return BLOCK, set it instead.
2692         Remove code dealing with nested functions.
2693         (gnat_init_decl_processing): Also set size_type_node.
2694         Call gnat_install_builtins.
2695         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
2696         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
2697         Remove special-case for "main".
2698         (end_subprog_body): Add arg and rework for tree-ssa.
2699         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
2700         Add case for BOOLEAN_TYPE.
2701         * utils2.c (rtl.h): Now include.
2702         (build_call_raise): Test Debug_Flag_NN directly.
2703         (build_call_alloc_dealloc): Don't use local stack allocation for now.
2704         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
2705         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
2706
2707 2004-06-07  Robert Dewar  <dewar@gnat.com>
2708
2709         * a-direct.ads, einfo.ads: Minor comment updates
2710
2711         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
2712         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
2713         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
2714         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
2715         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
2716
2717         * s-interr-sigaction.adb: Remove unreferenced variable
2718         (Attached_Interrupts).  Minor reformatting.
2719         Avoid use of variable I (replace by J).
2720
2721         * par-ch10.adb: Fix text of one error message
2722
2723         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
2724         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
2725         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
2726         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
2727         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
2728         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
2729         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
2730         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
2731         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
2732         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
2733         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
2734         2005 support.
2735
2736 2004-06-07  Doug Rupp  <rupp@gnat.com>
2737
2738         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
2739
2740         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
2741
2742         * mlib-tgt-vms-ia64.adb: New file.
2743
2744         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
2745         Add mlib-tgt-vms-ia64.adb
2746         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
2747         Move to alpha specific ifeq section.
2748         Add VMS specific versions of symbols.adb
2749         Renaming of 5q vms files.
2750
2751         * 5qsystem.ads renamed to system-vms_64.ads.
2752
2753 2004-06-07  Vincent Celier  <celier@gnat.com>
2754
2755         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
2756         explain that when a time of day corresponding to the non existing hour
2757         on the day switching to DST is specified, Split may return a different
2758         value for Seconds.
2759
2760         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
2761         to GNAT PRETTY.
2762
2763         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
2764         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
2765
2766         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
2767         to False.
2768         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
2769         the linking options.
2770         (Build_Library.Check_Libs): On VMS, if there is a dependency on
2771         g-trasym.ads, set Gtrasymobj_Needed to True.
2772
2773         * prj-attr.adb: Add new package Metrics for gnatmetric
2774
2775         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
2776         canonical case to take into account files with upper case characters on
2777         Windows.
2778         (Ada_Check): Load the reference symbol file name in the name buffer to
2779         check it, not the symbol file name.
2780
2781         * snames.ads, snames.adb: Add standard name Metrics (name of project
2782         file package for gnatmetric).
2783
2784         * vms_conv.ads: Add Metric to Comment_Type
2785
2786         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
2787
2788         * vms_data.ads: Add qualifiers for GNAT METRIC
2789
2790         * makegpr.adb (Link_Executables): Take into account the switches
2791         specified in package Linker of the main project.
2792
2793 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
2794
2795         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
2796         the index of the last element is Units.Last, not Units.Table'Last
2797         (which is usually not a valid index within the actually allocated
2798         storage for the table).
2799
2800         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
2801         determines whether to generate a call to a checked storage pool
2802         Dereference action.
2803         Generate such a call only for a dereference that either comes from
2804         source, or is the result of rewriting a dereference that comes from
2805         source.
2806
2807 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
2808
2809         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
2810
2811 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
2812
2813         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
2814         file level, elaborate the stride for inner dimensions in alignment
2815         units, not bytes.
2816
2817         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
2818         in a comment.
2819
2820 2004-06-07  Javier Miranda  <miranda@gnat.com>
2821
2822         * exp_ch6.adb: Correct wrong modification in previous patch
2823
2824 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
2825
2826         * g-trasym.ads: Corrected comment to properly reflect level of support
2827         on VMS.
2828
2829 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
2830
2831         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
2832         includes case of a variable referenced on the left hand side of an
2833         assignment, therefore remove redundant code. Variables and prefixes of
2834         indexed or selected components are now marked as referenced on left
2835         hand side. Warnings are now properly emitted when variables or prefixes
2836         are assigned but not read.
2837
2838         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
2839         left hand side referenced variables. Private access types do not
2840         produce the warning "variable ... is assigned but never read".
2841         Add also additional checks to left hand side referenced variables.
2842         Aliased, renamed objects and access types do not produce the warning
2843         "variable ... is assigned but never read" since other entities may read
2844         the memory location.
2845
2846 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
2847
2848         * Makefile.in: In the powerpc/vxworks-specific section, restore
2849         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
2850         by mistake).
2851
2852 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
2853
2854         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
2855         predefined operators.
2856         Removes spurious type errors from g-trasym-vms.adb.
2857
2858         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
2859         distinct from the operator appearing in the source, call appropriate
2860         routine to insert conversions when needed, and complete resolution of
2861         node.
2862         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
2863         interpretations for rewritten right operand.
2864         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
2865         the other operand is overloaded and the context is a type conversion.
2866
2867 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2868
2869         * ada-tree.def (BLOCK_STMT): Now has two operands.
2870         (BREAK_STMT): New.
2871
2872         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
2873
2874         * gigi.h: (gnat_poplevel): Now returns a tree.
2875
2876         * trans.c (end_block_stmt): Add arg; all callers changed.
2877         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
2878         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
2879         (add_stmt): Set TREE_TYPE.
2880         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
2881         (gnat_expand_stmt, case BREAK_STMT): New case.
2882
2883         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
2884
2885 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
2886
2887         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
2888         procedure Set_Stack_Size that is not needed.
2889
2890 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
2891
2892         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
2893         used for gnatpp input file and for the files upon which it depends
2894
2895 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
2896
2897         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
2898
2899 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
2900
2901         * gnatvsn.ads: Bump version numbers appropriately.
2902         Add new build type.
2903
2904 2004-06-07  Pascal Obry  <obry@gnat.com>
2905
2906         * gnat_ugn.texi: Improve comments about imported names and link names
2907         on Windows. Add a note about the requirement to use -k gnatdll's option
2908         when working with a DLL which has stripped stdcall symbols (no @nn
2909         suffix).
2910
2911 2004-05-27  Vincent Celier  <celier@gnat.com>
2912
2913         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
2914         COMMENTS_LAYOUT=UNTOUCHED
2915
2916         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
2917         symbols-vms-alpha.adb
2918
2919 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
2920
2921         * sem.ads: Clarify documentation on checks suppression.
2922
2923         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
2924
2925 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
2926
2927         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
2928         the case of multiple derivations.
2929         (Is_Object_Reference): For a selected component, verify that the prefix
2930         is itself an object and not a value.
2931
2932         * sem_ch12.adb (Same_Instantiated_Constant): New name for
2933         Same_Instantiated_Entity.
2934         (Same_Instantiated_Variable): Subsidiary to
2935         Check_Formal_Package_Instance, to recognize actuals for in-out generic
2936         formals that are obtained from a previous formal package.
2937         (Instantiate_Subprogram_Body): Emit proper error when
2938         generating code and the proper body of a stub is missing.
2939
2940         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
2941         has a universal interpretation, do the disambiguation here.
2942
2943         * exp_ch4.adb (Expand_N_Type_Conversion,
2944         Expand_N_Unchecked_Type_Conversion): Special handling when target type
2945         is Address, to avoid typing anomalies when Address is a visible integer
2946         type.
2947
2948         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
2949         to determine whether a subprogram should not be marked Pure, even when
2950         declared in a pure package.
2951
2952 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
2953
2954         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
2955
2956         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
2957         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
2958         Update the documentation about the Ravenscar profile, following the
2959         definition found in AI-249.
2960
2961         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
2962         setting the Profile (Ravenscar). This must be done in addition to
2963         setting the required restrictions.
2964
2965         * rtsfind.ads: Add the set of operations defined in package
2966         Ada.Interrupts.
2967
2968         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
2969         restriction.
2970
2971 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
2972
2973         lang-specs.h: Always require -c or -S and always redirect to /dev/null
2974         if -gnatc or -gnats is passed.
2975
2976 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
2977
2978         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
2979         a significant reference. Warnings are now properly emitted when a
2980         discriminated type is not referenced.
2981
2982         * lib-xref.adb (Generate_Reference): A deferred constant completion,
2983         record representation clause or record type discriminant does not
2984         produce a reference to its corresponding entity. Warnings are now
2985         properly emitted when deferred constants and record types are not
2986         referenced.
2987
2988 2004-05-27  Geert Bosch  <bosch@gnat.com>
2989
2990         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
2991         Fixes ACATS Annex G tests.
2992
2993 2004-05-27  Robert Dewar  <dewar@gnat.com>
2994
2995         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
2996         handling WITH
2997
2998 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
2999
3000         * s-interr.adb (Server_Task): Take into account case of early return
3001         from sigwait under e.g. linux.
3002
3003 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
3004
3005         * gnat_ugn.texi: Add description for the new gnatpp options:
3006          -rnb - replace the original source without creating its backup copy
3007          -c0 - do not format comments
3008
3009 2004-05-24  Geert Bosch  <bosch@gnat.com>
3010
3011         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
3012         with 192 bits of precision, sufficient to reduce a double-extended
3013         arguments X with a maximum relative error of T'Machine_Epsilon, for X
3014         in -2.0**32 .. 2.0**32.
3015         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
3016         reduction by the processor, which only uses a 68-bit approximation of
3017         Pi.
3018         (Tan): Always reduce arguments and compute function either using
3019         the processor's fptan instruction, or by dividing sin and cos as needed.
3020
3021 2004-05-24  Doug Rupp  <rupp@gnat.com>
3022
3023         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
3024         gcc error on 32/64 bit VMS.
3025
3026 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
3027
3028         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
3029         since this is what we get for stack overflows although not documented
3030         as such.
3031         Document the issues which may require adjustments to our signal
3032         handlers.
3033
3034 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
3035
3036         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
3037         enclosing dynamic scope if the instantiation is within a generic unit.
3038
3039 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
3040
3041         * exp_dbug.ads: Fix typo.
3042
3043         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
3044         Rename it to its proper name: system-linux-ia64.ads
3045         (stamp-gnatlib1): Remove extra target specific run time files when
3046         setting up the rts directory.
3047
3048 2004-05-24  Javier Miranda  <miranda@gnat.com>
3049
3050         * einfo.ads, einfo.adb (Limited_Views): Removed.
3051         (Limited_View): New attribute that replaces the previous one. It is
3052         now a bona fide package with the limited-view list through the
3053         first_entity and first_private attributes.
3054
3055         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
3056         limited-private-with clause.
3057         (Install_Limited_Withed_Unit): Install the private declarations of a
3058         limited-private-withed package. Update the installation of the shadow
3059         entities according to the new structure (see Build_Limited_Views)
3060         (Build_Limited_Views): Replace the previous implementation of the
3061         limited view by a package entity that references the first shadow
3062         entity plus the first shadow private entity (required for limited-
3063         private-with clause)
3064         (New_Internal_Shadow_Entity): Code cleanup.
3065         (Remove_Limited_With_Clause): Update the implementation to undo the
3066         new work carried out by Build_Limited_Views.
3067         (Build_Chain): Complete documentation.
3068         Replace Ada0Y by Ada 0Y in comments
3069         Minor reformating
3070
3071         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
3072         types the level of accessibility depends on the enclosing type
3073         declaration.
3074
3075         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
3076         entities. Complete documentation of previous change.
3077
3078 2004-05-24  Robert Dewar  <dewar@gnat.com>
3079
3080         * namet.adb: Minor reformatting
3081         Avoid use of name I (replace by J)
3082         Minor code restructuring
3083
3084         * sem_ch6.adb: Minor reformatting
3085
3086         * lib-writ.adb: Do not set restriction as active if this is a
3087         Restriction_Warning case.
3088
3089         * sem_prag.adb: Reset restriction warning flag if real pragma
3090         restriction encountered.
3091
3092         * s-htable.adb: Minor reformatting
3093         Change rotate count to 3 in Hash (improves hash for small strings)
3094
3095         * 5qsystem.ads: Add comments for type Address (no literals allowed).
3096
3097         * gnat_ugn.texi: Add new section of documentation "Code Generation
3098         Control", which describes the use of -m switches.
3099
3100 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
3101
3102         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
3103         through the DECL_INITIAL for renamed variables.
3104
3105 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
3106
3107         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
3108
3109 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
3110
3111         * exp_dbug.ads: Correct comments concerning handling of overloading,
3112         since we no longer use $ anymore.
3113
3114 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
3115
3116         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
3117         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
3118         with illegal subunits.
3119
3120 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
3121
3122         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
3123         body with front-end inlining enabled, check whether an inline pragma
3124         appears immediately after the body and applies to it.
3125
3126         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
3127         enabled and the pragma appears after the body of the subprogram.
3128
3129 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3130
3131         Part of function-at-a-time conversion
3132
3133         * misc.c (adjust_decl_rtl): Deleted.
3134         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
3135         Define.
3136
3137         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
3138         (add_decl_stmt, add_stmt, block_has_vars): New functions.
3139         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
3140
3141         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
3142         when making a decl.
3143         (gnat_to_gnu_entity): Likewise.
3144         Use add_stmt to update setjmp buffer.
3145         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
3146         flush_addressof.
3147         No longer call adjust_decl_rtl.
3148         (DECL_INIT_BY_ASSIGN_P): New macro.
3149         (DECL_STMT_VAR): Likewise.
3150
3151         * trans.c (gigi): Call start_block_stmt to make the outermost
3152         BLOCK_STMT.
3153         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
3154         Call start_block_stmt and end_block_stmt temporarily.
3155         Use gnat_expand_stmt instead of expand_expr_stmt.
3156         (add_decl_stmt): New function.
3157         (tree_transform): Call it.
3158         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
3159         (end_block_stmt): Set type and NULL_STMT.
3160         (gnat_expand_stmt): Make recursize call instead of calling
3161         expand_expr_stmt.
3162         (gnat_expand_stmt, case DECL_STMT): New case.
3163         (set_lineno_from_sloc): Do nothing if global.
3164         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
3165         (start_block_stmt, add_stmt, end_block_stmt): New functions.
3166         (build_block_stmt): Call them.
3167         (gnat_to_code): Don't expand NULL_STMT.
3168         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
3169         args.
3170         (tree_transform): Likewise.
3171         (tree_transform, case N_Null_Statement): Return NULL_STMT.
3172         (gnat_expand_stmt, case NULL_STMT): New case.
3173         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
3174         IF_STMT_TRUE.
3175
3176         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
3177         TREE_ADDRESSABLE.
3178
3179         * utils.c (create_var_decl): Do not call expand_decl or
3180         expand_decl_init.
3181         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
3182         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
3183         here.
3184         (struct e_stack): Add chain_next to GTY.
3185         (struct binding_level): Deleted.
3186         (struct ada_binding_level): New struct.
3187         (free_block_chain): New.
3188         (global_binding_level, clear_binding_level): Deleted.
3189         (global_bindings_p): Rework to see if no chain.
3190         (kept_level_p, set_block): Deleted.
3191         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
3192         new data structure and work directly on BLOCK node.
3193         (gnat_poplevel): Similarly.
3194         (get_decls): Look at BLOCK_VARS.
3195         (insert_block): Work directly on BLOCK node.
3196         (block_has_var): New function.
3197         (pushdecl): Rework for new binding structures.
3198         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
3199         poplevel.
3200         (build_subprog_body): Likewise.
3201         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
3202
3203         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
3204
3205         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
3206         (DECL_STMT_VAR): Likewise.
3207
3208 2004-05-17  Robert Dewar  <dewar@gnat.com>
3209
3210         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
3211         procedure
3212
3213         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
3214         of restriction synonyums by using
3215         Restrict.Process_Restriction_Synonyms.
3216
3217         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
3218
3219         * s-restri.ads (Tasking_Allowed): Correct missing comment
3220
3221         * s-rident.ads: Add entries for restriction synonyms
3222
3223         * ali.adb: Fix some problems with badly formatted ALI files that can
3224         result in infinite loops.
3225
3226         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
3227         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
3228         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
3229         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
3230         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
3231         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
3232         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
3233         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
3234         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
3235         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
3236         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
3237         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
3238         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
3239         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
3240         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
3241         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
3242         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
3243         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
3244         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
3245         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
3246         to Task_Id (minor cleanup).
3247
3248 2004-05-17  Vincent Celier  <celier@gnat.com>
3249
3250         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
3251         directory separator.
3252
3253         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
3254         project being extended, if Languages is not declared in extending
3255         project.
3256
3257 2004-05-17  Javier Miranda  <miranda@gnat.com>
3258
3259         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
3260         limited view of a visible sibling.
3261
3262 2004-05-14  Robert Dewar  <dewar@gnat.com>
3263
3264         * gnat_ugn.texi: Minor change to -gnatS documentation
3265
3266         * sprint.adb: Remove some instances of Assert (False) and for this
3267         purpose replace them by output of a ??? string.
3268
3269         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
3270         Assert (False).
3271
3272         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
3273         flag processing. This was suppressing required dependencies in
3274         No_Run_Time mode and is not needed since the binder does not generate
3275         references for things in libgnat anyway.
3276
3277         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
3278         warning.
3279
3280 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
3281
3282         * gnat_ugn.texi: Document AIX-specific issue with initialization of
3283         resolver library.
3284
3285         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
3286         action for the case of an actual parameter in an init proc call.
3287
3288 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
3289
3290         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
3291         subtype, check visible entities in base type.
3292
3293         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
3294         actions if the object is a renaming.
3295
3296         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
3297         Check_Formal_Package_Instance, to determine more precisely when the
3298         formal and the actual denote the same entity.
3299
3300 2004-05-14  Javier Miranda  <miranda@gnat.com>
3301
3302         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
3303
3304         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
3305         corresponding to a private_with must be removed from visibility; it
3306         will be made visible later, just before we analyze the private part of
3307         the package.
3308         (Check_Private_Child_Unit): Allow private_with clauses in public
3309         siblings.
3310         (Install_Siblings): Make visible the private entities of private-withed
3311         siblings.
3312         (Install_Withed_Unit): Do not install the private withed unit if we
3313         are compiling a package declaration and the Private_With_OK flag was
3314         not set by the caller. These declarations will be installed later,
3315         just before we analyze the private part of the package.
3316
3317         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
3318         during the evaluation of the expression that initializes the object,
3319         decorate it with the expected type to avoid cascade errors.
3320         Code cleanup.
3321
3322         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
3323         subprogram we have to install the private_with clauses after its
3324         specification has been analyzed (as documented in AI-262.TXT).
3325
3326         * sem_ch8.adb (Has_Private_With): New function. Determines if the
3327         current compilation unit has a private with on a given entity.
3328         (Find_Direct_Name): Detect the Beaujolais problem described in
3329         AI-262.TXT
3330
3331         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
3332         provides the functionality of the function Is_Ancestor that was
3333         previously available in sem_ch10. It has been renamed to avoid
3334         overloading.
3335
3336         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
3337
3338 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3339
3340         * utils.c (build_vms_descriptor): Use SImode pointers.
3341
3342 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
3343
3344         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
3345
3346 2004-05-14  GNAT Script  <nobody@gnat.com>
3347
3348         * Make-lang.in: Makefile automatically updated
3349
3350 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
3351
3352         Renaming of target specific files for clarity
3353
3354         * Makefile.in: Rename GNAT target specific files.
3355
3356         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
3357         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
3358         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
3359         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
3360         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
3361         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
3362         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
3363         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
3364         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
3365         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
3366         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
3367         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
3368         51osinte.adb, 51osinte.ads, 51system.ads,
3369         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
3370         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
3371         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
3372         56tpopsp.adb, 57system.ads, 58system.ads,
3373         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
3374         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
3375         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
3376         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
3377         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
3378         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
3379         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
3380         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
3381         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
3382         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
3383         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
3384         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
3385         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
3386         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
3387         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
3388         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
3389         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
3390         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
3391         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
3392         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
3393         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
3394         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
3395         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
3396         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
3397         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
3398         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
3399         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
3400         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
3401         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
3402         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
3403         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
3404         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
3405         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
3406         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
3407         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
3408         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
3409         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
3410         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
3411         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
3412         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
3413
3414         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
3415         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
3416         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
3417         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
3418         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
3419         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
3420         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
3421         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
3422         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
3423         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
3424         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
3425         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
3426         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
3427         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
3428         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
3429         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
3430         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
3431         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
3432         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
3433         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
3434         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
3435         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
3436         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
3437         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
3438         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
3439         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
3440         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
3441         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
3442         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
3443         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
3444         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
3445         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
3446         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
3447         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
3448         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
3449         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
3450         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
3451         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
3452         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
3453         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
3454         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
3455         s-osinte-vms.ads, s-osinte-vxworks.adb,
3456         s-osinte-vxworks.ads, s-osprim-mingw.adb,
3457         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
3458         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
3459         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
3460         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
3461         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
3462         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
3463         s-stchop-vxworks.adb, s-taprop-dummy.adb,
3464         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
3465         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
3466         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
3467         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3468         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
3469         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
3470         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
3471         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
3472         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
3473         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
3474         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
3475         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
3476         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
3477         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
3478         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
3479         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
3480         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
3481         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
3482         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
3483         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
3484         system-irix-o32.ads, system-linux-x86_64.ads,
3485         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
3486         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
3487         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
3488         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
3489         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
3490         system-vxworks-mips.ads, system-vxworks-ppc.ads,
3491         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
3492         above.
3493
3494 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
3495
3496         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
3497
3498 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
3499
3500         Merge from tree-ssa-20020619-branch.
3501
3502         * config-lang.in (boot_language, build_by_default): Set
3503         to no.
3504         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
3505         (max_size): Add static chain op for call_expr.
3506
3507 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
3508
3509         PR target/15331
3510         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
3511
3512 2004-05-11  Roger Sayle  <roger@eyesopen.com>
3513
3514         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
3515         COND_EXPR.
3516
3517 2004-05-10  Doug Rupp  <rupp@gnat.com>
3518
3519         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
3520         system.aux_dec.
3521
3522         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
3523
3524         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
3525
3526         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
3527         Fixes undefined symbols in IA64 gnatlib.
3528
3529         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
3530
3531         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
3532         Short_Address). This will be moved to system.auxdec.
3533
3534 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
3535
3536         * sem_util.adb: Replace test for presence of a node that is always
3537         present with a call to Discard_Node.
3538
3539         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
3540         Analyze on the library unit node after generation of distribution stub
3541         constructs.  The call was a no-op because Unit_Node has already been
3542         Analyzed, and the tree fragments for the distribution stubs are
3543         analyzed as they are inserted in Exp_Dist.
3544         Update comment regarding to distribution stubs to reflect that we
3545         do not generate stub in separate files anymore.
3546
3547         * einfo.ads: Clarify the fact that a tagged private type has the
3548         E_Record_Type_With_Private Ekind.
3549
3550         * erroutc.adb: Minor reformatting
3551
3552         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
3553         values if line length is increased using -gnatyM (noticed during code
3554         reading).
3555
3556         * eval_fat.adb: Minor reformatting
3557         Put spaces around exponentiation operator
3558
3559 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
3560
3561         PR ada/15005
3562         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
3563         has been rewritten as an explicit dereference, retrieve type of
3564         original node to check for possibly unconstrained record type.
3565
3566 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
3567
3568         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
3569         overriding, use the operation of the parent unconditionally.
3570
3571         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
3572         operation when either operand is a literal, to avoid further
3573         ambiguities.
3574
3575         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
3576         overridden by a previous explicit declaration, mark the previous entity
3577         as overriding.
3578
3579         * sem_disp.adb (Check_Dispatching_Operation): New predicate
3580         Is_Visibly_Controlled, to determine whether a declaration of a
3581         primitive control operation for a derived type overrides an inherited
3582         one. Add warning if the explicit declaration does not override.
3583
3584 2004-05-10  Vincent Celier  <celier@gnat.com>
3585
3586         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
3587         some cases when the sources are no longer present.
3588
3589         * make.adb (Collect_Arguments): Fail if an external source, not part
3590         of any project need to be compiled, when switch -x has not been
3591         specified.
3592
3593         * makeusg.adb: Document new switch -x
3594
3595         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
3596         defaulted to False.
3597
3598         * switch-m.adb (Scan_Make_Switches): New switch -x
3599
3600         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
3601         gnatmake switch -x.
3602
3603         * gnat_ugn.texi: Document new gnatmake switch -x
3604
3605 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
3606
3607         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
3608
3609         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
3610         (process_attributes): Likewise.
3611
3612 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
3613
3614         * s-inmaop.ads: Fix spelling mistake in one of the comments.
3615
3616 2004-05-10  Robert Dewar  <dewar@gnat.com>
3617
3618         * gnat_ugn.texi: Document that for config pragma files, the maximum
3619         line length is always 32767.
3620
3621         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
3622         literals is now allowed.
3623
3624         * gnat-style.texi: Remove statement about splitting long lines before
3625         an operator rather than after, since we do not follow this rule at all.
3626         Clarify rule (really lack of rule) for spaces around exponentiation
3627
3628         * sem_elim.adb: Allow concatenation of string literals as well as a
3629         single string literal for pragma arguments.
3630
3631         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
3632
3633         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
3634         written for append case.
3635
3636         * frontend.adb: Changes to avoid checking max line length in config
3637         pragma files.
3638
3639         * g-os_lib.ads: Minor reformatting
3640
3641         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
3642         wrong in any case. Instead use standard value. Noticed during code
3643         reading.
3644
3645         * opt.ads (Max_Line_Length): New field, used to implement removal of
3646         limitation on length of lines when scanning config pragma files.
3647
3648         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
3649         makeutl.ads, makeutl.adb: Minor reformatting
3650
3651         * scn.adb: Do not check line length while scanning config pragma files
3652         Do not check line length while scanning out license information
3653
3654         * scng.adb: Changes to avoid line length checks while parsing config
3655         pragma files.
3656
3657 2004-05-10  GNAT Script  <nobody@gnat.com>
3658
3659         * Make-lang.in: Makefile automatically updated
3660
3661 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
3662
3663         * osint.adb (Find_Program_Name): Fix handling of VMS version
3664         number.
3665
3666 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
3667
3668         * g-os_lib.ads (Invalid_Time): New constant
3669
3670         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
3671         return OS_Time instead of time_t to match what is imported by Ada.
3672         Now return -1 if the file doesn't exist, instead of a random value
3673
3674 2004-05-05  Robert Dewar  <dewar@gnat.com>
3675
3676         * usage.adb: Add line for -gnatR?s switch
3677
3678         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
3679
3680         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
3681         and for Match (Data_First, Data_last)
3682
3683         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
3684         written when we are dealing with multi-unit files.
3685
3686 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
3687
3688         * Makefile.in: Remove unused targets and variables.
3689
3690 2004-05-05  Vincent Celier  <celier@gnat.com>
3691
3692         * switch-m.adb: New gnatmake switch -eI
3693
3694         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
3695         of new gnatmake switch -eInnn.
3696
3697         * makegpr.adb: Take into account new parameters Index and Src_Index in
3698         Prj.Util.
3699
3700         * clean.adb: Implement support for multi-unit sources, including new
3701         switch -i.
3702
3703         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
3704         Src_Index.
3705
3706         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
3707         (Extract_From_Q): New out parameter Index
3708         (Mark, Is_Marked): Subprograms moved to Makeutl
3709         (Switches_Of): New parameter Source_Index
3710         (Add_Switch): New parameter Index
3711         (Check): New parameter Source_Index
3712         (Collect_Arguments): New parameter Source_Index
3713         (Collect_Arguments_And_Compile): New parameter Source_Index
3714         (Compile): New parameter Source_Index
3715         Put subprograms in alphabetical order
3716         Add support for multi-source sources, including in project files.
3717
3718         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
3719         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
3720         Make.
3721
3722         * makeusg.adb: New gnatmake switch -eInnn
3723
3724         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
3725         Prj.Util.Value_Of.
3726
3727         * opt.ads (Main_Index): New variable, defaulted to 0.
3728
3729         * osint.ads, osinte.adb (Add_File): New parameter Index
3730         (Current_Source_Index): New function
3731
3732         * prj.adb: Take into account new components Index and Src_Index
3733
3734         * prj.ads (String_Element): New component Index
3735         (Variable_Value): New component Index
3736         (Array_Element): New component Src_Index
3737
3738         * prj-attr.adb: Indicate that optional index may be specified for
3739         attributes Main, Executable, Spec, Body and some of Switches.
3740
3741         * prj-attr.ads (Attribute_Kind): New values for optional indexes
3742         (Attribute_Record): New component Optional_Index
3743
3744         * prj-com.ads (File_Name_Data): New component Index
3745
3746         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
3747
3748         * prj-env.adb (Put): Output optional index
3749
3750         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
3751         attributes Spec and Body.
3752
3753         * prj-nmsc.adb: Process optional indexes
3754
3755         * prj-pp.adb: Ouput "at" for optional indexes
3756
3757         * prj-proc.adb: Take into account optional indexes
3758
3759         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
3760         Optional_Index. For string literal,
3761         process optional index when Optional_Index is True.
3762         (Parse_Expresion): New Boolean parameter Optional_Index
3763
3764         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
3765         (Set_Source_Index_Of): New procedure
3766
3767         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
3768         index.
3769
3770         * prj-util.ads (Executable_Of): New parameter Index
3771         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
3772         New parameter Src_Index, defaulted to 0.
3773
3774 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
3775
3776         PR ada/15257
3777         * sem_ch3.adb (Access_Definition): If this is an access parameter
3778         whose designated type is imported through a limited_with clause, do
3779         not add the enclosing subprogram to the list of private dependents of
3780         the type.
3781
3782 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
3783
3784         PR ada/15258
3785         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
3786         a limited_with clause, and the other is its non-limited view.
3787
3788 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
3789
3790         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
3791
3792         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
3793         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
3794         Stand.Boolean_Literals to produce references to entities
3795         Standard_False and Standard_True from compile-time computed boolean
3796         values.
3797
3798         * stand.ads (Boolean_Literals): New variable, provides the entity
3799         values for False and True, for use by the expander.
3800
3801 2004-05-05  Doug Rupp  <rupp@gnat.com>
3802
3803         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
3804         5vinmaop.adb: Unchecked convert Short_Address vice Address
3805
3806         * adaint.c, raise.c: Caste CRTL function return value
3807         to avoid gcc error on 32/64 bit IVMS.
3808
3809         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
3810         target = IA64/VMS.
3811
3812         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
3813
3814         * 5qsystem.ads (Address): Declare as Long_Integer
3815         (Short_Address): Declare as 32 bit subtype of Address
3816         Declare  abstract address operations to avoid gratuitous ambiguities.
3817
3818 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
3819
3820         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
3821         instead of the old Boolean_Entry_Barriers.
3822         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
3823
3824 2004-05-05  GNAT Script  <nobody@gnat.com>
3825
3826         * Make-lang.in: Makefile automatically updated
3827
3828 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
3829
3830         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
3831
3832 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
3833
3834         PR ada/15152
3835
3836         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
3837         alone. Replacing object references by literals is inappropriate in a
3838         so low level context.
3839
3840 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
3841
3842         * a-exexpr.adb: Add comments
3843
3844 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
3845
3846         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
3847         declare the Ancestor_Tags array in Type_Specific_Data with a small size
3848         without risking a bounds check error when accessing one of its
3849         components.
3850         (Type_Specific_Data): Define Ancestor_Tags as a small array.
3851         This prevents us from hitting a limitation during the debug info
3852         generation when using stabs.
3853
3854         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
3855         small array.
3856         This prevents us from hitting a limitation during the debug info
3857         generation when using stabs.
3858
3859 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
3860
3861         lang-specs.h: Remove -gnatz* from specs.
3862
3863 2004-05-03  Vincent Celier  <celier@gnat.com>
3864
3865         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
3866
3867         * Make-lang.in, Makefile.in: Add gprmake
3868
3869 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
3870
3871         * sem_aggr.adb: Fix typo in comment.
3872
3873 2004-05-03  Robert Dewar  <dewar@gnat.com>
3874
3875         * make.adb: Minor reformatting
3876
3877         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
3878
3879         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
3880         so that it works when address is not a private type.
3881
3882         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
3883         properly with rewritten unchecked conversions. This prevents
3884         order-of-elaboration issues that can otherwise arise.
3885         (Minimum_Size): Don't check size of access types under VMS
3886
3887         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
3888         interpretations of integer literals as type System.Address.
3889
3890         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
3891         (Is_Descendent_Of): New function
3892
3893 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
3894
3895         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
3896         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
3897         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
3898
3899         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
3900         of the old Max_Entry_Queue_Depth.
3901
3902         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
3903         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
3904         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
3905
3906         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
3907         New entry for proper handling of Max_Entry_Queue_Depth.
3908         New entry for proper handling of No_Dynamic_Interrupts.
3909
3910         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
3911         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
3912         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
3913         the GNAT specific restriction Max_Entry_Queue_Depth.
3914         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
3915         the GNAT specific restriction No_Dynamic_Interrupts.
3916
3917         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
3918         instead of the old Boolean_Entry_Barriers.
3919         Use the new restriction No_Dynamic_Attachment instead of the old
3920         No_Dynamic_Interrupts.
3921
3922         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
3923         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
3924
3925         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
3926         of the old Max_Entry_Queue_Depth.
3927
3928 2004-05-03  GNAT Script  <nobody@gnat.com>
3929
3930         * Make-lang.in: Makefile automatically updated
3931
3932 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
3933
3934         * checks.adb (Enable_Range_Check): If the prefix of an index component
3935         is an access to an unconstrained array, perform check unconditionally.
3936
3937 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3938
3939         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
3940         Component_Clause.
3941
3942 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
3943
3944         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
3945         alternate stack setting. There was no support for the tasking cases
3946         and the changes eventually caused a number of side-effect failures in
3947         the non-tasking case too.
3948
3949 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
3950
3951         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
3952         -gnats is passed.
3953
3954 2004-04-29  Vincent Celier  <celier@gnat.com>
3955
3956         * make.adb (Gnatmake): Increase max size of argument array for
3957         gnatbind for the potential addition of -F.
3958         If there are Stand-Alone Library projects, invoke gnatbind with -F to
3959         be sure that elaboration flags will be checked.
3960
3961         * switch-c.adb: Correct call to Scan_Pos for -gnateI
3962
3963 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
3964
3965         * sem_warn.adb (Check_References): Move '<access-variable> may be
3966         null' warning out of under Warn_On_No_Value_Assigned.
3967
3968 2004-04-29  Ed Falis  <falis@gnat.com>
3969
3970         * gnat_ugn.texi: Fixed texi error
3971
3972 2004-04-29  Robert Dewar  <dewar@gnat.com>
3973
3974         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
3975         abstract operations if they come from predefined files.
3976
3977         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
3978         Dynamic, not RM).
3979
3980         * s-addope.adb: Correct obvious error in mod function
3981
3982 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
3983
3984         * Makefile.in: Add target pairs for powerpc darwin*
3985         tasking support.
3986
3987         * a-intnam-darwin.ads, s-osinte-darwin.adb,
3988         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
3989
3990 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
3991
3992         * Makefile.in: Add target macro definitions for s390*-linux*.
3993         * system-linux-s390.ads: New file.
3994         * system-linux-s390x.ads: New file.
3995
3996 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
3997
3998         * gnat_ugn.texi: Correct argument to @setfilename.
3999
4000 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
4001
4002         * a-exexpr.adb (Unwind_Word): New data type.
4003         (Unwind_Exception): Use it as type of Private1 and Private2.
4004
4005         * raise.c (db_action_for): Fix debug printf.
4006
4007 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
4008
4009         * a-wtmoio.ads: Formal type must be a modular type, not a signed
4010         integer type.
4011
4012 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4013
4014         * decl.c (gnat_to_gnu_entity, case object): Call
4015         __builtin_update_setjmp_buf.
4016
4017         * gigi.h (update_setjmp_buf): Deleted.
4018         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
4019
4020         * misc.c: (update_setjmp_buf): Deleted.
4021
4022         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
4023         around block of RTL.
4024
4025         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
4026
4027 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
4028
4029         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
4030         subprogram for which no pragma All_Calls_Remote applies, store the
4031         address of the real subprogram in the underlying record type, so local
4032         dereferences do not go through the PCS.
4033
4034 2004-04-26  Robert Dewar  <dewar@gnat.com>
4035
4036         * i-c.ads: Add some type qualifications to avoid ambiguities when
4037         compiling with s-auxdec.ads and a non-private address type.
4038
4039 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
4040
4041         * Makefile.rtl: Fix error in previous check-in:
4042         Add s-addope.o to non tasking object list (rather than tasking object
4043         list).
4044
4045 2004-04-26  Javier Miranda  <miranda@gnat.com>
4046
4047         * sem_aggr.adb: Fix typo in comments
4048         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
4049         Required to check the null-exclusion attribute.
4050
4051         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
4052         case of anonymous access types in record and array components. For a
4053         component definition the level is the same of the enclosing composite
4054         type.
4055
4056         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
4057         that are anonymous access types the level of accessibility depends on
4058         the enclosing type declaration. In order to have this information, set
4059         the scope of the anonymous access type to the enclosing record type
4060         declaration.
4061         (Array_Type_Declaration): In case of components that are anonymous
4062         access types the level of accessibility depends on the enclosing type
4063         declaration. In order to have this information, set the scope of the
4064         anonymous access type to the enclosing array type declaration.
4065
4066         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
4067         access type.
4068
4069         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
4070         renaming of anonymous access-to-constant types allowed if and only if
4071         the renamed object is access-to-constant.
4072
4073         * sem_util.adb (Type_Access_Level): In case of anonymous access types
4074         that are component_definition or discriminants of a nonlimited type,
4075         the level is the same as that of the enclosing component type.
4076
4077 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
4078
4079         * sem_elim.adb: Some minor code reorganization from code reading. Fix
4080         misprint in the function name (File_Name_Match).
4081
4082 2004-04-23  Laurent GUERBY <laurent@guerby.net>
4083
4084         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
4085         install.
4086
4087 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4088
4089         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
4090
4091 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
4092
4093         * adaint.c (__gnat_try_lock): No longer requires that the parent
4094         directory be writable, the directory itself is enough.
4095         (gnat_is_absolute_path): Change profile, so that the call from
4096         GNAT.OS_Lib can be made more efficient.
4097
4098         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
4099         from GNAT.OS_Lib can be made more efficient.
4100
4101         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
4102         one copy of the file name. Found by code reading.
4103
4104 2004-04-23  Vincent Celier  <celier@gnat.com>
4105
4106         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
4107         Correct documentation on gnatmake switches transmitted to the compiler
4108
4109         * ali.ads: Minor comment fix
4110
4111 2004-04-23  Javier Miranda  <miranda@gnat.com>
4112
4113         * sem_ch6.adb: (Confirming Types): Code cleanup
4114
4115         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
4116         subprogram types: E_Anonymous_Access_Subprogram_Type and
4117         E_Anonymous_Access_Protected_Subprogram_Type.
4118
4119 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
4120
4121         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
4122         whether a pragma All_Calls_Remote applies to the subprogram on which
4123         'Access is taken.
4124         No functional change is introduced by this revision; the new parameter
4125         will be used to allow calls to local RCI subprograms to be optimized
4126         to not use the PCS in the case where no pragma All_Calls_Remote applies,
4127         as is already done in the PolyORB implementation of the DSA.
4128
4129         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
4130         whether a pragma All_Calls_Remote applies to the subprogram on which
4131         'Access is taken.
4132         No functional change is introduced by this revision; the new parameter
4133         will be used to allow calls to local RCI subprograms to be optimized
4134         to not use the PCS in the case where no pragma All_Calls_Remote applies,
4135         as is already done in the PolyORB implementation of the DSA.
4136
4137 2004-04-23  Robert Dewar  <dewar@gnat.com>
4138
4139         * Makefile.rtl: Add entry for s-addope.o in run time library list
4140         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
4141         * s-addope.ads, s-addope.adb: New files.
4142
4143         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
4144         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
4145         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
4146         System.Address to be non-private and signed.
4147
4148         * sem_elim.adb: Minor reformatting (fairly extensive)
4149         Some minor code reorganization from code reading
4150         Add a couple of ??? comments
4151
4152 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4153
4154         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
4155         (tree_transform, case N_If_Statement): Remove non-determinism.
4156
4157         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
4158
4159 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
4160
4161         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
4162         Eliminate' section.
4163
4164         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
4165         no longer used as a parameter name for Eliminate pragma).
4166
4167 2004-04-22  Laurent GUERBY <laurent@guerby.net>
4168
4169         PR optimization/14984
4170         PR optimization/14985
4171         * trans.c (gigi): Fix non determinism leading to bootstrap
4172         comparison failures.
4173
4174 2004-04-21  Pascal Obry  <obry@gnat.com>
4175
4176         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
4177         passed to spawnvp() to properly handle program pathname with spaces on
4178         Win32.
4179
4180 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
4181
4182         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
4183         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
4184         unlocked in case of exceptions.
4185
4186 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
4187
4188         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
4189         This function does not exist anymore.
4190
4191 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
4192
4193         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
4194
4195         * link.c: Move variables to the __gnat name space.
4196
4197         * Makefile.in: list link.o explicitly when needed.
4198
4199         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
4200
4201 2004-04-21  Javier Miranda  <miranda@gnat.com>
4202
4203         * einfo.adb (Original_Access_Type): New subprogram
4204         (Set_Original_Access_Type): New subprogram
4205         (Write_Field21_Name): Write the name of the new field
4206
4207         * einfo.ads (Original_Access_Type): New field present in access to
4208         subprogram types.
4209         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
4210         E_Anonymous_Access_Protected_Subprogram_Type.
4211
4212         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
4213         subprogram types.
4214
4215         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
4216         to anonymous access to subprogram types.
4217
4218         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
4219         to subprogram types.
4220
4221         * sem_ch3.adb (Access_Definition): Complete decoration of entities
4222         corresponding to anonymous access to subprogram types.
4223         (Analyze_Component_Declaration): Add new actual to the call to
4224         subprogram replace_anonymous_access_to_protected_subprogram.
4225         (Array_Type_Declaration): Add new actual to the call to subprogram
4226         replace_anonymous_access_to_protected_subprogram.
4227         (Process_Discriminants): Add new actual to the call to subprogram
4228         replace_anonymous_access_to_protected_subprogram.
4229         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
4230
4231         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
4232         formal.
4233
4234         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
4235         access to subprogram types.
4236
4237         * sem_util.adb (Has_Declarations): Addition of package_specification
4238         nodes.
4239
4240 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
4241
4242         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
4243         inlined flags to renamed entity only if in current unit.
4244
4245 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
4246
4247         * s-parint.ads: Add DSA implementation marker.
4248
4249         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
4250         value of System.Partition_Interface.DSA_Implementation to determine
4251         what version of the distributed systems annex is available (no
4252         implementation, GLADE, or PolyORB).
4253
4254 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
4255
4256         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
4257
4258 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4259
4260         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
4261         with new type if alias sets differ.
4262         Fixes ACATS c41103b.
4263
4264 2004-04-21  Vincent Celier  <celier@gnat.com>
4265
4266         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
4267         Add array Lang_Args for the language specific compiling argument
4268         switches.
4269
4270         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
4271
4272 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
4273
4274         * gnat_rm.texi: Update the descripton of the Eliminate pragma
4275         according to the recent changes in the format of the parameters of the
4276         pragma (replacing Homonym_Number with Source_Location).
4277
4278 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
4279
4280         * 5isystem.ads: Removed, unused.
4281
4282         * gnat_rm.texi: Redo 1.13 change.
4283
4284 2004-04-19  Robert Dewar  <dewar@gnat.com>
4285
4286         * s-stoele.ads: Clean up definition of Storage_Offset (the new
4287         definition is cleaner, avoids the kludge of explicit Standard operator
4288         references, and also is consistent with a visible System.Address with
4289         no visible operations.
4290
4291         * s-geveop.adb: Add declarations to avoid assumption of visible
4292         operations on type System.Address (since these might not be available
4293         if Address is a non-private type for which the operations
4294         are made abstract).
4295
4296         * sem_eval.adb: Minor reformatting
4297
4298         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
4299         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
4300         reformatting (new function spec format).
4301
4302         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
4303         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
4304         s-caun64.adb: Add declarations to avoid assumption of visible
4305         operations on type System.Address (since these might not be available
4306         if Address is a non-private type for which the operations are made
4307         abstract).
4308
4309         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
4310
4311         * exp_intr.adb: Minor comment update
4312
4313         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
4314
4315         * 5omastop.adb: Add declarations to avoid assumption of visible
4316         operations on type System.Address (since these might not be available
4317         if Address is a non-private type for which the operations
4318         are made abstract).
4319
4320 2004-04-19  Vincent Celier  <celier@gnat.com>
4321
4322         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
4323
4324         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
4325         defaulted to Ada.
4326
4327         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
4328         defaulted to Ada.
4329         Call Check with Process_Languages.
4330         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
4331         with Process_Languages.
4332         (Recursive_Check): New Boolean parameter Process_Languages. Call
4333         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
4334         Process_Languages.
4335
4336         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
4337
4338         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
4339         parameter Ada_Main, defaulted to True.
4340         Check for Ada specific characteristics only when Ada_Main is True.
4341
4342         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
4343
4344         * prj.adb: (Project_Empty): Add new Project_Data components.
4345
4346         * prj.ads: New types and tables for non Ada languages.
4347         (Project_Data): New components Languages, Impl_Suffixes,
4348         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
4349         Include_Path, Include_Data_Set.
4350
4351         * prj-env.ads, prj-env.adb: Minor reformatting
4352
4353         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
4354         Put subprograms in alphabetical order
4355
4356         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
4357         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
4358         Opt.Follow_Links.
4359
4360         * mlib-prj.adb: Back out modification in last version, as they are
4361         incorrect.
4362         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
4363
4364         * make.adb: (Mains): Moved to package Makeutl
4365         (Linker_Opts): Moved to package Makeutl
4366         (Is_External_Assignment): Moved to package Makeutl
4367         (Test_If_Relative_Path): Moved to package Makeutl
4368         (Gnatmake): Move sorting of linker options to function
4369         Makeutl.Linker_Options_Switches.
4370
4371         * makeutl.ads, makeutl.adb: New files.
4372
4373         * Makefile.in: Add makeutl.o to the object files for gnatmake
4374
4375         * makeusg.adb: Add line for new switch -eL.
4376
4377         * gnatls.adb (Image): New function.
4378         (Output_Unit): If in verbose mode, output the list of restrictions
4379         specified by pragmas Restrictions.
4380
4381         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
4382         Text_IO.
4383
4384         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
4385         needed, to put it in the range 1970 (included) - 2026 (excluded).
4386         (Time_Of): Do not shift Unix_Min_Year (1970).
4387         Shift the date by multiple of 56 years, if needed, to put it in the
4388         range 1970 (included) - 2026 (excluded).
4389
4390         * adaint.h, adaint.c (__gnat_set_executable): New function.
4391
4392 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4393
4394         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
4395         and pop GC context.
4396         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
4397         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
4398         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
4399         (tree_transform, case N_Code_Statement): Likewise.
4400         (gnat_expand_stmt, case LABEL_STMT): Don't look at
4401         LABEL_STMT_FIRST_IN_EH.
4402         (gnat_expand_stmt, case ASM_STMT): New case.
4403
4404         * utils2.c (build_unary_op): Properly set TREE_READONLY of
4405         UNCONSTRAINED_ARRAY_REF.
4406
4407         * utils.c (poplevel): Temporarily push/pop GC context around inline
4408         function expansion.
4409
4410         * decl.c (maybe_variable): Properly set TREE_READONLY of
4411         UNCONSTRAINED_ARRAY_REF.
4412         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
4413
4414         * ada-tree.def: (ASM_STMT): New.
4415
4416         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
4417         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
4418         ASM_STMT_INPUT): New.
4419         (ASM_STMT_CLOBBER): Likewise.
4420
4421 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
4422
4423         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
4424         general rcheck mechanism to raise Program_Error for E.4(18), instead
4425         of a custom raiser in System.Partition_Interface.
4426         Part of general cleanup work before PolyORB integration.
4427
4428         * snames.ads, snames.adb: Add new runtime library entities and names
4429         for PolyORB DSA.
4430
4431         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
4432         exp_dist.
4433         (Build_Subprogram_Id): New subprogram provided by exp_dist
4434         Code reorganisation in preparation for PolyORB integration.
4435
4436         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
4437         exp_dist.
4438         (Build_Subprogram_Id): New subprogram provided by exp_dist
4439
4440         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
4441         actual parameter types for call to dereference of an
4442         access-to-subprogram type.
4443
4444         * rtsfind.ads: Add new runtime library entities and names for PolyORB
4445         DSA.
4446
4447         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
4448         instead, which has the same behaviour here since we never pass it a
4449         NULL pointer.
4450
4451         * link.c (run_path_option, Solaris case): Use -Wl, as for other
4452         platforms.
4453
4454         * Makefile.in: adjust object file lists for gnatlink and gnatmake
4455         to account for new dependency upon Interfaces.C.Strings + link.o
4456         For x86 FreeBSD, use 86numaux.
4457
4458         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
4459         from Mlib.Tgt to Mlib.
4460
4461         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
4462         target-independent.
4463
4464         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
4465         target-specific versions of this subprogram, now implemented as a
4466         target-independent function in Mlib.
4467
4468         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
4469         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
4470         (Linker_Library_Path_Option): Remove target-specific versions of this
4471         subprogram, now implemented as a target-independent function in Mlib.
4472
4473         * atree.adb: (Allocate_Initialize_Node): New subprogram.
4474         Factors out node table slots allocation.
4475         (Fix_Parents): New subprogram.
4476         Encapsulate the pattern of fixing up parent pointers for syntactic
4477         children of a rewritten node.
4478         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
4479         (Rewrite): Use New_Copy when creating saved copy of original node.
4480         (Replace): Use Copy_Node to copy nodes.
4481
4482 2004-04-19  Javier Miranda  <miranda@gnat.com>
4483
4484         * sprint.adb (Sprint_Node_Actual): Give support to the new
4485         Access_To_Subprogram node available in Access_Definition nodes. In
4486         addition, give support to the AI-231 node fields: null-exclusion,
4487         all-present, constant-present.
4488
4489         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
4490
4491         * sinfo.ads, sinfo.adb:
4492         New field Access_To_Subprogram_Definition in Access_Definition nodes
4493
4494         * sem_ch6.adb (Process_Formals): Move here the code that creates and
4495         decorates internal subtype declaration corresponding to the
4496         null-excluding formal. This code was previously in Set_Actual_Subtypes.
4497         In addition, carry out some code cleanup on this code. In case of
4498         access to protected subprogram call
4499         Replace_Anonymous_Access_To_Protected_Subprogram.
4500         (Set_Actual_Subtypes): Code cleanup.
4501
4502         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
4503         Find_Type in case of anonymous access renamings. Add warning in case of
4504         null-excluding attribute used in anonymous access renaming.
4505
4506         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
4507         subprogram
4508
4509         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
4510         subprogram.
4511         (Access_Definition): In case of anonymous access to subprograms call
4512         the corresponding semantic routine to decorate the node.
4513         (Access_Subprogram_Declaration): Addition of some comments indicating
4514         some code that probably should be added here. Detected by comparison
4515         with the access_definition subprogram.
4516         (Analyze_Component_Declaration): In case of access to protected
4517         subprogram call Replace_Anonymous_Access_To_Protected.
4518         (Array_Type_Declaration): In case of access to protected subprogram call
4519         Replace_Anonymous_Access_To_Protected_Subprogram.
4520         (Process_Discriminants): In case of access to protected subprogram call
4521         Replace_Anonymous_Access_To_Protected_Subprogram.
4522
4523         * par.adb (P_Access_Definition): New formal that indicates if the
4524         null-exclusion part was present.
4525         (P_Access_Type_Definition): New formal that indicates if the caller has
4526         already parsed the null-excluding part.
4527
4528         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
4529         (P_Identifier_Declarations): Code cleanup and give support to renamings
4530         of anonymous access to subprogram types.
4531         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
4532         (P_Array_Type_Definition): Give support to AI-254.
4533         (P_Component_Items): Give support to AI-254.
4534         (P_Access_Definition): New formal that indicates if the header was
4535         already parsed by the caller.
4536         (P_Access_Type_Definition): New formal that indicates if the caller has
4537         already parsed the null-excluding part.
4538
4539         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
4540         call to P_Access_Definition.
4541
4542 2004-04-19  Geert Bosch  <bosch@gnat.com>
4543
4544         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
4545         the delicate semantics of floating-point to integer conversion.
4546         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
4547
4548         * eval_fat.adb (Machine_Mantissa): Moved to spec.
4549         (Machine_Radix): New function.
4550
4551         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
4552         conversion checks.
4553         (Machine_Radix): New function also for use in conversion checks.
4554
4555 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
4556
4557         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
4558
4559         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
4560         to decorate the access-to-protected subprogram and the equivalent type.
4561
4562         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
4563         to anonymous access to subprogram types.
4564
4565         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
4566         constant-folding, for legality checks in contexts that require an RM
4567         static expression.
4568
4569         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
4570         temporary but stack checking is not enabled, increment serial number
4571         to so that symbol generation is consistent with and without stack
4572         checking.
4573
4574         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
4575         independent on whether stack checking is enabled, caller must check
4576         the corresponding flag.
4577
4578         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
4579         range checks.
4580         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
4581         parent if it has discriminants.
4582         (Build_Derived_Private_Type): Constructed full view does
4583         not come from source.
4584         (Process_Discriminants): Default discriminants on a tagged type are
4585         legal if this is the internal completion of a private untagged
4586         derivation.
4587
4588         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
4589         no constraint checks, because it corresponds to an existing object.
4590
4591         * sem_prag.adb (Process_Convention): Pragma applies
4592         only to subprograms in the same declarative part, i.e. the same unit,
4593         not the same scope.
4594
4595         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
4596         ignore type mismatch on a numeric conversion if expression comes from
4597         expansion.
4598
4599 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
4600
4601         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
4602         Homonym_Number parameter, add processing for Source_Location parameter
4603         corresponding.
4604         (Check_Eliminated): Remove the check for homonym numbers, add the check
4605         for source location traces.
4606
4607         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
4608         with Arg_Source_Location corresponding to the changes in the format of
4609         the pragma.
4610
4611         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
4612         Eliminate pragma corresponding to the changes in the format of the
4613         pragma: Homonym_Number is replaced with Source_Location, two ways of
4614         distinguishing homonyms are mutially-exclusive.
4615
4616 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
4617
4618         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
4619
4620         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
4621         No_Dollar_In_Label, no longer necessary, as it is always True.
4622         (Strip_Suffixes): Likewise.
4623
4624 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
4625
4626         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
4627         modulus for compatibility with size clause on targets with 16-bit
4628         Integer.
4629
4630         * layout.adb (Discrimify): In the case of private types, set Vtyp to
4631         full type to fix type mismatches on calls to size functions for
4632         discriminant-dependent array components.
4633
4634 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
4635
4636         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
4637         lib.
4638
4639 2004-04-19  Pascal Obry  <obry@gnat.com>
4640
4641         * mdll-utl.adb (Locate): New version is idempotent.
4642
4643 2004-04-17  Laurent Guerby <laurent@guerby.net>
4644
4645         PR ada/14988 (partial)
4646         * impunit.adb: Fix typo.
4647
4648 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
4649
4650         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
4651         and install-rts-cert targets.  Remove all gnatlib and gnattools
4652         targets and all other rts-* targets (moved to libada).  Remove (now)
4653         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
4654         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
4655
4656 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4657
4658         * trans.c (tree_transform): Shortcut returning error_mark_node for
4659         statements in annotate_only_mode.
4660         (tree_transform, case N_Label, case N_Return_Statement,
4661         N_Goto_Statement): Make statement tree instead of generating code.
4662         (tree_transform, case N_Assignment_Statement): No longer check
4663         type_annotate_only.
4664         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
4665         RETURN_STMT): New.
4666         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
4667         New fcns.
4668         (gnat_to_gnu): Collect any RTL generated and deal with it.
4669         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
4670         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
4671         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
4672
4673         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
4674
4675         * ada-tree.def (EXPR_STMT): Fix typo in name.
4676         (BLOCK_STMT, IF_STMT): New nodes.
4677
4678         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
4679         LABEL_STMT_FIRST_IN_EH): New macros.
4680         (RETURN_STMT_EXPR): Likewise.
4681
4682         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
4683         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
4684
4685 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
4686
4687         * atree.ads: Correct documentation on extended nodes.
4688
4689         * link.c: Set run_path_option for FreeBSD.
4690
4691 2004-04-08  Vincent Celier  <celier@gnat.com>
4692
4693         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
4694         one of the ALI file, do not link with DEC lib.
4695
4696         * par.adb Remove the last two characters ("%s" or "%b") when checking
4697         if a language defined unit may be recompiled.
4698
4699 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
4700
4701         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
4702         removal of abstract operation leaves no possible interpretation for
4703         expression.
4704
4705         * sem_eval.adb (Eval_Qualified_Expression): Use
4706         Set_Raises_Constraint_Error on node when needed, so that it does not
4707         get optimized away by subsequent optimizations.
4708
4709         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
4710         operands even when they are not wrapped in a type conversion.
4711
4712 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
4713
4714         * sem_prag.adb (Set_Exported): Warn about making static as result of
4715         export only when the export is coming from source. This may be not
4716         be true e.g. on VMS where we expand export pragmas for exception codes
4717         together with imported or exported exceptions, and we don't want the
4718         user to be warned about something he didn't write.
4719
4720 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
4721
4722         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
4723         duplication between normal entities and those declared as renamings.
4724         No functional change.
4725
4726         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
4727         inline functions returning an unconstrained result.
4728
4729 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
4730
4731         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
4732         conform to what other front-ends do.
4733
4734 2004-04-08  Doug Rupp  <rupp@gnat.com>
4735
4736         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
4737         libraries.
4738
4739 2004-04-06  Pascal Obry  <obry@gnat.com>
4740
4741         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
4742
4743         * osint.adb (Program_Name): Do not look past a directory separator.
4744
4745 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
4746
4747         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
4748
4749         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
4750         requirement for preserving a copy of the original assignment node.
4751
4752         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
4753
4754 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
4755
4756         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
4757         when supported.
4758
4759 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
4760
4761         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
4762         operator calls in functional notation, and apply
4763         Universal_Interpretation to operands, not to their type.
4764
4765 2004-04-06  Robert Dewar  <dewar@gnat.com>
4766
4767         * 5wdirval.adb: Minor reformatting
4768
4769 2004-04-06  Ed Falis  <falis@gnat.com>
4770
4771         * gnat_rm.texi: Improve a reference to the GCC manual
4772
4773 2004-04-05  Vincent Celier  <celier@gnat.com>
4774
4775         * adaint.h, adaint.c: Add function __gnat_named_file_length
4776
4777         * impunit.adb: Add Ada.Directories to the list
4778
4779         * Makefile.in: Add VMS and Windows versions of
4780         Ada.Directories.Validity package body.
4781
4782         * Makefile.rtl: Add a-direct and a-dirval
4783
4784         * mlib-tgt.ads: Minor comment update.
4785
4786         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
4787         a-direct.ads, a-direct.adb: New files.
4788
4789 2004-04-05  Vincent Celier  <celier@gnat.com>
4790
4791         PR ada/13620
4792         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
4793         just to the compiler.
4794
4795 2004-04-05  Robert Dewar  <dewar@gnat.com>
4796
4797         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
4798         returned string is 1.
4799
4800         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
4801
4802         * eval_fat.ads: Minor reformatting
4803
4804         * g-curexc.ads: Document that lower bound of returned string values
4805         is always one.
4806
4807         * gnatlink.adb: Add ??? comment for previous change
4808         (need to document why this is VMS specific)
4809
4810         * s-stoele.ads: Minor reformatting
4811
4812         * tbuild.ads: Minor reformatting throughout (new function specs)
4813
4814         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
4815         after WITH.
4816
4817         * scng.adb: Minor reformatting
4818
4819 2004-04-05  Geert Bosch  <bosch@gnat.com>
4820
4821         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
4822         (Leading_Part): Still perform truncation to machine number if the
4823         specified radix_digits is greater or equal to machine_mantissa.
4824
4825 2004-04-05  Javier Miranda  <miranda@gnat.com>
4826
4827         * par-ch3.adb: Complete documentation of previous change
4828         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
4829         (aliased must appear before constant).
4830
4831         * par-ch4.adb: Complete documentation of previous change.
4832
4833         * par-ch6.adb: Complete documentation of previous change.
4834
4835         * sinfo.ads: Fix typo in commment.
4836
4837 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
4838
4839         * sem_ch3.adb (Inherit_Components): If derived type is private and has
4840         stored discriminants, use its discriminants to constrain parent type,
4841         as is done for non-private derived record types.
4842
4843         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
4844         Ada 2005 AI-310: an abstract non-dispatching operation is not a
4845         candidate interpretation in an overloaded call.
4846
4847         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
4848         expression is Null and target type is not an access type (e.g. a
4849         non-private address type).
4850
4851 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
4852
4853         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
4854         statement whose right-hand side is an inlined call, save a copy of the
4855         original assignment subtree to preserve enough consistency for
4856         Analyze_Assignment to proceed.
4857
4858         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
4859         complete assignment subtree which is now unnecessary, as the expansion
4860         of inlined call has been improved to preserve a consistent assignment
4861         tree.  Note_Possible_Modification must be called only
4862         after checks have been applied, or else unnecessary checks will
4863         be generated.
4864
4865         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
4866         of explicit dereferences that do not Come_From_Source:
4867          - be selective on cases where we must go back to the dereferenced
4868            pointer (an assignment to an implicit dereference must not be
4869            recorded as modifying the pointer);
4870          - do not rely on Original_Node being present (Analyze_Assignment
4871            calls Note_Possible_Modification on a copied tree).
4872
4873         * sem_warn.adb (Check_References): When an unset reference to a pointer
4874         that is never assigned is encountered, prefer '<pointer> may be null'
4875         warning over '<pointer> is never assigned a value'.
4876
4877 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
4878
4879         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
4880         the ABI.
4881
4882 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
4883
4884         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
4885         libexc. We currently don't reference anything in this library and
4886         linking it in triggers linker warnings we don't want to see.
4887
4888         * init.c: Update comments.
4889
4890 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4891
4892         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
4893         * utils.c (create_field_decl): Likewise.
4894         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
4895
4896 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
4897
4898         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
4899         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
4900         Add info directory entry and category.
4901
4902 2004-04-02  Jan Hubicka  <jh@suse.cz>
4903
4904         * utils.c: Include function.h
4905         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
4906
4907 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
4908
4909         PR ada/14150
4910         * Make-lang.in: Clean up generation of documentation
4911
4912         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
4913
4914         * xgnatug.adb: Removed, replaced by xgnatugn.adb
4915
4916         * xgnatugn.adb: Replaces xgnatug.adb
4917
4918         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
4919
4920         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
4921
4922         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
4923         gnat_ug_wnt.texi: Removed.
4924
4925 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
4926
4927         * utils2.c: Update copyright notice.
4928
4929 2004-04-01  Robert Dewar  <dewar@gnat.com>
4930
4931         * checks.adb: Minor reformatting throughout
4932         Note that prev checkin added RM reference to alignment warning
4933
4934 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
4935
4936         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
4937         non-static when building aggregate for bit-packed array.
4938
4939         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
4940         function call that is itself the actual in a procedure call, build
4941         temporary for it.
4942
4943         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
4944         a string literal, create a temporary for it, constant folding only
4945         handles scalars here.
4946
4947 2004-04-01  Vincent Celier  <celier@gnat.com>
4948
4949         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
4950         Error_Msg_SP): New empty procedures to instantiate the Scanner.
4951         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
4952         tokens.
4953         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
4954         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
4955         and get the checksum.
4956
4957         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
4958         already in the Q.
4959         Increase the Marking_Label at the end of the Multiple_Main_Loop,
4960         instead of at the beginning.
4961
4962         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
4963         directly.
4964         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
4965         on VMS.
4966
4967         * osint.ads (Multi_Unit_Index_Character): New Character global variable
4968
4969         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
4970         not '~' directly.
4971
4972         * par.adb: Remove test on file name to detect language defined units.
4973         Add test on unit name, after parsing, to detect language defined units
4974         that are not compiled with -gnatg (except System.RPC and its children)
4975
4976         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
4977         following units without style checking.
4978
4979         * switch-c.adb: Change -gnatC to -gnateI
4980
4981         * usage.adb: Document new switch -gnateInnn
4982
4983         * scng.adb (Accumulate_Token_Checksum): New procedure
4984         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
4985         word or literal number.
4986         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
4987         numbers.
4988
4989 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
4990
4991         * a-tasatt.adb,
4992         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
4993         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
4994         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
4995         5vtpopde.adb: Add missing 'constant' keywords.
4996
4997 2004-04-01  Javier Miranda  <miranda@gnat.com>
4998
4999         * par-ch4.adb: (P_Allocator): Code cleanup
5000
5001         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
5002         attribute.
5003
5004         * sinfo.ads: Complete documentation of previous change
5005
5006 2004-04-01  Pascal Obry  <obry@gnat.com>
5007
5008         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
5009         only on VMS.  This special handling was done because an old GNU/ld bug
5010         on Windows which has been fixed.
5011
5012 2004-04-01  GNAT Script  <nobody@gnat.com>
5013
5014         * Make-lang.in: Makefile automatically updated
5015
5016 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5017
5018         * decl.c (gnat_to_gnu_entity, make_type_from_size):
5019         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
5020         * trans.c (tree_transform, convert_with_check): Likewise.
5021         * utils.c (gnat_signed_or_unsigned_type): Likewise.
5022         (build_vms_descriptor, unchecked_convert): Likewise.
5023         * utils2.c (nonbinary_modular_operation): Likewise.
5024
5025 2004-03-29  Javier Miranda  <miranda@gnat.com>
5026
5027         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
5028         (Install_Null_Excluding_Check): Local subprogram that determines whether
5029         an access node requires a runtime access check and if so inserts the
5030         appropriate run-time check.
5031         (Apply_Access_Check): Call Install_Null_Excluding check if required
5032         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
5033
5034         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
5035
5036         * einfo.ads: Fix typo in comment
5037
5038         * exp_ch3.adb (Build_Assignment): Generate conversion to the
5039         null-excluding type to force the corresponding run-time check.
5040         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
5041         type to force the corresponding run-time check.
5042
5043         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
5044         the null-excluding type to force the corresponding run-time check.
5045
5046         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
5047         case of access types unless they have the null-excluding attribute.
5048
5049         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
5050         part.
5051
5052         * exp_util.ads: Fix typo in comment
5053
5054         * par.adb (P_Null_Exclusion): New subprogram
5055         (P_Subtype_Indication): New formal that indicates if the null-excluding
5056         part has been scanned-out and it was present
5057
5058         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
5059
5060         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
5061         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
5062         type to force the corresponding run-time check
5063         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
5064         components
5065         (Resolve_Array_Aggregate): Carry out some static checks
5066         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
5067
5068         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
5069         attribute must be set only if specified by means of the null-excluding
5070         part. In addition, we must also propagate the access-constant attribute
5071         if present.
5072         (Access_Subprogram_Declaration, Access_Type_Declaration,
5073         Analyze_Component_Declaration, Analyze_Object_Declaration,
5074         Array_Type_Declaration, Process_Discriminants,
5075         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
5076         and carry out some static checks.
5077         (Build_Derived_Access_Type): Set the null-excluding attribute
5078         (Derived_Type_Declaration, Process_Subtype): Carry out some static
5079         checks.
5080
5081         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
5082
5083         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
5084
5085         * sem_ch6.adb (Process_Formals): Carry out some static checks.
5086         (Set_Actual_Subtypes): Generate null-excluding subtype if the
5087         null-excluding part was present; it is not required to be done here in
5088         case of anonymous access types.
5089         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
5090         value.
5091
5092         * sem_res.adb (Resolve_Actuals): Carry out some static check
5093         (Resolve_Null): Allow null in anonymous access
5094
5095         * sinfo.adb: New subprogram Null_Exclusion_Present
5096         All_Present and Constant_Present available on access_definition nodes
5097
5098         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
5099         object_declaration, derived_type_definition, component_definition,
5100         discriminant_specification, access_to_object_definition,
5101         access_function_definition, allocator, access_procedure_definition,
5102         access_definition, parameter_specification, All_Present and
5103         Constant_Present flags available on access_definition nodes.
5104
5105 2004-03-29  Robert Dewar  <dewar@gnat.com>
5106
5107         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
5108         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
5109         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
5110         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
5111         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
5112         sem_prag.adb: Updates to handle multiple units/file
5113
5114         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
5115
5116         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
5117         sem_util.adb: Minor reformatting
5118
5119         * sem_ch12.adb: Add comment for previous change
5120
5121 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
5122
5123         * osint.adb (Executable_Prefix): Set Exec_Name to the current
5124         executable name when not initialized. Otherwise, use its current value.
5125
5126         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
5127         initialize it to another executable name than the current one. This
5128         allows to configure paths for an executable name (gnatmake) different
5129         from the current one (gnatdist).
5130
5131 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
5132
5133         * exp_ch6.adb (Expand_Call): A call to a function declared in the
5134         current unit cannot be inlined if it appears in the body of a withed
5135         unit, to avoid order of elaboration problems in gigi.
5136
5137         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
5138         information for protected (wrapper) operation as well, to simplify gdb
5139         use.
5140
5141         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
5142         protected body, indicate that the entity for the generated spec comes
5143         from source, to ensure that references are properly generated for it.
5144         (Build_Body_To_Inline): Do not inline a function that returns a
5145         controlled type.
5146
5147         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
5148         apply convention to homonyms that are declared explicitly.
5149
5150         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
5151         that renames an equality operator and the operands are overloaded,
5152         resolve them with the declared formal types, before rewriting as an
5153         operator.
5154
5155 2004-03-29  GNAT Script  <nobody@gnat.com>
5156
5157         * Make-lang.in: Makefile automatically updated
5158
5159 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
5160
5161         * memtrack.adb: Log realloc calls, which are treated as free followed
5162         by alloc.
5163
5164 2004-03-25  Vincent Celier  <celier@gnat.com>
5165
5166         * prj-makr.adb (Process_Directories): Detect when a file contains
5167         several units. Do not include such files in the config pragmas or
5168         in the naming scheme.
5169
5170         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
5171         Resolve links only when not in Trusted_Mode.
5172         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
5173         Do not resolve links for the display names.
5174
5175         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
5176         resolve links when computing the display names.
5177
5178 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
5179
5180         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
5181         attribute reference does not denote a subtype, it can be any
5182         expression that has a classwide type, potentially after an implicit
5183         dereference.  In particular, the prefix can be a view conversion for
5184         a classwide type (for which Is_Object_Reference holds), but it can
5185         also be a value conversion for an access-to-classwide type. In the
5186         latter case, there is an implicit dereference, and the original node
5187         for the prefix does not verify Is_Object_Reference.
5188
5189         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
5190         conversion of a discriminant-dependent component of a mutable object
5191         is one itself.
5192
5193 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
5194
5195         * freeze.adb (Freeze_Entity): When an inherited subprogram is
5196         inherited, has convention C, and has unconstrained array parameters,
5197         place the corresponding warning on the derived type declaration rather
5198         than the original subprogram.
5199
5200         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
5201         indication on renaming declaration, if formal has a box and actual
5202         is absent.
5203
5204         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
5205         determine whether to generate an implicit or explicit reference to
5206         the renamed entity.
5207
5208         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
5209         subprogram renaming comes from a defaulted formal subprogram in an
5210         instance.
5211
5212 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
5213
5214         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
5215         value expressions to ensure that calls within a component definition
5216         will be checked (since those are evaluated during the record type's
5217         elaboration).
5218
5219 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
5220
5221         * s-tpobop.adb: Code clean up:
5222         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
5223         code.
5224         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
5225
5226 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
5227
5228         * Makefile.in: Clean up in the ravenscar run time.
5229
5230 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5231
5232         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
5233         of No_Strict_Aliasing to build_pointer_type_for_mode.
5234         * utils.c (update_pointer_to): Walk pointer and ref chains.
5235
5236 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
5237
5238         * ali.ads: Fix Comment about Dynamic_Elab.
5239
5240         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
5241         Has_RACW, Is_Generic, etc.)
5242         (Output_Object, Gnatls): Take into account ALI files not attached to
5243         an object.
5244
5245 2004-03-22  Vincent Celier  <celier@gnat.com>
5246
5247         * gprep.adb: Change all String_Access to Name_Id
5248         (Is_ASCII_Letter): new function
5249         (Double_File_Name_Buffer): New procedure
5250         (Preprocess_Infile_Name): New procedure
5251         (Process_Files): New procedure
5252         (Gnatprep): Check if output and input are existing directories.
5253         Call Process_Files to do the real job.
5254
5255 2004-03-22  Robert Dewar  <dewar@gnat.com>
5256
5257         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
5258         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
5259
5260 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
5261
5262         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
5263         case when the source contains only comments.
5264
5265 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
5266
5267         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
5268         declaration for a child subprogram body that acts as a spec, indicate
5269         that the entity in the declaration needs debugging information.
5270
5271         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
5272         full view if the subtype is created for a constrained record component;
5273         gigi has enough information to construct the record, and there is no
5274         place in the tree for the declaration.
5275
5276         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
5277         serial number for the dummy body that is built for analysis, to avoid
5278         inconsistencies in the generation of internal names when compiling
5279         with -gnatN.
5280
5281 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
5282
5283         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
5284         object.
5285
5286 2004-03-22  GNAT Script  <nobody@gnat.com>
5287
5288         * Make-lang.in: Makefile automatically updated
5289
5290 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5291
5292         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
5293         * trans.c (tree_transform, emit_index_check): Likewise.
5294         * utils.c (build_template): Likewise.
5295         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
5296         (maybe_unconstrained_array, unchecked_convert): Likewise.
5297         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
5298         (build_unary_op): Likewise.
5299         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
5300         (fill_vms_descriptor): Likewise.
5301         (build_call_alloc_dealloc): Likewise.
5302         ALIGN is unsigned.
5303         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
5304
5305 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
5306
5307         PR other/14630
5308         * gnat_ug.texi: Add info directory category and entry.
5309         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
5310         gnat_ug_wnt.texi: Regenerate.
5311
5312 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
5313
5314         * ada-tree.h: Update copyright notice.
5315         Minor reformatting.
5316
5317 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
5318
5319         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
5320         as regular exception objects and not as mere integers representing the
5321         condition code.  The latter approach required some dynamics to mask off
5322         severity bits, which did not fit well into the GCC table based model.
5323         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
5324         exception data objects. We don't it and it would conflict with the other
5325         external symbol we have to generate for such exceptions.
5326
5327         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
5328         the special code for VMS exceptions, since these are now represented
5329         as regular exceptions objects.
5330
5331 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5332
5333         * decl.c (debug_no_type_hash): Remove.
5334         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
5335         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
5336
5337 2004-03-19  Laurent Guerby <laurent@guerby.net>
5338
5339         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
5340         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
5341
5342 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5343
5344         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
5345         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
5346         (TYPE_RM_SIZE_INT): Directly use type.values.
5347         (TREE_LOOP_ID): Clean up check.
5348         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
5349         TYPE_VALUES, not TYPE_FIELDS.
5350         * trans.c (convert_with_check): Delay access of bounds of basetype
5351         until sure is numeric.
5352
5353 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
5354
5355         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
5356
5357         Code clean up:
5358         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
5359         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
5360         Specific.Set instead of direct call to e.g pthread_setspecific.
5361
5362 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
5363
5364         * adaint.c: Update comments.
5365
5366         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
5367         GNATLIB_SHARED for FreeBSD.
5368
5369 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
5370
5371         * init.c [VxWorks]: Do not fix the stack size for the environment task.
5372         When needed (stack checking) the stack size is retrieved
5373         from the VxWorks kernel.
5374
5375         * Makefile.in: Flag -nostdinc is required when building the run time
5376         for avoiding looking for files in the base compiler.
5377         Add the VxWorks specific version of the package body for
5378         System.Stack_checking.Operations (5zstchop.adb).
5379
5380         * Make-lang.in: Add the object file for
5381         System.Stack_Checking.Operations.
5382
5383         * Makefile.rtl: Add object file for the package
5384         System.Stack_Checking.Operations.
5385
5386         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
5387
5388         * s-stache.ads, s-stache.adb: Move the operations related to stack
5389         checking from this package to package System.Stack_Checking.Operations.
5390         This way, stack checking operations are only linked in the final
5391         executable when using the -fstack-check flag.
5392
5393 2004-03-18  Doug Rupp  <rupp@gnat.com>
5394
5395         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
5396         Reorganize ifeq's.
5397
5398         * 5qsystem.ads, 5xcrtl.ads: New files.
5399
5400 2004-03-18  Vincent Celier  <celier@gnat.com>
5401
5402         * prj.adb (Reset): Reset hash table Files_Htable
5403
5404         * prj-env.adb (Source_Paths, Object_Paths): New tables.
5405         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
5406         the procedures Add_To_Path_File.
5407         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
5408         making sure that each directory is present only once and, for object
5409         dirs, when a directory already present is added, the duplicate is
5410         removed and the directory is always put as the last in the table.
5411         Write the path files at the end of these accumulations.
5412
5413         * prj-nmsc.adb (Record_Source): Add source file name in hash table
5414         Files_Htable for all sources.
5415
5416         * prj-proc.adb (Process): Remove restrictions between not directly
5417         related extending projects.
5418
5419 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
5420
5421         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
5422         (Find_Sources): Minor speed optimization.
5423
5424         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
5425         parameter Trusted_Mode.
5426
5427 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
5428
5429         * scn.adb (Determine_License): Take into account a degenerated case
5430         when the source contains only comments.
5431
5432 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
5433
5434         * sem_warn.adb (Check_References): For a warning on a selected
5435         component that does not come from source, locate an uninitialized
5436         component of the record type to produce a more precise error message.
5437
5438 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
5439
5440         * 3zsoccon.ads: Fix multicast options.
5441
5442         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
5443         in the spec.
5444
5445 2004-03-15  Robert Dewar  <dewar@gnat.com>
5446
5447         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
5448         pragma used for a private type.
5449
5450         * lib-xref.adb (Generate_Reference): Do not generate warning if
5451         reference is in a different unit from the pragma Unreferenced.
5452
5453         * 5vtpopde.adb: Minor reformatting
5454         Fix casing of To_Task_ID
5455
5456         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
5457         flag if we have an unchecked conversion to an access type in the same
5458         unit.
5459
5460 2004-03-15  Geert Bosch  <bosch@gnat.com>
5461
5462         * a-ngcoty.adb (Modulus): In alternate formula for large real or
5463         imaginary parts, use Double precision throughout.
5464
5465         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
5466         we want to be able to compile run-time with -gnata for testing, but
5467         this may also be instantiated in user code that is compiled with -gnata.
5468
5469 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
5470
5471         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
5472         codes. Having a separate type for this is useful to enforce consistency
5473         throughout the various run-time units.
5474         (Exception_Data): Use Exception_Code for Import_Code.
5475
5476         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
5477         Natural and Integer in various places.
5478         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
5479         with the severity bits masked off.
5480         (Register_VMS_Exception): Handle the additional exception data pointer
5481         argument.
5482
5483         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
5484         component, now reflected by an exported accessor.
5485         (is_handled_by): New routine to compute whether the propagated
5486         occurrence matches some handler choice specification. Extracted out of
5487         get_action_description_for, and expanded to take care of the VMS
5488         specifities.
5489         (get_action_description_for): Use is_handled_by instead of an explicit
5490         complex condition to decide if the current choice at hand catches the
5491         propagated occurrence.
5492
5493         * raise.h (Exception_Code): New type for C.
5494
5495         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
5496         System.Standard_Library.Exception_Code, to allow references from the
5497         pragma import/export expander.
5498
5499         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
5500         New accessors to allow easy access to GNAT exception data
5501         characteristics.
5502         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
5503         redundant Handled_By_Others component, helper for the personality
5504         routine which will now be able to call the appropriate exception data
5505         accessor instead.
5506
5507         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
5508         component of Standard_Exception_Type to be the closest possible to
5509         Exception_Code in System.Standard_Library, that we cannot get at this
5510         point. Expand a ??? comment to notify that this type node should
5511         probably be rewritten later on.
5512
5513         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
5514         registration call to include a pointer to the exception object in the
5515         arguments.
5516
5517         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
5518         instead of int and explicit bitmasks.
5519
5520 2004-03-15  Vincent Celier  <celier@gnat.com>
5521
5522         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
5523         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
5524
5525         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
5526         longer needed now that it is in the spec of
5527         System.Tasking.Task_Attributes.
5528
5529         * adaint.h, adaint.c: (__gnat_create_output_file): New function
5530
5531         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
5532
5533         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
5534
5535         * make.adb (Gnatmake): Do not check the executable suffix; it is being
5536         taken care of in Scan_Make_Arg.
5537         (Scan_Make_Arg): Add the executable suffix only if the argument
5538         following -o, in canonical case, does not end with the executable
5539         suffix.  When in verbose mode and executable file name does not end
5540         with executable suffix, output the executable name, in canonical case.
5541
5542         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
5543         to avoid warnings when instantiating Ada.Task_Attributes.
5544         Minor reformating.
5545
5546         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
5547         in the correct order.
5548
5549         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
5550         redirect standard output and error to a file for the invocation of the
5551         compiler, then read the file.
5552
5553         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
5554         directory, instead of the Value.
5555         (Find_Source_Dirs): Remove useless code & comments.
5556
5557 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
5558
5559         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
5560         tagged type is inherited, and the parent operation is not frozen yet,
5561         force generation of a freeze node for the inherited operation, so the
5562         corresponding dispatch entry is properly initialized.
5563         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
5564         when looking for user-defined equality operation.
5565
5566         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
5567         boolean when locating primitive equality of tagged component.
5568
5569         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
5570         bit-aligned field and the right-hand side a string literal, introduce
5571         a temporary before expanding assignment into a loop.
5572
5573         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
5574         priority in full, to ensure that any expanded subepxressions of it are
5575         elaborated in the scope of the init_proc.
5576
5577         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
5578         after object declaration, skipping over code that may have been
5579         generated for validity checks.
5580
5581         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
5582         discriminants, ignore the known discriminants of its full view, if
5583         any, to check legality.
5584
5585         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
5586         component if type has unknown discriminants.
5587         (Analyze_Private_Extension_Declaration): Discriminant constraint is
5588         null if type has unknown discriminants.
5589
5590         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
5591         for end label when present.
5592
5593         * s-fileio.adb (Open): When called with a C_Stream, use given name for
5594         temporary file, rather than an empty string.
5595
5596 2004-03-15  Ed Falis  <falis@gnat.com>
5597
5598         * s-thread.adb: Removed, no longer used.
5599
5600 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5601
5602         * decl.c (target.h): Now include.
5603         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
5604         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
5605         (validate_size): For POINTER_TYPE, get smallest size permitted on
5606         machine.
5607
5608         * fe.h: Sort Einfo decls and add Set_Mechanism.
5609
5610         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
5611         (ada/decl.o): Depends on target.h.
5612
5613         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
5614         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
5615
5616 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
5617
5618         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
5619
5620         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
5621         Insert_Dereference_Action when rewriting an implicit dereference into
5622         an explicit one, this will be taken care of during expansion of the
5623         explicit dereference.
5624         (Expand_N_Slice): Same. Always do the rewriting, even for the case
5625         of non-packed slices, since the dereference action generated by
5626         expansion of the explicit dereference is needed in any case.
5627         (Expand_N_Selected_Component): When rewriting an implicit dereference,
5628         analyze and resolve the rewritten explicit dereference so it is seen
5629         by the expander.
5630         (Insert_Dereference_Action): This procedure is now called only for the
5631         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
5632         dereferences that do not come from source (including explicit
5633         dereferences resulting from rewriting implicit ones), but do not
5634         recursively insert a check for the dereference nodes contained within
5635         the check.
5636         (Insert_Dereference_Action): Clarify and correct comment.
5637
5638 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
5639
5640         PR ada/14131
5641         Move language detection to the top level.
5642         * config-lang.in: Build by default.
5643
5644 2004-03-05  Robert Dewar  <dewar@gnat.com>
5645
5646         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
5647
5648         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
5649         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
5650         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
5651         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
5652         unchecked conversion to spec to avoid warnings.
5653
5654         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
5655         to Task_ID
5656
5657         * 7stpopsp.adb: Correct casing in To_Task_ID call
5658
5659         * a-strsea.ads, a-strsea.adb: Minor reformatting
5660
5661         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
5662
5663         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
5664         Adjust Max_Msg_Length to be clearly large enough.
5665
5666         * fe.h: Define In_Same_Source_Unit
5667
5668         * osint.adb: Add pragma Warnings Off to suppress warnings
5669         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
5670         aliasing warnings.
5671
5672         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
5673
5674         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
5675
5676         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
5677
5678         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
5679
5680         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
5681
5682         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
5683         node. We now do generate them for gcc back end.
5684
5685         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
5686         warning.
5687
5688         * sinput-c.adb: Fix bad name in header.
5689         Add pragma Warnings Off to suppress aliasing warning.
5690
5691         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
5692
5693         * snames.h, snames.ads, snames.adb: Add entry for pragma
5694         No_Strict_Aliasing.
5695
5696 2004-03-05  Vincent Celier  <celier@gnat.com>
5697
5698         * prj-com.ads: Add hash table Files_Htable to check when a file name
5699         is already a source of another project.
5700
5701         * prj-nmsc.adb (Record_Source): Before recording a new source, check
5702         if its file name is not already a source of another project. Report an
5703         error if it is.
5704
5705         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
5706         source file name, call gnatpp with all the sources of the main project.
5707
5708         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
5709         of file names.
5710
5711         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
5712         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
5713         /RUNTIME_SYSTEM=, converted to --RTS=
5714         /NOTABS, converted to -notabs
5715
5716 2004-03-05  Pascal Obry  <obry@gnat.com>
5717
5718         * make.adb: Minor reformatting.
5719
5720 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
5721
5722         Part of implemention of AI-262.
5723         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
5724
5725         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
5726         procedure.
5727
5728         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
5729         when component type is a partially constrained class-wide subtype.
5730         (Constrain_Discriminated_Type): If parent type has unknown
5731         discriminants, a constraint is illegal, even if full view has
5732         discriminants.
5733         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
5734         with unknown discriminants whose full view is a discriminated record.
5735
5736         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
5737         flag, to handle properly derivations of tagged types with unknown
5738         discriminants.
5739         (Analyze_Package_Spec, Analyze_Package_Body): Install
5740         Private_With_Clauses before analyzing private part or body.
5741
5742         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
5743         Has_Discriminants can be true for a given type (documentation).
5744
5745 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
5746
5747         * s-restri.ads: Fix license (GPL->GMGPL).
5748
5749         * s-tassta.adb: Minor reformatting.
5750
5751         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
5752         by calls to Exit_One_ATC_Level, since additional clean up is performed
5753         by this function.
5754
5755         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
5756         by calls to Exit_One_ATC_Level, since additional clean up is performed
5757         by this function.
5758
5759 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5760
5761         * trans.c: Reflect GCC changes to fix bootstrap problem.
5762         Add warning for suspicious aliasing unchecked conversion.
5763
5764 2004-03-05  GNAT Script  <nobody@gnat.com>
5765
5766         * Make-lang.in: Makefile automatically updated
5767
5768 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
5769
5770         * ali.adb (Read_Instantiation_Instance): Do not modify the
5771         current_file_num when reading information about instantiations, since
5772         this corrupts files in later references.
5773
5774 2004-03-02  Vincent Celier  <celier@gnat.com>
5775
5776         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
5777         before checking if it is read-only.
5778
5779         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
5780         of SRC_DIRS and eliminate duplicates.
5781
5782         * gprcmd.adb: Replace command "path" with command "path_sep" to return
5783         the path separator.
5784         (Usage): Document path_sep
5785
5786         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
5787         C++ compiler. No need for a script.
5788         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
5789         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
5790         subst.
5791
5792         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
5793         where there are Ada sources.
5794         (Set_Ada_Paths): Only add to the include path the source dirs of project
5795         with Ada sources.
5796         (Add_To_Path): Add the Display_Values of the directories, not their
5797         Values.
5798
5799         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
5800         data.
5801
5802         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
5803         is not No_Name.
5804         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
5805         Value is canonicalized.
5806         (Language_Independent_Check): Do not copy Value to Display_Value when
5807         canonicalizing Value.
5808
5809         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
5810         path to find limited with cycles.
5811         (Parse_Single_Project): Use canonical cased path to find the end of a
5812         with cycle.
5813
5814 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
5815
5816         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
5817         and not a child unit.
5818
5819         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
5820         appear in a with_clause.
5821
5822         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
5823         only happen in type_annotate mode, do not try to elaborate it.
5824
5825         * exp_util.adb (Force_Evaluation): If expression is a selected
5826         component on the left of an assignment, use a renaming rather than a
5827         temporary to remove side effects.
5828
5829         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
5830         inlined instance body, which is analyzed before the end of the
5831         enclosing scope.
5832
5833 2004-03-02  Robert Dewar  <dewar@gnat.com>
5834
5835         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
5836         sem_ch4.adb: Use new feature for substitution of keywords in VMS
5837
5838         * errout.ads, errout.adb: Implement new circuit for substitution of
5839         keywords in VMS.
5840
5841         * sem_case.adb (Analyze_Choices): Place message properly when case is
5842         a subtype reference rather than an explicit range.
5843
5844         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
5845
5846 2004-03-02  Doug Rupp  <rupp@gnat.com>
5847
5848         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
5849
5850 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
5851
5852         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
5853
5854 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5855
5856         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
5857         BLKmode bitfield.
5858
5859 2004-02-25  Robert Dewar  <dewar@gnat.com>
5860
5861         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
5862         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
5863         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
5864         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
5865         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
5866         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
5867         the defining instance of the type to avoid aliasing problems.
5868         Fix copyright header.  Fix bad comments in package header.
5869
5870         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
5871
5872 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
5873
5874         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
5875         rewritten as references when aliased through an address clause.
5876
5877         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
5878         whether call can be interpreted as an indirect call to the result of a
5879         parameterless function call returning an access subprogram.
5880
5881 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
5882
5883         Code clean up:
5884         * exp_ch7.adb (Make_Clean): Remove generation of calls to
5885         Unlock[_Entries], since this is now done by Service_Entries directly.
5886
5887         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
5888
5889         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
5890         Requeue_Call for better code readability. Change spec and update calls:
5891         PO_Service_Entries now unlock the PO on exit.
5892         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
5893         PO_Service_Entries.
5894
5895         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
5896
5897         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
5898
5899 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
5900
5901         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
5902         protected subprogram call and analyzing the result of such expanding
5903         in case when the called protected subprogram is eliminated.
5904
5905         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
5906         names.
5907
5908 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
5909
5910         * Makefile.in: Clean ups.
5911
5912 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
5913
5914         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
5915         protected operations if original subprogram is flagged as eliminated.
5916         (Expand_N_Subprogram_Body): For a protected operation, create
5917         discriminals for next operation before checking whether the operation
5918         is eliminated.
5919
5920         * exp_ch9.adb (Expand_N_Protected_Body,
5921         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
5922         for internal protected operations if the original subprogram is
5923         eliminated.
5924
5925         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
5926         declared in a single protected object.
5927
5928 2004-02-23  Vincent Celier  <celier@gnat.com>
5929
5930         * prj-attr.adb: Make attribute Builder'Executable an associative array,
5931         case insensitive if file names are case insensitive, instead of a
5932         standard associative array.
5933
5934         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
5935         them as case insensitive on platforms where the file names are case
5936         sensitive.
5937
5938         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
5939         project file has already been parsed that canonical path are compared.
5940
5941 2004-02-23  Robert Dewar  <dewar@gnat.com>
5942
5943         * sinput-c.ads: Correct bad unit title in header
5944
5945         * freeze.adb: Minor reformatting
5946
5947 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5948
5949         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
5950         nonaddressable COMPONENT_REF that is removing padding that we are
5951         taking the address of, take the address of the padded record instead
5952         if item is variable size.
5953
5954 2004-02-20  Robert Dewar  <dewar@gnat.com>
5955
5956         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
5957
5958 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
5959
5960         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
5961         itype references for the constrained designated type of a component
5962         whose base type is already frozen.
5963
5964 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
5965
5966         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
5967         avoid GCC warnings.
5968
5969 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
5970
5971         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
5972         identifier for a phantom package that rewrites the formal package
5973         declaration with a box. The Add semantic decorations for the defining
5974         identifier from the original node (that represents the formal package).
5975
5976 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
5977
5978         * Make-lang.in (ada/stamp-sdefault): Use the top level
5979         move-if-change.
5980
5981 2004-02-19  Richard Henderson  <rth@redhat.com>
5982
5983         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
5984
5985 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
5986
5987         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
5988         Scan_ALI can be used for multiple ALI files without reinitializing
5989         between calls.
5990
5991 2004-02-18  Robert Dewar  <dewar@gnat.com>
5992
5993         * debug.adb: Minor reformatting.
5994
5995 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5996
5997         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
5998         to zero if there is an address clause.
5999
6000 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
6001
6002         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
6003
6004 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
6005
6006         * layout.adb (Layout_Component_List): Revise generation of call to
6007         discriminant-checking function to pass selections of all of the type's
6008         discriminants rather than just the variant-controlling discriminant.
6009
6010 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
6011
6012         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
6013         fail in the current setup and triggers spurious system error messages.
6014         Pretend it occurred and failed instead.
6015
6016 2004-02-18  Vincent Celier  <celier@gnat.com>
6017
6018         * bld.adb: Mark FLDFLAGS as saved
6019         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
6020         it is not the root project.  Put each directory to be
6021         extended between double quotes to prevent it to be expanded on Windows.
6022         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
6023         the project file. Set them back to their initial values if they have not
6024         been set in the project file.
6025
6026         * gprcmd.adb: (Gprdebug, Debug): New global variables
6027         (Display_Command): New procedure
6028         (Usage): Document new command "linkopts"
6029         Call Display_Command when env var GPRDEBUG has the value "TRUE"
6030         Implement new command "linkopts"
6031         Remove quotes that may be around arguments for "extend"
6032         Always call Normalize_Pathname with arguments formatted for the platform
6033
6034         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
6035         Change @echo to @$(display) in target clean to be able to clean silently
6036
6037         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
6038
6039         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
6040         canonical case.
6041
6042         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
6043         = Extending_All when current project is an extending all project.
6044
6045         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
6046         set to True only for LINK command, after Unix switch -o.
6047         (Process_Arguments): Set Output_File_Expected to True for LINK command
6048         after Unix switch -o. When Output_File_Expected is True, never add an
6049         extension to a file name.
6050
6051         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
6052         option file name, only to the --for-linker= switch.
6053         (Option_File_Name): If option file name do not end with ".opt", append
6054         "/OPTIONS".
6055
6056 2004-02-18  GNAT Script  <nobody@gnat.com>
6057
6058         * Make-lang.in: Makefile automatically updated
6059
6060 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
6061
6062         * Make-lang.in (stamp-sdefault): Do not depend on
6063         move-if-change.
6064
6065 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
6066
6067         * config-lang.in: Disable Ada by default until probe logic for
6068         a bootstrap Ada compiler can be moved to the top level configure
6069         script.
6070
6071 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
6072
6073         * decl.c (components_to_record): Don't claim that the internal fields
6074         we make to hold the variant parts are semantically addressable, because
6075         they are not.
6076
6077         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
6078         adjust the comment describing the modular type form when we can use it.
6079         (Install_PAT): Account for the Esiz renaming.
6080
6081         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
6082         sc_onstack context indication before raising the exception to which
6083         the signal is mapped. Allows better handling of later signals possibly
6084         triggered by the resumed user code if the exception is handled.
6085
6086 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
6087
6088         * 5zinit.adb: Removed, no longer used.
6089
6090 2004-02-12  Robert Dewar  <dewar@gnat.com>
6091
6092         * ali.adb: Remove separating space between parameters on R line. Makes
6093         format consistent with format used by the binder for Set_Globals call.
6094
6095         * atree.ads, atree.adb: Minor reformatting (new function header format)
6096
6097         * bindgen.adb: Add Run-Time Globals documentation section containing
6098         detailed documentation of the globals passed from the binder file to
6099         the run time.
6100
6101         * gnatls.adb: Minor reformatting
6102
6103         * init.c (__gnat_set_globals): Add note pointing to documentation in
6104         bindgen.
6105
6106         * lib-writ.ads, lib-writ.adb: Remove separating space between
6107         parameters on R line.
6108         Makes format consistent with format used by the binder for Set_Globals
6109         call.
6110
6111         * osint.ads: Add 2004 to copyright notice
6112         Minor reformatting
6113
6114         * snames.ads: Correct capitalization of FIFO_Within_Priorities
6115         Noticed during code reading, documentation issue only
6116
6117         * usage.adb: Remove junk line for obsolete C switch
6118         Noticed during code reading
6119
6120 2004-02-12  Vincent Celier  <celier@gnat.com>
6121
6122         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
6123         extend for each directory, so that multiple /** directories are
6124         extended individually.
6125         (Recursive_Process): Set the default for LANGUAGES to ada
6126
6127         * gprcmd.adb: Define new command "ignore", to do nothing.
6128         Implement new comment "path".
6129
6130         * Makefile.generic: Suppress output when SILENT is set
6131         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
6132         used, so that the correct compiler is invoked.
6133         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
6134         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
6135
6136 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
6137
6138         * Makefile.in: Clean ups and remove obsolete targets.
6139
6140 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
6141
6142         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
6143         predicate declared in exp_util.
6144
6145         * exp_util.adb: Add comments.
6146
6147         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
6148         visibility before compiling context of the subunit.
6149
6150         * sem_res.adb (Check_Parameterless_Call): If the context expects a
6151         value but the name is a procedure, do not attempt to analyze as a call,
6152         in order to obtain more telling diagnostics.
6153
6154         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
6155         'Access on parameterless function calls.
6156         (Normalize_Actuals): For a parameterless function call with missing
6157         actuals, defer diagnostic until resolution of enclosing call.
6158
6159         * sem_util.adb (Wrong_Type): If the context type is an access to
6160         subprogram and the expression is a procedure name, suggest a missing
6161         'attribute.
6162
6163 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
6164             Nathanael Nerode  <neroden@gcc.gnu.org>
6165
6166         PR ada/6637, PR ada/5911
6167         Merge with libada-branch:
6168         * config-lang.in: Build libada only when ada is built.
6169
6170 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
6171
6172         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
6173         for a tagged type, verify that both formals have the same type.
6174
6175         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
6176         temporary when the formal is an in-parameter and the actual a possibly
6177         unaligned slice.
6178
6179         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
6180         when expansion is disabled, to ensure proper name capture with
6181         overloaded literals.  Condition can be of any boolean type, resolve
6182         accordingly.
6183
6184         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
6185         renaming is for a formal subprogram with a default operator name, and
6186         there is a usable operator that is visible at the point of
6187         instantiation.
6188
6189 2004-02-09  Robert Dewar  <dewar@gnat.com>
6190
6191         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
6192         rewrite to ignore errors in ali files, intended to allow tools downward
6193         compatibility with new versions of ali files.
6194
6195         * ali.ads: Add new parameter Ignore_Errors
6196
6197         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
6198         duplicating the error message giving the file with restrictions.
6199
6200         * debug.adb: Add debug flag I for gnatbind
6201
6202         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
6203         operators for the case where the operator is a defining operator.
6204
6205         * exp_ch3.adb: Minor reformatting (new function spec format).
6206
6207         * exp_ch4.adb: Add comment for previous change, and make minor
6208         adjustment to loop to always check for improper loop termination.
6209         Minor reformatting throughout (new function spec format).
6210
6211         * gnatbind.adb: Implement -di debug flag for gnatbind
6212
6213         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
6214
6215         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
6216
6217         * lib-load.adb: Fix bad assertion.
6218         Found by testing and code reading.
6219         Minor reformatting.
6220
6221         * lib-load.ads: Minor reformatting.
6222
6223         * lib-writ.adb: There is only one R line now.
6224
6225         * lib-writ.ads: Add documentation on making downward compatible changes
6226         to ali files so old tools work with new ali files.
6227         There is only one R line now.
6228         Add documentation on format incompatibilities (with special GPS note)
6229
6230         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
6231
6232         * par-load.adb: Minor reformatting
6233
6234         * sem_ch8.adb: Fix to error message from last update
6235         Minor reformatting and restructuring of code from last update
6236
6237         * par-prag.adb, snames.adb, snames.ads, snames.h,
6238         sem_prag.adb: Implement pragma Profile.
6239
6240         * stylesw.adb: Implement -gnatyN switch to turn off all style check
6241         options.
6242
6243         * usage.adb: Add line for -gnatyN switch
6244
6245         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
6246
6247 2004-02-09  Albert Lee  <lee@gnat.com>
6248
6249         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
6250
6251 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
6252
6253         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
6254         slices.
6255
6256         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
6257         is nested in an instance that is not frozen yet, to avoid
6258         order-of-elaboration problems in gigi.
6259
6260         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
6261         body the attribute is legal.
6262
6263 2004-02-09  Robert Dewar  <dewar@gnat.com>
6264
6265         * s-rident.ads: Minor comment correction
6266
6267         * targparm.adb: Remove dependence on uintp completely. There was
6268         always a bug in Make in that it called Targparm before initializing
6269         the Uint package. The old code appeared to get away with this, but
6270         the new code did not! This caused an assertion error in gnatmake.
6271
6272         * targparm.ads: Fix bad comment, restriction pragmas with parameters
6273         are indeed fully supported.
6274
6275 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
6276
6277         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
6278
6279 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6280
6281         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
6282         with targetm.calls.promote_prototypes.
6283
6284 2004-02-04  Robert Dewar  <dewar@gnat.com>
6285
6286         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
6287         ali.ads, gprcmd.adb: Minor reformatting
6288
6289         * bindgen.adb: Output restrictions string for new style restrictions
6290         handling
6291
6292         * impunit.adb: Add s-rident.ads (System.Rident) and
6293         s-restri (System.Restrictions)
6294
6295         * lib-writ.adb: Fix bug in writing restrictions string (last few
6296         entries wrong)
6297
6298         * s-restri.ads, s-restri.adb: Change name Restrictions to
6299         Run_Time_Restrictions to avoid conflict with package name.
6300         Add circuit to read and acquire run time restrictions.
6301
6302 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
6303
6304         * restrict.ads, restrict.adb: Use the new restriction
6305         No_Task_Attributes_Package instead of the old No_Task_Attributes.
6306
6307         * sem_prag.adb: No_Task_Attributes is a synonym of
6308         No_Task_Attributes_Package.
6309
6310         * snames.ads, snames.adb: New entry for proper handling of
6311         No_Task_Attributes.
6312
6313         * s-rident.ads: Adding restriction No_Task_Attributes_Package
6314         (AI-00249) that supersedes the GNAT specific restriction
6315         No_Task_Attributes.
6316
6317 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
6318
6319         * sem_prag.adb:
6320         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
6321          body, an identifier may be wrapped in an unchecked conversion.
6322
6323 2004-02-04  Vincent Celier  <celier@gnat.com>
6324
6325         * lib-writ.ads: Comment update for the W lines
6326
6327         * bld.adb: (Expression): An empty string list is static
6328
6329         * fname-uf.adb: Minor comment update
6330
6331         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
6332
6333         * gnatbind.adb: Initialize Cumulative_Restrictions with the
6334         restrictions on the target.
6335
6336 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
6337
6338         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
6339         gen_rtx.
6340
6341 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
6342
6343         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
6344
6345 2004-02-02  Vincent Celier  <celier@gnat.com>
6346
6347         * gprcmd.adb (Check_Args): If condition is false, print the invoked
6348         comment before the usage.
6349         Gprcmd: Fail when command is not recognized.
6350         (Usage): Document command "prefix"
6351
6352         * g-md5.adb (Digest): Process last block.
6353         (Update): Do not process last block. Store remaining characters and
6354         length in Context.
6355
6356         * g-md5.ads (Update): Document that several call to update are
6357         equivalent to one call with the concatenated string.
6358         (Context): Add fields to allow new Update behaviour.
6359
6360         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
6361         defaulted to False.
6362         When May_Fail is True and no existing file can be found, return No_File.
6363
6364         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
6365         functions.
6366
6367         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
6368         spec file name instead on the W line.
6369
6370 2004-02-02  Robert Dewar  <dewar@gnat.com>
6371
6372         * ali.adb: Read and acquire info from new format restrictions lines
6373
6374         * bcheck.adb: Add circuits for checking restrictions with parameters
6375
6376         * bindgen.adb: Output dummy restrictions data
6377         To be changed later
6378
6379         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
6380         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
6381         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
6382         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
6383         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
6384
6385         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
6386         the warning message on access to possibly uninitialized variable S)
6387         Minor changes for new restrictions handling.
6388
6389         * gnatbind.adb: Minor reformatting
6390         Minor changes for new restrictions handling
6391         Move circuit for -r processing here from bcheck (cleaner)
6392
6393         * gnatcmd.adb, gnatlink.adb: Minor reformatting
6394
6395         * lib-writ.adb: Output new format restrictions lines
6396
6397         * lib-writ.ads: Document new R format lines for new restrictions
6398         handling.
6399
6400         * s-restri.ads/adb: New files
6401
6402         * Makefile.rtl: Add entry for s-restri.ads/adb
6403
6404         * par-ch3.adb: Fix bad error messages starting with upper case letter
6405         Minor reformatting
6406
6407         * restrict.adb: Major rewrite throughout for new restrictions handling
6408         Major point is to handle restrictions with parameters
6409
6410         * restrict.ads: Major changes in interface to handle restrictions with
6411         parameters. Also generally simplifies setting of restrictions.
6412
6413         * snames.ads/adb: New entry for proper handling of No_Requeue
6414
6415         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
6416         restriction counting.
6417         Other minor changes for new restrictions handling
6418
6419         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
6420         Restriction_Warnings now allows full parameter notation
6421         Major rewrite of Restrictions for new restrictions handling
6422
6423 2004-02-02  Javier Miranda  <miranda@gnat.com>
6424
6425         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
6426         syntax rule for object renaming declarations.
6427         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
6428         component definitions.
6429
6430         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
6431         components.
6432         (Array_Type_Declaration): Give support to access components. In addition
6433         it was also modified to reflect the name of the object in anonymous
6434         array types. The old code did not take into account that it is possible
6435         to have an unconstrained anonymous array with an initial value.
6436         (Check_Or_Process_Discriminants): Allow access discriminant in
6437         non-limited types.
6438         (Process_Discriminants): Allow access discriminant in non-limited types
6439         Initialize the new Access_Definition field in N_Object_Renaming_Decl
6440         node.  Change Ada0Y to Ada 0Y in comments
6441
6442         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
6443         equality operators.
6444         Change Ada0Y to Ada 0Y in comments
6445
6446         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
6447         renamings Change Ada0Y to Ada 0Y in comments
6448
6449         * sem_type.adb (Find_Unique_Type): Give support to the equality
6450         operators for universal access types
6451         Change Ada0Y to Ada 0Y in comments
6452
6453         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
6454
6455         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
6456         field.
6457         (N_Object_Renaming_Declaration): Addition of Access_Definition field
6458         Change Ada0Y to Ada 0Y in comments
6459
6460         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
6461         component definition and object renaming nodes
6462         Change Ada0Y to Ada 0Y in comments
6463
6464 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
6465
6466         * restrict.adb: Use the new restriction identifier
6467         No_Requeue_Statements instead of the old No_Requeue for defining the
6468         restricted profile.
6469
6470         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
6471         No_Requeue_Statements.
6472
6473         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
6474         that supersedes the GNAT specific restriction No_Requeue. The later is
6475         kept for backward compatibility.
6476
6477 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
6478
6479         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
6480         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
6481         pragma and fix incorrect ones.
6482
6483         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
6484         warning if the pragma is redundant.
6485
6486 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
6487
6488         * 5staprop.adb: Add missing 'constant' keywords.
6489
6490         * Makefile.in: use consistent value for SYMLIB on
6491         platforms where libaddr2line is supported.
6492
6493 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6494
6495         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
6496         annotating types.
6497
6498 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
6499
6500         * init.c (__gnat_install_handler): Setup an alternate stack for signal
6501         handlers in the environment thread. This allows proper propagation of
6502         an exception on stack overflows in this thread even when the builtin
6503         ABI stack-checking scheme is used without support for a stack reserve
6504         region.
6505
6506         * utils.c (create_field_decl): Augment the head comment about bitfield
6507         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
6508         here, because the former is not accurate enough at this point.
6509         Let finish_record_type decide instead.
6510         Don't make a bitfield if the field is to be addressable.
6511         Always set a size for the field if the record is packed, to ensure the
6512         checks for bitfield creation are triggered.
6513         (finish_record_type): During last pass over the fields, clear
6514         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
6515         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
6516         from DECL_BIT_FIELD.
6517
6518 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
6519
6520         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
6521         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
6522         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
6523
6524 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6525
6526         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
6527
6528         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
6529         (ZCX_By_Default): Likewise.
6530         (Front_End_ZCX_Support): Likewise.
6531
6532         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
6533         (Initialize_Lock): Mark Level unreferenced.
6534         (Sleep): Mark Reason unreferenced.
6535         (Timed_Sleep): Likewise.
6536         (Wakeup): Likewise.
6537         (Exit_Task): Use Result.
6538         (Check_No_Locks): Mark Self_ID unreferenced.
6539
6540         * 5gtasinf.adb (New_Sproc): Make Attr constant.
6541         (Bound_Thread_Attributes): Make Sproc constant.
6542         (New_Bound_Thread_Attributes): Likewise.
6543
6544 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
6545
6546         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
6547         one-dimensional array an slice assignments, when component type is
6548         controlled.
6549
6550         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
6551         component type is controlled, and control_actions are in effect, use
6552         TSS procedure rather than generating inline code.
6553
6554         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
6555         arrays with controlled components.
6556
6557 2004-01-26  Vincent Celier  <celier@gnat.com>
6558
6559         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
6560         command line for the non VMS case.
6561
6562         * gnatlink.adb (Process_Binder_File): When building object file, if
6563         GNU linker is used, put all object paths between quotes, to prevent ld
6564         error when there are unusual characters (such as '!') in the paths.
6565
6566         * Makefile.generic: When there are sources in Ada and the main is in
6567         C/C++, invoke gnatmake with -B, instead of -z.
6568
6569         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
6570         from VMS_Conversion.
6571         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
6572         specification of argument file on the command line.
6573
6574 2004-01-26  Bernard Banner  <banner@gnat.com>
6575
6576         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
6577
6578 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
6579
6580         * snames.adb: Update copyright notice.
6581         Add info on slice assignment for controlled arrays.
6582
6583 2004-01-23  Robert Dewar  <dewar@gnat.com>
6584
6585         * exp_aggr.adb: Minor reformatting
6586
6587         * exp_ch9.adb: Minor code clean up
6588         Minor reformatting
6589         Fix bad character in comment
6590
6591         PR ada/13471
6592         * targparm.adb (Get_Target_Parameters): Give clean abort error on
6593         unexpected end of file, along with more detailed message.
6594
6595 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6596
6597         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
6598         PAT.
6599
6600         * decl.c (copy_alias_set): New function.
6601         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
6602
6603 2004-01-23  Doug Rupp  <rupp@gnat.com>
6604
6605         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
6606         lib$${file} in case subsequent character is not a separator.
6607
6608 2004-01-23  Vincent Celier  <celier@gnat.com>
6609
6610         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
6611         when the GCC version is at least 3.
6612
6613         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
6614         Remove all "Opt.", to prepare for opt split
6615
6616         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
6617         Extends_All. Set to True when the project parsed is an extending all
6618         project. Fails for importing an extending all project only when the
6619         imported project is an extending all project.
6620         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
6621         depending on the value of Extends_All returned.
6622
6623         * prj-proc.adb (Process): Check that no project shares its object
6624         directory with a project that extends it, directly or indirectly,
6625         including a virtual project.
6626         Check that no project extended by another project shares its object
6627         directory with another also extended project.
6628
6629         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
6630         Kind = N_With_Clause
6631
6632         * prj-tree.ads: Minor reformatting
6633         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
6634
6635 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
6636
6637         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
6638         applies to a type with an incomplete view, use full view in Name of
6639         clause, for consistency with uses of Get_Attribute_Definition_Clause.
6640
6641 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
6642
6643         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
6644         SCHED_RR, since other values are not supported by this policy.
6645         (Initialize): Move initialization of mutex attribute to package
6646         elaboration, to prevent early access to this variable.
6647
6648         * Makefile.in: Remove mention of Makefile.adalib, unused.
6649
6650         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
6651         1ssecsta.ads: Removed, unused.
6652
6653 2004-01-21  Javier Miranda  <miranda@gnat.com>
6654
6655         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
6656         entity if already built in the current scope.
6657
6658         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
6659         reminder in internal scopes. Required for nested limited aggregates.
6660
6661 2004-01-21  Doug Rupp  <rupp@gnat.com>
6662
6663         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
6664         VMS. Replace all occurences of libgnat- and libgnarl- with
6665         libgnat$(hyphen) and libgnarl$(hyphen).
6666         Fixed shared library build problem on VMS.
6667
6668 2004-01-21  Robert Dewar  <dewar@gnat.com>
6669
6670         * mlib-prj.adb: Minor reformatting
6671
6672 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
6673
6674         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
6675         'constant' keywords for declaration of pointers that are not modified.
6676
6677         * exp_pakd.adb: Fix English in comment.
6678
6679 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
6680
6681         PR ada/10889
6682         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
6683         copy all attributes of the parent, including the foreign language
6684         convention.
6685
6686 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
6687
6688         PR ada/10565
6689         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
6690         for 'delay until' statement.
6691
6692 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
6693
6694         * Make-lang.in: Replace $(docdir) with doc.
6695         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
6696         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
6697         to use consistent MAKEINFO rule.
6698         (ada.man, ada.srcman): Dummy entry.
6699         (ADA_INFOFILES): Define.
6700         (ada.info, ada.srcinfo): New rules.
6701
6702 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
6703
6704         * utils.c: Update copyright notice, missed in previous change.
6705
6706 2004-01-19  Vincent Celier  <celier@gnat.com>
6707
6708         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
6709         args if Bind is True. Set First_ALI, if not already done.
6710         (Build_Library): For Stand Alone Libraries, extract from one ALI file
6711         an eventual --RTS switch, for gnatbind, and all backend switches +
6712         --RTS, for linking.
6713
6714 2004-01-19  Robert Dewar  <dewar@gnat.com>
6715
6716         * sem_attr.adb, memtrack.adb: Minor reformatting
6717
6718 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
6719
6720         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
6721         that rename enumeration literals. This is properly done in sem_eval.
6722
6723         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
6724         to functions that rename enumeration literals.
6725
6726         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
6727         functions that rename enumeration literals.
6728
6729 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
6730
6731         * Make-lang.in (utils.o): Depend on target.h.
6732         * utils.c: Include target.h.
6733         (process_attributes): Use targetm.have_named_sections instead
6734         of ASM_OUTPUT_SECTION_NAME.
6735
6736 2004-01-16  Andreas Jaeger  <aj@suse.de>
6737
6738         * Makefile.in: Add $(DESTDIR).
6739
6740 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
6741
6742         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
6743         also when not defining if a Size clause applies. That information is
6744         not to be ignored.
6745
6746 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
6747
6748         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
6749         symbolic links for the shared gnat run time when needed.
6750
6751 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
6752
6753         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
6754         for writing, and terminate with an error message if not.
6755
6756 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
6757
6758         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
6759         warning on an access to subprogram in an instance, when the target
6760         type is declared in the same generic unit.
6761         (Eval_Attribute): If 'access is known to fail accessibility check,
6762         rewrite as a raise statement.
6763
6764 2004-01-15  GNAT Script  <nobody@gnat.com>
6765
6766         * Make-lang.in: Makefile automatically updated
6767
6768 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
6769
6770         * Make-lang.in (ada.srcextra): Dummy entry.
6771
6772 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
6773
6774         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
6775
6776 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
6777
6778         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
6779         components that are initialized with aggregates.
6780
6781 2004-01-13  Vincent Celier  <celier@gnat.com>
6782
6783         * gnatlink.adb (Process_Binder_File): To find directory of shared
6784         libgcc, if "gcc-lib" is not a subdirectory, look for the last
6785         subdirectory "lib" in the path of the shared libgnat or libgnarl.
6786
6787         * make.adb (Gnatmake): If GCC version is at least 3, link with
6788         -shared-libgcc, when there is at least one shared library project.
6789
6790         * opt.ads (GCC_Version): New integer constant.
6791
6792         * adaint.c (get_gcc_version): New function.
6793
6794 2004-01-13  Robert Dewar  <dewar@gnat.com>
6795
6796         * sem_dist.adb, sem_res.adb, sem_util.adb,
6797         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
6798         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
6799
6800 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
6801
6802         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
6803         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
6804         declarations.
6805
6806 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
6807
6808         * misc.c: Remove trailing spaces.
6809         Update copyright notice missed in previous change.
6810
6811         PR ada/13572
6812         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
6813         prefix/share/make
6814
6815         * Makefile.generic: Update copyright.
6816         Add license notice.
6817
6818         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
6819         of prefix/share/make.
6820
6821         * Makefile.prolog: Update copyright.
6822         Add license notice.
6823
6824 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
6825
6826         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
6827         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
6828         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
6829         instead of String.
6830
6831         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
6832         signature.
6833
6834 2004-01-12  Javier Miranda  <miranda@gnat.com>
6835
6836         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
6837         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
6838         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
6839         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
6840         Component_Definition node.
6841
6842 2004-01-12  Ed Falis  <falis@gnat.com>
6843
6844         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
6845
6846 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
6847
6848         * link.c: Change default libgnat kind to STATIC for FreeBSD.
6849
6850 2004-01-12  Bernard Banner  <banner@gnat.com>
6851
6852         * Makefile.in: map 86numaux to a-numaux for x86_64
6853
6854 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
6855
6856         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
6857         generated to rename a generic actual, go to the actual itself, the
6858         subtype is not a user-visible entity.
6859
6860         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
6861         part is a private subtype, reset the visibility of its full view, if
6862         any, to be consistent.
6863
6864         PR ada/13417
6865         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
6866         to use a generic package G as a formal package for another generic
6867         declared within G.
6868
6869 2004-01-12  Robert Dewar  <dewar@gnat.com>
6870
6871         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
6872
6873         * usage.adb: Remove mention of obsolete -gnatwb switch
6874         Noticed during code reading
6875
6876 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
6877
6878         * 1ssecsta.adb: Minor changes for -gnatwa warnings
6879
6880 2004-01-12  GNAT Script  <nobody@gnat.com>
6881
6882         * Make-lang.in: Makefile automatically updated
6883
6884 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
6885
6886         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
6887
6888 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6889
6890         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
6891
6892 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
6893
6894         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
6895         Update comment and copyright date.
6896         * stamp-xgnatug: Delete.
6897
6898 2004-01-05  Robert Dewar  <dewar@gnat.com>
6899
6900         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
6901         be modified by the binder generated main program if the -D switch is
6902         used.
6903
6904         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
6905         imported functions (since now we expect this to be done for imported
6906         functions)
6907
6908         * 5vtaprop.adb: Add several ??? for sections requiring more comments
6909         Minor reformatting throughout
6910
6911         * 5zinit.adb: Minor reformatting
6912         Add 2004 to copyright date
6913         Minor changes to avoid -gnatwa warnings
6914         Correct some instances of using OR instead of OR ELSE (noted while
6915         doing reformatting)
6916
6917         * sprint.adb: Minor updates to avoid -gnatwa warnings
6918
6919         * s-secsta.ads, s-secsta.adb:
6920         (SS_Get_Max): New function to obtain high water mark for ss stack
6921         Default_Secondary_Stack is not a constant since it may be modified by
6922         the binder generated main program if the -D switch is used.
6923
6924         * switch-b.adb: New -Dnnn switch for binder
6925
6926         * switch-c.adb:
6927         Make -gnatg imply all warnings currently in -gnatwa
6928
6929         * vms_conv.adb: Minor reformatting
6930         Add 2004 to copyright notice
6931         Add 2004 to printed copyright notice
6932
6933         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
6934         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
6935         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
6936         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
6937         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
6938         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
6939         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
6940         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
6941         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
6942         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
6943         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
6944         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
6945         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
6946         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
6947         checks.adb, clean.adb, cstand.adb, einfo.ads,
6948         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
6949         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
6950         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
6951         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
6952         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
6953         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
6954         Minor reformatting and code clean ups.
6955         Minor changes to prevent -gnatwa warnings
6956
6957         * ali.adb: Minor reformatting and cleanup of code
6958         Acquire new SS indication of secondary stack use from ali files
6959
6960         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
6961         (since now we expect this to be done for imported functions)
6962
6963         * bindgen.adb: Generate call to modify default secondary stack size if
6964         -Dnnn switch given
6965
6966         * bindusg.adb: Add line for new -D switch
6967
6968         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
6969         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
6970         Add circuitry for both records and arrays to avoid gigi
6971         processing if the type involved has non-bit-aligned components
6972
6973         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
6974         N_String_Literal node always references an E_String_Literal_Subtype
6975         entity. This may not be true in the future.
6976         (Possible_Bit_Aligned_Component): Move processing of
6977         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
6978
6979         * exp_ch6.adb (Expand_Thread_Body): Pick up
6980         Default_Secondary_Stack_Size as variable so that we get value modified
6981         by possible -Dnnn binder parameter.
6982
6983         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
6984         (Type_May_Have_Bit_Aligned_Components): New function.
6985
6986         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
6987         (Type_May_Have_Bit_Aligned_Components): New function.
6988
6989         * fe.h: (Set_Identifier_Casing): Fix prototype.
6990         Add declaration for Sem_Elim.Eliminate_Error_Msg.
6991         Minor reformatting.
6992
6993         * freeze.adb (Freeze_Entity): Add RM reference to error message about
6994         importing constant atomic/volatile objects.
6995         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
6996         unless explicit Pure_Function pragma given, to avoid insidious bug of
6997         call to non-pure imported function getting eliminated.
6998
6999         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
7000         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
7001         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
7002         Add 2004 to printed copyright notice
7003
7004         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
7005         stack used.
7006
7007         * Makefile.rtl: Add entry for g-sestin.o
7008         g-sestin.ads: New file.
7009
7010         * mdll.adb: Minor changes to avoid -gnatwa warnings
7011
7012         * mlib-tgt.adb: Minor reformatting
7013
7014         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
7015         New switch Sec_Stack_Used (GNAT, GNATBIND)
7016         Make Default_Secondary_Stack_Size a variable instead of a constant,
7017         so that it can be modified by the new -Dnnn bind switch.
7018
7019         * rtsfind.adb (Load_Fail): Give full error message in configurable
7020         run-time mode if all_errors mode is set. This was not done in the case
7021         of a file not found, which was an oversight.
7022         Note if secondary stack unit is used by compiler.
7023
7024         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
7025         ineffective elaborate all pragmas on non-visible packages (this
7026         happened when a renamed subprogram was called). Now the elaborate all
7027         always goes on the package containing the renaming rather than the one
7028         containing the renamed subprogram.
7029
7030         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
7031         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
7032
7033         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
7034         has an Etype that references an E_String_Literal.
7035         (Eval_String_Literal): Avoid assumption that N_String_Literal node
7036         always references an E_String_Literal_Subtype entity. This may not
7037         be true in the future.
7038
7039         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
7040         pragma location.
7041
7042         * sem_res.adb (Resolve): Specialize msg for function name used in proc
7043         call.
7044
7045 2004-01-05  Ed Falis  <falis@gnat.com>
7046
7047         * g-debuti.adb: Replaced direct boolean operator with short-circuit
7048         form.
7049
7050 2004-01-05  Vincent Celier  <celier@gnat.com>
7051
7052         * bld.adb: Minor comment updates
7053         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
7054         of Item_Name).
7055
7056         * make.adb (Gnatmake): Special process for files to compile/check when
7057         -B is specified. Fail when there are only foreign mains in attribute
7058         Main of the project file and -B is not specified. Do not skip bind/link
7059         steps when -B is specified.
7060
7061         * makeusg.adb: Document new switch -B
7062
7063         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
7064
7065         * switch-m.adb: (Scan_Make_Switches): Process -B switch
7066
7067         * vms_data.ads: Add new GNAT PRETTY qualifier
7068         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
7069
7070 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7071
7072         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
7073         case.
7074
7075         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
7076         Set_Identifier_Casing.
7077
7078         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
7079         has size that overflows.
7080
7081 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
7082
7083         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
7084         -gnatwa warning on static condition.
7085
7086 2004-01-05  Doug Rupp  <rupp@gnat.com>
7087
7088         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
7089
7090 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
7091
7092         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
7093         all attributes, including read-only attribute.
7094
7095 2004-01-05  Pascal Obry  <obry@gnat.com>
7096
7097         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
7098         library naming scheme.
7099
7100         * mlib-prj.adb (Build_Library): Generate different names for the static
7101         or dynamic version of the GNAT runtime. This is needed to support the
7102         new shared library naming scheme.
7103         (Process_Binder_File): Add detection of shared library in binder file
7104         based on the new naming scheme.
7105
7106         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
7107         scheme for the shared runtime libraries.
7108
7109         * Makefile.in:
7110         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
7111         scheme.
7112         (install-gnatlib): Do not create symlinks for shared libraries.
7113         (gnatlib-shared-default): Idem.
7114         (gnatlib-shared-dual-win32): New target. Not used for now as the
7115         auto-import feature does not support arrays/records.
7116         (gnatlib-shared-win32): Do not create copy for the shared libraries.
7117         (gnatlib-shared-vms): Fix shared runtime libraries names.
7118
7119         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
7120         dependent runtime shared library name.
7121
7122 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
7123
7124         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
7125         than the object.
7126
7127 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
7128
7129         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
7130         protected objects when allocator has a subtype indication, not a
7131         qualified expression. Note that qualified expressions may have to be
7132         checked when limited aggregates are implemented.
7133
7134         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
7135         pure, emit warning.
7136         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
7137         subprogram is imported, remove warning.
7138
7139 2004-01-05  Geert Bosch  <bosch@gnat.com>
7140
7141         * s-poosiz.adb: Update copyright notice.
7142         (Allocate): Use Task_Lock to protect against concurrent access.
7143         (Deallocate): Likewise.
7144
7145 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
7146
7147         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
7148         comment.
7149
7150 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
7151
7152         * gnat_ug.texi: Force a CVS commit by updating copyright.
7153         * gnat_ug_vxw.texi: Regenerate.
7154         * gnat_ug_wnt.texi: Regenerate.
7155         * gnat_ug_vms.texi: Regenerate.
7156         * gnat_ug_unx.texi: Regenerate.
7157
7158 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
7159
7160         * trans.c: Remove uses of "register" specifier in
7161         declarations of local variables.
7162
7163 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
7164
7165         * stamp-xgnatug: New stamp file.
7166         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
7167         (ada/doctools/xgnatug): Add $(build_exeext).
7168         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
7169         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
7170
7171 2003-12-17  Ed Falis  <falis@gnat.com>
7172
7173         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
7174         eliminate warning.
7175
7176         * a-exextr.adb: Add context clause for
7177         Ada.Exceptions.Last_Chance_Handler.
7178
7179 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
7180
7181         * cstand.adb (Create_Standard): Change the way how the declaration of
7182         the Duration type is created (making it the same way as it is for all
7183         the other standard types).
7184
7185 2003-12-17  Robert Dewar  <dewar@gnat.com>
7186
7187         * s-crtl.ads: Fix header format
7188         Change Pure to Preelaborate
7189
7190 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
7191
7192         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
7193         the expression type only if it is declared in the current unit.
7194
7195         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
7196         are universal and already analyzed, as can occur in constrained
7197         subcomponents that depend on discriminants, when one constraint is a
7198         subtype mark.
7199
7200         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
7201         type Any_Fixed is legal as the argument of a conversion, if only one
7202         fixed-point type is in context.
7203
7204 2003-12-17  GNAT Script  <nobody@gnat.com>
7205
7206         * Make-lang.in: Makefile automatically updated
7207
7208 2003-12-15  Robert Dewar  <dewar@gnat.com>
7209
7210         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
7211         sec stack size.
7212
7213 2003-12-15  Vincent Celier  <celier@gnat.com>
7214
7215         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
7216         (Gnatchop): Do not set failure status when reporting the number of
7217         warnings.
7218
7219 2003-12-15  Doug Rupp  <rupp@gnat.com>
7220
7221         * s-ctrl.ads: New file.
7222
7223         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
7224
7225         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
7226         (GNATBIND_OBJS): Add ada/s-crtl.o.
7227
7228         * Makefile.in [VMS]: Clean up ifeq rules.
7229
7230         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
7231         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
7232         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
7233         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
7234         s-tasdeb.adb: Update copyright.
7235         Import System.CRTL.
7236         Make minor modifications to use System.CRTL declared functions instead
7237         of importing locally.
7238
7239 2003-12-15  GNAT Script  <nobody@gnat.com>
7240
7241         * Make-lang.in: Makefile automatically updated
7242
7243 2003-12-11  Ed Falis  <falis@gnat.com>
7244
7245         * 5zinit.adb: Clean up.
7246
7247         * 5zintman.adb (Notify_Exception): replaced case statement with a call
7248         to __gnat_map_signal, imported from init.c to support
7249         signal -> exception mappings that depend on the vxWorks version.
7250
7251         * init.c:
7252         Created and exported __gnat_map_signal to support signal -> exception
7253         mapping that is dependent on the VxWorks version.
7254         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
7255
7256 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
7257
7258         * 5wosinte.ads: Link with -mthreads switch.
7259
7260 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
7261
7262         * init.c (__gnat_install_handler [NetBSD]): Set
7263         __gnat_handler_installed, as done on all other platforms.
7264         Remove duplicated code.
7265
7266 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
7267
7268         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
7269
7270 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
7271
7272         * sinfo.ads: Fix inconsistent example code in comment.
7273
7274 2003-12-11  Robert Dewar  <dewar@gnat.com>
7275
7276         * a-tiinau.adb: Add a couple of comments
7277
7278         * sem_ch3.adb: Minor reformatting
7279
7280         * sem_prag.adb:
7281         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
7282         Minor reformatting throughout
7283
7284 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
7285
7286         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
7287         bounds of a loop, create a separate block in order to generate proper
7288         cleanup actions to prevent memory leaks.
7289
7290         * sem_res.adb (Resolve_Call): After a call to
7291         Establish_Transient_Scope, the call may be rewritten and relocated, in
7292         which case no further processing is needed.
7293
7294         * sem_util.adb: (Wrong_Type): Refine previous fix.
7295          Fixes ACATS regressions.
7296
7297         PR ada/13353
7298
7299         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
7300         be inlined.
7301
7302 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
7303
7304         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
7305         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
7306         obsolete files.
7307
7308         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
7309         (rts-zfp): Ditto.
7310
7311 2003-12-08  Robert Dewar  <dewar@gnat.com>
7312
7313         * 7sintman.adb: Minor reformatting
7314
7315         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
7316         standard linker options to get standard libraries linked. We now plan
7317         to provide dummy versions of these libraries to match the appropriate
7318         configurable run-time (e.g. if a library is not needed at all, provide
7319         a dummy empty library).
7320
7321         * targparm.ads: Configurable_Run_Time mode no longer affects linker
7322         options (-L parameters and standard libraries). What we plan to do is
7323         to provide dummy libraries where the libraries are not required.
7324
7325         * gnatbind.adb: Minor comment improvement
7326
7327 2003-12-08  Javier Miranda  <miranda@gnat.com>
7328
7329         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
7330         aggregate in the parent. Otherwise constants with limited aggregates
7331         are not supported. Add new formal to pass the component type (Ctype).
7332         It is required to call the corresponding IP subprogram in case of
7333         default initialized components.
7334         (Gen_Assign): In case of default-initialized component, generate a
7335         call to the IP subprogram associated with the component.
7336         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
7337         of aggregate with default initialized components.
7338         (Has_Default_Init_Comps): Improve implementation to recursively check
7339         all the present expressions.
7340
7341         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
7342         to indicate that the initialization call corresponds to a
7343         default-initialized component of an aggregate.
7344         In case of default initialized aggregate with tasks this parameter is
7345         used to generate a null string (this is just a workaround that must be
7346         improved later). In case of discriminants, this parameter is used to
7347         generate a selected component node that gives access to the discriminant
7348         value.
7349
7350         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
7351         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
7352         allocated aggregates with default-initialized components.
7353
7354         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
7355         the box notation is used in positional aggregates.
7356
7357 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
7358
7359         * lib.ads: Fix typo in comment
7360
7361 2003-12-08  Vincent Celier  <celier@gnat.com>
7362
7363         * prj.adb (Project_Empty): New component Unkept_Comments
7364         (Scan): Remove procedure; moved to Prj.Err.
7365
7366         * prj.ads (Project_Data): New Boolean component Unkept_Comments
7367         (Scan): Remove procedure; moved to Prj.Err.
7368
7369         * prj-dect.adb: Manage comments for the different declarations.
7370
7371         * prj-part.adb (With_Record): New component Node
7372         (Parse): New Boolean parameter Store_Comments, defaulted to False.
7373         Set the scanner to return ends of line and comments as tokens, if
7374         Store_Comments is True.
7375         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
7376         comments are associated with these nodes. Store the node IDs in the
7377         With_Records.
7378         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
7379         With_Records.
7380         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
7381         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
7382         current project. Call Tree.Restore afterwards. Set the various nodes
7383         for comment storage (Next_End, End_Of_Line, Previous_Line,
7384         Previous_End).
7385
7386         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
7387         defaulted to False.
7388
7389         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
7390         to False. When Truncated is True, truncate the string, never go to the
7391         next line.
7392         (Write_End_Of_Line_Comment): New procedure
7393         (Print): Process comments for nodes N_With_Clause,
7394         N_Package_Declaration, N_String_Type_Declaration,
7395         N_Attribute_Declaration, N_Typed_Variable_Declaration,
7396         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
7397         Process nodes N_Comment.
7398
7399         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
7400         without comments and there are some comments, set the flag
7401         Unkept_Comments to True.
7402         (Scan): If there are comments, set the flag Unkept_Comments to True and
7403         clear the comments.
7404         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
7405         (Next_End_Nodes: New table
7406         (Comment_Zones_Of): New function
7407         (Scan): New procedure; moved from Prj. Accumulate comments in the
7408         Comments table and set end of line comments, comments after, after end
7409         and before end.
7410         (Add_Comments): New procedure
7411         (Save, Restore, Seset_State): New procedures
7412         (There_Are_Unkept_Comments): New function
7413         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
7414         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
7415         procedures.
7416         (First_Comment_After, First_Comment_After_End): New functions
7417         (First_Comment_Before, First_Comment_Before_End): New functions
7418         (Next_Comment): New function
7419         (End_Of_Line_Comment, Follows_Empty_Line,
7420         Is_Followed_By_Empty_Line): New functions
7421         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
7422         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
7423         (Set_Next_Comment): New procedure
7424         (Default_Project_Node): Associate comment before if the node can store
7425         comments.
7426
7427         * scans.ads (Token_Type): New enumeration value Tok_Comment
7428         (Comment_Id): New global variable
7429
7430         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
7431         defaulted to False.
7432         (Scan): Store position of start of comment. If comments are tokens, set
7433         Comment_Id and set Token to Tok_Comment when scanning a comment.
7434         (Set_Comment_As_Token): New procedure
7435
7436         * sinput-p.adb: Update Copyright notice
7437         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
7438         that no longer exists.
7439
7440 2003-12-08  Javier Miranda  <miranda@gnat.com>
7441
7442         * sem_aggr.adb: Add dependence on Exp_Tss package
7443         Correct typo in comment
7444         (Resolve_Aggregate): In case of array aggregates set the estimated
7445         type of the aggregate before calling resolve. This is needed to know
7446         the name of the corresponding IP in case of limited array aggregates.
7447         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
7448         in case of default initialized array components.
7449
7450         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
7451         types. Required to give support to limited aggregates in generic
7452         formals.
7453
7454 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
7455
7456         * sem_ch3.adb (Check_Initialization): For legality purposes, an
7457         inlined body functions like an instantiation.
7458         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
7459         until bounds are analyzed, to diagnose premature use of type.
7460
7461         * sem_util.adb (Wrong_Type): Improve error message when the type of
7462         the expression is used prematurely.
7463
7464 2003-12-08  GNAT Script  <nobody@gnat.com>
7465
7466         * Make-lang.in: Makefile automatically updated
7467
7468 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
7469
7470         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
7471         they are automatically generated by Make-lang.in and cause nothing but
7472         maintenance troubles.
7473
7474 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
7475
7476         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
7477         version of this unit).
7478
7479 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
7480
7481         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
7482         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
7483         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
7484         the body of System.Interrupt_Management common to several targets.
7485         Update copyright notice when appropriate.
7486
7487         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
7488         constant.
7489
7490         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
7491         to ensure that the kernel fills in the interrupted context structure
7492         before calling a signal handler, which is necessary to be able to
7493         unwind past it. Update the copyright notice.
7494
7495 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
7496
7497         * a-elchha.ads: New file.
7498
7499         * a-elchha.adb: New default last chance handler. Contents taken from
7500         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
7501
7502         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
7503         is moved to a-elchha.adb to provide a target-independent default last
7504         chance handler.
7505
7506         * Makefile.rtl: Add a-elchha.o
7507
7508         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
7509
7510 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
7511
7512         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
7513         declared in an instance, do not inline the call if the instance is not
7514         frozen yet, to prevent order of elaboration problems.
7515
7516         * sem_prag.adb: Add comments for previous fix.
7517
7518 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
7519
7520         * g-table.adb: Use the right variable in Set_Item.
7521         Update copyright notice.
7522
7523 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
7524
7525         * Makefile.in: Remove unused rules.
7526
7527 2003-12-05  Vincent Celier  <celier@gnat.com>
7528
7529         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
7530         -nostdlib. Not needed here after all.
7531
7532 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
7533
7534         PR ada/11724
7535
7536         * adaint.h, adaint.c, g-os_lib.ads:
7537         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
7538         on some platforms (including FreeBSD), it is a 64 bit value.
7539         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
7540
7541 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
7542
7543         * gnatvsn.ads (Library_Version): Now contain only the relevant
7544         version info.
7545         (Verbose_Library_Version): New constant.
7546
7547         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
7548         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
7549         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
7550
7551         * gnatlbr.adb: Clean up: replace Library_Version by
7552         Verbose_Library_Version.
7553
7554         * make.adb, lib-writ.adb, exp_attr.adb:
7555         Clean up: replace Library_Version by Verbose_Library_Version.
7556
7557         * 5lintman.adb: Removed.
7558
7559         * Makefile.in:
7560         Update and simplify computation of LIBRARY_VERSION.
7561         Fix computation of GSMATCH_VERSION.
7562         5lintman.adb is no longer used: replaced by 7sintman.adb.
7563
7564 2003-12-03  Robert Dewar  <dewar@gnat.com>
7565
7566         * exp_ch5.adb:
7567         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
7568         name. Modified to consider small non-bit-packed arrays as troublesome
7569         and in need of component-by-component assigment expansion.
7570
7571 2003-12-03  Vincent Celier  <celier@gnat.com>
7572
7573         * lang-specs.h: Process nostdlib as nostdinc
7574
7575         * back_end.adb: Update Copyright notice
7576         (Scan_Compiler_Arguments): Process -nostdlib directly.
7577
7578 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
7579
7580         * Makefile.in:
7581         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
7582         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
7583         included in HIE_NONE_TARGET_PAIRS.
7584
7585 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
7586
7587         * sem_attr.adb:
7588         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
7589         is legal in an instance, because legality is cheched in the template.
7590
7591         * sem_prag.adb:
7592         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
7593         appplied to an unchecked conversion of a formal parameter.
7594
7595         * sem_warn.adb:
7596         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
7597         variables.
7598
7599 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
7600
7601         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
7602         routines. The second one is new functionality to deal with backtracing
7603         through signal handlers.
7604         (unwind): Split into the two separate subroutines above.
7605         Update the documentation, and deal properly with sizeof (REG) different
7606         from sizeof (void*).
7607
7608 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
7609
7610         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
7611         so that the debugger can reliably access the value of the parameter,
7612         and therefore is able to display the exception name when an exception
7613         breakpoint is reached.
7614
7615 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
7616
7617         * fmap.adb: Fix typo in warning message.
7618
7619         * g-socket.ads, g-socket.adb: Make Free a visible instance of
7620         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
7621
7622 2003-12-01  Vincent Celier  <celier@gnat.com>
7623
7624         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
7625         ther is no Afile.
7626         (Build_Library): Get the switches only if Default_Switches is declared
7627         in package Binder.
7628
7629 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
7630
7631         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
7632         actuals that are indexed components, reanalyze actual to ensure that
7633         packed array references are properly expanded.
7634
7635         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
7636         attempted assignment to a discriminant.
7637
7638 2003-12-01  Robert Dewar  <dewar@gnat.com>
7639
7640         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
7641         reformatting.
7642
7643         * switch-c.adb: Minor reformatting of comments
7644
7645 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
7646
7647         * Makefile.in: Clean ups.
7648
7649 2003-12-01  GNAT Script  <nobody@gnat.com>
7650
7651         * Make-lang.in: Makefile automatically updated
7652
7653 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
7654
7655         * 5wsystem.ads: Disable zero cost exception, not ready yet.
7656
7657 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
7658
7659         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
7660         to force serialization.
7661
7662 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
7663
7664         * g-socket.ads, g-socket.adb:
7665         Clarify documentation of function Stream. Introduce a Free procedure
7666         to release the returned Stream once it becomes unused.
7667
7668         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
7669
7670 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
7671
7672         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
7673         since NT 4 cannot handle timeout values that are too large,
7674         e.g. DWORD'Last - 1.
7675
7676 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
7677
7678         * exp_ch4.adb:
7679         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
7680         in procedure calls and whose expansion must be deferred.
7681
7682         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
7683         is in exp_ch4.
7684
7685         * sem_ch3.adb:
7686         (Build_Derived_Array_Type): Create operator for unconstrained type
7687         if ancestor is unconstrained.
7688
7689 2003-11-26  Vincent Celier  <celier@gnat.com>
7690
7691         * make.adb (Project_Object_Directory): New global variable
7692         (Change_To_Object_Directory): New procedure
7693         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
7694         of Change_Dir directly. Do not change working directory to object
7695         directory of main project after each compilation.
7696         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
7697         directly.
7698         Change to object directory of main project before binding step.
7699         (Initialize): Initialize Project_Object_Directory to No_Project
7700
7701         * mlib-prj.adb:
7702         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
7703         binding a Stand-Alone Library.
7704
7705         * output.adb: Update Copyright notice
7706         (Write_Char): Output buffer when full
7707
7708 2003-11-26  Robert Dewar  <dewar@gnat.com>
7709
7710         * sem_ch13.adb: (Check_Size): Reset size if size is too small
7711
7712         * sem_ch13.ads:
7713         (Check_Size): Fix documentation to include bit-packed array case
7714
7715         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
7716
7717         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
7718
7719         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
7720
7721 2003-11-24  Arnaud Charlet <charlet@act-europe.fr>
7722
7723         PR ada/13142
7724         * utils.c (init_gigi_decls): Change name of built-in setjmp to
7725         __builtin_setjmp, since this is apparently needed by recent
7726         non Ada changes.
7727
7728 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7729
7730         * adadecode.c: Only include ctype.h if not IN_GCC.
7731         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
7732
7733 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
7734
7735         * Makefile.in:
7736         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
7737         signals and interrupts.
7738
7739         * 5zintman.ads: New File.
7740
7741         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
7742         add exception signals to the set of unmasked signals.
7743
7744         * 5ztaprop.adb:
7745         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
7746         between signals and interrupts.
7747         Add to Unblocked_Signal_Mask the set of signals that are in
7748         Keep_Unmasked.
7749
7750         * 7sinmaop.adb:
7751         Adding a check to see whether the Interrupt_ID we want to unmask is in
7752         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
7753         reason is that the index type of the Keep_Unmasked array is not always
7754         Interrupt_ID; it may be a subtype of Interrupt_ID.
7755
7756 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
7757
7758         * exp_util.adb:
7759         (Remove_Side_Effects): Condition constantness of object created for a
7760          an unchecked type conversion on the constantness of the expression
7761          to ensure the correct value for 'Constrained when passing components
7762          of view-converted class-wide objects.
7763
7764 2003-11-24  Robert Dewar  <dewar@gnat.com>
7765
7766         * par-load.adb (Load): Improve handling of misspelled and missing units
7767         Removes several cases of compilation abandoned messages
7768
7769         * lib.adb: (Remove_Unit): New procedure
7770
7771         * lib.ads: (Remove_Unit): New procedure
7772
7773         * lib-load.adb: Minor reformatting
7774
7775 2003-11-24  Vincent Celier  <celier@gnat.com>
7776
7777         * make.adb:
7778         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
7779         (Marking_Label): Label to mark processed source files. Incremented for
7780         each executable.
7781         (Gnatmake): Increase Marking_Labet for each executable
7782         (Is_Marked): Compare against marking label
7783         (Mark): Mark with marking label
7784
7785 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
7786
7787         * s-thread.ads:
7788         Move the declaration of the TSD for System.Threads to System.Soft_Links.
7789         Add some comments.
7790
7791         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
7792         (rts-cert): build a single relocatable object for the run-time lib.
7793         Fix perms.
7794
7795 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
7796
7797         * Make-lang.in:
7798         Use gnatls rather than gcc to obtain the location of GNAT RTL for
7799         crosstools build.
7800
7801 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
7802
7803         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
7804         can not use it as before (that is, as a variable) when dumping it into
7805         the tree file. Add a local variable to store the result of this
7806         function and to be used as the string to be written into the tree.
7807
7808         * scn.adb (Initialize_Scanner): Add comments explaining the recent
7809         changes.
7810
7811         * sinput.adb (Source_First, Source_Last): In case of
7812         Internal_Source_File, replace returning attributes of
7813         Internal_Source_Ptr (which is wrong) with returning attributes of
7814         Internal_Source.
7815
7816 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
7817
7818         * sem_ch3.adb:
7819         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
7820         used for implicit concatenation operators.
7821         Code cleanup.
7822
7823         * sem_elab.adb:
7824         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
7825         task bodies that are in the scope of a Suppress pragma.
7826         (Check_A Call): Use the flag to prevent spurious elaboration checks.
7827
7828         * sinfo.ads, sinfo.adb:
7829         New flag No_Elaboration_Check on function/procedure calls, to properly
7830         suppress checks on calls in task bodies that are within a local suppress
7831         pragma.
7832
7833         * exp_ch4.adb:
7834         (Expand_Concatenate_Other): Use the proper integer type for the
7835         expression for the upper bound, to avoid universal_integer computations
7836         when possible.
7837
7838 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
7839
7840         * .cvsignore: Delete.
7841
7842 2003-11-21  Andreas Schwab  <schwab@suse.de>
7843
7844         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
7845
7846 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
7847
7848         * 5wsystem.ads: Enable zero cost exception.
7849
7850 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
7851
7852         * 5ztiitho.adb: Remove an unreferenced variable.
7853
7854 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
7855
7856         * adaint.c: For FreeBSD, use mkstemp.
7857
7858 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
7859
7860         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
7861
7862 2003-11-21  Robert Dewar  <dewar@gnat.com>
7863
7864         * bld.adb: Remove useless USE of gnatvsn
7865
7866         * gnatchop.adb: Minor reformatting
7867         Clean up version handling to be more consistent
7868
7869         * gnatxref.adb: Minor reformatting
7870
7871         * gprcmd.adb: Minor reformatting
7872         Fix output of copyright to be more consistent with other tools
7873
7874 2003-11-21  Vincent Celier  <celier@gnat.com>
7875
7876         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
7877
7878 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
7879
7880         * atree.adb (Initialize): Add initializations for global variables
7881         used in New_Copy_Tree.
7882
7883         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
7884         Internal_Source_File as the actual).
7885         Put the set of statements creating Any_Character before the set of
7886         statements creating Any_Array to have Any_Character fully initialized
7887         when it is used in creating Any_Array.
7888
7889         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
7890         not call Scan in case if the actual is Internal_Source_File
7891         Add 2003 to copyright note.
7892
7893         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
7894         processing Internal_Source_File.
7895
7896         * types.ads: Add the constant Internal_Source_File representing the
7897         source buffer for artificial source-code-like strings created within
7898         the compiler (the definition of Source_File_Index is changed).
7899
7900 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
7901
7902         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
7903         56system.ads: New file, FreeBSD version.
7904
7905 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
7906
7907         * Make-lang.in (ada.extraclean): Delete.
7908
7909 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
7910
7911         * gnatmem.adb: Clean up verbose output.
7912
7913         * gprcmd.adb: Change copyright to FSF.
7914
7915 2003-11-19  Vincent Celier  <celier@gnat.com>
7916
7917         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
7918         and Version (ignored).
7919
7920         * symbols.ads: (Policy): New type
7921         (Initialize): New parameter Reference, Symbol_Policy and
7922         Library_Version.
7923         Remove parameter Force.
7924         Minor reformatting.
7925
7926         * snames.ads, snames.adbadb: New standard names
7927         Library_Reference_Symbol_File and Library_Symbol_Policy
7928
7929         * mlib-prj.adb:
7930         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
7931         project.
7932
7933         * mlib-tgt.adb:
7934         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
7935
7936         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
7937
7938         * prj.adb: (Project_Empty): New component Symbol_Data
7939
7940         * prj.ads: (Policy, Symbol_Record): New types
7941         (Project_Data): New component Symbol_Data
7942
7943         * prj-attr.adb:
7944         New attributes Library_Symbol_File, Library_Symbol_Policy and
7945         Library_Reference_Symbol_File.
7946
7947         * prj-nmsc.adb:
7948         (Ada_Check): When project is a Stand-Alone library project, process
7949         attribute Library_Symbol_File, Library_Symbol_Policy and
7950         Library_Reference_Symbol_File.
7951
7952         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
7953         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
7954         5sml-tgt.adb (Build_Dynamic_Library): New parameter
7955         Symbol_Data (ignored).
7956
7957         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
7958         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
7959         functions Option_File_Name and Version_String. Set new options of
7960         gnatsym related to symbol file, symbol policy and reference symbol
7961         file.
7962
7963         * 5vsymbol.adb:
7964         Extensive modifications to take into account the reference symbol file,
7965         the symbol policy, the library version and to put in the symbol file the
7966         minor and major IDs.
7967
7968         * bld.adb (Process_Declarative_Items): Put second argument of
7969         gprcmd to_absolute between single quotes, to avoid problems with
7970         Windows.
7971
7972         * bld-io.adb: Update Copyright notice.
7973         (Flush): Remove last character of a line, if it is a back slash, to
7974         avoid make problems.
7975
7976         * gnatsym.adb:
7977         Implement new scheme with reference symbol file and symbol policy.
7978
7979         * g-os_lib.ads: (Is_Directory): Clarify comment
7980
7981 2003-11-19  Robert Dewar  <dewar@gnat.com>
7982
7983         * atree.adb: Move New_Copy_Tree global variables to head of package
7984
7985         * errout.adb: Minor reformatting
7986
7987 2003-11-19  Javier Miranda  <miranda@gnat.com>
7988
7989         * sem_ch4.adb: (Diagnose_Call): Improve error message.
7990         Add reference to Ada0Y (AI-50217)
7991
7992         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
7993         sem_util.adb: Add reference to AI-50217
7994
7995         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
7996
7997         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
7998
7999         * sem_aggr.adb: Complete documentation of AI-287 changes
8000
8001         * par-ch4.adb: Document previous changes.
8002
8003         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
8004         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
8005         Ada0Y (AI-50217)
8006
8007         * exp_aggr.adb: Add references to AI-287 in previous changes
8008
8009 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
8010
8011         * exp_ch6.adb:
8012         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
8013         in the rewriting is the result of an inlined call.
8014
8015         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
8016         parameter is a type conversion, use original node to construct the
8017         post-call assignment, because expression may have been rewritten, e.g.
8018         if it is a packed array.
8019
8020         * sem_attr.adb:
8021         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
8022         body, just as it is in an instance.
8023         Categorization routines
8024
8025         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
8026         Instantiate_Object): Set proper sloc reference for message on missing
8027         actual.
8028
8029 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
8030
8031         * Makefile.in: Add FreeBSD libgnat pairs.
8032
8033         * usage.adb: Fix typo in usage message.
8034
8035 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
8036
8037         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
8038         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
8039         pragma Thread_Body.
8040         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
8041
8042         * s-thread.adb: This file is now a dummy implementation of
8043         System.Thread.
8044
8045 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
8046
8047         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
8048
8049 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
8050
8051         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
8052         instanciation references in the parent type description.
8053
8054 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8055
8056         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
8057
8058         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
8059         TYPE_PRECISION directly from esize.
8060
8061 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
8062
8063         * cstreams.c:
8064         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
8065
8066         * init.c: Initialization routines for FreeBSD
8067
8068         * link.c: Link info for FreeBSD
8069
8070         * sysdep.c: Add the case of FreeBSD
8071
8072 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
8073
8074         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
8075         already called in System.Threads.
8076
8077         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
8078         environment task, as it has been moved to System.Threads.Initialization.
8079
8080 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
8081
8082         * adaint.c (__gnatlib_install_locks): Only reference
8083         __gnat_install_locks on VMS, since other platforms can avoid using
8084         --enable-threads=gnat
8085
8086 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8087
8088         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
8089
8090         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
8091         TYPE_PACKED_ARRAY_TYPE_P.
8092         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
8093
8094         Part of PR ada/12806
8095         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
8096         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
8097
8098 2003-11-17  Vincent Celier  <celier@gnat.com>
8099
8100         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
8101         to False.
8102         Do not set exit status to Failure when Warning is True.
8103         (Gnatchop): Make errors "no compilation units found" and
8104         "no source files written" warnings only.
8105
8106         * make.adb (Gnatmake): When using a project file, set
8107         Look_In_Primary_Dir to False.
8108         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
8109         and Local_Configuration_Pragmas in the project where they are declared
8110         not an extending project which might have inherited them.
8111
8112         * osint.adb (Locate_File): If Name is already an absolute path, do not
8113         look for a directory.
8114
8115         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
8116         -gnats (Check_Syntax) is used, issue only a warning, not an error.
8117
8118         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
8119         in objects of type Variable_Value.
8120
8121         * prj.ads: (Variable_Value): New component Project
8122
8123         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
8124         is in a project extended by Project.
8125
8126         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
8127         Project of Variable_Values to this new parameter value.
8128         (Expression): Set component Project of Variable_Values.
8129         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
8130         Set the component Project in array elements.
8131
8132 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
8133
8134         * errout.adb: (Initialize): Add initialization for error nodes.
8135
8136         * sem_ch12.adb (Initialize): Add missing initializations for
8137         Exchanged_Views and Hidden_Entities.
8138
8139 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
8140
8141         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
8142         already instantiated tree for use in subsequent inlining.
8143         (Analyze_Associations, Instantiate_Formal_Subprogram,
8144         Instantiate_Object): improve error message for mismatch in
8145         instantiations.
8146
8147         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
8148         instantiations of subprograms declared in instances.
8149
8150 2003-11-17  Javier Miranda  <miranda@gnat.com>
8151
8152         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
8153         executed only under the Extensions_Allowed flag.
8154
8155 2003-11-17  Robert Dewar  <dewar@gnat.com>
8156
8157         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
8158         zeroes suppressed.
8159         (Address_Image): Fix bug of returning 0x instead of 0x0
8160         Minor reformatting (function specs).
8161
8162         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
8163         (missed case of 33-63)
8164
8165         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
8166
8167         * s-thread.adb: Add comments for pragma Restriction
8168
8169         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
8170         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
8171
8172 2003-11-17  Ed Falis  <falis@gnat.com>
8173
8174         * s-thread.adb: Added No_Tasking restriction for this implementation.
8175
8176 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
8177
8178         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
8179         instanciation references in the parent type description.
8180
8181 2003-11-17  GNAT Script  <nobody@gnat.com>
8182
8183         * Make-lang.in: Makefile automatically updated
8184
8185 2003-11-16  Jason Merrill  <jason@redhat.com>
8186
8187         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
8188         and TAGS files that include them for each front end.
8189
8190 2003-11-14  Andreas Jaeger  <aj@suse.de>
8191
8192         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
8193         is the canonical version.
8194         * misc.c (gnat_handle_option): Likewise.
8195
8196         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
8197
8198         * 5nsystem.ads: New file for x86_64-linux-gnu.
8199
8200 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
8201
8202         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
8203
8204         * comperr.adb: Fix logic in previous change.
8205
8206 2003-11-13  Vincent Celier  <celier@gnat.com>
8207
8208         * 5bml-tgt.adb (Build_Dynamic_Library): Use
8209         Osint.Include_Dir_Default_Prefix instead of
8210         Sdefault.Include_Dir_Default_Name.
8211
8212         * gnatlbr.adb: Update Copyright notice
8213         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
8214         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
8215         instead of Sdefault.Object_Dir_Default_Name
8216
8217         * gnatlink.adb:
8218         (Process_Binder_File): Never suppress the option following -Xlinker
8219
8220         * mdll-utl.adb:
8221         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
8222         Sdefault.Object_Dir_Default_Name.
8223
8224         * osint.ads, osint.adb:
8225         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
8226         Minor reformatting.
8227
8228         * vms_conv.ads: Minor reformating
8229         Remove GNAT STANDARD and GNAT PSTA
8230
8231         * vms_conv.adb:
8232         Allow GNAT MAKE to have several files on the command line.
8233         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
8234         Sdefault.Object_Dir_Default_Name.
8235         Minor Reformating
8236         Remove data for GNAT STANDARD
8237
8238         * vms_data.ads:
8239         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
8240         Remove data for GNAT STANDARD
8241         Remove options and documentation for -gnatwb/-gnatwB: these warning
8242         options no longer exist.
8243
8244 2003-11-13  Ed Falis  <falis@gnat.com>
8245
8246         * 5zthrini.adb: (Init_RTS): Made visible
8247
8248         * 5zthrini.adb:
8249         (Register): Removed unnecessary call to taskVarGet that checked whether
8250          an ATSD was already set as a task var for the argument thread.
8251
8252         * s-thread.adb:
8253         Updated comment to reflect that this is a VxWorks version
8254         Added context clause for System.Threads.Initialization
8255         Added call to System.Threads.Initialization.Init_RTS
8256
8257 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
8258
8259         * 5zthrini.adb:
8260         (Init_RTS): New procedure, for the initialization of the run-time lib.
8261
8262         * s-thread.adb:
8263         Remove dependancy on System.Init, so that this file can be used in the
8264         AE653 sequential run-time lib.
8265
8266 2003-11-13  Robert Dewar  <dewar@gnat.com>
8267
8268         * bindgen.adb: Minor reformatting
8269
8270 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
8271
8272         * checks.adb:
8273         (Apply_Discriminant_Check): Do no apply check if target type is derived
8274         from source type with no applicable constraint.
8275
8276         * lib-writ.adb:
8277         (Ensure_System_Dependency): Do not apply the style checks that may have
8278         been specified for the main unit.
8279
8280         * sem_ch8.adb:
8281         (Find_Selected_Component): Further improvement in error message, with
8282         RM reference.
8283
8284         * sem_res.adb:
8285         (Resolve): Handle properly the case of an illegal overloaded protected
8286         procedure.
8287
8288 2003-11-13  Javier Miranda  <miranda@gnat.com>
8289
8290         * exp_aggr.adb:
8291         (Has_Default_Init_Comps): New function to check the presence of
8292         default initialization in an aggregate.
8293         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
8294         extension aggregate of a limited record. In addition, a new formal
8295         was added to do not initialize the record controller (if any) during
8296         this recursive expansion of ancestors.
8297         (Init_Controller): Add support for limited record components.
8298         (Expand_Record_Aggregate): In case of default initialized components
8299         convert the aggregate into a set of assignments.
8300
8301         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
8302         describing the new syntax.
8303         Nothing else needed to be done because this subprogram delegates part of
8304         its work to P_Precord_Or_Array_Component_Association.
8305         (P_Record_Or_Array_Component_Association): Give support to the new
8306         syntax for default initialization of components.
8307
8308         * sem_aggr.adb:
8309         (Resolve_Aggregate): Relax the strictness of the frontend in case of
8310         limited aggregates.
8311         (Resolve_Record_Aggregate): Give support to default initialized
8312         components.
8313         (Get_Value): In case of default initialized components, duplicate
8314         the corresponding default expression (from the record type
8315         declaration). In case of default initialization in the *others*
8316         choice, do not check that all components have the same type.
8317         (Resolve_Extension_Aggregate): Give support to limited extension
8318         aggregates.
8319
8320         * sem_ch3.adb:
8321         (Check_Initialization): Relax the strictness of the front-end in case
8322         of aggregate and extension aggregates. This test is now done in
8323         Get_Value in a per-component manner.
8324
8325         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
8326         expression corresponds to a limited aggregate. This test is now done
8327         in Get_Value.
8328
8329         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
8330         Box_Present flag.
8331
8332         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
8333         present in an N_Component_Association node
8334
8335 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
8336
8337         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
8338         type-conformant entry only if they are homographs.
8339
8340 2003-11-13  GNAT Script  <nobody@gnat.com>
8341
8342         * Make-lang.in: Makefile automatically updated
8343
8344 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8345
8346         * adadecode.c: Use <> form of include for ctype.h.
8347         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
8348
8349 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8350
8351         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
8352         Works around PR middle-end/6552.
8353
8354 2003-11-10  Ed Falis  <falis@gnat.com>
8355
8356         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
8357
8358         * 5zinit.adb: (Install_Handler): Moved back to spec
8359         (Install_Signal_Handlers): Deleted
8360
8361         * 5zthrini.adb: Added context clause for System.Storage_Elements
8362         (Register): Only handles creation of taskVar; initialization moved to
8363         Thread_Body_Enter.
8364         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
8365         Added declaration of environment task secondary stack and
8366         initialization.
8367
8368         * s-thread.adb: Implement bodies for thread body processing
8369
8370         * s-thread.ads:
8371         Added comment identifying supported targets for pragma Thread_Body.
8372
8373 2003-11-10  Pascal Obry  <obry@gnat.com>
8374
8375         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
8376         GNAT_MAX_PATH_LEN.
8377
8378         * s-fileio.adb:
8379         (Open): Properly check for string length before copying into the buffer.
8380         Raises Name_Error if buffer is too small. Note that this was a potential
8381         buffer overflow.
8382
8383 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
8384
8385         * bindgen.adb, comperr.adb: Code clean ups.
8386         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
8387
8388 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
8389
8390         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
8391
8392 2003-11-10  Vincent Celier  <celier@gnat.com>
8393
8394         * gprcmd.adb:
8395         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
8396         installation.
8397
8398         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
8399
8400         * prj.adb: (Project_Empty): Add new boolean component Virtual
8401
8402         * prj.ads: (Virtual_Prefix): New constant string
8403         (Project_Data): New boolean component Virtual
8404
8405         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
8406         a library project is extended by a virtual extending project.
8407
8408         * prj-part.adb:
8409         Modifications throughout to implement extending-all project, including:
8410         (Virtual_Hash, Processed_Hash): New hash tables
8411         (Create_Virtual_Extending_Project): New procedure
8412         (Look_For_Virtual_Projects_For): New procedure
8413
8414         * prj-proc.adb:
8415         (Process): After checking the projects, if main project is an
8416         extending-all project, set the object directory of all virtual extending
8417         project to the object directory of the main project.
8418         Adjust error message when a virtual extending project has the same
8419         object directory as an project being extended.
8420         (Recursive_Process): If name starts with the virtual prefix, set Virtual
8421         to True in the project data.
8422
8423         * prj-tree.adb:
8424         (Default_Project_Node): Add new boolean component Extending_All
8425         (Is_Extending_All): New function
8426         (Set_Is_Extending_All): New procedure
8427
8428         * prj-tree.ads: (Is_Extending_All): New function
8429         (Set_Is_Extending_All): New procedure
8430         (Project_Node_Record): New boolean component Extending_All
8431
8432         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
8433
8434         * vms_data.ads:
8435         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
8436
8437         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
8438         "gprcmd prefix" to define it.
8439
8440 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
8441
8442         * einfo.ads: Fix a typo and remove an extraneous word in comments.
8443
8444         * lib-load.adb:
8445         (Create_Dummy_Package_Unit): Set the scope of the entity for the
8446         created dummy package to Standard_Standard, not to itself, to
8447         defend other parts of the front-end against encoutering a cycle in
8448         the scope chain.
8449
8450         * sem_ch10.adb:
8451         (Analyze_With_Clause): When setting the entities for the successive
8452         N_Expanded_Names that constitute the name of a child unit, do not
8453         attempt to go further than Standard_Standard in the chain of scopes.
8454         This case arises from the placeholder units created by
8455         Create_Dummy_Package_Unit in the case of a with_clause for a
8456         nonexistent child unit.
8457
8458 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
8459
8460         * exp_ch6.adb:
8461         (Expand_Thread_Body): Place subprogram on scope stack, so that new
8462         declarations are given the proper scope.
8463
8464         * sem_ch13.adb:
8465         (Check_Expr_Constants): Reject an expression that contains a constant
8466         created during expansion, and that appears after the object to which
8467         the address clause applies.
8468
8469         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
8470         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
8471         that uses 'Range of a function call with controlled components, so
8472         that the function result can be finalized before starting the loop.
8473
8474         * sem_ch8.adb:
8475         (Find_Selected_Component): Improve error message when prefix is
8476         an implicit dereference of an incomplete type.
8477
8478 2003-11-10  Robert Dewar  <dewar@gnat.com>
8479
8480         * opt.ads: New Print_Standard flag for -gnatS switch
8481
8482         * sem_ch13.adb: Remove some additional checks for unaligned arrays
8483
8484         * cstand.adb (Create_Standard): Print out package standard if -gnatS
8485         switch set
8486
8487         * debug.adb: Update doc for -gnatds to discuss relationship with new
8488         -gnatS flag
8489
8490         * sinfo.adb: Add new field Entity_Or_Associated_Node
8491
8492         * sinfo.ads: Add new field Entity_Or_Associated_Node
8493         Update documentation for Associated_Node and Entity fields to clarify
8494         relationship and usage.
8495
8496         * sprint.adb:
8497         (Write_Id): Properly process Associated_Node field in generic template
8498
8499         * switch-c.adb:
8500         Recognize new -gnatS switch for printing package Standard
8501         This replaces gnatpsta
8502
8503         * usage.adb:
8504         Add line for  new -gnatS switch for printing package Standard
8505         This replaces gnatpsta
8506
8507 2003-11-10  Andreas Jaeger  <aj@suse.de>
8508
8509         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
8510         integer.
8511
8512 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
8513
8514         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
8515         by gnat1.
8516
8517 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
8518
8519         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
8520         no longer needed.
8521
8522         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
8523
8524         * sysdep.c: Add handling of cygwin.
8525
8526 2003-11-10  GNAT Script  <nobody@gnat.com>
8527
8528         * Make-lang.in: Makefile automatically updated
8529
8530 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
8531
8532         PR 12950
8533         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
8534         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
8535         Replace GNAT_ROOT by GCC_ROOT.
8536
8537         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
8538
8539 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
8540
8541         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
8542         and update for changed meaning of GET_MODE_BITSIZE.
8543
8544 2003-11-04  Doug Rupp  <rupp@gnat.com>
8545
8546         * sysdep.c: Problem discovered during IA64 VMS port.
8547         [VMS] #include <unixio.h> to get proper prototypes.
8548
8549         * adaint.c:
8550         Issues discovered/problems fixed during IA64 VMS port.
8551         [VMS] #define _POSIX_EXIT for proper semantics.
8552         [VMS] #include <unixio.h> for proper prototypes.
8553         [VMS] (fork): #define IA64 version.
8554         (__gnat_os_exit): Remove unnecessary VMS specific code.
8555
8556 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8557
8558         Part of PR ada/12806
8559
8560         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
8561         tree, not integer.
8562
8563         * decl.c:
8564         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
8565         not integer.
8566
8567         * targtyps.c, decl.c, misc.c,
8568         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
8569         routines to work around change in FP sizing semantics in GCC.
8570
8571         * utils.c:
8572         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
8573
8574         * gigi.h: (enumerate_modes): New function.
8575
8576         * Make-lang.in: (ada/misc.o): Add real.h.
8577
8578         * misc.c: (enumerate_modes): New function.
8579
8580 2003-11-04  Robert Dewar  <dewar@gnat.com>
8581
8582         * 3vtrasym.adb: Minor reformatting
8583         Use terminology encoded/decoded name, rather than C++ specific notion
8584         of mangling (this is the terminology used throughout GNAT).
8585
8586         * einfo.h: Regenerated
8587
8588         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
8589
8590         * exp_ch6.adb:
8591         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
8592
8593         * par-prag.adb: Add dummy entry for Thread_Body pragma
8594
8595         * rtsfind.ads:
8596         Add entries for System.Threads entities for thread body processing
8597
8598         * sem_attr.adb:
8599         (Analyze_Pragma, Access attributes): Check these are not applied to a
8600         thread body, since this is not permitted
8601
8602         * sem_prag.adb: Add processing for Thread_Body pragma.
8603         Minor comment fix.
8604
8605         * sem_res.adb:
8606         (Resolve_Call): Check for incorrect attempt to call a thread body
8607          procedure with a direct call.
8608
8609         * snames.ads, snames.adb: Add entry for Thread_Body pragma
8610         Add names associated with thread body expansion
8611
8612         * snames.h: Add entry for Thread_Body pragma
8613
8614         * s-thread.adb: Add entries for thread body processing
8615         These are dummy bodies so far
8616
8617         * s-thread.ads: Add documentation on thread body handling.
8618         Add entries for thread body processing.
8619
8620 2003-11-04  Javier Miranda  <miranda@gnat.com>
8621
8622         * sem_ch10.adb:
8623         (Build_Limited_Views): Return after posting an error in case of limited
8624         with_clause on subprograms, generics, instances or generic renamings
8625         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
8626         on subprograms, generics, instances or generic renamings
8627
8628 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
8629
8630         * raise.c (setup_to_install): Correct mistake in last revision; two
8631         arguments out of order.
8632
8633         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
8634         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
8635         notice, missed in previous change.
8636         Remove trailing blanks and other style errors introduced in previous
8637         change.
8638
8639 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
8640
8641         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
8642         rid of the wrapper for a LJM type, ensuring we don't do that if the
8643         field is addressable.  This avoids potential low level type view
8644         mismatches later on, for instance in a by-reference argument passing
8645         process.
8646
8647 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8648
8649         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
8650         aligned at byte boundary.
8651
8652 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
8653
8654         * decl.c (components_to_record): Do not delete the empty variants from
8655         the end of the union type.
8656
8657 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
8658
8659         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
8660         operation for a derived type, an explicit declaration may use a local
8661         subtype of Boolean.
8662
8663 2003-11-04  Vincent Celier  <celier@gnat.com>
8664
8665         * make.adb (Gnatmake): Allow main sources on the command line with a
8666         library project when it is only for compilation (no binding or
8667         linking).
8668
8669 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8670
8671         * Makefile.in: Remove many duplicate variables.
8672
8673 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
8674
8675         * Make-lang.in (dvi): Move targets to $(docobjdir).
8676         (gnat_ug_vms.dvi): Simplify rule and adjust target.
8677         (gnat_ug_wnt.dvi): Likewise.
8678         (gnat_ug_unx.dvi): Likewise.
8679         (gnat_ug_vxw.dvi): Likewise.
8680         (gnat_rm.dvi): Likewise.
8681         (gnat-style.dvi): Likewise.
8682
8683 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
8684
8685         * gigi.h: Missed commit from update for C90.
8686
8687 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
8688
8689         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
8690
8691 2003-10-31  Andreas Schwab  <schwab@suse.de>
8692
8693         * raise.c (get_action_description_for): Fix typo in last change.
8694
8695 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
8696
8697         PR ada/12761
8698         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
8699         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
8700
8701 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
8702
8703         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
8704         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
8705         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
8706         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
8707         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
8708
8709 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
8710
8711         * 3vtrasym.adb:
8712         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
8713         numbers when symbol name is too long.
8714
8715 2003-10-30  Ed Falis  <falis@gnat.com>
8716
8717         * g-signal.ads, g-signal.adb: New files
8718
8719         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
8720
8721         * Makefile.rtl: Introduce GNAT.Signals
8722
8723 2003-10-30  Robert Dewar  <dewar@gnat.com>
8724
8725         * freeze.adb: Minor reformatting
8726
8727         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
8728
8729         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
8730         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
8731         New handling of Id_Check parameter to improve recognition of keywords
8732         used as identifiers.
8733         Update copyright notice to include 2003
8734
8735 2003-10-29  Robert Dewar  <dewar@gnat.com>
8736
8737         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
8738         sem_ch10.adb: Minor reformatting
8739
8740         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
8741         (Expand_Assign_Record): Test right hand side for bit unaligned as well
8742
8743 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
8744
8745         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
8746         Support for TBK$SYMBOLIZE-based symbolic traceback.
8747
8748 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
8749
8750         * exp_disp.adb:
8751         Revert previous change, that did not work well when pragma No_Run_Time
8752         was used in conjunction with a run-time other than ZFP.
8753
8754 2003-10-29  Vincent Celier  <celier@gnat.com>
8755
8756         * make.adb:
8757         (Gnatmake): When there are no Ada mains in attribute Main, disable the
8758          bind and link steps only is switch -z is not used.
8759
8760 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
8761
8762         * Makefile.generic: Remove duplicated setting of CC.
8763
8764         * Makefile.prolog: Set CC to gcc by default, to override make's
8765         default (cc).
8766
8767         * einfo.h: Regenerated.
8768
8769 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
8770
8771         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
8772         current body, after compiling subunit.
8773
8774         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
8775         when in deleted code, because gigi needs properly ordered freeze
8776         actions to annotate types.
8777
8778         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
8779         prevent the premature freezing of record type that contains
8780         subcomponents with a private type that does not yet have a completion.
8781
8782 2003-10-29  Javier Miranda  <miranda@gnat.com>
8783
8784         * sem_ch12.adb:
8785         (Analyze_Package_Instantiation): Check that instances can not be used in
8786         limited with_clauses.
8787
8788         * sem_ch8.adb:
8789         (Analyze_Package_Renaming): Check that limited withed packages cannot
8790         be renamed. Improve text on error messages related to limited
8791         with_clauses.
8792
8793         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
8794
8795         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
8796         Update copyright notice.
8797
8798         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
8799         (Install_Limited_Context_Clauses): New subprogram that isolates all the
8800         checks required for limited context_clauses and installs the limited
8801         view.
8802         (Install_Limited_Withed_Unit): Complete its documentation.
8803         (Analyze_Context): Check that limited with_clauses are only allowed in
8804         package specs.
8805         (Install_Context): Call Install_Limited_Context_Clauses after the
8806         parents have been installed.
8807         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
8808         package as 'From_With_Type'; this mark indicates that the limited view
8809         is installed. Used to check bad usages of limited with_clauses.
8810         (Build_Limited_Views): Do not add shadow entities to the scope's list
8811         of entities. Do not add real entities to the Non_Limited_Views chain.
8812         Improve error notification.
8813         (Remove_Context_Clauses): Remove context clauses in two phases:
8814         limited views first and regular views later (to maintain the
8815         stack model).
8816         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
8817         its visible entities.
8818
8819 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
8820
8821         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
8822         with any type that Is_Fixed_Point_Type.
8823
8824         * sinfo.ads: Fix documentation for Associated_Node attribute.
8825
8826 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
8827
8828         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
8829         both '-gnatc' and '-gnatt' are specified.
8830
8831         * atree.adb (Initialize): Add initialization for Node_Count (set to
8832         zero).
8833
8834 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8835
8836         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
8837         do not consider as Pure.
8838
8839         Part of implementation of function-at-a-time:
8840
8841         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
8842         (tree_transform): Add new argument to build_component_ref.
8843         (tree_transform, case N_Assignment_Statement): Make and return an
8844         EXPR_STMT.
8845         (tree_transform): If result IS_STMT, set flags and return it.
8846         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
8847
8848         * utils2.c (build_simple_component_ref, build_component_ref): Add new
8849         arg, NO_FOLD_P.
8850         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
8851         (build_allocator): Likewise.
8852
8853         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
8854         Add new arg to build_component_ref.
8855         (maybe_unconstrained_array, unchecked_convert): Likewise.
8856
8857         * ada-tree.def (EXPR_STMT): New code.
8858
8859         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
8860
8861         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
8862         build_component_ref calls.
8863
8864         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
8865
8866         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
8867         (build_component_ref): Add new argument, NO_FOLD_P.
8868
8869 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
8870
8871         * Makefile.generic: Add missing substitution on object_deps handling.
8872
8873         PR ada/5909:
8874         * Make-lang.in (check-ada): Enable ACATS test suite.
8875
8876 2003-10-27  Robert Dewar  <dewar@gnat.com>
8877
8878         * exp_ch3.adb:
8879         (Freeze_Array_Type): We do not need an initialization routine for types
8880         derived from String or Wide_String. They should be treated the same
8881         as String and Wide_String themselves. This caused problems with the
8882         use of Initialize_Scalars.
8883
8884         * exp_ch5.adb:
8885         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
8886         composites. This allows use of component clauses that are not byte
8887         aligned.
8888
8889         * sem_prag.adb:
8890         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
8891         is an attempt to pack an array of atomic objects.
8892
8893         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
8894
8895 2003-10-27  Pascal Obry  <obry@gnat.com>
8896
8897         * g-dirope.adb:
8898         (Basename): Check for drive letters in a pathname only on DOS based OS.
8899
8900 2003-10-27  Vincent Celier  <celier@gnat.com>
8901
8902         * make.adb:
8903         (Gnatmake): When unable to change dir to the object dir, display the
8904         content of the parent dir of the obj dir, to try to understand why this
8905         happens.
8906
8907 2003-10-27  GNAT Script  <nobody@gnat.com>
8908
8909         * Make-lang.in: Makefile automatically updated
8910
8911 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
8912
8913         * sem_ch12.adb:
8914         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
8915         should not be done in Save/Restore_Scope_Stack, because it is performed
8916         locally.
8917
8918         * sem_ch8.adb:
8919         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
8920         whether use clauses should be removed/restored.
8921
8922         * sem_ch8.ads:
8923         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
8924         whether use clauses should be removed/restored.
8925
8926 2003-10-26  Andreas Jaeger  <aj@suse.de>
8927
8928         * Makefile.in: Remove duplicated lines.
8929
8930 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
8931
8932         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
8933         minimize the differences with ACT tree.
8934
8935         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
8936         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
8937         Gnatvsn.Gnat_Static_Version_String to reduce differences between
8938         ACT and FSF trees.
8939
8940 2003-10-24  Pascal Obry  <obry@gnat.com>
8941
8942         * adadecode.c (ostrcpy): New function.
8943         (__gnat_decode): Use ostrcpy of strcpy.
8944         (has_prefix): Set first parameter a const.
8945         (has_suffix): Set first parameter a const.
8946         Update copyright notice. Fix source name in header.
8947         Removes a trailing space.
8948         PR ada/12014.
8949
8950 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
8951
8952         * exp_disp.adb:
8953         Remove the test against being in No_Run_Time_Mode before generating a
8954         call to Register_Tag. It is redundant with the test against the
8955         availability of the function Register_Tag.
8956
8957 2003-10-24  Vincent Celier  <celier@gnat.com>
8958
8959         * g-catiio.adb: (Month_Name): Correct spelling of February
8960
8961         * make.adb: (Mains): New package
8962         (Initialize): Call Mains.Delete
8963         (Gnatmake): Check that each main on the command line is a source of a
8964         project file and, if there are several mains, each of them is a source
8965         of the same project file.
8966         (Gnatmake): When a foreign language is specified in attribute Languages,
8967         no main is specified on the command line and attribute Mains is not
8968         empty, only build the Ada main. If there is no Ada main, just compile
8969         the Ada sources and their closure.
8970         (Gnatmake): If a main is specified on the command line with directory
8971         information, check that the source exists and, if it does, that the path
8972         is the actual path of a source of a project.
8973
8974         * prj-env.adb:
8975         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
8976         Full_Path is True, return the full path instead of the simple file name.
8977         (Project_Of): New function
8978
8979         * prj-env.ads:
8980         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
8981         defaulted to False.
8982         (Project_Of): New function
8983
8984 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
8985
8986         * Makefile.generic:
8987         Ensure objects of main project are always checked and rebuilt if needed.
8988         Set CC to gcc by default.
8989         Prepare new handling of link by creating a global archive (not activated
8990         yet).
8991
8992         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
8993         stringt.h: Update copyright notice. Remove trailing blanks.
8994         Fix source name in header.
8995
8996 2003-10-24  Robert Dewar  <dewar@gnat.com>
8997
8998         * sem_ch12.adb: Minor reformatting
8999
9000         * sem_ch3.adb:
9001         Minor reformatting (including new function return style throughout)
9002
9003         * sem_ch3.ads:
9004         Minor reformatting (including new function return style throughout)
9005
9006 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
9007
9008         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
9009         stringt.h: Update copyright notice. Remove trailing blanks.
9010         Fix source name in header.
9011
9012 2003-10-24  GNAT Script  <nobody@gnat.com>
9013
9014         * Make-lang.in: Makefile automatically updated
9015
9016 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
9017
9018         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
9019         stringt.h: Convert to ISO C90 declarations and definitions.
9020
9021 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
9022
9023         PR ada/11978:
9024         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
9025         External_Tag attribute definition clauses.
9026
9027 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
9028
9029         PR ada/7613:
9030         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
9031         child unit, generate a fully qualified name to avoid spurious errors
9032         when the context contains renamings of different child units with
9033         the same simple name.
9034
9035         * exp_dbug.ads: Add documentation on name qualification for renamings
9036         of child units.
9037
9038 2003-10-23  Robert Dewar  <dewar@gnat.com>
9039
9040         * g-regpat.ads, g-regpat.adb: Minor reformatting
9041
9042 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
9043
9044         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
9045
9046 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9047
9048         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
9049         Machine call.
9050
9051         * urealp.h: (Machine): Update to proper definition.
9052
9053 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
9054
9055         * init.c, adaint.c: Minor reformatting.
9056
9057 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
9058
9059         * adaint.c (w32_epoch_offset): Define static const at file level.
9060         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
9061         rather than t_create, t_access in call to GetFileTime. Use union
9062         to convert between FILETIME and  unsigned long long.
9063         (__gnat_file_time_name): Test for invalid file handle.
9064         (__gnat_set_filetime_name): Support win32 targets using
9065         w32api SetFileTime.
9066
9067 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
9068
9069         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
9070
9071         * ctrl_c.c (__gnat_int_handler): Remove declaration.
9072
9073         * decl.c (creat_concat_name):  Const-ify prefix.
9074
9075         * adaint.c: Include ctype.h if __MINGW32__.
9076         (__gnat_readlink): Mark arguments as possibly unused.
9077         (__gnat_symlink): Likewise.
9078         (__gnat_is_symbolic_link): Likewise.
9079         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
9080         declaration
9081         (__gnat_file_time_name): Don't declare struct stat statbuf when
9082         not needed.
9083         (__gnat_is_absolute_path): Add parenthesis around condition of
9084         'if' statement to avoid warning.
9085         (__gnat_plist_init): Specify void as parameter.
9086         (plist_enter): Likewise.
9087         (plist_leave): Likewise.
9088         (remove_handle): Make static. Initialize prev.
9089
9090 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
9091
9092         * Makefile.in: Disable build of gnatpsta. PR ada/10110.
9093         * cstreams.c (__gnat_full_name): Minor improvements and clean up
9094         of previous change.
9095
9096 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9097
9098         * tracebak.c (MAX): Avoid redefinition warning.
9099
9100         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
9101         Change msg to const char *.
9102         (__gnat_install_handler): Remove ss, unused.
9103         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
9104         to const char *.
9105         * cstreams.c (__gnat_full_name): Declare p only when used.
9106         (__gnat_full_name) [sgi] Return buffer.
9107
9108 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
9109
9110         * mingw32.h: New file.
9111         * gnat_wrapper.adb: New file.
9112
9113 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
9114
9115         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
9116         string match a pre compiled regular expression (the corresponding
9117         version of the function working on a raw regular expression)
9118         Fix typos in various comments
9119         Update copyright notice in spec
9120
9121 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
9122
9123         * exp_ch3.adb:
9124         (Component_Needs_Simple_Initialization): Return False when the type is a
9125         packed bit array. Revise spec comments to document this case.
9126
9127         * exp_prag.adb:
9128         (Expand_Pragma_Import): Set any expression on the imported object to
9129         empty to avoid initializing imported objects (in particular this
9130         covers the case of zero-initialization of bit arrays).
9131         Update copyright notice.
9132
9133 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
9134
9135         * sem_ch12.adb:
9136         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
9137         a subunit is missing.
9138         (Instantiate_Subprogram_Body): If body of function is missing, set type
9139         of return expression explicitly in dummy body, to prevent cascaded
9140         errors when a subunit is missing.
9141         Fixes PR 5677.
9142
9143         * sem_ch3.adb:
9144         (Access_Subprogram_Declaration): Verify that return type is valid.
9145         Fixes PR 8693.
9146
9147         * sem_elab.adb:
9148         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
9149         generic.
9150         Fixes PR 12318.
9151
9152         * sem_util.adb:
9153         (Corresponding_Discriminant): If the scope of the discriminant is a
9154         private type without discriminant, use its full view.
9155         Fixes PR 8247.
9156
9157 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
9158
9159         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
9160         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
9161         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
9162         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
9163         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
9164         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
9165         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
9166         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
9167         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
9168         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
9169         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
9170         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
9171         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
9172         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
9173         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
9174         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
9175         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
9176         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
9177         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
9178         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
9179         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
9180         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
9181         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
9182         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
9183         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
9184         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
9185         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
9186         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
9187         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
9188         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
9189         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
9190         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
9191         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
9192         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
9193         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
9194         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
9195         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
9196         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
9197         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
9198         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
9199         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
9200         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
9201         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
9202         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
9203         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
9204         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
9205         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
9206         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
9207         vms_conv.ads, vms_conv.adb, vms_data.ads,
9208         vxaddr2line.adb: Files added. Merge with ACT tree.
9209
9210         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
9211         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
9212         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
9213         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
9214         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
9215         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
9216         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
9217         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
9218         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
9219         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
9220
9221         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
9222         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
9223         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
9224         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
9225         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
9226         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
9227         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
9228         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
9229         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
9230         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
9231         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
9232         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
9233         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
9234         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
9235         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
9236         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
9237         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
9238         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
9239         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
9240         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
9241         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
9242         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
9243         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
9244         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
9245         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
9246         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
9247         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
9248         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
9249         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
9250         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
9251         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
9252         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
9253         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
9254         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
9255         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
9256         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
9257         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
9258         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
9259         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
9260         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
9261         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
9262         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
9263         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
9264         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
9265         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
9266         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
9267         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
9268         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
9269         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
9270         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
9271         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
9272         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
9273         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
9274         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
9275         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
9276         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
9277         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
9278         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
9279         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
9280         checks.adb, checks.ads, cio.c, comperr.adb,
9281         comperr.ads, csets.adb, cstand.adb, cstreams.c,
9282         debug_a.adb, debug_a.ads, debug.adb, decl.c,
9283         einfo.adb, einfo.ads, errout.adb, errout.ads,
9284         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
9285         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
9286         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
9287         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
9288         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
9289         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
9290         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
9291         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
9292         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
9293         fe.h, fmap.adb, fmap.ads, fname.adb,
9294         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
9295         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
9296         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
9297         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
9298         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
9299         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
9300         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
9301         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
9302         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
9303         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
9304         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
9305         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
9306         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
9307         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
9308         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
9309         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
9310         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
9311         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
9312         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
9313         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
9314         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
9315         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
9316         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
9317         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
9318         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
9319         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
9320         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
9321         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
9322         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
9323         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
9324         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
9325         layout.adb, lib.adb, lib.ads, lib-list.adb,
9326         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
9327         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
9328         link.c, live.adb, make.adb, make.ads,
9329         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
9330         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
9331         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
9332         misc.c, mkdir.c, mlib.adb, mlib.ads,
9333         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
9334         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
9335         namet.adb, namet.ads, namet.h, nlists.ads,
9336         nlists.h, nmake.adt, opt.adb, opt.ads,
9337         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
9338         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
9339         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
9340         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
9341         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
9342         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
9343         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
9344         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
9345         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
9346         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
9347         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
9348         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
9349         prj-util.adb, prj-util.ads, raise.c, raise.h,
9350         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
9351         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
9352         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
9353         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
9354         scans.ads, scn.adb, scn.ads, s-crc32.adb,
9355         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
9356         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
9357         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
9358         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
9359         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
9360         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9361         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
9362         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
9363         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
9364         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
9365         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
9366         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
9367         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
9368         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
9369         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
9370         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
9371         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
9372         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
9373         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
9374         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
9375         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
9376         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
9377         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
9378         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
9379         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
9380         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
9381         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
9382         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
9383         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
9384         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
9385         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
9386         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
9387         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
9388         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
9389         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
9390         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
9391         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
9392         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
9393         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
9394         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
9395         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
9396         stringt.adb, stringt.ads, stringt.h, style.ads,
9397         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
9398         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
9399         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
9400         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
9401         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
9402         table.adb, table.ads, targparm.adb, targparm.ads,
9403         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
9404         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
9405         ttypes.ads, types.ads, types.h, uintp.adb,
9406         uintp.ads, uintp.h, uname.adb, urealp.adb,
9407         urealp.ads, urealp.h, usage.adb, utils2.c,
9408         utils.c, validsw.adb, validsw.ads, widechar.adb,
9409         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
9410         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
9411         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
9412         gnatvsn.ads: Merge with ACT tree.
9413
9414         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
9415
9416 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
9417
9418         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
9419         (gnat_ug_vmx.info): Likewise.
9420         (gnat_ug_vxw.info): Likewise.
9421         (gnat_ug_wnt.info): Likewise.
9422         (gnat_rm.info): Likewise.
9423         (gnat-style.info): Likewise.
9424
9425         * Make-lang.in (ada.install-info): Remove target.
9426         (info): New target.
9427         (install-info): Likewise.
9428         (gnat_ug_unx.info): Simplify rule.
9429         (gnat_ug_vmx.info): Likewise.
9430         (gnat_ug_vxw.info): Likewise.
9431         (gnat_ug_wnt.info): Likewise.
9432         (gnat_rm.info): Likewise.
9433         (gnat-style.info): Likewise.
9434
9435 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
9436
9437         * Make-lang.in: Replace uses of $(target_alias) with
9438         $(target_noncanonical).
9439         * ada/Makefile.in: Remove unused mention of $(target_alias).
9440
9441 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
9442
9443         * Make-lang.in (ada.info): Replace with ...
9444         (info): ... this.
9445         (ada.dvi): Replace with ...
9446         (dvi): ... this.
9447
9448 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
9449
9450         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
9451         initialize dconstp5 and dconstmp5.
9452
9453 2003-09-28  Richard Henderson  <rth@redhat.com>
9454
9455         * trans.c (tree_transform): Update call to expand_asm_operands.
9456
9457 2003-09-21  Richard Henderson  <rth@redhat.com>
9458
9459         * trans.c, utils.c: Revert.
9460
9461 2003-09-21  Richard Henderson  <rth@redhat.com>
9462
9463         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
9464         change to const.
9465
9466 2003-09-04  Michael Matz  <matz@suse.de>
9467
9468         * misc.c: Include "target.h".
9469         * Make-lang.in (misc.o): Add dependency on target.h.
9470
9471 2003-09-03  DJ Delorie  <dj@redhat.com>
9472
9473         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
9474         hook.
9475
9476 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
9477
9478         * Makefile.in: Update substitutions to match changes to
9479         configure.  Use include directives instead of @-insertions
9480         to read in host and target fragments.  Add a rule to
9481         regenerate ada/Makefile.
9482
9483 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
9484
9485         * lang-options.h: Remove.
9486         * lang.opt: Add help text.
9487
9488 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
9489
9490         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
9491         calls.
9492
9493 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
9494
9495         * misc.c (gnat_handle_option): Don't handle filenames.
9496
9497 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
9498
9499         * Make-lang.in: Replace PWD with PWD_COMMAND.
9500         * Makefile.adalib: Likewise.
9501         * Makefile.in: Likewise.
9502
9503 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
9504
9505         * misc.c (gnat_argv): Revert last change.
9506         (gnat_handle_option, gnat_init_options): Copy arguments.
9507
9508 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
9509
9510         * misc.c (gnat_argv): Make const.
9511
9512 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
9513
9514         * misc.c (save_argc, save_argv): Keep non-static!
9515
9516 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
9517
9518         * misc.c (save_argc, save_argv): Make static.
9519         (gnat_init_options): New prototype.
9520         (gnat_init_options): Update.
9521
9522 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
9523
9524         * gnat_ug.texi: Remove unlikely characters from @vars.
9525         * gnat_ug_vms.texi: Regenerate.
9526
9527 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
9528
9529         * misc.c (record_code_position): Adjust emit_note call.
9530
9531 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
9532
9533         * misc.c (gnat_handle_option): Don't check for missing arguments.
9534
9535 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
9536
9537         * utils.c (end_subprog_body): Adjust expand_function_end call.
9538
9539 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
9540
9541         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
9542         Bind_Main_Program.
9543
9544 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
9545
9546         * lang.opt: Declare Ada.
9547         * misc.c (gnat_init_options): Update.
9548
9549 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
9550
9551         * utils.c (begin_subprog_body): Adjust init_function_start call.
9552
9553 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
9554
9555         * Make-lang.in: Update to use options.c and options.h.
9556         * misc.c: Include options.h not aoptions.h.
9557         (gnat_handle_option): Abort on unrecognized switch.
9558         (gnat_init_options): Request Ada switches.
9559
9560 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
9561
9562         * lang.opt: Add -Wall.
9563         * misc.c (gnat_handle_option): Handle it.
9564
9565 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
9566
9567         * misc.c (gnat_handle_option): Fix warnings.
9568
9569 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
9570
9571         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
9572
9573 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
9574
9575         * Make-lang.in: Update to handle command-line options.
9576         * lang.opt: New file.
9577         * misc.c: Include aoptions.h.
9578         (cl_options_count, cl_options): Remove.
9579         (gnat_handle_option): New.
9580         (gnat_decode_option): Remove.
9581         (LANG_HOOKS_DECODE_OPTION): Remove.
9582         (LANG_HOOKS_HANDLE_OPTION): Override.
9583
9584 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
9585
9586         * init.c, misc.c, trans.c, utils.c: Remove dead code.
9587
9588 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
9589
9590         * Makefile.in: Replace "host_canonical" with "host" for autoconf
9591         substitution.
9592
9593 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
9594
9595         * Make-lang.in: Update.
9596         * misc.c: Include opts.h. Define cl_options_count and cl_options.
9597
9598 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
9599
9600         * misc.c (gnat_init_options): Update.
9601
9602 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
9603
9604         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
9605         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
9606         __attribute__ ((__unused__)).
9607
9608 2003-06-05  Jan Hubicka  <jh@suse.cz>
9609
9610         * Make-lang.in:  Add support for stageprofile and stagefeedback
9611
9612 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
9613
9614         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
9615         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
9616
9617 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
9618
9619         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
9620         Remove non-VMS directive.
9621         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
9622         alternatives.
9623         (Examples of gnatls Usage): Remove VMS alternative.
9624
9625 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
9626
9627         PR ada/9953:
9628         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
9629         and turn ZCX_By_Default back to False since the underlying support
9630         is not quite there yet.
9631
9632 2003-06-01  Andreas Jaeger  <aj@suse.de>
9633
9634         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
9635         and ROUND_TYPE_SIZE_UNIT.
9636
9637 2003-05-22   Geert Bosch <bosch@gnat.com>
9638
9639         * gnat_rm.texi : Remove reference to Ada Core Technologies.
9640
9641 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
9642
9643         * trans.c (tree_transform): Use location_t and input_location
9644         directly.
9645         (build_unit_elab): Likewise.
9646         * utils.c (create_label_decl): Likewise.
9647
9648 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
9649
9650         * trans.c (tree_transform, build_unit_elab,
9651         set_lineno): Rename lineno to input_line.
9652         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
9653         end_subprog_body): Likewise.
9654         * utils2.c (build_call_raise): Likewise.
9655
9656 2003-05-01  Laurent Guerby <guerby@acm.org>
9657
9658         PR ada/10546
9659         * 5iosinte.ads: Increase pthread_cond_t size to match recent
9660         LinuxThread and NPTL version, merge from ACT.
9661
9662 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
9663
9664         * utils.c (convert): No need to clear TREE_CST_RTL.
9665
9666 2003-04-23   Geert Bosch <bosch@gnat.com>
9667
9668         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
9669         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
9670         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
9671         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
9672         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
9673         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
9674         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
9675         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
9676         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
9677         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
9678         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
9679         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
9680         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
9681         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
9682         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
9683         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
9684         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
9685         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
9686         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
9687         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
9688         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
9689         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
9690         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
9691         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
9692         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
9693         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
9694         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
9695         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
9696         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
9697         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
9698         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
9699         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
9700         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
9701         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
9702         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
9703         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
9704         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
9705         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
9706         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
9707         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
9708         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
9709         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
9710         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
9711         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
9712         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
9713         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
9714         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
9715         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
9716         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
9717         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
9718         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
9719         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
9720         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
9721         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
9722         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
9723         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
9724         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
9725         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
9726         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
9727         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
9728         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
9729         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
9730         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
9731         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
9732         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
9733         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
9734         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
9735         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
9736         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
9737         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
9738         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
9739         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
9740         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
9741         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
9742         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
9743         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
9744         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
9745         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
9746         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
9747         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
9748         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
9749         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
9750         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
9751         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
9752         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
9753         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
9754         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
9755         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
9756         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
9757         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
9758         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
9759         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
9760         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
9761         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
9762         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
9763         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
9764         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
9765         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
9766         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
9767         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
9768         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
9769         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
9770         ali.adb, ali.ads, alloc.ads, argv.c,
9771         atree.adb, atree.ads, atree.h, aux-io.c,
9772         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
9773         binde.adb, binde.ads, binderr.adb, binderr.ads,
9774         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
9775         butil.adb, butil.ads, cal.c, calendar.ads,
9776         casing.adb, casing.ads, ceinfo.adb, checks.adb,
9777         checks.ads, cio.c, comperr.adb, comperr.ads,
9778         config-lang.in, csets.adb, csets.ads, csinfo.adb,
9779         cstand.adb, cstand.ads, cuintp.c, debug.adb,
9780         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
9781         dec-io.ads, dec.ads, deftarg.c, directio.ads,
9782         einfo.adb, einfo.ads, elists.adb, elists.ads,
9783         elists.h, errno.c, errout.adb, errout.ads,
9784         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
9785         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
9786         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
9787         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
9788         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
9789         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
9790         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
9791         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
9792         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
9793         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
9794         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
9795         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
9796         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
9797         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
9798         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
9799         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
9800         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
9801         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
9802         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
9803         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
9804         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
9805         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
9806         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
9807         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
9808         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
9809         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
9810         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
9811         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
9812         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
9813         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
9814         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
9815         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
9816         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
9817         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
9818         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
9819         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
9820         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
9821         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
9822         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
9823         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
9824         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
9825         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
9826         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
9827         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
9828         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
9829         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
9830         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
9831         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
9832         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
9833         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
9834         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
9835         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
9836         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
9837         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
9838         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
9839         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
9840         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
9841         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
9842         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
9843         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
9844         lib.adb, lib.ads, live.adb, live.ads,
9845         machcode.ads, make.adb, make.ads, makeusg.adb,
9846         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
9847         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
9848         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
9849         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
9850         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
9851         mlib.ads, namet.adb, namet.ads, nlists.adb,
9852         nlists.ads, opt.adb, opt.ads, osint-b.adb,
9853         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
9854         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
9855         osint.ads, output.adb, output.ads, par-ch10.adb,
9856         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
9857         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
9858         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
9859         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
9860         par-tchk.adb, par-util.adb, par.adb, par.ads,
9861         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
9862         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
9863         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
9864         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
9865         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
9866         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
9867         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
9868         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
9869         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
9870         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
9871         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
9872         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
9873         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
9874         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
9875         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
9876         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
9877         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
9878         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
9879         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
9880         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
9881         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
9882         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
9883         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
9884         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
9885         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
9886         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
9887         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
9888         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
9889         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
9890         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
9891         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
9892         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
9893         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
9894         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
9895         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
9896         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
9897         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
9898         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
9899         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
9900         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
9901         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
9902         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
9903         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
9904         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
9905         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
9906         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
9907         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
9908         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
9909         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
9910         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
9911         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
9912         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
9913         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
9914         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
9915         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
9916         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
9917         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
9918         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
9919         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
9920         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
9921         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
9922         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
9923         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
9924         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
9925         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
9926         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
9927         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
9928         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
9929         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
9930         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
9931         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
9932         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
9933         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
9934         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
9935         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
9936         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
9937         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
9938         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
9939         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
9940         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
9941         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
9942         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
9943         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
9944         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
9945         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
9946         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
9947         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
9948         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
9949         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
9950         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
9951         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
9952         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
9953         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
9954         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
9955         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
9956         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
9957         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
9958         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
9959         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
9960         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
9961         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
9962         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
9963         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
9964         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
9965         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
9966         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
9967         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
9968         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
9969         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
9970         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
9971         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9972         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
9973         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
9974         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
9975         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
9976         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
9977         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
9978         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
9979         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
9980         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
9981         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
9982         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
9983         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
9984         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
9985         snames.ads, sprint.adb, sprint.ads, stand.adb,
9986         stand.ads, stringt.adb, stringt.ads, style.adb,
9987         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
9988         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
9989         switch-m.ads, switch.adb, switch.ads, system.ads,
9990         table.adb, table.ads, targparm.adb, targparm.ads,
9991         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
9992         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
9993         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
9994         ttypef.ads, ttypes.ads, types.adb, types.ads,
9995         uintp.adb, uintp.ads, uname.adb, uname.ads,
9996         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
9997         usage.adb, usage.ads, validsw.adb, validsw.ads,
9998         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
9999         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
10000         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
10001         formatting and other trivial changes from ACT.
10002
10003 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
10004
10005         * gigi.h, utils2.c (build_constructor):
10006         Rename gnat_build_constructor. Use build_constructor.
10007         * decl.c (gnat_to_gnu_entity)
10008         * trans.c (tree_transform, pos_to_constructor, extract_values)
10009         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
10010         (unchecked_convert)
10011         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
10012         (fill_vms_descriptor):
10013         Update to match.
10014
10015 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
10016
10017         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
10018         * misc.c (gnat_tree_size): New function.
10019         (LANG_HOOKS_TREE_SIZE): Override.
10020
10021 2003-04-03  Jason Merrill  <jason@redhat.com>
10022
10023         * misc.c (gnat_adjust_rli): #if 0.
10024
10025 2003-03-31   Geert Bosch <bosch@gnat.com>
10026
10027         PR ada/10020
10028         * link.c : Fix misspelled "const" keyword
10029
10030 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
10031
10032         PR c++/7086
10033         * utils2.c: Adjust calls to put_var_into_stack.
10034
10035 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
10036
10037         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
10038
10039 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
10040
10041         * misc.c (gnat_init): Update for new prototype.
10042
10043 2003-03-05  Olivier Hainque  <hainque@gnat.com>
10044
10045         ada/9961
10046         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
10047         warning, and fix return type for the IN_RTS && !SJLJ case.
10048
10049 2003-03-04  Tom Tromey  <tromey@redhat.com>
10050
10051         * Make-lang.in (ada.tags): New target.
10052
10053 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
10054
10055         ada/9911
10056         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
10057         wrapper, which name remains constant whatever underlying GCC
10058         scheme.
10059
10060         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
10061         the stable interface needed for a-except.
10062
10063 2003-03-02  Andreas Jaeger  <aj@suse.de>
10064
10065         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10066         gnat_ug_wnt.texi: Regenerate.
10067
10068 2003-03-02  Laurent Guerby <guerby@acm.org>
10069
10070         * Makefile.in (install-gnatlib): Match previous change there
10071         so it works.
10072
10073 2003-02-28  Andreas Schwab  <schwab@suse.de>
10074
10075         * Make-lang.in (install-gnatlib): Change to ada directory before
10076         running make instead of using ada/Makefile directly.
10077
10078 2003-02-18  Ben Elliston  <bje@redhat.com>
10079
10080         Part of fix for PR ada/9406
10081         * gnat_ug.texi (Binder output file): Grammar fix.
10082
10083 2003-02-18  Ben Elliston  <bje@redhat.com>
10084
10085         PR other/7350
10086         * 5qtaprop.adb (Sleep): Fix typo in comment.
10087
10088 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
10089
10090         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
10091         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10092         gnat_ug_wnt.texi: Regenerate.
10093
10094 2003-02-03  Christian Cornelssen <ccorn@cs.tu-berlin.de>
10095
10096         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
10097         be created if necessary.
10098         (ada.install-common): Let $(DESTDIR)$(bindir) be created
10099         if necessary.  Remove erroneous and redundant gnatchop
10100         installation commands.  Test for gnatdll before attempting
10101         to install it.
10102         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
10103         and gnatdll from all plausible locations.
10104
10105 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
10106
10107         * utils2.c (build_unary_op): Don't check flag_volatile.
10108         * gnat_ug.texi: Remove -fvolatile from example.
10109         * gnat_ug_vxw.texi: Likewise.
10110
10111 2003-01-29  Laurent Guerby <guerby@acm.org>
10112
10113         PR ada/8344
10114         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
10115         * Makefile.in: match previous change.
10116         * Make-lang.in: match previous change.
10117
10118 2003-01-29      Joel Sherrill <joel@OARcorp.com>
10119
10120         * 5rosinte.ads: Add SIGXCPU.
10121         * 5rtpopsp.adb: New file.
10122         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
10123         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
10124         specific file 5rtpopsp.adb.
10125         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
10126         is likely needed for all newlib targets.
10127         * init.c: Add RTEMS specific version of __gnat_initialize().
10128
10129 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10130
10131         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
10132
10133 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10134
10135         * init.c (__gnat_error_handler): Make msg const.
10136
10137         * gmem.c (convert_addresses): Move declaration ...
10138         * adaint.h: ... here.
10139         * adaint.c (convert_addresses): Adapt addrs type to match
10140         prototype.
10141
10142         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
10143
10144 2003-01-24  Andreas Schwab  <schwab@suse.de>
10145
10146         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
10147         size_t to avoid warning.
10148
10149 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
10150
10151         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
10152
10153 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
10154
10155         * gnat_rm.texi: Remove RCS version number.
10156
10157         * ada-tree.h (union lang_tree_node): Add chain_next option.
10158
10159 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
10160
10161         * Make-lang.in (ada.install-info, ada.install-common,
10162         ada.uninstall): Prepend $(DESTDIR) to the destination
10163         directory in all (un)installation commands.
10164         * Makefile.in (install-gnatlib, install-rts): Ditto.
10165
10166 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
10167
10168         * gnat_rm.texi, gnat_ug.texi: Use @copying.
10169         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10170         gnat_ug_wnt.texi: Regenerate.
10171
10172 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
10173
10174         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
10175         only.
10176         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
10177         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
10178         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
10179         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
10180         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
10181         $(srcdir)/doc/include/gcc-common.texi.
10182
10183 2002-12-15   Geert Bosch <bosch@gnat.com>
10184
10185         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
10186
10187 2002-12-14   Geert Bosch <bosch@gnat.com>
10188
10189         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
10190         case of a body created for a Renaming_As_Body, on which
10191         conformance checks are not performed. Fixes PR ada/5690.
10192
10193 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
10194
10195         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
10196         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
10197         not already included.
10198         * Make-lang.in: Update dependencies.
10199
10200 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
10201         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
10202         solution to buffer overflow bug on GNU/Linux.
10203
10204 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
10205         Closes PR ada/5856 and PR ada/6919 !
10206         * bindgen.adb: Remove all references to Public_Version.
10207         * comperr.adb: Remove all references to Public_Version and
10208         GNATPRO_Version; correct bug reporting instructions.
10209         * comperr.ads: Change to match bug box.
10210         * gnatvsn.ads: Remove all references to Public version and
10211         GNATPRO version.
10212
10213 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
10214         PR ada/6919
10215         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
10216         GNU/Linux.
10217
10218         PR ada/6558
10219         * config-lang.in: Remove diff_excludes.
10220
10221 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
10222         PR ada/8358
10223         * trans.c (gnu_pending_elaboration_lists): New GC root.
10224         (build_unit_elab): Use..
10225
10226 2002-10-30   Geert Bosch <bosch@gnat.com>
10227         PR ada/6558
10228         * misc.c : Include optabs.h
10229
10230         * Make-lang.in (misc.o): Add dependency on optabs.h
10231
10232 2002-10-29   Geert Bosch <bosch@gnat.com>
10233         PR ada/6558
10234         * Make-lang.in (gnatbind): Depend on CONFIG_H
10235
10236 2002-10-29  Geert bosch  <bosch@gnat.com>
10237         PR ada/6558
10238         * misc.c: Unrevert misc.c (1.13)
10239
10240 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
10241
10242         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
10243         maintainership comments.
10244
10245 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
10246         PR ada/5904
10247         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
10248         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
10249         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
10250         7staprop.adb: Correct statements in comments about
10251         maintainership of GNAT.
10252
10253         PR ada/5904
10254         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
10255         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
10256         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
10257         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
10258         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
10259         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
10260         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
10261         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
10262         comments about maintainership of GNAT.
10263
10264         PR ada/6919 (forward port of patch for PR ada/5904)
10265         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
10266         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
10267         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
10268         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
10269         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
10270         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
10271         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
10272         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
10273         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
10274         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
10275         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
10276         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
10277         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
10278         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
10279         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
10280         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
10281         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
10282         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
10283         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
10284         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
10285         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
10286         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
10287         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
10288         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
10289         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
10290         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
10291         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
10292         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
10293         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
10294         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
10295         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
10296         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
10297         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
10298         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
10299         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
10300         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
10301         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
10302         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
10303         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
10304         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
10305         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
10306         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
10307         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
10308         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
10309         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
10310         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
10311         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
10312         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
10313         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
10314         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
10315         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
10316         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
10317         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
10318         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
10319         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
10320         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
10321         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
10322         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
10323         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
10324         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
10325         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
10326         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
10327         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
10328         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
10329         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
10330         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
10331         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
10332         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
10333         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
10334         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
10335         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
10336         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
10337         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
10338         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
10339         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
10340         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
10341         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
10342         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
10343         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
10344         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
10345         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
10346         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
10347         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
10348         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
10349         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
10350         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
10351         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
10352         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
10353         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
10354         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
10355         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
10356         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
10357         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
10358         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
10359         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
10360         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
10361         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
10362         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
10363         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
10364         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
10365         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
10366         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
10367         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
10368         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
10369         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
10370         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
10371         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
10372         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
10373         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
10374         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
10375         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
10376         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
10377         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
10378         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
10379         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
10380         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
10381         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
10382         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
10383         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
10384         par-endh.adb par-labl.adb par-load.adb par-prag.adb
10385         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
10386         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
10387         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
10388         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
10389         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
10390         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
10391         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
10392         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
10393         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
10394         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
10395         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
10396         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
10397         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
10398         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
10399         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
10400         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
10401         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
10402         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
10403         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
10404         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
10405         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
10406         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
10407         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
10408         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
10409         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
10410         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
10411         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
10412         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
10413         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
10414         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
10415         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
10416         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
10417         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
10418         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
10419         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
10420         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
10421         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
10422         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
10423         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
10424         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
10425         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
10426         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
10427         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
10428         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
10429         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
10430         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
10431         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
10432         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
10433         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
10434         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
10435         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
10436         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
10437         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
10438         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
10439         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
10440         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
10441         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
10442         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
10443         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
10444         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
10445         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
10446         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
10447         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
10448         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
10449         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
10450         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
10451         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
10452         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
10453         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
10454         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
10455         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
10456         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
10457         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
10458         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
10459         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
10460         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
10461         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
10462         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
10463         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
10464         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
10465         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
10466         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
10467         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
10468         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
10469         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
10470         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
10471         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
10472         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
10473         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
10474         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
10475         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
10476         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
10477         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
10478         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
10479         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
10480         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
10481         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
10482         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
10483         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
10484         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
10485         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
10486         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
10487         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
10488         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
10489         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
10490         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
10491         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
10492         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
10493         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
10494         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
10495         stringt.ads stringt.h style.adb style.ads stylesw.adb
10496         stylesw.ads switch.adb switch.ads sysdep.c system.ads
10497         table.adb table.ads targparm.adb targparm.ads targtyps.c
10498         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
10499         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
10500         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
10501         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
10502         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
10503         usage.ads utils.c utils2.c validsw.adb validsw.ads
10504         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
10505         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
10506         xtreeprs.adb: Correct statements in comments about maintainership
10507         of GNAT.
10508
10509 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
10510
10511         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
10512         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
10513         * gnatvsn.ads: Gnat_Version_String is now a function.
10514         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
10515         copy the C version_string into a String and return it.
10516         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
10517         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
10518         Remove pragma Ident (Gnat_Version_String).  If this was the
10519         sole use of package Gnatvsn, remove the with statement too.
10520         * gnat1drv.adb: Tweak -gnatv output.
10521
10522 2002-09-17  Richard Henderson  <rth@redhat.com>
10523
10524         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
10525         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
10526         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
10527         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
10528         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
10529         and real_2expN instead of a loop.
10530         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
10531         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
10532
10533 2002-08-25  Andre Leis <a.leis@gmx.net>
10534             David Billinghurst (David.Billinghurst@riotinto.com>
10535
10536         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
10537
10538 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10539
10540         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
10541         Remove $(CONFIG_H) dependency.
10542
10543 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
10544
10545         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
10546
10547 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10548
10549         * adadecode.c (ada_demangle): Use xstrdup in lieu of
10550         xmalloc/strcpy.
10551         * misc.c (gnat_decode_option): Likewise.
10552
10553 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
10554
10555         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
10556         function approach did not work well because of a side effect (the
10557         function call could reallocate the table which was being indexed
10558         using its result). Fixes ada/4851. [RESURRECTED]
10559
10560 2002-07-01  Roger Sayle  <roger@eyesopen.com>
10561
10562         * ada/utils.c (builtin_function): Accept an additional parameter.
10563
10564 2002-06-28  Andreas Jaeger  <aj@suse.de>
10565
10566         PR ada/7144
10567         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
10568         <adi@thur.de>.
10569
10570 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10571
10572         * Makefile.in (SHELL): Set to @SHELL@.
10573
10574 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10575
10576         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
10577         array size calculation.
10578
10579 2002-06-04  Andreas Jaeger  <aj@suse.de>
10580
10581         * Make-lang.in (gnatbind): Readd rule that has been lost in last
10582         patch.
10583
10584 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
10585
10586         Merge from pch-branch:
10587
10588         * config-lang.in (gtfiles): Add ada-tree.h.
10589         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
10590         (SET_TYPE_MODULUS): New.
10591         (SET_TYPE_INDEX): New.
10592         (SET_TYPE_DIGITS_VALUE): New.
10593         (SET_TYPE_RM_SIZE): New.
10594         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
10595         (SET_TYPE_ADA_SIZE): New.
10596         (SET_TYPE_ACTUAL_BOUNDS): New.
10597         (SET_DECL_CONST_CORRESPONDING_VAR): New.
10598         (SET_DECL_ORIGINAL_FIELD): New.
10599         (TREE_LOOP_ID): Correct typo.
10600         * decl.c: Use new macros.
10601         * utils.c: Include debug.h, use new macros.
10602         * utils2.c: Use new macros.
10603
10604         * ada-tree.h: Update all macros for new tree description.
10605         (struct tree_loop_id): New.
10606         (union lang_tree_node): New.
10607         (struct lang_decl): New.
10608         (struct lang_type): New.
10609         * misc.c (gnat_mark_tree): Delete.
10610         (LANG_HOOKS_MARK_TREE): Delete.
10611         * trans.c (tree_transform): No longer any need to cast
10612         for TREE_LOOP_ID.
10613
10614         * utils.c (struct language_function): New dummy structure.
10615
10616         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
10617         (misc.o): Likewise.
10618         (utils.o): Likewise; also gtype-ada.h.
10619         * Make-lang.in (gnat1): Add dependency on s-gtype.
10620         (gnatbind): Add dependency on $(CONFIG_H).
10621         * utils.c: Correct last #include.
10622         (stuct e_stack): Remove unnecessary 'static'.
10623         (mark_e_stack): Remove unused prototype.
10624
10625         * scn-nlit.adb: Remove whitespace after version number to
10626         keep lines under 80 chars.
10627         * snames.adb: Likewise.
10628         * treepr.ads: Likewise.
10629
10630         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
10631         (misc.o): Likewise.
10632         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
10633         * config-lang.in (gtfiles): New.
10634         * decl.c: Use gengtype for roots.
10635         * gigi.h: Use gengtype for roots.
10636         * trans.c: Use gengtype for roots.
10637         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
10638
10639 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
10640
10641         * misc.c (gnat_init): Adjust setting of internal_error_function.
10642
10643 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
10644
10645         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
10646         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10647         gnat_ug_wnt.texi: Regenerate.
10648
10649 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
10650
10651         * 5ntaprop.adb (with System.OS_Primitives): Remove.
10652
10653         * cstreams.c (max_path_len): Move from here ...
10654         * adaint.c (__gnat_max_path_len): ... to here.
10655         * adaint.c (__gnat_max_path_len): Declare.
10656         * g-dirope.adb (Max_Path): Adjust.
10657         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
10658         * i-cstrea.ads (max_path_len): Adjust.
10659         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
10660         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
10661
10662         * Makefile.in, Make-lang.in: Documentation is now built in
10663         Make-lang.in.  Store Info and generated Texinfo files in the
10664         source directory.
10665         * gnat_ug.texi: Remove CVS keywords, correct version number.
10666         Set file name correctly.
10667
10668         * gnat_ug_*.texi: Add.
10669         * .cvsignore: Ignore generated Texinfo files.
10670
10671 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
10672
10673         * ada.h: Add MI guard macro.
10674         (SUBTYPE): Define constants with an anonymous enum, not static
10675         const variables.
10676         (IN): Cast constants to appropriate type before use.
10677
10678 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
10679
10680         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
10681         (experimental)".
10682
10683 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10684
10685         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
10686         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
10687         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
10688         (ALL_ADA_CFLAGS): Likewise.
10689         (ADA_INCLUDES): Likewise.
10690         Adapt for new working dir.
10691         (GNATBIND): Use Makefile.in version.
10692         (.SUFFIXES): Copy from Makefile.in.
10693         (ada-warn): Define.
10694         (.adb.o, .ads.o): Copy from Makefile.in.
10695         Added $(OUTPUT_OPTION).
10696         (GNAT1_C_OBJS): Moved from Makefile.in.
10697         Prefix with ada subdir.
10698         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
10699         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
10700         Adapt for new working dir.
10701         (EXTRA_GNATBIND_OBJS): Likewise.
10702         (ADA_BACKEND): Moved from Makefile.in.
10703         Renamed to avoid conflict with global BACKEND.
10704         Use that one.
10705         (TARGET_ADA_SRCS): Moved from Makefile.in.
10706         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
10707         Use ADA_BACKEND.
10708         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
10709         (ada_extra_files): Moved from Makefile.in.
10710         Prefix with ada subdir.
10711         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
10712         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
10713         (ada/nmake.ads): Likewise.
10714         (update-sources): Moved from Makefile.in.
10715         Prefix with ada subdir.
10716         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
10717         (ADA_TREE_H): Likewise.
10718         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
10719         (ada/memtrack.o): Likewise.
10720         (ada/adadecode.o): Likewise.
10721         Update dependencies.
10722         (ada/adaint.o): New.
10723         (ada/argv.o): Moved from Makefile.in.
10724         Prefix with ada subdir.
10725         Update dependencies.
10726         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
10727         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
10728         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
10729         Prefix with ada subdir.
10730         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
10731         (GNAT DEPENDENCIES): Regenerate.
10732         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
10733         toplevel Makefile.in.
10734         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
10735         (TARGET_ADA_SRCS): Removed.
10736         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
10737         (GNATBIND_OBJS): Likewise.
10738         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
10739         (BACKEND): Removed.
10740         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
10741         (TREE_H): Likewise.
10742         (ada_extra_files): Likewise.
10743         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
10744         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
10745         (update-sources): Likewise.
10746         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
10747         (ADA_TREE_H): Likewise.
10748         (adadecoce.o): Likewise.
10749         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
10750         (GNAT DEPENDENCIES): Likewise.
10751
10752 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10753
10754         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
10755         * Makefile.in: Likewise.
10756
10757 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10758
10759         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
10760         Restore $(CONFIG_H) and prefix.o dependencies.
10761         (ada.stage[1-4]): Depend on stage?-start.
10762
10763         * Makefile.in (b_gnatb.c): Depend on interfac.o.
10764
10765 2002-05-02  Jim Wilson  <wilson@redhat.com>
10766
10767         * utils.c (finish_record_type): Change record_size to record_type.
10768
10769 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10770
10771         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
10772         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
10773         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
10774
10775 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
10776
10777         * misc.c (gnat_parse_file): Update.
10778
10779 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10780
10781         * misc.c (gnat_init): Don't set lang_attribute_common.
10782
10783 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
10784
10785         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
10786
10787 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
10788
10789         * gnat_ug.texi: New file.
10790
10791         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
10792         instead of gfdl.texi
10793
10794         * xgnatug.adb, ug_words: New files.
10795
10796         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
10797         gnat_rm and gnat-style manuals.
10798
10799 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
10800
10801         * gigi.h (incomplete_type_error): Remove.
10802         * utils.c (incomplete_type_error): Remove.
10803
10804 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
10805
10806         * trans.c (tree_transform): Add has_scope argument to
10807         expand_start_stmt_expr.
10808
10809 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10810
10811         * gigi.h (truthvalue_conversion): Rename.
10812         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
10813         * trans.c (tree_transform): Update.
10814         * utils2.c (truthvalue_conversion): Rename, update.
10815         (build_binary_op, build_unary_op): Update.
10816
10817 2002-04-04  Laurent Guerby  <guerby@acm.org>
10818
10819         * make.adb: Implement -margs, remove restriction about file name placement.
10820         * makeusg.adb: Documentation update.
10821         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
10822         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
10823
10824 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10825
10826         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
10827         (builtin_function): Similarly.
10828
10829 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10830
10831         * decl.c (gnat_to_gnu_entity): Update.
10832         * gigi.h (mark_addressable): Rename.
10833         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10834         * trans.c (tree_transform): Update.
10835         * utils.c (create_var_decl): Update.
10836         * util2.c (build_binary_op, build_unary_op,
10837         fill_vms_descriptor): Update.
10838         (mark_addressable): Rename, update.
10839
10840 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10841
10842         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
10843         Rename.
10844         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10845         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10846         * trans.c (tree_transform, convert_with_check): Update.
10847         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
10848         Rename.
10849
10850 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
10851
10852         * gigi.h (finish_incomplete_decl): Rename.
10853         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
10854         * utils.c (gnat_init_decl_processing): Don't set hook.
10855         (finish_incomplete_decl): Rename.
10856
10857 2002-03-29  Andreas Schwab  <schwab@suse.de>
10858
10859         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
10860         directory.
10861
10862 2001-03-28  Robert Dewar <dewar@gnat.com>
10863
10864         * checks.ads:
10865         (Remove_Checks): New procedure
10866
10867         * checks.adb:
10868         (Remove_Checks): New procedure
10869
10870         * exp_util.adb:
10871         Use new Duplicate_Subexpr functions
10872         (Duplicate_Subexpr_No_Checks): New procedure
10873         (Duplicate_Subexpr_No_Checks_Orig): New procedure
10874         (Duplicate_Subexpr): Restore original form (checks duplicated)
10875         (Duplicate_Subexpr): Call Remove_Checks
10876
10877         * exp_util.ads:
10878         (Duplicate_Subexpr_No_Checks): New procedure
10879         (Duplicate_Subexpr_No_Checks_Orig): New procedure
10880         Add 2002 to copyright notice
10881
10882         * sem_util.adb: Use new Duplicate_Subexpr functions
10883
10884         * sem_eval.adb:
10885         (Eval_Indexed_Component): This is the place to call
10886         Constant_Array_Ref and to replace the value. We simply merge
10887         the code of this function in here, since it is now no longer
10888         used elsewhere. This fixes the problem of the back end not
10889         realizing we were clever enough to see that this was
10890         constant.
10891         (Expr_Val): Remove call to Constant_Array_Ref
10892         (Expr_Rep_Val): Remove call to Constant_Array_Ref
10893         Minor reformatting
10894         (Constant_Array_Ref): Deal with string literals (patch
10895         suggested by Zack Weinberg on the gcc list)
10896
10897 2001-03-28  Ed Schonberg <schonber@gnat.com>
10898
10899         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
10900         Duplicate_Subexpr_Move_Checks.
10901
10902         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
10903         Duplicate_Subexpr_Move_Checks.
10904
10905         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
10906         value of array exists before retrieving it (it may a private
10907         protected component in a function).
10908
10909 2002-03-28   Geert Bosch <bosch@gnat.com>
10910
10911         * prj-pp.adb : New file.
10912
10913         * prj-pp.ads : New file.
10914
10915 2002-03-28  Andreas Jaeger  <aj@suse.de>
10916
10917         * Makefile.in (stamp-sdefault): Fix path for Makefile.
10918
10919 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
10920
10921         * misc.c (gnat_expand_expr): Move prototype.
10922
10923 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10924
10925         * misc.c (insert_default_attributes): Remove.
10926
10927 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10928
10929         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10930         (gnat_init): Don't set hook.
10931         (gnat_expand_expr): Fix prototype.
10932
10933 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10934
10935         * misc.c (ggc_p): Remove.
10936
10937 2002-03-27  Geert Bosch  <bosch@gnat.com>
10938
10939         * prj-makr.ads, prj-makr.adb : New files.
10940
10941 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
10942
10943         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
10944         (lang_mark_tree): Make static, rename.
10945
10946 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
10947
10948         * misc.c (maybe_build_cleanup): Remove.
10949
10950 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10951
10952         * gigi.h (yyparse): Remove.
10953
10954 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
10955
10956         * gnat_rm.texi: Sync with ACT version.
10957           (From Ben Brosgol <brosgol@gnat.com>)
10958
10959 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
10960
10961         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
10962         (gnat_init): Remove old hook.
10963
10964 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
10965
10966         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
10967         (yyparse): Rename gnat_parse_file.
10968
10969 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
10970
10971         Delete all lines containing "$Revision:".
10972         * xeinfo.adb: Don't look for revision numbers.
10973         * xnmake.adb: Likewise.
10974         * xsinfo.adb: Likewise.
10975         * xsnames.adb: Likewise.
10976         * xtreeprs.adb: Likewise.
10977
10978 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10979
10980         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
10981         gnat_tree_code_name): Delete.
10982         (tree_code_type, tree_code_length, tree_code_name): Define.
10983         (gnat_init): Don't try to copy into the various tree_code
10984         arrays.
10985
10986 2002-03-11  Richard Henderson  <rth@redhat.com>
10987
10988         * Makefile.in (.NOTPARALLEL): Add fake tag.
10989
10990 2002-03-07  Geert Bosch  <bosch@gnat.com>
10991
10992         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
10993         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
10994         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
10995         switch-m.adb, switch-m.ads : New files.
10996
10997 2002-03-07  Geert Bosch  <bosch@gnat.com>
10998
10999         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
11000         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
11001         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
11002         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
11003         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
11004         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
11005         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
11006         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
11007         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
11008         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
11009         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
11010         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
11011         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
11012         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
11013         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
11014         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
11015         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
11016         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
11017         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
11018         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
11019         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
11020         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
11021         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
11022         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
11023         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
11024         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
11025         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
11026         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
11027         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
11028         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
11029         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
11030         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
11031         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
11032         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
11033         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
11034         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
11035         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
11036         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
11037         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
11038         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
11039         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
11040         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
11041         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
11042         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
11043         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
11044         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
11045         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
11046         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
11047         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
11048         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
11049         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
11050         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
11051         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
11052         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
11053         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
11054         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
11055         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
11056         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
11057         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
11058         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
11059         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
11060         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
11061         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
11062         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
11063         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
11064         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
11065         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
11066         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
11067         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
11068         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
11069         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
11070         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
11071         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
11072         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
11073         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
11074         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
11075         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
11076         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
11077         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
11078         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
11079         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
11080         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
11081         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
11082         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
11083         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
11084         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
11085         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
11086         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
11087         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
11088         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
11089         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
11090         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
11091         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
11092         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
11093         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
11094         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
11095         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
11096
11097         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
11098         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
11099         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
11100         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
11101
11102         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
11103         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
11104
11105         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
11106         to mdll-fil.ad[bs] and mdll-util.ad[bs]
11107
11108         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
11109         from mdllfile.ad[bs] and mdlltool.ad[bs]
11110
11111 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11112
11113         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
11114         lieu of explicit sizeof/sizeof.
11115
11116 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11117
11118         * misc.c (copy_lang_decl): Remove.
11119
11120 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11121
11122         * misc.c: Delete traditional-mode-related code copied from the
11123         C front end but not used, or used only to permit the compiler
11124         to link.
11125
11126 2002-02-07  Richard Henderson  <rth@redhat.com>
11127
11128         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
11129         * adaint.h (__gnat_to_gm_time): Update prototype.
11130
11131 2002-01-30  Richard Henderson  <rth@redhat.com>
11132
11133         * trans.c (tree_transform) [N_Loop_Statement]: Use
11134         expand_exit_loop_top_cond.
11135
11136 2001-12-23  Richard Henderson  <rth@redhat.com>
11137
11138         * utils.c (end_subprog_body): Push GC context around
11139         rest_of_compilation for nested functions.
11140
11141 2001-12-23  Richard Henderson  <rth@redhat.com>
11142
11143         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
11144
11145 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
11146
11147         * gnat-style.texi (Declarations and Types): Remove ancient style
11148         rule which was mandated by code generation issues.
11149
11150         * gnat-style.texi (header): Add @dircategory, @direntry.
11151         (title page): Remove date.
11152         (general) Add @./@: where approriate, and two spaces after the
11153         full stop at the end of a sentence.  Use @samp markup when
11154         referring concrete lexical entities (keywords, attribute names
11155         etc.), and @syntax for ARM grammar elements. Use @r for English
11156         text in comments.  Use @emph for emphasis.  Change "if-statements"
11157         etc. to "if statements" (without @samp). Break long lines.  Make
11158         casing of section names consistent.
11159         (Identifiers): Use @samp markup for variable names.
11160         (Comments): Use @samp markup for comment characters. Line-end
11161         comments may follow any Ada code, not just statements.  Fix
11162         misspelling of "Integer" as "integer".
11163         (Loop statements): Do not use variable name "I", use "J".
11164         (Subprogram Declarations): Document alignment.
11165         (Subprogram Bodies, Block statements): Document empty line before
11166         "begin".
11167
11168 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
11169
11170         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
11171         function approach did not work well because of a side effect (the
11172         function call could reallocate the table which was being indexed
11173         using its result). Fixes ada/4851.
11174
11175 2001-12-19  Robert Dewar <dewar@gnat.com>
11176
11177         * bindgen.adb: Minor reformatting
11178
11179         * cstand.adb: Minor reformatting
11180
11181         * fmap.adb: Minor reformatting
11182         Change name from Add for Add_To_File_Map (Add is much too generic)
11183         Change Path_Name_Of to Mapped_Path_Name
11184         Change File_Name_Of to Mapped_File_Name
11185         Fix copyright dates in header
11186
11187         * fmap.ads:
11188         Change name from Add for Add_To_File_Map (Add is much too generic)
11189         Change Path_Name_Of to Mapped_Path_Name
11190         Change File_Name_Of to Mapped_File_Name
11191         Fix copyright dates in header
11192
11193         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
11194         Add use clause for Fmap.
11195
11196         * make.adb: Minor reformatting
11197
11198         * osint.adb: Minor reformatting.  Change of names in Fmap.
11199         Add use clause for Fmap.
11200
11201         * prj-env.adb: Minor reformatting
11202
11203         * prj-env.ads: Minor reformatting
11204
11205         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
11206         error found (there were odd exceptions to this general rule in
11207         -gnatec/-gnatem processing)
11208
11209 2001-12-19  Olivier Hainque <hainque@gnat.com>
11210
11211         * raise.c (__gnat_eh_personality): Exception handling personality
11212         routine for Ada.  Still in rough state, inspired from the C++ version
11213         and still containing a bunch of debugging artifacts.
11214         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
11215         inspired from the C++ library.
11216
11217         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
11218         exception handling integration.
11219
11220 2001-12-19  Arnaud Charlet <charlet@gnat.com>
11221
11222         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
11223         (HIE_SOURCES): Add s-secsta.ad{s,b}.
11224         (HIE_OBJS): Add s-fat*.o
11225         (RAVEN_SOURCES): Remove files that are no longer required. Add
11226         interrupt handling files.
11227         (RAVEN_MOD): Removed, no longer needed.
11228
11229 2001-12-19  Robert Dewar <dewar@gnat.com>
11230
11231         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
11232         Add 2001 to copyright date
11233
11234         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
11235         need to force universal inlining for these cases.
11236
11237 2001-12-19  Arnaud Charlet <charlet@gnat.com>
11238
11239         * s-taprob.adb: Minor clean ups so that this unit can be used in
11240         Ravenscar HI.
11241
11242         * exp_ch7.adb: Allow use of secondary stack in HI mode.
11243         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
11244
11245 2001-12-19  Vincent Celier <celier@gnat.com>
11246
11247         * prj-tree.ads (Project_Node_Record): Add comments for components
11248         Pkg_Id and Case_Insensitive.
11249
11250 2001-12-19  Pascal Obry <obry@gnat.com>
11251
11252         * g-socket.adb: Minor reformatting. Found while reading code.
11253
11254 2001-12-19  Robert Dewar <dewar@gnat.com>
11255
11256         * prj-tree.ads: Minor reformatting
11257
11258 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
11259
11260         * config-lang.in (diff_excludes): Remove.
11261
11262 2001-12-17  Ed Schonberg <schonber@gnat.com>
11263
11264         * sem_res.adb (Resolve_Selected_Component): do not generate a
11265         discriminant check if the selected component is a component of
11266         the argument of an initialization procedure.
11267
11268         * trans.c (tree_transform, case of arithmetic operators): If result
11269         type is private, the gnu_type is the base type of the full view,
11270         given that the full view itself may be a subtype.
11271
11272 2001-12-17  Robert Dewar <dewar@gnat.com>
11273
11274         * sem_res.adb: Minor reformatting
11275
11276         * trans.c (tree_transform, case N_Real_Literal): Add missing third
11277         parameter in call to Machine (unknown horrible effects from this
11278         omission).
11279
11280         * urealp.h: Add definition of Round_Even for call to Machine
11281         Add third parameter for Machine
11282
11283 2001-12-17  Ed Schonberg <schonber@gnat.com>
11284
11285         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
11286         predefined units in No_Run_Time mode.
11287
11288 2001-12-17  Richard Kenner <kenner@gnat.com>
11289
11290         * misc.c (insn-codes.h): Now include.
11291
11292 2001-12-17  Olivier Hainque <hainque@gnat.com>
11293
11294         * a-except.adb: Preparation work for future integration of the GCC 3
11295         exception handling mechanism
11296         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
11297         to factorize previous code sequences and make them externally callable,
11298         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
11299         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
11300         Use the new notification routines.
11301
11302 2001-12-17  Emmanuel Briot <briot@gnat.com>
11303
11304         * prj-tree.ads (First_Choice_Of): Document the when others case
11305
11306 2001-12-17  Arnaud Charlet <charlet@gnat.com>
11307
11308         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
11309         HI-E mode, in order to support Ravenscar profile properly.
11310
11311         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
11312         mode on 32 bits targets.
11313
11314 2001-12-17  Vincent Celier <celier@gnat.com>
11315
11316         * fmap.adb: Initial version.
11317
11318         * fmap.ads: Initial version.
11319
11320         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
11321         If search is successfully done, add to mapping.
11322
11323         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
11324
11325         * make.adb:
11326         (Gnatmake): Add new local variable Mapping_File_Name.
11327          Create mapping file when using project file(s).
11328          Delete mapping file before exiting.
11329
11330         * opt.ads (Mapping_File_Name): New variable
11331
11332         * osint.adb (Find_File): Use path name found in mapping, if any.
11333
11334         * prj-env.adb (Create_Mapping_File): New procedure
11335
11336         * prj-env.ads (Create_Mapping_File): New procedure.
11337
11338         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
11339         (Mapping_File)
11340
11341         * usage.adb: Add entry for new switch -gnatem.
11342
11343         * Makefile.in: Add dependencies for fmap.o.
11344
11345 2001-12-17  Ed Schonberg <schonber@gnat.com>
11346
11347         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
11348         is a package instantiation rewritten as a package body.
11349         (Install_Withed_Unit): Undo previous change, now redundant.
11350
11351 2001-12-17  Gary Dismukes <dismukes@gnat.com>
11352
11353         * layout.adb:
11354         (Compute_Length): Move conversion to Unsigned to callers.
11355         (Get_Max_Size): Convert Len expression to Unsigned after calls to
11356         Compute_Length and Determine_Range.
11357         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
11358         Compute_Length and Determine_Range.
11359         Above changes fix problem with length computation for supernull arrays
11360         where Max (Len, 0) wasn't getting applied due to the Unsigned
11361         conversion used by Compute_Length.
11362
11363 2001-12-17  Arnaud Charlet <charlet@gnat.com>
11364
11365         * rtsfind.ads:
11366         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
11367          System.Secondary_Stack.
11368         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
11369          in HI-E mode.
11370         Remove unused entity RE_Exception_Data.
11371
11372         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
11373
11374         * rident.ads (No_Secondary_Stack): New restriction.
11375
11376 2001-12-17  Joel Brobecker <brobecke@gnat.com>
11377
11378         * gnat_rm.texi: Fix minor typos. Found while reading the section
11379         regarding "Bit_Order Clauses" that was sent to a customer.
11380         Very interesting documentation!
11381
11382 2001-12-17  Robert Dewar <dewar@gnat.com>
11383
11384         * sem_case.adb (Choice_Image): Avoid creating improper character
11385         literal names by using the routine Set_Character_Literal_Name. This
11386         fixes bombs in certain error message cases.
11387
11388 2001-12-17  Arnaud Charlet <charlet@gnat.com>
11389
11390         * a-reatim.adb: Minor reformatting.
11391
11392 2001-12-17  Ed Schonberg <schonber@gnat.com>
11393
11394         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
11395         case where the formal is an extension of another formal in the current
11396         unit or in a parent generic unit.
11397
11398 2001-12-17  Arnaud Charlet <charlet@gnat.com>
11399
11400         * s-tposen.adb: Update comments.  Minor reformatting.
11401         Minor code clean up.
11402
11403         * s-tarest.adb: Update comments.  Minor code reorganization.
11404
11405 2001-12-17  Gary Dismukes <dismukes@gnat.com>
11406
11407         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
11408         when Java_VM.
11409
11410 2001-12-17  Robert Dewar <dewar@gnat.com>
11411
11412         * exp_attr.adb: Minor reformatting
11413
11414 2001-12-17  Ed Schonberg <schonber@gnat.com>
11415
11416         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
11417         derivations nested within a child unit: verify that the parent
11418         type is declared in an outer scope.
11419
11420 2001-12-17  Robert Dewar <dewar@gnat.com>
11421
11422         * sem_ch12.adb: Minor reformatting
11423
11424 2001-12-17  Ed Schonberg <schonber@gnat.com>
11425
11426         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
11427         warning if current unit is a predefined one, from which bodies may
11428         have been deleted.
11429
11430 2001-12-17  Robert Dewar <dewar@gnat.com>
11431
11432         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
11433         Fix header format. Add 2001 to copyright date.
11434
11435         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
11436         which caused CE during compilation if checks were enabled.
11437
11438 2001-12-17  Vincent Celier <celier@gnat.com>
11439
11440         * make.adb:
11441         (Switches_Of): New function
11442         (Test_If_Relative_Path): New procedure
11443         (Add_Switches): Use new function Switches_Of
11444         (Collect_Arguments_And_Compile): Use new function Switches_Of.
11445         When using a project file, test if there are any relative
11446         search path. Fail if there are any.
11447         (Gnatmake): Only add switches for the primary directory when not using
11448         a project file. When using a project file, change directory to the
11449         object directory of the main project file. When using a project file,
11450         test if there are any relative search path. Fail if there are any.
11451         When using a project file, fail if specified executable is relative
11452         path with directory information, and prepend executable, if not
11453         specified as an absolute path, with the exec directory.  Make sure
11454         that only one -o switch is transmitted to the linker.
11455
11456         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
11457
11458         * prj-nmsc.adb:
11459         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
11460         when using a non standard naming scheme.
11461         (Check_Ada_Naming_Scheme): Make sure that error messages
11462         do not raise exceptions.
11463         (Is_Illegal_Append): Return True if there is no dot in the suffix.
11464         (Language_Independent_Check): Check the exec directory.
11465
11466         * prj.adb (Project_Empty): Add new component Exec_Directory
11467
11468         * prj.ads:
11469         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
11470         (Project_Data): Add component Exec_Directory
11471
11472         * snames.adb: Updated to match snames.ads revision 1.215
11473
11474         * snames.ads: Added Exec_Dir
11475
11476 2001-12-17  Robert Dewar <dewar@gnat.com>
11477
11478         * make.adb: Minor reformatting
11479
11480         * prj-nmsc.adb: Minor reformatting
11481
11482         * snames.adb: Updated to match snames.ads
11483
11484         * snames.ads: Alphebetize entries for project file
11485
11486 2001-12-17  Ed Schonberg <schonber@gnat.com>
11487
11488         * trans.c (process_freeze_entity): Do nothing if the entity is a
11489         subprogram that was already elaborated.
11490
11491 2001-12-17  Richard Kenner <kenner@gnat.com>
11492
11493         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
11494         and Esize if object is referenced via pointer.
11495
11496 2001-12-17  Ed Schonberg <schonber@gnat.com>
11497
11498         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
11499         is discrete before analyzing choices.
11500
11501 2001-12-17  Joel Brobecker <brobecke@gnat.com>
11502
11503         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
11504         containing the name of the Ada Main Program. This string is mainly
11505         intended for the debugger.
11506         (Gen_Output_File_C): Do the equivalent change when generating a C file.
11507
11508 2001-12-17  Robert Dewar <dewar@gnat.com>
11509
11510         * ali.adb: Set new Dummy_Entry field in dependency entry
11511
11512         * ali.ads: Add Dummy_Entry field to source dependency table
11513
11514         * bcheck.adb (Check_Consistency): Ignore dummy D lines
11515
11516         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
11517
11518         * lib-writ.ads: Document dummy D lines for missing files.
11519
11520         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
11521
11522 2001-12-17  Robert Dewar <dewar@gnat.com>
11523
11524         * ali.adb: Type reference does not reset current file.
11525
11526         * ali.adb: Recognize and scan renaming reference
11527
11528         * ali.ads: Add spec for storing renaming references.
11529
11530         * lib-xref.ads: Add documentation for handling of renaming references
11531
11532         * lib-xref.adb: Implement output of renaming reference.
11533
11534         * checks.adb:
11535         (Determine_Range): Document local variables
11536         (Determine_Range): Make sure Hbound is initialized. It looks as though
11537          there could be a real problem here with an uninitialized reference
11538          to Hbound, but no actual example of failure has been found.
11539
11540 2001-12-17  Laurent Pautet <pautet@gnat.com>
11541
11542         * g-socket.ads:
11543         Fix comment of Shutdown_Socket and Close_Socket. These functions
11544         should not fail silently because if they are called twice, this
11545         probably means that there is a race condition in the user program.
11546         Anyway, this behaviour is consistent with the rest of this unit.
11547         When an error occurs, an exception is raised with the error message
11548         as exception message.
11549
11550 2001-12-17  Robert Dewar <dewar@gnat.com>
11551
11552         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
11553         that it happens before modification of Sloc values for -gnatD.
11554
11555         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
11556         so that it happens before modification of Sloc values for -gnatD.
11557
11558         * switch.adb: Minor reformatting
11559
11560 2001-12-15  Richard Henderson  <rth@redhat.com>
11561
11562         * sem_ch7.adb: Wrap comment.
11563
11564 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
11565
11566         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
11567         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
11568         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
11569         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
11570         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
11571         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
11572         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
11573         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
11574         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
11575         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
11576         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
11577         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
11578         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
11579         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
11580         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
11581         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
11582         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
11583         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
11584         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
11585         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
11586         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
11587         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
11588         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
11589         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
11590         spelling errors.
11591
11592 2001-12-14  Vincent Celier <celier@gnat.com>
11593
11594         * osint.adb(Create_Debug_File): When an object file is specified,
11595         put the .dg file in the same directory as the object file.
11596
11597 2001-12-14  Robert Dewar <dewar@gnat.com>
11598
11599         * osint.adb: Minor reformatting
11600
11601         * lib-xref.adb (Output_Instantiation): New procedure to generate
11602         instantiation references.
11603
11604         * lib-xref.ads: Add documentation of handling of generic references.
11605
11606         * ali.adb (Read_Instantiation_Ref): New procedure to read
11607         instantiation references
11608
11609         * ali.ads: Add spec for storing instantiation references
11610
11611         * bindusg.adb: Minor reformatting
11612
11613         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11614
11615         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11616
11617         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11618
11619         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11620
11621         * csets.ads:
11622         Fix header format
11623         Add 2001 to copyright date
11624         Add entry for Latin-5 (Cyrillic ISO-8859-5)
11625
11626 2001-12-14  Matt Gingell <gingell@gnat.com>
11627
11628         * adaint.c: mktemp is a macro on Lynx and can not be used as an
11629         expression.
11630
11631 2001-12-14  Richard Kenner <kenner@gnat.com>
11632
11633         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
11634         if operand is CONSTRUCTOR.
11635
11636 2001-12-14  Ed Schonberg <schonber@gnat.com>
11637
11638         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
11639         before emiting check on right-hand side, so that exception information
11640         is correct.
11641
11642 2001-12-14  Richard Kenner <kenner@gnat.com>
11643
11644         * utils.c (create_var_decl): Throw away initializing expression
11645         if just annotating types and non-constant.
11646
11647 2001-12-14  Vincent Celier <celier@gnat.com>
11648
11649         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
11650         Default_Ada_...
11651
11652         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
11653         Remove functions.
11654         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
11655
11656         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
11657         Remove functions.
11658         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
11659
11660 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
11661
11662         * ChangeLog: Remove piece of diff output.
11663
11664 2001-12-14  Geert Bosch <bosch@gnat.com>
11665
11666         * config-lang.in: Update copyright notice
11667
11668         * layout.adb: Remove commented out code.
11669
11670         * mdllfile.ads: Update copyright notice. Fix header format.
11671
11672         * sem_case.ads: Likewise.
11673
11674         * sem_ch3.adb: Minor reformatting.
11675
11676 2001-12-12  Geert Bosch <bosch@gnat.com>
11677
11678         * freeze.ads: Update copyright date.
11679
11680         * g-comlin.ads: Minor reformatting.
11681
11682         * gnat-style.texi: Fix typo.
11683
11684 2001-12-12  Geert Bosch <bosch@gnat.com>
11685
11686         *  einfo.h: Regenerate.
11687
11688 2001-12-12  Ed Schonberg <schonber@gnat.com>
11689
11690         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
11691         on known node types, rather than untyped fields. Further cleanups.
11692
11693 2001-12-12  Robert Dewar <dewar@gnat.com>
11694
11695         * sem_ch12.adb:
11696         (Save_Entity_Descendant): Minor comment update.
11697         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
11698          of an N_Attribute_Reference node. As per note below, this does not
11699         eliminate need for Associated_Node in attribute ref nodes.
11700         (Associated_Node): Documentation explicitly mentions attribute
11701         reference nodes, since this field is used in such nodes.
11702
11703         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
11704
11705 2001-12-12  Robert Dewar <dewar@gnat.com>
11706
11707         * s-stalib.adb: Add more comments on with statements being needed
11708
11709         * par-ch12.adb: Minor reformatting
11710
11711         * prj-dect.ads: Fix copyright header
11712
11713         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
11714         inputs fit in 32 bits, but the result still overflows.
11715
11716         * s-fatgen.ads: Minor comment improvement
11717
11718 2001-12-12  Ed Schonberg <schonber@gnat.com>
11719
11720         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
11721         formal derived type, look for an inherited component from the full
11722         view of the parent, if any.
11723
11724 2001-12-12  Robert Dewar <dewar@gnat.com>
11725
11726         * checks.ads (Apply_Alignment_Check): New procedure.
11727
11728         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
11729         ensure that the alignment of objects with address clauses is
11730         appropriate, and raise PE if not.
11731
11732         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
11733         Exp_Pakd.Known_Aligned_Enough
11734
11735         * mdllfile.ads: Minor reformatting
11736
11737         * mlib-fil.ads: Minor reformatting
11738
11739 2001-12-12  Ed Schonberg <schonber@gnat.com>
11740
11741         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
11742         fix to any component reference if enclosing record has non-standard
11743         representation.
11744
11745 2001-12-12  Vincent Celier <celier@gnat.com>
11746
11747         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
11748         Iteration
11749
11750 2001-12-12  Ed Schonberg <schonber@gnat.com>
11751
11752         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
11753         sem_attr.
11754
11755 2001-12-12  Robert Dewar <dewar@gnat.com>
11756
11757         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
11758
11759 2001-12-12  Emmanuel Briot <briot@gnat.com>
11760
11761         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
11762         and it adds dependencies to system.io.
11763
11764 2001-12-12  Pascal Obry <obry@gnat.com>
11765
11766         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
11767         variable name.
11768
11769 2001-12-11  Ed Schonberg <schonber@gnat.com>
11770
11771         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
11772         that is the parent of other generics, the instance body replaces the
11773         instance node.  Retrieve the instance of the spec, which is the one
11774         that is visible in clients and within the body.
11775
11776 2001-12-11  Vincent Celier <celier@gnat.com>
11777
11778         * gnatmain.adb: Initial version.
11779
11780         * gnatmain.ads: Initial version.
11781
11782         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
11783
11784         * snames.adb: Updated to match snames.ads.
11785
11786         * snames.ads: Added Gnatstub.
11787
11788 2001-12-11  Vincent Celier <celier@gnat.com>
11789
11790         * prj-attr.adb (Initialization_Data): Change name from
11791         Initialisation_Data.
11792
11793 2001-12-11  Emmanuel Briot <briot@gnat.com>
11794
11795         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
11796         + and * applied to backslashed expressions like \r.
11797
11798 2001-12-11  Vasiliy Fofanov <fofanov@gnat.com>
11799
11800         * g-os_lib.ads: String_List type added, Argument_List type is now
11801         subtype of String_List.
11802
11803 2001-12-11  Robert Dewar <dewar@gnat.com>
11804
11805         * g-os_lib.ads: Change copyright to FSF
11806         Add comments for String_List type
11807
11808 2001-12-11  Vincent Celier <celier@gnat.com>
11809
11810         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
11811         string to the buffer).
11812
11813 2001-12-11  Ed Schonberg <schonber@gnat.com>
11814
11815         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
11816         sem_attr.
11817
11818         * sem_attr.adb: Simplify previous fix for Address.
11819         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
11820         to avoid anomalies where the bound of the type appears to raise
11821         constraint error.
11822
11823 2001-12-11  Robert Dewar <dewar@gnat.com>
11824
11825         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
11826         handled.
11827
11828 2001-12-11  Ed Schonberg <schonber@gnat.com>
11829
11830         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
11831         renamed unit before checking for recursive instantiations.
11832
11833 2001-12-11  Emmanuel Briot <briot@gnat.com>
11834
11835         * prj.ads: Add comments for some of the fields.
11836
11837 2001-12-11  Robert Dewar <dewar@gnat.com>
11838
11839         * lib-xref.adb (Output_Refs): Don't output type references outside
11840         the main unit if they are not otherwise referenced.
11841
11842 2001-12-11  Ed Schonberg <schonber@gnat.com>
11843
11844         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
11845         code and diagnose additional illegal uses
11846
11847         * sem_util.adb (Is_Object_Reference): An indexed component is an
11848         object only if the prefix is.
11849
11850 2001-12-11  Vincent Celier <celier@gnat.com>
11851
11852         * g-diopit.adb: Initial version.
11853
11854         * g-diopit.ads: Initial version.
11855
11856         * g-dirope.adb:
11857         (Expand_Path): Avoid use of Unbounded_String
11858         (Find, Wildcard_Iterator): Moved to child package Iteration
11859
11860         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
11861
11862 2001-12-11  Robert Dewar <dewar@gnat.com>
11863
11864         * sem_attr.adb: Minor reformatting
11865
11866 2001-12-11  Ed Schonberg <schonber@gnat.com>
11867
11868         * sem_ch3.adb: Clarify some ???.
11869
11870 2001-12-11  Robert Dewar <dewar@gnat.com>
11871
11872         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
11873         Exp_Pakd.Known_Aligned_Enough
11874
11875         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
11876         version is moved to Exp_Ch13.
11877
11878 2001-12-11  Robert Dewar <dewar@gnat.com>
11879
11880         * einfo.ads: Minor reformatting
11881
11882         * exp_ch5.adb: Add comment for previous.change
11883
11884         * ali.adb: New interface for extended typeref stuff.
11885
11886         * ali.ads: New interface for typeref stuff.
11887
11888         * checks.adb (Apply_Alignment_Check): New procedure.
11889
11890         * debug.adb: Add -gnatdM for modified ALI output
11891
11892         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
11893
11894         * lib-xref.adb: Extend generation of <..> notation to cover
11895         subtype/object types. Note that this is a complete rewrite,
11896         getting rid of the very nasty quadratic algorithm previously
11897         used for derived type output.
11898
11899         * lib-xref.ads: Extend description of <..> notation to cover
11900         subtype/object types. Uses {..} for these other cases.
11901         Also use (..) for pointer types.
11902
11903         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
11904
11905         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
11906         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
11907
11908 2001-12-11  Vincent Celier <celier@gnat.com>
11909
11910         * gnatcmd.adb:
11911         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
11912         Changed /BIND_ONLY to /ACTIONS=BIND
11913         Changed /LINK_ONLY to /ACTIONS=LINK
11914
11915 2001-12-11  Ed Schonberg  <schonber@gnat.com>
11916
11917         * sem_ch8.adb (Find_Selected_Component): improved search for a
11918         candidate package in case of error.
11919
11920         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
11921         chain back on scope stack before reinstalling use clauses.
11922
11923         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
11924         is enabled, do not kill the code for the condition, to preserve
11925         warning.
11926
11927 2001-12-11  Robert Dewar <dewar@gnat.com>
11928
11929         * checks.adb (Insert_Valid_Check): Apply validity check to expression
11930         of conversion, not to result of conversion.
11931
11932 2001-12-11  Ed Schonberg <schonber@gnat.com>
11933
11934         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
11935         before freezing parent. If the declarations are mutually recursive,
11936         an access to the current record type may be frozen before the
11937         derivation is complete.
11938
11939 2001-12-05  Vincent Celier <celier@gnat.com>
11940
11941         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
11942         -c /COMPILE_ONLY, -l /LINK_ONLY
11943
11944         * opt.ads:
11945         (Bind_Only): New Flag
11946         (Link_Only): New flag
11947
11948         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
11949         and -l (Link_Only)
11950
11951         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
11952
11953         * make.adb:
11954         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
11955         (Gnatmake): Set the step flags. Only perform a step if the
11956         corresponding step flag is True.
11957         (Scan_Make_Arg): Reset the bind and link step flags when -u
11958         or -gnatc has been specified.
11959
11960 2001-12-05  Ed Schonberg <schonber@gnat.com>
11961
11962         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
11963         get bounds from right operand.
11964
11965         * sem_eval.adb: Minor reformatting
11966
11967         * exp_util.adb (Make_Literal_Range): use bound of literal rather
11968         than Index'First, its lower bound may be different from 1.
11969
11970         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
11971         and C48009J
11972
11973 2001-12-05  Vincent Celier <celier@gnat.com>
11974
11975         * prj-nmsc.adb Minor reformatting
11976
11977         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
11978         set and libraries are not supported.
11979
11980 2001-12-05  Ed Schonberg <schonber@gnat.com>
11981
11982         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
11983         private view explicitly, so the back-end can treat as a global
11984         when appropriate.
11985
11986 2001-12-05  Ed Schonberg <schonber@gnat.com>
11987
11988         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
11989          unit, always replace instance node with new body, for ASIS use.
11990
11991 2001-12-05  Vincent Celier <celier@gnat.com>
11992
11993         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
11994         libraries are not supported and both attributes Library_Name and
11995         Library_Dir are specified.
11996
11997         * prj-proc.adb (Expression): Set location of Result to location of
11998         first term.
11999
12000         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
12001         (prj-nmsc is now importing MLib.Tgt)
12002
12003         * prj-proc.adb: Put the change indicated above that was forgotten.
12004
12005 2001-12-05  Robert Dewar <dewar@gnat.com>
12006
12007         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
12008
12009 2001-12-05  Ed Schonberg <schonber@gnat.com>
12010
12011         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
12012         constraint, introduce explicit subtype declaration and derive from it.
12013
12014         * sem_ch3.adb: Minor reformatting
12015
12016 2001-12-05  Robert Dewar <dewar@gnat.com>
12017
12018         * checks.adb (Determine_Range): Increase cache size for checks.
12019         Minor reformatting
12020
12021         * exp_ch6.adb: Minor reformatting
12022         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
12023         a parameter whose root type is System.Address, since treating such
12024         subprograms as pure in the code generator is almost surely a mistake
12025         that will lead to unexpected results.
12026
12027         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
12028         change handling of conversions.
12029
12030         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
12031
12032 2001-12-05  Ed Schonberg <schonber@gnat.com>
12033
12034         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
12035         aggregate with static wrong size, attach generated Raise node to
12036         declaration.
12037
12038 2001-12-05  Robert Dewar <dewar@gnat.com>
12039
12040         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
12041         Fixes compilation abandoned bomb in B24009B.
12042
12043 2001-12-05  Ed Schonberg <schonber@gnat.com>
12044
12045         * sem_ch12.adb:
12046         Document use of Associated_Node on Selected_Components.
12047         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
12048         to clarify use of untyped descendant fields.
12049
12050 2001-12-05  Robert Dewar <dewar@gnat.com>
12051
12052         * prj-dect.ads: Add ??? comment
12053         Add 2001 to copyright notice (was not done in after all)
12054
12055         * prj-part.adb: Minor reformatting. Reword one awkward error message.
12056
12057         * prj.ads: Minor reformatting throughout, and add some ??? comments
12058
12059         * snames.ads: Minor reformatting
12060
12061 2001-12-05  Geert Bosch <bosch@gnat.com>
12062
12063         * snames.adb: Autoupdate
12064
12065 2001-12-05  Vincent Celier <celier@gnat.com>
12066
12067         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
12068
12069         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
12070
12071         * prj-env.adb: Minor comment changes (modifying -> extends).
12072
12073         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
12074
12075         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
12076         Tok_Extends.
12077
12078         * prj.adb (Initialize): Change Modifying to Extends.
12079
12080         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
12081
12082         * prj.ads: Minor comment change (Modifying -> extending).
12083
12084         * snames.ads: Change modifying to extends.
12085
12086 2001-12-05  Robert Dewar <dewar@gnat.com>
12087
12088         * sem_warn.adb: Remove stuff for conditionals, we are not going to
12089         do this after all.
12090
12091         * sem_warn.ads: Remove stuff for conditionals, we are not going to
12092         do this after all.  Add 2001 to copyright notice
12093
12094 2001-12-04  Geert Bosch <bosch@gnat.com>
12095
12096         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
12097
12098 2001-12-04  Robert Dewar <dewar@gnat.com>
12099
12100         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
12101         location if we already have errors. Stops some cases of cascaded
12102         errors.
12103
12104         * errout.adb: Improve comment.
12105
12106 2001-12-04  Robert Dewar <dewar@gnat.com>
12107
12108         * sem_ch12.adb:
12109         (Analyze_Formal_Type_Definition): Defend against Error.
12110         (Analyze_Formal_Subprogram): Defend against Error.
12111
12112         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
12113         remove following semicolon if present. Removes cascaded error.
12114
12115 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
12116
12117         * bindgen.adb:
12118         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
12119          exceptions equals 0.
12120         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
12121         Fixes PIWG E tests (which have to be run with -gnatL).
12122
12123 2001-12-04  Robert Dewar <dewar@gnat.com>
12124
12125         * einfo.ads: Minor reformatting
12126
12127 2001-12-04  Ed Schonberg <schonber@gnat.com>
12128
12129         * einfo.ads: Block_Node points to the identifier of the block, not to
12130         the block node itself, to preserve the link when the block is
12131         rewritten, e.g. within an if-statement with a static condition.
12132
12133         * inline.adb (Cleanup_Scopes): recover block statement from block
12134         entity using new meaning of Block_Node.
12135
12136         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
12137         identifier of block node, rather than to node itself.
12138
12139 2001-12-04  Gary Dismukes <dismukes@gnat.com>
12140
12141         * layout.adb:
12142         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
12143         (Discrimify): Go back to setting the Etypes of the selected component
12144         because the Vname component does not exist at this point and will
12145         fail name resolution. Also set Analyzed.
12146         Remove with and use of Sem_Res.
12147
12148 2001-12-04  Arnaud Charlet <charlet@gnat.com>
12149
12150         * Makefile.in: (HIE_SOURCES): add s-fat*.
12151
12152 2001-12-04  Robert Dewar <dewar@gnat.com>
12153
12154         * sem_attr.adb:
12155         (Compile_Time_Known_Attribute): New procedure.
12156         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
12157          proper range check.
12158
12159 2001-12-04  Ed Schonberg <schonber@gnat.com>
12160
12161         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
12162         processing discriminants to diagnose illegal default values.
12163
12164 2001-12-04  Ed Schonberg <schonber@gnat.com>
12165
12166         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
12167         access discriminant within a type extension that constrains its
12168         parent discriminants.
12169
12170 2001-12-04  Ed Schonberg <schonber@gnat.com>
12171
12172         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
12173         is malformed, use instance of Any_Id to allow analysis to proceed.
12174
12175         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
12176         type definition is illegal.
12177         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
12178         misplaced.
12179
12180 2001-12-04  Ed Schonberg <schonber@gnat.com>
12181
12182         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
12183         constants.
12184
12185 2001-12-04  Robert Dewar <dewar@gnat.com>
12186
12187         * errout.adb: Minor reformatting
12188
12189 2001-12-04  Robert Dewar <dewar@gnat.com>
12190
12191         * exp_util.adb: Minor reformatting from last change
12192
12193         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
12194         which is a rewriting of an expression, traverse the original
12195         expression to remove warnings that may have been posted on it.
12196
12197 2001-12-04  Ed Schonberg <schonber@gnat.com>
12198
12199         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
12200         record that has other packed components.
12201
12202 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
12203
12204         * adaint.c: Minor cleanups.
12205
12206 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
12207
12208         * adaint.c: Do not use utime.h on vxworks.
12209
12210 2001-12-04  Arnaud Charlet <charlet@gnat.com>
12211
12212         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
12213         more confusion than it solves.
12214
12215 2001-12-04  Geert bosch <bosch@gnat.com>
12216
12217         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
12218
12219 2001-12-04  Geert Bosch  <bosch@gnat.com>
12220
12221         * Makefile.in (update-sources): New target.
12222         For use by gcc_release script.
12223
12224 2001-12-04  Ed Schonberg <schonber@gnat.com>
12225
12226         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
12227         a configuration pragma, it is now legal wherever a pragma can appear.
12228
12229 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
12230
12231         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
12232         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
12233         is now @CROSS@ -DIN_GCC; update comment.
12234
12235 2001-12-04  Robert Dewar <dewar@gnat.com>
12236
12237         * einfo.adb (Has_Pragma_Pure_Function): New flag.
12238         Fix problem that stopped ceinfo from working
12239
12240         * einfo.ads (Has_Pragma_Pure_Function): New flag.
12241
12242         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
12243
12244 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
12245
12246         * gnatchop.adb:
12247         (File_Time_Stamp): New procedure.
12248         (Preserve_Mode): New boolean.
12249         (Write_Unit): Pass time stamp.
12250         Implement -p switch (preserve time stamps).
12251
12252         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
12253
12254         * gnatchop.adb: Do usage info for -p switch
12255
12256         * adaint.h (__gnat_set_file_time_name): New function
12257
12258         * adaint.c (__gnat_set_file_time_name): Implement
12259
12260         * adaint.h: Fix typo
12261
12262 2001-12-03  Robert Dewar <dewar@gnat.com>
12263
12264         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
12265         have Associated_Node.
12266
12267 2001-12-03  Robert Dewar <dewar@gnat.com>
12268
12269         * prj-proc.adb: Minor reformatting
12270
12271         * make.adb: Minor reformatting
12272
12273 2001-12-03  Geert Bosch <bosch@gnat.com>
12274
12275         * make.adb: Minor reformatting.
12276
12277 2001-12-03 Robert Dewar  <dewar@gnat.com>
12278
12279         * sem_ch12.adb: Minor reformatting
12280
12281 2001-12-03  Ed Schonberg <schonber@gnat.com>
12282
12283         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
12284         push Standard on the stack before analyzing the instance body,
12285         in order to have a clean visibility environment.
12286
12287         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
12288
12289 2001-12-03  Ed Schonberg <schonber@gnat.com>
12290
12291         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
12292         instantiation of a body that contains an inlined body.
12293
12294 2001-12-03  Ed Schonberg <schonber@gnat.com>
12295
12296         * sem_ch12.adb:
12297         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
12298         to prevent freezing within formal packages.
12299         (Freeze_Subprogram_Body): If body comes from another instance that
12300         appeared before its own body, place freeze node at end of current
12301         declarative part, to prevent a back-end crash.
12302         (Inline_Instance_Body): Handle properly a package instance within
12303         a subprogram instance that is a child unit.
12304
12305 2001-12-01  Graham Stott  <grahams@redhat.com>
12306
12307         * Makefile.in (misc.o): Add missing $(srcdir) prefix
12308         and add optabs.h dependency.
12309
12310         * misc.c: Include optabs.h
12311         (gnat_tree_code_type): Make static and const.
12312         (gnat_tree_code_length): Likewise.
12313         (gnat_tree_code_name): Likewise.
12314         (update_setjmp_buf): Obtain operands mode from insn_data.
12315
12316 2001-11-29  Richard Henderson  <rth@redhat.com>
12317
12318         * init.c: Remove obsolete dwarf2 frame.h section.
12319
12320 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
12321
12322         * Make-lang.in (ada.generated-manpages): New dummy target.
12323
12324 2001-11-29  Ed Schonberg <schonber@gnat.com>
12325
12326         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
12327         into Command, an array conversion is illegal here. Uncovered by
12328         ACATS B460005.
12329
12330 2001/11/28  Geert Bosch <bosch@gnat.com>
12331
12332         * init.c: Minor whitespace changes.
12333
12334 2001-11-28  Doug Rupp <rupp@gnat.com>
12335
12336         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
12337         signal stack.
12338
12339 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
12340
12341         * misc.c (gnat_expand_constant): Move declaration above
12342         definition of lang_hooks.
12343         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
12344         (gnat_init): lang_expand_constant no longer exists.
12345
12346         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
12347         always have vprintf.
12348         (gnat_init): Always call set_internal_error_function.
12349
12350 2001-11-27  Andreas Jaeger  <aj@suse.de>
12351
12352         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
12353
12354 2001-11-27  Laurent Guerby  <guerby@acm.org>
12355
12356         * Makefile.in: Regenerate Ada dependencies.
12357
12358 2001-11-26  Richard Henderson  <rth@redhat.com>
12359
12360         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
12361         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
12362         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
12363
12364 2001-11-25  Laurent Guerby  <guerby@acm.org>
12365
12366         * sysdep.c (rts_get_*): Fix style.
12367
12368 2001-11-19  Laurent Guerby  <guerby@acm.org>
12369
12370         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
12371         since it is of no apparent use and cause warnings.
12372
12373 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
12374
12375         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
12376         static too.
12377         (gnat_init): Don't return NULL.
12378         (finish_parse): Remove.
12379
12380 2001-11-17  Laurent Guerby  <guerby@acm.org>
12381
12382         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
12383         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
12384         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
12385         * lang-spec.h: Add missing struct field to silence warnings.
12386         * sysdep.c (rts_get_*): Provide K&R prototype.
12387         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
12388         * traceback.c (Unlock_Task, Lock_Task): Likewise.
12389         * tracebak.c (__gnat_backtrace): Remove unused variable.
12390         * utils.c (end_subprog_body): Move to K&R style.
12391
12392 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12393
12394         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
12395
12396 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
12397
12398         * misc.c (gnat_init): Change prototype.  Include the
12399         functionality of the old init_parse and init_decl_processing.
12400         (gnat_init_decl_processing): New prototype.
12401         (init_parse): Remove.
12402         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
12403
12404 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
12405
12406         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
12407         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
12408         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
12409         set_yydebug): Remove.
12410
12411 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
12412
12413         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
12414         (struct lang_hooks): Constify.
12415         (language_string, lang_identify): Remove.
12416         * utils.c (init_decl_processing): Update.
12417
12418 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12419
12420         * misc.c: Include langhooks-def.h.
12421         * Makefile.in: Update.
12422
12423 2001-10-30  Robert Dewar <dewar@gnat.com>
12424
12425         * style.adb:
12426         (Check_Identifier): Rewrite circuit to be compatible with use of letters
12427         in the upper half of ASCII.
12428         (Check_Identifier): Minor reformatting
12429
12430 2001-10-30  Geert Bosch <bosch@gnat.com>
12431
12432         * (Associated_Node, Set_Associated_Node): Do not check for
12433         Freeze_Entity.
12434
12435 2001-10-30  Robert Dewar <dewar@gnat.com>
12436
12437         * a-reatim.ads: Minor reformatting
12438
12439 2001-10-30  Robert Dewar <dewar@gnat.com>
12440
12441         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
12442         undocumented declarations.
12443
12444 2001-10-30  Pascal Obry <obry@gnat.com>
12445
12446         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
12447         to the binder and linker.
12448         Minor style fix.
12449
12450         * mdll.ads: Fix layout.  Update copyright notice.
12451
12452         * mdll.adb: Fix layout.  Update copyright notice.
12453
12454 2001-10-30  Robert Dewar <dewar@gnat.com>
12455
12456         * usage.adb: Minor fix to output for -gnaty.
12457
12458 2001-10-30  Ed Schonberg <schonber@gnat.com>
12459
12460         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
12461         to accommodate all its possible values.
12462
12463         * a-reatim.adb (Split): Special-case handling of Time_Span_First
12464         and of small absolute values of T.
12465
12466 2001-10-30  Richard Kenner <kenner@gnat.com>
12467
12468         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
12469         set_mem_attributes since not needed and wrong if RESULT if a REG;
12470         fixes ACATS failures.
12471
12472 2001-10-30  Geert Bosch <bosch@gnat.com>
12473
12474         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
12475         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
12476
12477 2001-10-30  Robert Dewar <dewar@gnat.com>
12478
12479         * bindusg.adb: Undocument -f switch.
12480
12481         * gnatcmd.adb: Remove /FULL_ELABORATION.
12482
12483         * opt.ads (Force_RM_Elaboration_Order): Document that this is
12484         obsolescent.
12485
12486         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
12487
12488         * gnatbind.adb: Minor update of warning msg.
12489
12490 2001-10-30  Vincent Celier <celier@gnat.com>
12491
12492         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
12493         for project file switches (-P (/PROJECT_FILE=),
12494          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
12495         or MEDIUM or HIGH)
12496
12497 2001-10-30  Geert Bosch <bosch@gnat.com>
12498
12499         * decl.c: Minor whitespace fixes.
12500
12501 2001-10-30  Richard Kenner <kenner@gnat.com>
12502
12503         * utils2.c (build_allocator): Test for SIZE overflow in array case too
12504
12505 2001-10-30  Geert Bosch <bosch@gnat.com>
12506
12507         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
12508         Found due to GCC 3.0 warning of using uninitialized value.
12509
12510         * layout.adb:
12511         (Get_Max_Size): Use variant record for tracking value/expression.
12512          Makes logic clearer and prevents warnings for uninitialized variables.
12513         (Layout_Array_Type): Use variant record for tracking value/expression.
12514          Makes logic clearer and prevents warnings for uninitialized variables.
12515
12516 2001-10-30  Robert Dewar <dewar@gnat.com>
12517
12518         * lib.adb: Minor reformatting
12519
12520         * s-taprop.ads: Minor reformatting
12521
12522 2001-10-29  Laurent Guerby  <guerby@acm.org>
12523
12524         * init.c:
12525         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
12526         const.
12527         (_gnat_error_handler): Make MSG const.
12528
12529 2001-10-29  Richard Kenner <kenner@gnat.com>
12530
12531         * sysdep.c: Fix localtime_r problem on LynxOS.
12532         Also remove #elif to avoid warnings.
12533
12534         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
12535         used by this.
12536
12537         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
12538
12539 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
12540
12541         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
12542         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
12543         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
12544         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
12545         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
12546         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
12547         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
12548         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
12549         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
12550         types.ads, urealp.adb: Fix spelling errors.
12551
12552 2001-10-27  Laurent Guerby <guerby@acm.org>
12553
12554         * trans.c (gigi): Fix non determinism leading to bootstrap
12555         comparison failures for debugging information.
12556
12557 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
12558
12559         * gnat_rm.texi: Use @./@: where appropriate.
12560
12561 2001-10-26  Robert Dewar <dewar@gnat.com>
12562
12563         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
12564
12565 2001-10-26  Richard Kenner <kenner@gnat.com>
12566
12567         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
12568
12569 2001-10-26  Richard Kenner <kenner@gnat.com>
12570
12571         * decl.c (validate_size): Modify message for bad size to avoid
12572         implication that compiler is modifying the size.
12573
12574 2001-10-26  Robert Dewar <dewar@gnat.com>
12575
12576         * prj-util.adb: Minor reformatting. Fix bad header format.
12577
12578 2001-10-26  Robert Dewar <dewar@gnat.com>
12579
12580         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
12581
12582         * sinfo.ads: Clarify use of Associated_Node (documentation only).
12583
12584         * sem_ch12.adb: Change Node4 to Associated_Node. Change
12585         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
12586         much more narrowly in places where needed. These are cleanups.
12587
12588 2001-10-26  Joel Brobecker <brobecke@gnat.com>
12589
12590         * 5zosinte.ads (null_pthread): new constant.
12591
12592         * 5ztaprop.adb:
12593         (Initialize_TCB): Initialize thread ID to null, to be able to verify
12594          later that this field has been set.
12595         (Finalize_TCB): ditto.
12596         (Suspend_Task): Verify that the thread ID is not null before using it.
12597         (Resume_Task): ditto.
12598
12599         * s-tasdeb.adb:
12600         (Resume_All_Tasks): Lock the tasks list before using it.
12601         (Suspend_All_Tasks): ditto.
12602
12603 2001-10-26  Richard Kenner <kenner@gnat.com>
12604
12605         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
12606         Make constant variant of designated type for Is_Access_Constant.
12607         Call update_pointer_to with main variant.
12608
12609         * trans.c (process_freeze_entity, process_type):
12610         Call update_pointer_to on main variant.
12611
12612         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
12613         If main variant, update all other variants.
12614
12615         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
12616         TREE_STATIC.
12617
12618 2001-10-26  Robert Dewar <dewar@gnat.com>
12619
12620         * prj-util.adb: Minor reformatting
12621
12622 2001-10-26  Robert Dewar <dewar@gnat.com>
12623
12624         * prj-util.adb: Minor reformatting
12625
12626 2001-10-26  Robert Dewar <dewar@gnat.com>
12627
12628         * prj-attr.adb: Minor reformatting throughout
12629
12630 2001-10-26  Robert Dewar <dewar@gnat.com>
12631
12632         * prj-attr.ads: Minor reformatting
12633         Add ??? comment (this whole spec has almost no comments)
12634
12635 2001-10-26  Vincent Celier <celier@gnat.com>
12636
12637         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
12638         ("//") that precede the drive letter on Interix.
12639
12640 2001-10-26  Geert Bosch <bosch@gnat.com>
12641
12642         * gnat_rm.texi: Add GNAT Reference Manual.
12643
12644 2001-10-25  Robert Dewar <dewar@gnat.com>
12645
12646         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
12647         is Error. Similar change for other renaming cases.
12648
12649 2001-10-25  Robert Dewar <dewar@gnat.com>
12650
12651         * s-atacco.ads: Add pragma Inline_Always for functions.
12652         Fix header format. Add copyright 2001
12653
12654 2001-10-25  Ed Schonberg <schonber@gnat.com>
12655
12656         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
12657         return Error rather than Empty so that analysis can proceed.
12658
12659 2001-10-25  Ed Schonberg <schonber@gnat.com>
12660
12661         * sem_util.adb (Enter_Name): better handling of cascaded error
12662         messages when a unit appears in its own context.
12663
12664 2001-10-25  Ed Schonberg <schonber@gnat.com>
12665
12666         * sem_util.adb (Defining_Entity): in case of error, attach created
12667         entity to specification, so that semantic analysis can proceed.
12668
12669 2001-10-25  Robert Dewar <dewar@gnat.com>
12670
12671         * sem_util.adb
12672         (Defining_Entity): Deal with Error.
12673         (Process_End_Label): Deal with bad end label for.
12674
12675 2001-10-25  Ed Schonberg <schonber@gnat.com>
12676
12677         * sem_elab.adb (Check_A_Call): refine message when call is in an
12678         instance but callee is not declared in the generic unit.
12679
12680 2001-10-25  Ed Schonberg <schonber@gnat.com>
12681
12682         * sem_elab.adb (Check_A_Call): check for renaming before finding the
12683         enclosing unit, which may already be different from the calling unit.
12684
12685 2001-10-25  Geert Bosch <bosch@gnat.com>
12686
12687         * 4gintnam.ads: fix header format.
12688
12689 2001-10-25  Ed Schonberg <schonber@gnat.com>
12690
12691         * sem_res.adb (Resolve_Call): if the call is actually an indexing
12692         operation on the result of a parameterless call, perform elaboration
12693         check after the node has been properly rewritten.
12694
12695         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
12696         inlined within the generic tree, the defining identifier is not a
12697         compilation_unit.
12698
12699 2001-10-25  Ed Schonberg <schonber@gnat.com>
12700
12701         * sem_res.adb (Resolve): special-case resolution of Null in an
12702          instance or an inlined body to avoid view conflicts.
12703
12704         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
12705          compatibility by retrieving the access type of the generic copy.
12706
12707 2001-10-25  Robert Dewar <dewar@gnat.com>
12708
12709         * sem_ch3.adb:
12710         (Analyze_Number_Declaration): Handle error expression.
12711         (Signed_Integer_Type_Declaration): Handle error bound.
12712         (Analyze_Subtype_Indication): Handle error range.
12713
12714         * sem_util.adb (Get_Index_Bounds): Check for Error.
12715
12716 2001-10-25  Robert Dewar <dewar@gnat.com>
12717
12718         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
12719         in no run time mode.
12720
12721 2001-10-25  Pascal Obry <obry@gnat.com>
12722
12723         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
12724         mode case for ALLOC case.
12725
12726         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
12727         all platforms. Improvement of last change.
12728
12729 2001-10-25  Robert Dewar <dewar@gnat.com>
12730
12731         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
12732
12733 2001-10-25  Geert Bosch  <bosch@gnat.com>
12734
12735         * osint.adb (Is_Relative): Remove duplicate.
12736
12737 2001-10-25  Pascal Obry <obry@gnat.com>
12738
12739         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
12740         pathnames in UNIX and DOS style with drive letter.
12741         (Is_Relative): new routine.
12742
12743         * osint.adb: Minor reformatting
12744
12745         * osint.adb (Is_Relative): implementation using
12746         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
12747
12748 2001-10-25  Pascal Obry <obry@gnat.com>
12749
12750         * g-dirope.adb (Basename): correctly compute offset between the
12751         original Path and the translated one.
12752
12753         * g-dirope.adb: (Base_Name): add some comments.
12754
12755 2001-10-25  Robert Dewar <dewar@gnat.com>
12756
12757         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
12758         in HIE mode, avoids compilation abandoned message
12759
12760         * exp_imgv.adb: Correct typo in previous change
12761
12762         * exp_imgv.adb: Correct typo in previous change (not my day!)
12763
12764 2001-10-25  Robert Dewar <dewar@gnat.com>
12765
12766         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
12767
12768 2001-10-25  Pascal Obry <obry@gnat.com>
12769
12770         * g-awk.ads: Move all pragma inlines next to the routine
12771          declarations. This is more uniform with other GNAT spec.
12772
12773 2001-10-22  Geert Bosch  <bosch@gnat.com>
12774
12775         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
12776
12777 2001-10-19  Geert Bosch  <bosch@gnat.com>
12778
12779         * Makefile.in (tools, gnattools): Remove gnatmem.
12780
12781 2001-10-17  Richard Henderson  <rth@redhat.com>
12782
12783         * Makefile.in (misc.o): Depend on langhooks.h.
12784         * misc.c: Include it.
12785         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
12786         (LANG_HOOKS_DECODE_OPTION): New.
12787         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
12788
12789 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
12790
12791         * trans.c (tree_transform): Adjust to recent change in
12792         expand_asm_operands to implement named asm operands.
12793
12794 2001-10-11  Ed Schonberg  <schonber@gnat.com>
12795
12796         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
12797         renaming of discriminant for mutable record type.
12798
12799 2001-10-11  Robert Dewar  <dewar@gnat.com>
12800
12801         * validsw.adb: Properly save -gnatVn status.
12802
12803 2001-10-11  Robert Dewar <dewar@gnat.com>
12804
12805         * usage.adb: Add lines for V switch.
12806
12807         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
12808         (/VALIDITY_CHECKING).
12809
12810 2001-10-11  Ed Schonberg <schonber@gnat.com>
12811
12812         * sem_type.adb (Add_One_Interp): an operator for a type declared in
12813         an extension of System is known to be visible.
12814
12815 2001-10-11  Ed Schonberg <schonber@gnat.com>
12816
12817         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
12818         properly. Fixes regression on ACATS C34005G.
12819
12820 2001-10-11  Robert Dewar <dewar@gnat.com>
12821
12822         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
12823         loop in generic instance, since this is likely not very useful.
12824
12825 2001-10-11  Robert Dewar <dewar@gnat.com>
12826
12827         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
12828         the error message for high integrity mode.
12829
12830         * rtsfind.adb (RTE): Give message if we try to find an entity that
12831         is not available in high integrity mode.
12832
12833         * rtsfind.ads:
12834         (OK_To_Use_In_HIE_Mode): New array.
12835         (RTE): May return Empty in high integrity mode.
12836
12837         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
12838         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
12839
12840         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
12841         unit if not inlined always and in no runtime mode. Fixes problem
12842         caused by new Rtsfind changes.
12843
12844         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
12845         body is deleted.
12846
12847         * rtsfind.adb (RTE): Make sure we do not try to load unit after
12848         giving message for entity not available in high integrity mode.
12849
12850 2001-10-11  Pascal Obry <obry@gnat.com>
12851
12852         * impunit.adb: Add GNAT.CRC32.
12853
12854 2001-10-11  Ed Schonberg <schonber@gnat.com>
12855
12856         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
12857         properly the case where one universal operand in a non-static
12858         exponentiation of a real literal.
12859
12860 2001-10-11  Ed Schonberg <schonber@gnat.com>
12861
12862         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
12863         clause, return the gobal finalization list, for lack of anthing else.
12864
12865 2001-10-11  Ed Schonberg <schonber@gnat.com>
12866
12867         * exp_ch7.adb (Make_Transient_Block): if statement is within
12868         exception handler, always use new transient scope to place Clean
12869         procedure.
12870
12871 2001-10-11  Pascal Obry <obry@gnat.com>
12872
12873         * Makefile.in:
12874         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
12875         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
12876         (GNATLS_RTL_OBJS): add g-crc32.o
12877         (GNATMAKE_RTL_OBJS): add g-crc32.o
12878
12879         * ali-util.adb:
12880         (CRC_Match): new function.
12881         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
12882         instead of the previous simple checksum algorithm.
12883         (Time_Stamp_Mismatch): use CRC_Match for comparison.
12884         (Set_Source_Table): idem.
12885
12886         * ali-util.ads:
12887         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
12888         instead of simple checksum.
12889         (CRC_Match): new function.
12890         (CRC_Error): new constant.
12891
12892         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
12893         a CRC now and not a simple checksum. A CRC uses lower-case hex
12894         letters, fixes ambiguity in parsing.
12895
12896         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
12897         is what this variable will store.
12898
12899         * bcheck.adb: Change reference to chechsum in comments by CRC.
12900         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
12901         rename All_Checksum_Match to All_CRC_Match. Change due to API
12902         renaming since now GNAT does not use a simple checksum but a
12903         CRC using GNAT.CRC32.
12904
12905         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
12906         now and not anymore a simple checksum.
12907
12908         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
12909         places.
12910
12911         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
12912
12913         * scans.adb:
12914         (Restore_Scan_State): rename Checksum to CRC.
12915         (Save_Scan_State): idem.
12916
12917         * scans.ads:
12918         With GNAT.CRC32.
12919         (Checksum): rename to CRC.
12920         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
12921
12922         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
12923         GNAT.CRC32).  Update copyright notice.
12924
12925         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
12926         GNAT.CRC32).  Update copyright notice.
12927
12928         * scn.adb:
12929         (Accumulate_Checksum): removed.
12930         (Update): new procedure. Add a wide-character into the CRC.
12931
12932         * sinput-l.adb:
12933         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
12934         (Load_File): fix initialization of S (change Source_Checksum to
12935         Source_CRC)
12936
12937         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
12938         Source_CRC in S initialization.
12939
12940         * sinput.adb (Source_Checksum): renamed to Source_CRC.
12941
12942         * sinput.ads (Source_Checksum): renamed to Source_CRC.
12943         Update comments for the CRC.
12944
12945         * types.adb (Hex): Use lowercase for the letter part.
12946
12947         * types.ads (Get_Hex_String): Returns the hexadecimal representation
12948         for a word. This is currently used only for CRC. In previous version,
12949         the checksum was using a representation with all letter being
12950         upper-case. With the new implementation (using CRC) we do not remove
12951         the 32th bit of the CRC, so we can have an upper-case starting letter
12952         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
12953         It is ambigous since the CRC was optional and could be followed by
12954         options like EB, EE. So now this routines uses lower-case letter for
12955         the hexadecimal representation. Strange enough only lower case letters
12956         where checked in Scan_ALI (even if this was not a possible case).
12957
12958         * gnatvsn.ads (Library_Version): changed to 3.15a.
12959
12960         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
12961         for the compiler.
12962
12963         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
12964         for the compiler.
12965
12966         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
12967         Add 2001 to copyright notice
12968         (Accumulate_Checksum): Modify to use System.CRC32.
12969
12970         * ali-util.ads: Redo changes of previous revision to continue to use
12971         the word Checksum. Add 2001 to copyright notice.
12972
12973         * ali.adb: Undo some of previous changes, not needed.
12974         Keep the change for lower case letters in the checksum.
12975
12976         * ali.ads: Undo previous change not needed.
12977
12978         * bcheck.adb: Undo most of previous change, not needed.
12979         But do use Checksums_Match for checksum comparison.
12980
12981         * gnatls.adb: Undo most of previous change, not needed.
12982         But do use Checksums_Match for comparing checksums.
12983
12984         * lib-load.adb: Undo previous change, not needed.
12985
12986         * lib-writ.adb: Undo previous change, not needed.
12987
12988         * lib-writ.ads: Document that checksums use lower case,
12989         not upper case letters.
12990
12991         * scans.adb: Undo previous change, not needed
12992
12993         * scans.ads: Undo previous change, not needed.
12994
12995         * scn-nlit.adb: Undo previous changes, not needed.
12996
12997         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
12998
12999         * scn.adb:
13000         (Accumulate_Checksum): Use System.CRC32.
13001         (Initialize_Checksum): New procedure.
13002         Remove other changes of previous revision.
13003
13004         * sinput-p.adb: Undo previous change, not needed.
13005
13006         * sinput.adb: Undo previous change, not needed.
13007
13008         * sinput-l.adb: Undo previous change, not needed.
13009
13010         * sinput.ads: Undo previous change, not needed.  Keep only comment
13011         on new checksum algorithm
13012
13013         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
13014         Also remove a-tags and a-stream from GNAT sources.
13015
13016         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
13017
13018         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
13019
13020 2001-10-11  Geert Bosch  <bosch@gnat.com>
13021
13022         * einfo.h: Regenerate.
13023
13024         * nmake.ads: Regenerate.
13025
13026         * nmake.adb: Regenerate.
13027
13028         * sinfo.h: Regenerate.
13029
13030         * treeprs.adb: Regenerate.
13031
13032 2001-10-10  Geert Bosch  <bosch@gnat.com>
13033
13034         * gnat-style.texi: New file describing coding guidelines for Ada.
13035
13036 2001-10-10  Ed Schonberg <schonber@gnat.com>
13037
13038         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
13039         is Flag174.
13040
13041 2001-10-10  Geert Bosch  <bosch@gnat.com>
13042
13043         * snames.ads: Add new names for project facility.
13044
13045         * snames.adb: Update to reflect snames.ads changes.
13046
13047         * snames.h: Update to reflect snames.ads changes.
13048
13049 2001-10-10  Vincent Celier <celier@gnat.com>
13050
13051         * make.adb:
13052         (Add_Switches): reflect the changes for the switches attributes
13053         Default_Switches indexed by the programming language,
13054         Switches indexed by the file name.
13055         (Collect_Arguments_And_Compile): Idem.
13056         Reflect the attribute name changes.
13057
13058         * prj-attr.adb:
13059         (Initialisation_Data): Change the names of some packages and
13060         attributes.
13061         (Initialize): process case insensitive associative arrays.
13062
13063         * prj-attr.ads:
13064         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
13065
13066         * prj-dect.adb:
13067         (Parse_Attribute_Declaration): For case insensitive associative
13068          arrays, set the index string to lower case.
13069
13070         * prj-env.adb:
13071         Reflect the changes of the project attributes.
13072
13073         * prj-nmsc.adb:
13074         Replace Check_Naming_Scheme by Ada_Check and
13075         Language_Independent_Check.
13076
13077         * prj-nmsc.ads:
13078         Replaced Check_Naming_Scheme by 2 procedures:
13079         Ada_Check and Language_Independent_Check.
13080
13081         * prj-proc.adb:
13082         (Process_Declarative_Items): For case-insensitive associative
13083         arrays, set the index string to lower case.
13084         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
13085         Prj.Nmsc.Check_Naming_Scheme.
13086
13087         * prj-tree.adb:
13088         (Case_Insensitive): New function
13089         (Set_Case_Insensitive): New procedure
13090
13091         * prj-tree.ads:
13092         (Case_Insensitive): New function
13093         (Set_Case_Insensitive): New procedure
13094         (Project_Node_Record): New flag Case_Insensitive.
13095
13096         * prj-util.adb:
13097         (Value_Of): new function to get the string value of a single
13098         string variable or attribute.
13099
13100         * prj-util.ads:
13101         (Value_Of): new function to get the string value of a single
13102         string variable or attribute.
13103
13104         * prj.adb:
13105         (Ada_Default_Spec_Suffix): New function
13106         (Ada_Default_Impl_Suffix): New function
13107         Change definitions of several constants to reflect
13108         new components of record types.
13109
13110         * prj.ads:
13111         (Naming_Data): Change several components to reflect new
13112         elements of naming schemes.
13113         (Project_Data): New flags Sources_Present and
13114         Language_Independent_Checked.
13115         (Ada_Default_Spec_Suffix): New function.
13116         (Ada_Default_Impl_Suffix): New function.
13117
13118         * snames.ads:
13119         Modification of predefined names for project manager: added
13120         Implementation, Specification_Exceptions, Implementation_Exceptions,
13121         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
13122         Default_Switches, _Languages, Builder, Cross_Reference,
13123         Finder. Removed Body_Part, Specification_Append, Body_Append,
13124         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
13125         Gnatlink.
13126
13127         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
13128         Add comments.
13129
13130         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
13131         not that it is Nil_Variable_Value.
13132
13133         * prj.ads: Add ??? for uncommented declarations
13134
13135 2001-10-10  Ed Schonberg <schonber@gnat.com>
13136
13137         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
13138         constant, do not indicate possible modification, so that gigi can
13139         treat it as a bona fide constant.
13140
13141 2001-10-10  Robert Dewar <dewar@gnat.com>
13142
13143         * sem_prag.adb: Add processing for pragma External.
13144
13145         * snames.ads: Add entry for pragma External.
13146
13147         * par-prag.adb: Add pragma External.
13148
13149         * snames.adb: Updated to match snames.ads.
13150
13151 2001-10-10  Ed Schonberg <schonber@gnat.com>
13152
13153         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
13154         a dynamic task if the allocator appears in an indexed assignment
13155         or selected component assignment.
13156
13157         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
13158         For a dynamic task in an assignment statement, use target of
13159         assignment to generate meaningful name.
13160
13161 2001-10-10  Ed Schonberg <schonber@gnat.com>
13162
13163         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
13164         a generic package.
13165
13166         * einfo.ads: Body_Entity is also defined for generic package.
13167         Documentation change only
13168
13169         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
13170         others_choice for a discriminated component initialization,
13171         convert discriminant references into the corresponding discriminals.
13172
13173         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
13174         only if original type is private and expression has to be wrapped
13175         in a conversion.
13176
13177         * checks.adb:
13178         (Apply_Constraint_Check): Do not perform length check
13179         if expression is an aggregate with only an others_choice.
13180         (Length_N_Cond): two references to the same in_parameter
13181         (typically the discriminal in an init_proc) denote the same value.
13182         Two useful optimization uncovered by bugfixes above.
13183
13184 2001-10-10  Robert Dewar <dewar@gnat.com>
13185
13186         * xeinfo.adb: Change int to char in translation of enumeration types.
13187         This fixes a problem in the C representation of component alignment.
13188         Add 2001 to copyright notice
13189
13190 2001-10-10  Richard Kenner <kenner@gnat.com>
13191
13192         * decl.c: (validate_size): Do check size of object of integral type
13193         if it is a packed array type.
13194
13195 2001-10-10  Richard Kenner <kenner@gnat.com>
13196
13197         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
13198         VAR_DECL for constant if not Is_Public but -O0.
13199
13200 2001-10-10  Richard Kenner  <kenner@gnat.com>
13201
13202         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
13203
13204 2001-10-10  Geert Bosch  <bosch@gnat.com>
13205
13206         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
13207         use '/' as switch character, allowing for absolute file names.
13208
13209 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
13210
13211         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
13212         FSF address.
13213
13214 2001-10-08  Geert Bosch  <bosch@gnat.com>
13215
13216         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
13217         Automatically build utilities when files need to be regenerated.
13218
13219 2001-10-08  Geert Bosch  <bosch@gnat.com>
13220
13221         * xsnames.adb: New utility for updating snames.ads and snames.adb
13222
13223 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
13224
13225         * Make-lang.in (ADAFLAGS): Add -W -Wall.
13226         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
13227         (gnat1): Also depend on attribs.o.
13228         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
13229         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
13230         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
13231         (ADAFLAGS): Add -W -Wall.
13232         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
13233         take out CFLAGS.
13234
13235         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
13236         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
13237         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
13238         Use $(ADAC), not $(CC), as compilation command.
13239
13240         (gnattools): Depend directly on tools to build, don't use
13241         recursive make.
13242         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
13243
13244         * einfo.h, sinfo.h: New files (autogenerated).
13245
13246 2001-10-08  Richard Henderson  <rth@redhat.com>
13247
13248         * comperr.adb (Abort_In_Progress): New.
13249         (Compiler_Abort): Use it to prevent recursion.
13250
13251 2001-10-08  Robert Dewar <dewar@gnat.com>
13252
13253         * atree.adb: Set Error_Posted in Error node, helps error recovery.
13254
13255         * par-endh.adb (Output_End_Expected): We should also not test
13256         Error_Posted on the Error node, since now it is always set.
13257
13258         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
13259         to help error recovery. Part of general work on 9407-004.
13260
13261         * par.adb: Add ??? for misuse of error
13262
13263         * sem_res.adb:
13264         (Resolve): Defend against Error, fixes 9407-003.
13265         (Resolve_Discrete_Subtype_Indication): Defend against Error.
13266
13267         * sinfo.ads (N_Error): Now has Etype field (which will be set
13268         to Any_Type to help error recovery).
13269
13270 2001-10-08  Richard Kenner (kenner@gnat.com)
13271
13272         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
13273         Consistently set MEM attributes from expression; fixes
13274         bootstrap failure on x86.
13275
13276 2001-10-08  Geert Bosch  (bosch@gnat.com)
13277
13278         * 5oosinte.adb: Add 2001 to copyright notice.
13279
13280 2001-10-08  Geert Bosch  (bosch@gnat.com)
13281
13282         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
13283
13284         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
13285
13286 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
13287
13288         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
13289
13290 2001-10-05  Geert Bosch  (bosch@gnat.com)
13291
13292         * adaint.h: Small formatting fix.
13293
13294 2001-10-04  Geert Bosch  <bosch@gnat.com>
13295
13296         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
13297         Arg is int, not FILE *, in dummy version of functions.
13298
13299         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
13300         Arg is int, not FILE *.
13301
13302 2001-10-04  Geert Bosch  <bosch@gnat.com>
13303
13304         * 3lsoccon.ads: Added file, missed with initial check ins.
13305
13306         * 4lintnam.ads: Fix header format.
13307         Change Linux to GNU/Linux.
13308
13309         * 5iosinte.adb: Change Linux to GNU/Linux.
13310
13311         * 5iosinte.ads: Change Linux to GNU/Linux.
13312
13313         * 5itaprop.adb: Change Linux to GNU/Linux.
13314
13315         * 5itaspri.ads: Change Linux to GNU/Linux.
13316         Update copyright notice.
13317
13318         * 5lintman.adb: Change Linux to GNU/Linux.
13319
13320         * 5lml-tgt.adb: Change Linux to GNU/Linux.
13321
13322         * 5losinte.ads: Change Linux to GNU/Linux.
13323
13324         * 5lsystem.ads: Change Linux to GNU/Linux.
13325
13326         * 5qosinte.adb: Change Linux to GNU/Linux.
13327
13328         * 5qosinte.ads: Change Linux to GNU/Linux.
13329
13330         * 5qparame.ads: Change Linux to GNU/Linux.
13331
13332         * 5qtaprop.adb: Change Linux to GNU/Linux.
13333
13334         * 5qtaspri.ads: Change Linux to GNU/Linux.
13335         Add 2001 to copyright notice.
13336
13337         * 5vintman.ads: Change Linux to GNU/Linux.
13338         Fix header format.  Add 2001 to copyright notice.
13339
13340         * g-soccon.ads: Change Linux to GNU/Linux.
13341
13342         * g-trasym.ads: Change Linux to GNU/Linux.
13343         Add 2001 to copyright notice.
13344
13345         * memtrack.adb: Change Linux to GNU/Linux.
13346
13347         * s-intman.ads: Change Linux to GNU/Linux.
13348         Add 2001 to copyright notice.  Fix header format.
13349
13350         * s-stache.adb: Change Linux to GNU/Linux.
13351
13352         * adaint.c: Change Linux to GNU/Linux.
13353
13354         * cio.c: Change Linux to GNU/Linux.
13355
13356         * cstreams.c: Change Linux to GNU/Linux.
13357
13358         * init.c: Change Linux to GNU/Linux.
13359
13360         * gmem.c: Change Linux to GNU/Linux.
13361
13362         * tracebak.c: Change Linux to GNU/Linux.
13363
13364
13365 2001-10-02  Geert Bosch  <bosch@gnat.com>
13366
13367         * misc.c (insert_default_attributes): Add dummy version.