OSDN Git Service

2004-10-04 Ed Schonberg <schonberg@gnat.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
2
3         * sem_ch12.adb (Check_Generic_Actuals): New predicate
4         Denotes_Previous_Actual, to handle properly the case of a private
5         actual that is also the component type of a subsequent array actual.
6         The visibility status of the first actual is not affected when the
7         second is installed.
8         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
9         make fully recursive the treatment of formals of packages declared
10         with a box.
11         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
12         the above on exit from an instantiation.
13         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
14         current instantiation which is now complete.
15         (Analyze_Package_Instantiation): No instantiated body is needed if the
16         main unit is generic. Efficient, and avoid anomalies when a instance
17         appears in a package accessed through rtsfind.
18
19 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
20
21         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
22         do not generate a declaration for a temporary if the call is part of a
23         library-level instantiation.
24
25 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
26
27         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
28         searching for a limited component to flag.
29
30         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
31         expansion of Input, to account for the fact that the implicit call
32         generated by the attribute reference must freeze the user-defined
33         stream subprogram. This is only relevant to 'Input, because it can
34         appear in an object declaration, prior to the body of the subprogram.
35
36         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
37         expansion can proceed and further errors uncovered.
38         (Minor clean up): Fix cases of using | instead of \ for continuation
39         messages.
40
41 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
42
43         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
44
45         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
46         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
47         Use gcc_assert and gcc_unreachable.
48
49         * decl.c (gnat_to_gnu_entity, case object): Check and process a
50         specified alignment before validating size.
51         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
52         stripped-down declaration for the type of the inner field when making
53         a JM type.
54
55         * utils.c (finish_record_type): Do not compute the size in units
56         incrementally. Instead compute it once for the rep clause case.
57         Use gcc_assert and gcc_unreachable.
58
59 2004-10-04  Vincent Celier  <celier@gnat.com>
60
61         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
62         in file name.
63         (Is_Valid_Path_Name): Take '/' as a directory separator.
64
65 2004-10-04  Vincent Celier  <celier@gnat.com>
66
67         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
68         (Extended_Project) only if Extended_Project is defined, to avoid
69         assertion error.
70         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
71         resolved path.
72         (Parse_Single_Project): Ditto.
73
74         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
75         Add_To_Project_Path for virtual projects.
76
77 2004-10-04  Vincent Celier  <celier@gnat.com>
78
79         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, 
80         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb, 
81         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, 
82         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
83         parameter Options_2.
84
85         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
86         Build_Dynamic_Library with an empty Options_2.
87
88         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
89         default anymore.
90
91         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
92         directory separator, if any.
93         (Gprmake): Do not allow mains on the command line for library projects.
94         Do not attempt to link when the project is a library project.
95         (Library_Opts): New table to store Library_Options.
96         (Build_Library): If Library_Options is specified, pass these options
97         when building a shared library.
98
99 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
100
101         * s-tposen.adb (Service_Entry): The object must be always unlocked at
102         the end of this procedure now that the unlock operation was inserted
103         by the expander.
104
105 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
106
107         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
108         corresponding to the Preallocated_Stacks flags in System.
109         (Get_Target_Parameters): Including the processing for
110         Preallocated_Stacks.
111
112         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads, 
113         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads, 
114         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads, 
115         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads, 
116         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads, 
117         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads, 
118         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads, 
119         system-vxworks-mips.ads, system-os2.ads, system-interix.ads, 
120         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
121         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
122         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
123         used to signal whether the compiler creates the required stacks and
124         descriptors for the different tasks (when True) or it is done by the
125         underlying operating system at run time (when False).
126         It is initially set to False in all targets.
127
128         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
129         if it is supported by the target.
130         (Make_Task_Create_Call): Pass the stack address if it has been
131         previously created. Otherwise pass a Null_Address.
132
133         * snames.adb: Add _stack.
134
135         * snames.ads: Add Name_uStack. Required to allow the expander to
136         statically allocated task stacks.
137
138         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
139         Stack_Address argument.
140         Check that its value is equal to Null_Address because this target does
141         not support the static stack allocation.
142
143 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
144
145         * usage.adb: Change "pragma inline" to "pragma Inline" in information
146         and error messages
147
148 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
149
150         * exp_dist.adb: Split declaration of asynchronous flag out of
151         Add_RACW_Read_Attribute.
152         Minor reformatting for better alignment with PolyORB version.
153         Store the entity for the asynchronous flag of an RACW, rather than the
154         expression, in the asynchronous flags table. This will allow this flag
155         to be used in other subprograms beside Add_RACW_Read_Attribute.
156
157 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
158
159         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
160         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, 
161         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb, 
162         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads, 
163         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
164         sockets constant MSG_NOSIGNAL (Linux-specific).
165         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
166         all Send operations.
167         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
168         from trigerring SIGPIPE.
169         Rename components to avoid clash with Ada 2005 possible reserved
170         word 'interface'.
171         (Check_Selector): When the select system call returns with an error
172         condition, propagate Socket_Error to the caller.
173
174 2004-10-01  Jan Hubicka  <jh@suse.cz>
175
176         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
177
178 2004-09-23  Robert Dewar  <dewar@gnat.com>
179
180         PR ada/17540
181
182         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
183         instead do this at freeze time (we won't do it if there is an address
184         clause).
185         Change "pragma inline" to "pragma Inline" in information and error
186         messages.
187         Minor reformatting.
188
189         * freeze.adb (Check_Address_Clause): Remove previous change, not the
190         right way of doing things after all.
191         (Freeze_Entity): For object, set Is_Public for imported entities
192         unless there is an address clause present.
193
194 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
195
196         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
197         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
198         ensures proper handling of types with rep clauses, which might have
199         their TYPE_SIZE set already.
200
201 2004-09-21  Robert Dewar  <dewar@gnat.com>
202
203         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
204         packed array types in both little- and big-endian cases. This change
205         ensures that we no longer count on the unused bits being initialized
206         for such types (and in particular ensures that equality testing will
207         only read the relevant bits).
208         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
209         These changes mean that we no longer need to initialize small packed
210         arrays.
211         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
212         optimization to an LJM field as to its parent field.
213
214         * ada-tree.h, trans.c, utils.c, utils2.c:
215         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
216
217 2004-09-20  Jan Hubicka  <jh@suse.cz>
218
219         * utils.c (gnat_finalize): Remove.
220         (end_subprog_body): Directly call cgraph_finalize_function;
221         do not lower the nested functions.
222
223 2004-09-20  Robert Dewar  <dewar@gnat.com>
224
225         PR ada/17540
226
227         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
228         if an address clause is present, since that means that the Import
229         should be ignored.
230
231 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
232
233         * 5tsystem.ads: Removed, no longer used.
234
235 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
236             Zack Weinberg  <zack@codesourcery.com>
237
238         * ada-tree.def: Use tree_code_class enumeration constants
239         instead of code letters.
240         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
241         Update for new tree-class enumeration constants.
242
243 2004-09-17  Vincent Celier  <celier@gnat.com>
244
245         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
246         capabilities of the general project manager.
247
248 2004-09-09  Vincent Celier  <celier@gnat.com>
249
250         * a-direct.ads: Add pragma Ada_05
251         (Directory_Entry_Type): Give default value to component Kind to avoid
252         not initialized warnings.
253
254         * a-direct.adb (Current_Directory): Remove directory separator at the
255         end.
256         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
257         an existing directory.
258         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
259         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
260         Convert the result to File_Size.
261
262         * prj.ads: (Project_Error): New exception
263
264         * prj-attr.adb: Except in procedure Initialize, Fail comes from
265         Prj.Com, not from Osint.
266         (Attrs, Package_Attributes): Tables moved to private part of spec
267         (Add_Attribute, Add_Unknown_Package): Moved to new child package
268         Prj.Attr.PM.
269         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
270         Prj.Project_Error after call to Fail.
271         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
272         Fail. Check that package name is not already in use.
273
274         * prj-attr.ads: Comment updates to indicate that all subprograms may be
275         used by tools, not only by the project manager, and to indicate that
276         exception Prj.Prj_Error may be raised in case of problem.
277         (Add_Unknown_Package, Add_Attribute): Moved to new child package
278         Prj.Attr.PM.
279         (Attrs, Package_Attributes): Table instantiations moved from the body to
280         the private part to be accessible from Prj.Attr.PM body.
281
282         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
283         from new package Prj.Attr.PM.
284         (Parse_Attribute_Declaration): Call Add_Attribute from new package
285         Prj.Attr.PM.
286
287         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
288
289         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
290         instead of Elaboration_Checks).
291
292         * a-calend.adb: Minor reformatting
293
294 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
295
296         * gigi.h (maybe_pad_type): New declaration.
297         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
298
299         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
300
301         * cuintp.c: Convert to use buildN.
302
303         * decl.c (maybe_pad_type): No longer static.
304         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
305         target pointer.
306         Convert to use buildN.
307
308         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
309         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
310         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
311         RHS.
312         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
313         (gnat_gimplify_expr, case ADDR_EXPR): New case.
314         Convert to use buildN.
315
316         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
317         TREE_READONLY for const.
318         Convert to use buildN.
319
320         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
321         (create_var_decl): Refine when TREE_STATIC is set.
322         Convert to use buildN.
323
324 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
325
326         * gnat_ugn.texi: Delete text relating to checking of ali and object
327         consistency.
328
329         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
330         routines.
331
332 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
333
334         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
335         pragmas recognized by GNAT.
336
337         * gnat_rm.texi: Document pragma Detect_Blocking.
338
339         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
340         raise Program_Error if called from a protected operation.
341
342         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
343         the protected action nesting level.
344         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
345         protected action nesting level.
346         (Unlock): When pragma Detect_Blocking is active decrease the protected
347         action nesting level.
348
349         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
350         Protected_Action_Nesting.
351
352         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
353         Common_ATCB record. It contains the dynamic level of protected action
354         nesting for each task. It is needed for checking whether potentially
355         blocking operations are called from protected operations.
356         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
357         Detect_Blocking is active or not in the partition.
358
359         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
360         raise Program_Error if called from a protected operation.
361         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
362         Program_Error if called from a protected operation.
363         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
364         Program_Error if called from a protected operation.
365
366         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
367         raise Program_Error if called from a protected operation.
368
369         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
370         raise Program_Error if called from a protected operation, and increase
371         the protected action nesting level.
372         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
373         Program_Error if called from a protected operation, and increase the
374         protected action nesting level.
375         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
376         protected action nesting level.
377
378         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
379         raise Program_Error if called from a protected operation, and increase
380         the protected action nesting level.
381         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
382         Program_Error if called from a protected operation, and increase the
383         protected action nesting level.
384         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
385         raise Program_Error if called from a protected operation.
386         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
387         active, raise Program_Error if called from a protected operation.
388         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
389         protected action nesting level.
390
391         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
392         insertion of the statement raising Program_Error. The run time
393         contains the required machinery for handling that.
394
395         * sem_util.ads: Change comment associated to procedure
396         Check_Potentially_Blocking_Operation.
397         This procedure does not insert a call for raising the exception because
398         that is currently done by the run time.
399
400         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
401
402         * init.c: Add the global variable __gl_detect_blocking that indicates
403         whether pragma Detect_Blocking is active (1) or not (0). Needed for
404         making the pragma available at run time.
405         (__gnat_set_globals): Pass and update the detect_blocking parameter.
406
407         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
408         pragma Detect_Blocking is active.
409
410         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
411
412         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
413         DB is found in the ali file. Any unit compiled with pragma
414         Detect_Blocking active forces its effect in the whole partition.
415
416         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
417         Detect_Blocking is active and delay is called from a protected
418         operation.
419
420         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
421         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
422         Detect_Blocking is active (0 otherwise).
423         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
424         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
425         otherwise).
426
427 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
428
429         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
430         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
431         package.
432
433         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
434         (Register_Receiving_Stub): Add Subp_Info formal parameter.
435         Update API in placeholder implemetation of s-parint to reflect changes
436         in distribution runtime library.
437
438         * sem_ch3.adb (Expand_Derived_Record): Rename to
439         Expand_Record_Extension.
440
441         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
442         primitive operations of potentially distributed object types that have
443         non-controlling anonymous access formals.
444
445         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
446         subprogram.
447         New implementation of expansion for remote access-to-subprogram types,
448         based on the RACW infrastructure.
449         This version of sem_dist is compatible with PolyORB/DSA as well as
450         GLADE.
451
452         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
453         Asynchrronous that applies to a remote access-to-subprogram type, mark
454         the underlying RACW type as asynchronous.
455
456         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
457          __gnat_using_gnu_linker to 1.
458
459         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
460         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
461         GNAT.Perfect_Hash_Generators, and remove the empty
462         GNAT.Perfect_Hash package.
463
464         * atree.adb: Minor reformatting
465
466         * exp_ch3.adb (Expand_Derived_Record): Rename to
467         Expand_Record_Extension.
468         (Build_Record_Init_Proc.Build_Assignment): The default expression in
469         a component declaration must remain attached at that point in the
470         tree so New_Copy_Tree copies it if the enclosing record type is derived.
471         It is therefore necessary to take a copy of the expression when building
472         the corresponding assignment statement in the init proc.
473         As a side effect, in the case of a derived record type, we now see the
474         original expression, without any rewriting that could have occurred
475         during expansion of the ancestor type's init proc, and we do not need
476         to go back to Original_Node.
477
478         * exp_ch3.ads (Expand_Derived_Record): Rename to
479         Expand_Record_Extension.
480
481         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
482         Returns the RACW type used to implement a remote access-to-subprogram
483         type.
484         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
485         New subprograms. Used to create a proxy tagged object for a remote
486         subprogram. The proxy object is used as the designated object
487         for RAS values on the same partition (unless All_Calls_Remote applies).
488         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
489         System.Partition_Interface.Get_Unique_Remote_Pointer.
490         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
491         Renamed from Add_RAS_*_Attribute.
492         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
493         subprograms.
494         New implementation of expansion for remote access-to-subprogram types,
495         based on the RACW infrastructure.
496
497         * exp_dist.ads (Copy_Specification): Update comment to note that this
498         function can copy the specification from either a subprogram
499         specification or an access-to-subprogram type definition.
500
501 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
502
503         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
504         in an instance, between an explicit subprogram an one inherited from a
505         type derived from an actual.
506
507         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
508         add a polling call if the subprogram is to be inlined by the back-end,
509         to avoid repeated calls with multiple inlinings.
510
511         * checks.adb (Apply_Alignment_Check): If the expression in the address
512         clause is a call whose name is not a static entity (e.g. a dispatching
513         call), treat as dynamic.
514
515 2004-09-09  Robert Dewar  <dewar@gnat.com>
516
517         * g-trasym.ads: Minor reformatting
518
519         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
520         packed arrays, since unused bits are expected to be zero for a
521         comparison.
522
523 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
524
525         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
526         comment.
527
528 2004-09-09  Pascal Obry  <obry@gnat.com>
529
530         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
531         enable map file generation. Add the right option to generate the map
532         file if Map_File is set to True.
533
534         * gnatdll.adb (Gen_Map_File): New variable.
535         (Syntax): Add info about new -m (Map_File) option.
536         (Parse_Command_Line): Add support for -m option.
537         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
538         Minor reformatting.
539
540 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
541
542         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
543         new gnatdist implementation.
544         Define a subpackage isolating the output routines specific to this
545         verbose mode.
546
547 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
548
549         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
550
551         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
552
553 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
554
555         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
556         internal unit.
557
558         * opt.ads: Add Ada_Version_Runtime constant used to decide which
559         version of the language is used to compile the run time.
560
561 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
562
563         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
564         of variable length temporaries for function return now that the
565         back-end and gigi support it.
566
567 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
568
569         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
570
571         * trans.c (struct stmt_group): Delete field GLOBAL.
572         (gnat_init_stmt_group): Do not initialize it.
573         (call_to_gnu): Use save_expr, not protect_multiple_eval.
574         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
575         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
576         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
577         (start_stmt_group): Likewise.
578         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
579
580         * utils2.c (ggc.h): Include.
581         (build_call_raise): Call build_int_cst, not build_int_2.
582
583         * utils.c (gnat_init_decl_processing): Fix arg to
584         build_common_tree_nodes.
585         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
586         (gnat_define_builtin): Set built_in_decls.
587         (init_gigi_decls): Call build_int_cst, not build_int_2.
588
589         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
590         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
591         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
592         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
593         SET_TYPE_MODULE): Use them.
594         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
595         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
596         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
597         SET_TYPE_ADA_SIZE): Likewise.
598         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
599         (DECL_CONST_CORRESPONDING_VAR,
600         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
601         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
602         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
603         (TYPE_RM_SIZE_NUM): New macro.
604         (TYPE_RM_SIZE): Modified to use above.
605
606         * cuintp.c: (build_cst_from_int): New function.
607         (UI_To_gnu): Use it.
608
609         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
610         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
611         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
612         MIN_EXPR for the size, copy it into new.
613
614 2004-09-01  Robert Dewar  <dewar@gnat.com>
615
616         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
617         packed indexed component where array is an IN OUT formal. This
618         generated garbage code previously.
619
620         * gnat_ugn.texi: Document -fverbose-asm
621
622         * gnat-style.texi: Minor updates (note that boolean constants and
623         variables are joined with AND/OR rather than short circuit forms).
624
625 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
626
627         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
628         it is an upward conversion of an untagged type with no representation
629         change.
630
631 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
632
633         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
634         System.Partition_Interface.
635
636         * checks.adb (Apply_Access_Checks): Do not generate checks when
637         expander is not active (but check for unset reference to prefix of
638         dereference).
639
640         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
641         pragma Debug as an if statement with a constant condition, for
642         consistent treatment of entity references contained within the
643         enclosed procedure call.
644
645 2004-09-01  Vincent Celier  <celier@gnat.com>
646
647         * bindgen.adb: (Set_EA_Last): New procedure
648         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
649         Set_EA_Last.
650         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
651         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
652         linked without errors.
653         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
654         ST and EA.
655         (Gen_Exception_Table_C): Correct same bugs
656
657         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
658
659         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
660         on Windows, make sure that the drive letter is in upper case.
661
662         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
663         Windows, when the drive letter is added and Case_Sensitive is True, the
664         drive letter is forced to upper case.
665
666         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
667         to Options_2 for the call to MLib.Utl.Gcc.
668
669         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
670         directory separator when defining BASE_DIR.
671
672 2004-09-01  Pascal Obry  <obry@gnat.com>
673
674         * gprcmd.adb (Extend): Do not output trailing directory separator. This
675         is not needed and it confuses Windows GNU/make which does not report
676         directory terminated by a slash as a directory.
677         (gprcmd): Idem for "pwd" internal command.
678
679         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
680         target names rewrite to fix regressions with recent version of
681         GNU/make. Starting with GNU/make 3.80 the pipe character was not
682         handled properly anymore.
683
684 2004-09-01  Andreas Schwab  <schwab@suse.de>
685
686         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
687         * raise.c [!IN_RTS]: Undef abort.
688
689 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
690
691         * utils2.c (build_allocator): Use ssize_int.
692
693         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
694
695 2004-08-27  Andreas Schwab  <schwab@suse.de>
696
697         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
698
699 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
700             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
701
702         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
703
704 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
705
706         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
707         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
708         * utils.c (init_gigi_decls): Likewise.
709         * utils2.c (build_call_raise, build_allocator): Likewise.
710
711 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
712
713         * utils.c (gnat_init_decl_processing): Adjust
714         build_common_tree_nodes call.
715
716 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
717
718         * utils2.c (build_allocator): Use build_int_cst for negative
719         size types.
720
721 2004-08-18  Richard Henderson  <rth@redhat.com>
722
723         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
724
725 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
726
727         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
728         call.s
729         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
730         (gnat_to_gnu): Likewise.
731
732 2004-08-16  Pascal Obry  <obry@gnat.com>
733
734         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
735         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
736         option and not mdll anymore. Update comment.
737
738 2004-08-16  Pascal Obry  <obry@gnat.com>
739
740         * bld.adb (Put_Include_Project): Properly handle directory separators
741         on Windows.
742
743 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
744
745         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
746         decreasing the number of allocated junk nodes while searching for the
747         appropriate subprogram.
748
749 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
750
751         * cuintp.c (UI_To_gnu): Use build_int_cst..
752         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
753         * utils.c (init_gigi_decls): Likewise.
754         * utils2.c (build_call_raise): Likewise.
755
756 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
757
758         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
759         for a global aliased object with a variable size and an unconstrained
760         nominal subtype, pretend there is no initializer if the one we have is
761         incomplete, and avoid referencing an inexistant component in there. The
762         part we have will be rebuilt anyway and the reference may confuse
763         further operations.
764
765 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
766
767         * einfo.ads: Minor reformatting
768
769         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
770         restrictions in the ALI if we only want to warn about violations.
771
772 2004-08-13  Vincent Celier  <celier@gnat.com>
773
774         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
775         when creating a new Unit_Record in table Units.
776
777         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
778         that are violated, if any.
779
780         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
781         add directory separator if path already ends with a directory separator.
782
783 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
784
785         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
786         unit, this is an attempt to inline a construct that is not available in
787         the current restricted mode, so abort rather than trying to continue.
788
789         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
790         discriminants that rename those of the parent, recover names of
791         original discriminants for the constraint on the full view of the
792         parent.
793         (Complete_Private_Subtype): Do not create a subtype declaration if the
794         subtype is an itype.
795
796         * gnat_rm.texi: Added section on implementation of discriminated
797         records with default values for discriminants.
798
799 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
800
801         PR ada/15601
802         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
803         the second operand is overloaded.
804
805 2004-08-10  Richard Henderson  <rth@redhat.com>
806
807         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
808         add __builtin_alloca.
809
810 2004-08-10  Richard Henderson  <rth@redhat.com>
811
812         * config-lang.in (boot_language): Yes.
813
814 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
815
816         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
817         from complaining on potential uninitialized reference.
818         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
819         new specification and test explicitly for non-zero return value.
820
821         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
822         returning C.int, to avoid using a derived boolean type.
823
824         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
825         Duplicate_Subexpr_No_Checks in preference to direct use of
826         Remove_Side_Effects and New_Copy_Tree.
827         Clear Comes_From_Source on prefix of 'Size attribute reference.
828
829         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
830         g-socthi-vxworks.adb: Change calls to
831         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
832         and test explicitly for non-zero return value.
833
834         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
835         (Is_Socket_In_Set): Declare imported function as returning C.int, to
836         avoid using a derived boolean type.
837
838 2004-08-09  Albert Lee  <lee@gnat.com>
839
840         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
841
842 2004-08-09  Pascal Obry  <obry@gnat.com>
843
844         * gnat_ugn.texi: Document new way to build DLLs on Windows using
845         GCC's -shared option.
846
847         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
848         Options_2 parameter (options put after object files).
849
850 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
851
852         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
853         ignore overflows on low and high bounds of an index to also account for
854         differences in signedness between sizetype and gnu_index_subtype.
855         These are as legitimate as the ones caused by a lower TYPE_PRECISION
856         on sizetype.
857
858 2004-08-09  Robert Dewar  <dewar@gnat.com>
859
860         * s-solita.ads, s-solita.adb: Minor reformatting
861
862         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
863         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
864         obsolescent section
865         Add note that No_Implicit_Conditionals does not suppress
866         run time constraint checks.
867
868         * vms_conv.ads: Minor reformatting
869
870         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
871         and necessary for following change).
872         (Mark): Return new format Mark_Id containing sec stack address
873         (Release): Use sec stack address from Mark_Id avoiding Self call
874
875         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
876         pointer (cleanup and necessary for following change).
877         Define Mark_Id as record containing address of secondary stack, that way
878         Release does not need to find the stack again, decreasing the number of
879         calls to Self and improving efficiency.
880
881         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
882
883         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
884         case variable into the individual case branches when possible.
885
886         * sem_ch11.adb: Minor reformatting
887
888         * prj.ads: Correct spelling of suffixs
889
890         * prj-nmsc.adb: Minor reformatting
891         Correct spelling suffixs throughout (also in identifiers)
892
893         * freeze.adb: Minor spelling correction
894
895         * exp_ch2.adb: Cleanups to handling of Current_Value
896         (no functional effect).
897
898         * bld.adb: Correct spelling of suffixs
899
900         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
901
902 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
903
904         PR ada/15408
905
906         * sem_ch7.adb (Install_Private_Declarations): In the body of the
907         package or of a child, private entities are both immediately_visible
908         and not hidden.
909
910 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
911
912         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
913         there are no range checks on the value of the literal.
914
915         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
916         wrapped is the triggering alternative of an asynchronous select, action
917         statements mustbe inserted before the select itself.
918
919         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
920         case where the prefix is a protected function call.
921         (Resolve_Attribute, case 'Access): The attribute reference on a
922         subprogram is legal in a generic body if the subprogram is declared
923         elsewhere.
924
925 2004-08-09  Vincent Celier  <celier@gnat.com>
926
927         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
928         languages, otherwise building the library may fail with unresolved
929         symbols.
930         (Compile_Sources): Do not build libraries if -c switch is used
931
932         * gnatlink.adb (Process_Args): New switches -M and -Mmap
933         (Write_Usage): If map file creation is supported, output new switches
934         -M and -Mmap.
935         (Gnatlink): When -M is specified, add the necessary switch(es) to the
936         gcc call, when supported.
937
938         * Makefile.in: Added indepsw.o to the object list for gnatlink
939         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
940
941         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
942         indepsw.adb, indepsw.ads: New files.
943
944 2004-08-09  Bernard Banner  <banner@gnat.com>
945
946         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
947
948         * Makefile.in: add section for vxworks x86
949
950 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
951
952         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
953         per-object constrained components where the discriminant is of an
954         Access type.
955         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
956         the parent initialization procedure for derived Unchecked_Unions.
957         Instead, derived Unchecked_Unions build their own initialization
958         procedure.
959         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
960         Check the body of the subprogram for details.
961         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
962         functions for derived Unchecked_Union types by introducing a condition.
963         Allow the creation of TSS equality functions for Unchecked_Unions.
964         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
965         Add formal parameter Discr to function signature. Discr is used to
966         control the generated case statement for Unchecked_Union types.
967         (Make_Eq_If): Rename formal parameter Node to E in function signature.
968
969         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
970         Unchecked_Unions.
971         Check the body of the subprogram for details.
972         (Expand_Composite_Equality): Augment composite type equality to include
973         correct handling of Unchecked_Union components.
974         (Expand_N_In): Add condition to detect illegal membership tests when the
975         subtype mark is a constrained Unchecked_Union and the expression lacks
976         inferable discriminants, and build a Raise_Program_Error node.
977         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
978         to detect types that contain components of unconstrained Unchecked_Union
979         subtype. Add condition to detect equality between types that have an
980         unconstrained Unchecked_Union component, and build a Raise_Program_Error
981         node. Add condition to detect equality between Unchecked_Union types
982         that lack inferable discriminants, and build a Raise_Program_Error node.
983         Otherwise build a TSS equality function call.
984         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
985         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
986         with the operand lacking inferable discriminants, and build a Raise_
987         Program_Error node.
988         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
989         composite equality.
990         (Has_Inferable_Discriminants): Implement new predicate for objects and
991         expressions of Unchecked_Union type. Check the body of subprogram for
992         details.
993         (Has_Unconstrained_UU_Components): Add function
994         Component_Is_Unconstrained_UU. It is used to detect whether a single
995         component is of an unconstrained Unchecked_Union subtype. Add function
996         Variant_Is_Unconstrained_UU. It is used to detect whether a single
997         component inside a variant is of an unconstrained Unchecked_Union type.
998
999         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
1000         inferred discriminant values. Add condition to generate a case
1001         statement with an inferred discriminant as the switch.
1002         (Make_Component_List_Assign): Introduce a Boolean flag that determines
1003         the behaviour of the subprogram in the presence of an Unchecked_Union.
1004         Add condition to trigger the usage of the inferred discriminant value
1005         as the generated case statement switch.
1006         (Make_Field_Assign): Introduce a Boolean flag that determines the
1007         behaviour of the subprogram in the presence of an Unchecked_Union. Add
1008         condition to trigger the usage of the inferred discriminant value as
1009         the right-hand side of the generated assignment.
1010
1011         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
1012         parameter generation when dealing with Unchecked_Unions.
1013
1014         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
1015         checks for Unchecked_Unions.
1016
1017         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
1018
1019         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
1020         Raise_Program_Error nodes for the execution of Read and Write
1021         attributes of Unchecked_Union types and the execution of Input and
1022         Output attributes of Unchecked_Union types that lack default
1023         discriminant values.
1024
1025         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
1026         Unchecked_Union. Add procedure Check_Component. It is used to inspect
1027         per-object constrained components of Unchecked_Unions for being
1028         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
1029         check individual components withing a variant.
1030
1031         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
1032         comparison of Unchecked_Unions.
1033         (Resolve_Equality_OP): Remove guard that prevents equality between
1034         Unchecked_Unions.
1035
1036         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
1037         of component subtypes for Unchecked_Union components.
1038         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
1039         since it is the actual subtype.
1040
1041         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
1042         pass of Unchecked_Union subtypes as generic actuals to formal types
1043         that lack known_discriminant_parts or that are derived Unchecked_Union
1044         types, and do nothing. In any other case, produce an error message.
1045
1046         * sem_ch3.adb (Analyze_Component_Declaration): Add function
1047         Contains_POC. It determines whether a constraint uses the discriminant
1048         of an enclosing record type.
1049         Add condition to detect per-object constrained component and set the
1050         appropriate flag.
1051         (Derived_Type_Declaration): Remove guard that prevents derivation from
1052         Unchecked_Union types.
1053         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
1054         Union subtypes.
1055
1056         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
1057         references to Unchecked_Union discriminants.
1058
1059         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
1060         formal generation when dealing with Unchecked_Unions.
1061         (Set_Actual_Subtypes): Add condition to prevent generation of actual
1062         subtypes for Unchecked_Unions.
1063
1064         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
1065         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
1066         completions of discriminated partial views by Unchecked_Unions and
1067         produce an error message.
1068
1069 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1070
1071         * trans.c (struct stmt_group): New field, GLOBAL.
1072         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
1073         (struct elab_info): New struct.
1074         (elab_info_list, gnu_elab_proc_stack): New variables.
1075         (Compilation_Unit_to_gnu): New procedure.
1076         (gigi): Call it and also handle elaboration procs we've saved.
1077         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
1078         global field from parent.
1079         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
1080         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
1081         (start_stmt_group): Initialize global field from parent.
1082         (add_decl_expr): Set to global for current statement group.
1083         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
1084         post.
1085
1086         * utils.c (global_bindings_p): True when no current_function_decl; no
1087         longer check current_binding_level.
1088
1089 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
1090
1091         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
1092         choice.
1093
1094         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
1095
1096 2004-08-06  Andreas Schwab  <schwab@suse.de>
1097
1098         * utils.c (gnat_define_builtin): Remove second parameter of
1099         make_decl_rtl.
1100         (begin_subprog_body): Likewise.
1101
1102 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
1103
1104         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
1105         optimization, not supported by the tree-ssa back-end.
1106
1107 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
1108
1109         * s-mastop-irix.adb: Update comments.
1110
1111         * a-except.adb (Exception_Information): Raise Constraint_Error if
1112         exception Id is Null_Id.
1113         This is required behavior, which is more reliably and clearly checked
1114         at the top level interface level.
1115
1116 2004-07-26  Javier Miranda  <miranda@gnat.com>
1117
1118         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
1119         call if a component has no default_expression and the box is used.
1120
1121         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
1122         default_expression and you use box, it behaves as if you had declared a
1123         stand-alone object.
1124         (Resolve_Record_Aggregate): If a component has no default_expression and
1125         you use box, it behaves as if you had declared a stand-alone object.
1126
1127         * sem_ch10.adb (Install_Siblings): Do not make visible the private
1128         entities of private-with siblings.
1129
1130 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
1131
1132         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
1133         for a component of an itype, set the parent pointer for analysis,
1134         there is no list in which to insert it.
1135
1136         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
1137         bona-fide renamings, not for inherited operations.
1138
1139         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
1140         actual for a formal that is an access parameter, create local
1141         finalization list even if the expression is not an aggregate.
1142
1143 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
1144
1145         PR ada/16213
1146         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
1147         Diagnose properly illegal subprogram renamings that are library units.
1148
1149 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
1150
1151         PR ada/15588
1152         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
1153         conversion rewritten as an unchecked conversion, check that original
1154         expression is a variable.
1155
1156         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
1157         unchecked_conversion, create new node rather than rewriting in place,
1158         to preserve original construct.
1159
1160 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1161
1162         * gigi.h (gnat_expand_body): Deleted.
1163
1164         * Make-lang.in: (trans.o): Depends on function.h.
1165
1166         * misc.c: (gnat_expand_body): Moved to here.
1167
1168         * trans.c (gnat_expand_body_1): Deleted.
1169         (gnat_expand_body): Moved from here.
1170         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
1171         (add_stmt): Check for marked visited with global_bindings_p.
1172         (gnat_gimplify_expr, case COMPONENT_REF): New case.
1173         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
1174
1175         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
1176         VIEW_CONVERT_EXPR if not operation type.
1177
1178         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
1179         fat pointer.
1180
1181         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
1182         changes: reformatting of negation operators, removing unneeded
1183         inequality comparison with zero, converting equality comparisons with
1184         zero to negations, changing int/0/1 to bool/false/true, replace calls
1185         to gigi_abort with abort, and various other similar changes.
1186
1187 2004-07-26  Vincent Celier  <celier@gnat.com>
1188
1189         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
1190         "setup".
1191
1192         * make.adb (Gnatmake): Fail when a library is not present and there is
1193         no object directory.
1194
1195         * mlib-prj.adb (Check_Library): No need to check if the library needs
1196         to be rebuilt if there is no object directory, hence no object files
1197         to build the library.
1198
1199         * opt.ads (Setup_Projects): New Boolean flag.
1200
1201         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
1202         Location.
1203         Create directory when Kind /= "" and in "gnat setup". Report error if
1204         directory cannot be created.
1205         (Ada_Check): Create library interface copy dir if it does not exist
1206         and we are in "gnat setup".
1207         (Find_Sources): No error if in "gnat setup" and no Ada sources were
1208         found.
1209         (Language_Independent_Check): Create object directory, exec directory
1210         and/or library directory if they do not exist and we are in
1211         "gnat setup".
1212
1213         * vms_conv.ads: (Command_Type): New command Setup.
1214
1215         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
1216
1217         * vms_data.ads: Add qualifiers/switches for new built-in command
1218         "setup".
1219
1220 2004-07-25  Richard Henderson  <rth@redhat.com>
1221
1222         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
1223         DECL_IGNORED_P on RESULT_DECL.
1224
1225 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
1226
1227         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
1228         allocation and potentially overflowing update with
1229         Tailored_Exception_Information. Use the sec-stack free procedural
1230         interface to output Exception_Information instead.
1231
1232         * a-except.adb (To_Stderr): New subprogram for character, and string
1233         version moved from a-exextr to be visible from other separate units.
1234         (Tailored_Exception_Information): Remove the procedural version,
1235         previously used by the default Last_Chance_Handler and not any more.
1236         Adjust various comments.
1237
1238         * a-exexda.adb: Generalize the exception information procedural
1239         interface, to minimize the use of secondary stack and the need for
1240         local buffers when the info is to be output to stderr:
1241         (Address_Image): Removed.
1242         (Append_Info_Character): New subprogram, checking for overflows and
1243         outputing to stderr if buffer to fill is of length 0.
1244         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
1245         (Append_Info_Address, Append_Info_Exception_Name,
1246         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
1247         Append_Info_Basic_Exception_Traceback,
1248         Append_Info_Exception_Information): New subprograms.
1249         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
1250         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
1251         Exception_Info_Maxlength, Exception_Name_Length,
1252         Exception_Message_Length): New subprograms.
1253         (Exception_Information): Use Append_Info_Exception_Information.
1254         (Tailored_Exception_Information): Use
1255         Append_Info_Basic_Exception_Information.
1256         Export services for the default Last_Chance_Handler.
1257
1258         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
1259         other separate units.
1260
1261 2004-07-20  Vincent Celier  <celier@gnat.com>
1262
1263         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
1264
1265 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
1266
1267         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
1268         emit itype references for the designated types of component types that
1269         are declared outside of the full record declaration, and that may
1270         denote a partial view of that record type.
1271
1272 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
1273
1274         PR ada/15607
1275         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
1276         which is the designated type in an access component declaration, to the
1277         list of incomplete dependents of the parent type, to avoid elaboration
1278         issues with out-of-scope subtypes.
1279         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
1280         full view of the parent.
1281
1282 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
1283
1284         PR ada/15610
1285         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
1286         entities that are hidden, such as references to generic actuals
1287         outside an instance.
1288
1289 2004-07-20  Javier Miranda  <miranda@gnat.com>
1290
1291         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
1292         support to the new notation.
1293         (Analyze_Selected_Component): Add call to Try_Object_Operation.
1294
1295 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
1296
1297         * s-taprob.adb: Adding the elaboration code required for initializing
1298         the tasking soft links that are common to the full and the restricted
1299         run times.
1300
1301         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
1302         restricted run time has been moved to the package
1303         System.Soft_Links.Tasking.
1304
1305         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
1306         restricted run time has been moved to the package
1307         System.Soft_Links.Tasking.
1308
1309         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
1310
1311         * s-solita.ads, s-solita.adb: New files.
1312
1313 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1314
1315         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
1316         Case_Statement_to_gnu): Split off from gnat_to_gnu.
1317         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
1318         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
1319         Exception_Handler_to_gnu_zcx): Likewise.
1320
1321 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
1322
1323         * gigi.h (builtin_function): Declare.
1324
1325 2004-07-15  Robert Dewar  <dewar@gnat.com>
1326
1327         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
1328         reformatting
1329
1330         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
1331         access values as an example of a warning.
1332
1333         * gnat_rm.texi: Document new attribute Has_Access_Values
1334
1335         * gnat-style.texi: Document that box comments belong on nested
1336         subprograms
1337
1338         * sem_util.ads (Has_Access_Values): Improved documentation
1339
1340         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
1341
1342         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
1343         (Process_Interface_Name): Call to this new procedure
1344         (Set_Extended_Import_Export_External_Name): Call to this new procedure
1345
1346         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
1347
1348         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
1349
1350         * einfo.ads: Minor comment typo fixed
1351
1352 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
1353
1354         * snames.adb: Add _atcb.
1355
1356         * snames.ads: Add Name_uATCB.
1357
1358         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
1359         (in the expanded code) when using the restricted run time.
1360
1361         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
1362         a in parameter in order to allow ATCBs to be preallocated (in the
1363         expanded code).
1364
1365         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
1366         order to allow ATCBs to be preallocated. In case of error, the ATCB is
1367         deallocated in System.Tasking.Stages.
1368
1369         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
1370         order to allow ATCBs to be preallocated.
1371
1372         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
1373         here. It was previously done in Initialize_ATCB.
1374
1375         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
1376
1377         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
1378         Restricted run time.
1379
1380         * exp_ch3.adb: When using the Restricted run time, pass the
1381         preallocated Ada_Task_Control_Block when creating a task.
1382
1383 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
1384
1385         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
1386         function call that is itself an actual in an enclosing call, diagnose
1387         problem here rather than assuming that resolution will catch it.
1388
1389         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
1390         the local copy of a generic unit for a formal package, and the generic
1391         is a child unit, install private part of ancestors before compiling
1392         private part of spec.
1393
1394         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
1395         use scope entities rather than tree structures, to handle properly
1396         parent units that are instances rewritten as bodies for inlining
1397         purposes.
1398
1399         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
1400         Remove_Parents): Handle properly a parent unit that is an
1401         instantiation, when the unit has been rewritten as a body for inlining
1402         purposes.
1403
1404         * par.adb (Goto_List): Global variable to collect goto statements in a
1405         given unit, for use in detecting natural loops.
1406
1407         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
1408         use in detecting natural loops.
1409
1410         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
1411         backwards goto's, and rewrite as a infinite loop, to improve locality
1412         of temporaries.
1413
1414         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
1415         subcomponent that includes an indexed reference, to prevent the
1416         generation of copies that would miscompile the desired assignment
1417         statement.
1418         (Build_Task_Image_Decls): Add a numeric suffix to
1419         generated name for string variable, to avoid spurious conflicts with
1420         the name of the type of a single protected object.
1421
1422         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
1423         loop with an explicit exit statement, to avoid generating an
1424         out-of-range value with 'Succ leading to spurious constraint_errors
1425         when compiling with -gnatVo.
1426
1427 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
1428
1429         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
1430         might not be analyzed yet, even if its Etype is already set (case of an
1431         unchecked conversion built using Unchecked_Convert_To, for example).
1432         If the prefix has already been analyzed, this will be a nop anyway.
1433
1434         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
1435         controller type, or an assignment of a record type with controlled
1436         components, copy only user data, and leave the finalization chain
1437         pointers untouched.
1438
1439 2004-07-15  Vincent Celier  <celier@gnat.com>
1440
1441         * make.adb (Collect_Arguments): Improve error message when attempting
1442         to compile a source not part of any project, when -x is not used.
1443
1444         * prj.ads: (Defined_Variable_Kind): New subtype
1445
1446         * prj-attr.adb (Register_New_Package): Two new procedures to register
1447         a package with or without its attributes.
1448         (Register_New_Attribute): Mew procedure to register a new attribute in a
1449         package.
1450         New attribute oriented subprograms: Attribute_Node_Id_Of,
1451         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
1452         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
1453         Next_Attribute.
1454         New package oriented subprograms: Package_Node_Id_Of,
1455         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
1456
1457         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
1458         type.
1459         (Package_Node_Id): Now a private, self initialized type
1460         (Register_New_Package): New procedure to register a package with its
1461         attributes.
1462         New attribute oriented subprograms: Attribute_Node_Id_Of,
1463         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
1464         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
1465         Next_Attribute.
1466         New package oriented subprograms: Package_Node_Id_Of,
1467         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
1468
1469         * prj-dect.adb (Parse_Attribute_Declaration,
1470         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
1471
1472         * prj-makr.adb (Make): Parse existing project file before creating
1473         other files. Fail if there was an error during parsing.
1474
1475         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
1476         new spec of Prj.Attr.
1477
1478         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
1479         to new spec of Prj.Attr.
1480
1481 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1482
1483         * utils2.c: Fix typo in comment.
1484
1485 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1486
1487         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
1488         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
1489
1490 2004-07-14  Andreas Schwab  <schwab@suse.de>
1491
1492         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
1493
1494 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1495
1496         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
1497         object type.
1498         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
1499         TYPE_STUB_DECL.
1500
1501         * misc.c (gnat_types_compatible_p): New function.
1502         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
1503         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
1504
1505         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
1506         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
1507         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
1508         (mark_visited): Don't mark dummy type.
1509         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
1510         parameter, we must remove any LJM building from GNU_NAME.
1511         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
1512         (pos_to_constructor): Use int_const_binop.
1513         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
1514         PARM_DECL.
1515
1516         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
1517         (gnat_pushlevel): Set TREE_USE on BLOCK node.
1518         (gnat_install_builtins): Add __builtin_memset.
1519
1520 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
1521
1522         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
1523         for a renaming, stabilize the initialization expression if we are at a
1524         local level.  At the local level, uses of the renaming may be performed
1525         by a direct dereference of the initializing expression, and we don't
1526         want possible variables there to be evaluated for every use.
1527
1528         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
1529         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
1530         them on the way.  Account for the fact that we may introduce side
1531         effects in the process.
1532
1533 2004-07-13  Richard Henderson  <rth@redhat.com>
1534
1535         * misc.c (default_pass_by_ref): Use pass_by_reference.
1536
1537 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
1538
1539         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
1540         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
1541
1542 2004-07-08  Richard Henderson  <rth@redhat.com>
1543
1544         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
1545         commentary.
1546
1547 2004-07-06  Vincent Celier  <celier@gnat.com>
1548
1549         * vms_conv.ads: Minor reformatting.
1550         Alphabetical order for enumerated values of type Command_Type, to have
1551         the command in alphabetical order for the usage.
1552
1553         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
1554         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
1555
1556         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
1557
1558         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
1559         (Add_Archive_Path): Only add the global archive if there is one.
1560         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
1561         or not any object file to put in the global archive, and don't build
1562         a global archive if there is none.
1563         (X_Switches): New table
1564         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
1565         in the X_Switches table, if any.
1566         (Initialize): Make sure the X_Switches table is empty
1567         (Scan_Arg): Record -X switches in table X_Switches
1568
1569         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
1570
1571         * make.adb: Minor comment fix
1572
1573         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
1574         invoked with directory information, add the directory in front of the
1575         path.
1576
1577         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
1578         invoked with directory information, add the directory in front of the
1579         path.
1580
1581         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
1582         when Keep_Temporary_Files is False.
1583         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
1584         directory information, add the directory in front of the path.
1585         When not on VMS, handle new switch -dn before the command to set
1586         Keep_Temporary_Files to True.
1587         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
1588         everywhere.
1589
1590         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
1591         invoked with directory information, add the directory in front of the
1592         path.
1593
1594 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
1595
1596         * snames.ads, snames.adb (Name_Stub): New name for the distributed
1597         systems annex.
1598
1599         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
1600         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
1601
1602         * g-socket.adb (To_Timeval): Fix incorrect conversion of
1603         Selector_Duration to Timeval for the case of 0.0.
1604
1605         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
1606         documentation from Evolve_And_Then.
1607
1608 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
1609
1610         * s-taprop-tru64.adb, s-taprop-os2.adb,
1611         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
1612
1613 2004-07-06  Robert Dewar  <dewar@gnat.com>
1614
1615         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
1616         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
1617         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
1618         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
1619         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
1620         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
1621         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
1622         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
1623         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
1624         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
1625         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
1626         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
1627         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
1628         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
1629         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
1630         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
1631         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
1632         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
1633         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
1634         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
1635         vms_data.ads: Minor reformatting,
1636         Fix bad box comment format.
1637
1638         * gnat_rm.texi: Fix minor grammatical error
1639
1640         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
1641
1642         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
1643         more cases of discriminated records to be recognized as not needing a
1644         secondary stack.
1645         (Has_Access_Values): New function.
1646
1647         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
1648
1649         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
1650         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
1651         with LRM terminology).
1652         Change terminology in comments primitive type => elementary type.
1653
1654 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
1655
1656         PR ada/15602
1657         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
1658         parameters do not impose any requirements on the presence of a body.
1659
1660 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
1661
1662         PR ada/15593
1663         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
1664         compilation unit and is in an open scope at the point of instantiation,
1665         assume that a body may be present later.
1666
1667 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
1668
1669         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
1670         Improve error message when specified size is not supported.
1671
1672         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
1673         is never a primitive operation.
1674
1675 2004-07-05  Andreas Schwab  <schwab@suse.de>
1676
1677         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
1678         RECORD_OR_UNION_CHECK.
1679         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
1680
1681 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
1682
1683         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
1684         dependency on xgnatugn, instead build it via a submake.
1685         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
1686
1687 2004-07-04  Richard Henderson  <rth@redhat.com>
1688
1689         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
1690
1691 2004-07-01  Richard Henderson  <rth@redhat.com>
1692
1693         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
1694         * utils.c (max_size): Likewise.
1695
1696 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1697
1698         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
1699         and rest_of_type_compilation; add arg to create_*_decl.
1700         (annotate_decl_with_node): Deleted.
1701         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
1702         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
1703         (get_current_block_context, gnat_pushdecl): New declarations.
1704         (gnat_init_stmt_group): Likewise.
1705         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
1706         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
1707         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
1708         (gnat_init): Call gnat_init_stmt_group.
1709         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
1710         (gnu_pending_elaboration_list): Deleted.
1711         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
1712         (gigi): Rearrange initialization calls and move some to last above.
1713         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
1714         Delete calls to add_decl_expr; add arg to create_*_decl.
1715         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
1716         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
1717         begin_subprog_body and call it.
1718         Don't push and pop ggc context.
1719         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
1720         (add_stmt): Remove handling of DECL_EXPR from here.
1721         If not in function, mark visited.
1722         (add_decl_expr): Put global at top level.
1723         Check for cases of DECL_INITIAL we have to handle here.
1724         (process_type): Add extra arg to create_type_decl.
1725         (build_unit_elab): Rework to just gimplify.
1726         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
1727         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
1728         (get_pending_elaborations, pending_elaborations_p): Likewise.
1729         (push_pending_elaborations, pop_pending_elaborations): Likewise.
1730         (get_elaboration_location, insert_elaboration_list): Likewise.
1731         (gnat_binding_level): Renamed from ada_binding_level.
1732         (init_gnat_to_gnu): Don't clear pending_elaborations.
1733         (global_bindings_p): Treat as global if no current_binding_level.
1734         (set_current_block_context): New function.
1735         (gnat_pushdecl): Renamed from pushdecl; major rework.
1736         All callers changed.
1737         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
1738         (finish_record_type): Call call pushdecl for stub decl.
1739         (function_nesting_depth): Deleted.
1740         (begin_subprog_body): Delete obsolete code.
1741         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
1742
1743 2004-06-28  Robert Dewar  <dewar@gnat.com>
1744
1745         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1746         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
1747         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
1748         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
1749         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
1750
1751         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
1752         deal with problem of inefficient slices on machines with strict
1753         alignment, when the slice is a component of a composite.
1754
1755         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
1756         machines, we need the check there as well.
1757
1758 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
1759
1760         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
1761         determine safe copying direction for overlapping slice assignments
1762         when component is controlled.
1763
1764         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
1765         formal derived type in the actual for a formal package are visible in
1766         the enclosing instance.
1767
1768 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
1769
1770         PR ada/15600
1771         * sem_util.adb (Trace_Components): Diagnose properly an illegal
1772         circularity involving a private type whose completion includes a
1773         self-referential component.
1774         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
1775         renaming or an instantiation from an implicit derived operation.
1776
1777 2004-06-28  Pascal Obry  <obry@gnat.com>
1778
1779         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
1780         DLL.
1781         (Library_File_Name_For): Idem.
1782
1783 2004-06-28  Matthew Gingell  <gingell@gnat.com>
1784
1785         * g-traceb.ads: Add explanatory note on the format of addresses
1786         expected by addr2line.
1787
1788 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
1789
1790         * Makefile.in: Force debugging information on s-tasdeb.adb,
1791         a-except.adb and s-assert.adb needed by the debugger.
1792
1793 2004-06-28  Vincent Celier  <celier@gnat.com>
1794
1795         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
1796         Need_To_Build_Lib.
1797         (Gnatmake): Ditto.
1798
1799         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
1800
1801         * prj.adb: Minor reformatting
1802         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
1803
1804         * prj.ads: Comment updates
1805         Minor reformatting
1806         (Project_Data): Change Flag1 to Need_To_Build_Lib.
1807         Remove Flag2: not used.
1808
1809         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
1810         declaration.
1811
1812         * gnat_ugn.texi: Put a "null;" declaration in one project file example
1813
1814         * gnat_rm.texi: Document Empty declarations "null;".
1815
1816         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
1817         front of the linker options.
1818         (Link_Foreign): Put the global archives and the libraries in front of
1819         the linker options.
1820
1821 2004-06-28  Javier Miranda  <miranda@gnat.com>
1822
1823         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
1824         (RTU_Loaded): Code cleanup
1825         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
1826         withed predefined units.
1827
1828         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
1829         explicitly withed predefined units.
1830         Fix typo in comment
1831
1832         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
1833         explicitly withed predefined units.
1834
1835 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1836
1837         * ada-tree.def (DECL_STMT): Deleted.
1838         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
1839         (DECL_STMT_VAR): Deleted.
1840         * decl.c: add_decl_stmt now add_decl_expr.
1841         * gigi.h: Likewise.
1842         * trans.c: Likewise.
1843         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
1844         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
1845         (add_stmt): Only handle padded type here.
1846         (add_stmt_with_node): Allow gnat_node to not be present.
1847         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
1848         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
1849         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
1850         make a SAVE_EXPR for the entire fat pointer.
1851         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
1852         (create_index_type): Make a DECL_EXPR.
1853         (end_subprog_body): Don't call allocate_struct_function here but
1854         do clear cfun.
1855
1856 2004-06-25  Pascal Obry  <obry@gnat.com>
1857
1858         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
1859         Relocatable from Build_Dynamic_Library call.
1860
1861         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
1862         Relocatable are now synonym.
1863
1864         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
1865
1866         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
1867         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
1868         call.
1869
1870         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
1871         Lib_Address and Relocatable.
1872         (Default_DLL_Address): Removed.
1873
1874         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1875         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
1876         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
1877         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
1878         (Default_DLL_Address): Removed.
1879
1880         * mlib-tgt-mingw.adb: Ditto.
1881         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
1882
1883         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
1884         the initial thread stack size.
1885
1886         * a-strmap.ads: Move package L to private part as it is not used in
1887         the spec. Found while reading code.
1888
1889 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
1890
1891         * tracebak.c: Introduce support for a GCC infrastructure based
1892         implementation of __gnat_backtrace.
1893
1894         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
1895         any more. Use accessors instead. This eases maintenance and relaxes
1896         some alignment constraints.
1897         (_GNAT_Exception structure): Remove the Ada specific fields
1898         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
1899         a-exexpr.adb.
1900         (is_handled_by, __gnat_eh_personality): Replace component references to
1901         exception structure by use of the new accessors.
1902
1903         * init.c (__gnat_initialize): Adjust comments to match the just
1904         reverted meaning of the -static link-time option.
1905
1906         * adaint.c (convert_addresses): Arrange not to define a stub for
1907         mips-irix any more, as we now want to rely on a real version from a
1908         recent libaddr2line.
1909
1910         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
1911         the personality routine can use them and not have to rely on a C
1912         counterpart of the record anymore. This simplifies maintenance and
1913         relaxes the constraint of having Standard'Maximum_Alignment match
1914         BIGGEST_ALIGNMENT.
1915         Update comments, and add a section on the common header alignment issue.
1916
1917 2004-06-25  Geert Bosch  <bosch@gnat.com>
1918
1919         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
1920         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
1921
1922 2004-06-25  Robert Dewar  <dewar@gnat.com>
1923
1924         * gnat_rm.texi: Fix section on component clauses to indicate that the
1925         restriction on byte boundary placement still applies for bit packed
1926         arrays.
1927         Add comment on stack usage from Initialize_Scalars
1928
1929         * gnat_ugn.texi: Add documentation for -gnatyLnnn
1930
1931         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
1932         limiting nesting level.
1933
1934         * usage.adb: Add line for -gnatyLnnn switch
1935
1936         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
1937         sem_ch13.adb, exp_aggr.adb: Minor reformatting
1938
1939         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
1940         type as well as on the subtype. This corrects a problem in freeze in
1941         setting alignments of atomic types.
1942
1943         * sem_eval.ads: Minor comment typo fixed
1944
1945         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
1946         level.  Minor reformatting.
1947
1948         * fname.adb (Is_Predefined_File_Name): Require a letter after the
1949         minus sign. This means that file names like a--b.adb will not be
1950         considered predefined.
1951
1952         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
1953         record Test new flag and give diagnostic for bad component clause.
1954         (Freeze_Entity): Set alignment of array from component alignment in
1955         cases where this is safe to do.
1956
1957         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
1958         arrays.
1959
1960         * cstand.adb: (Create_Standard): Set alignment of String to 1
1961
1962         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
1963
1964         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
1965         code in the common constrained array cases.
1966
1967         * a-storio.adb: Change implementation to avoid possible alignment
1968         problems on machines requiring strict alignment (data should be moved
1969         as type Buffer, not type Elmt).
1970
1971         * checks.adb (Apply_Array_Size_Check): Improve these checks by
1972         killing the overflow checks which we really do not need (64-bits is
1973         enough).
1974
1975 2004-06-25  Vincent Celier  <celier@gnat.com>
1976
1977         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
1978         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
1979         inconditionally for the main project.
1980         (Recursive_Add_Archives.Add_Archive_Path): New procedure
1981         (Link_Executables.Check_Time_Stamps): New procedure
1982         (Link_Executables.Link_Foreign): New procedure
1983         Changes made to reduce nesting level of this package
1984         (Check): New procedure
1985         (Add_Switches): When not in quiet output, check that a switch is not
1986         the concatenation of several valid switches. If it is, issue a warning.
1987         (Build_Global_Archive): If the global archive is rebuilt, linking need
1988         to be done.
1989         (Compile_Sources): Rebuilding a library archive does not imply
1990         rebuilding the global archive.
1991         (Build_Global_Archive): New procedure
1992         (Build_Library): New name for Build_Archive, now only for library
1993         project
1994         (Check_Archive_Builder): New procedure
1995         (Create_Global_Archive_Dependency_File): New procedure
1996         (Gprmake): Call Build_Global_Archive before linking
1997         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
1998         throughout.
1999         (Scan_Arg): Display the Copyright notice when -v is used
2000
2001         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
2002         for gnatls.
2003
2004         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
2005         COMPILE.
2006         Add new GNAT LIST qualifier /FILES=
2007         Added qualifier /DIRECTORY= to GNAT METRIC
2008         Added qualifier /FILES= to GNAT METRIC
2009         Added qualifier /FILES to GNAT PRETTY
2010
2011         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
2012         to take into account both versions of the switch.
2013
2014         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
2015         always be the last switch to the gcc driver. Disable switch storing so
2016         that switches automatically added by the gcc driver are not put in the
2017         ALI file.
2018
2019         * prj.adb (Project_Empty): Take into account changes in components of
2020         Project_Data.
2021
2022         * prj.ads (Languages_Processed): New enumaration value All_Languages.
2023
2024         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
2025         used. Split Boolean component Ada_Sources_Present in two Boolean
2026         components Ada_Sources_Present and Other_Sources_Present.
2027         Minor reformatting
2028
2029         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
2030         instead of Sources_Present.
2031         (Set_Ada_Paths.Add.Recursive_Add): Ditto
2032
2033         * prj-nmsc.adb: Minor reformatting
2034         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
2035         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
2036         Check_Ada_Naming_Scheme.
2037         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
2038         throughout.
2039
2040         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
2041         In_Limited.
2042         Make sure that all cycles where there is at least one "limited with"
2043         are detected.
2044         (Parse_Single_Project): New Boolean parameter In_Limited
2045
2046         * prj-proc.adb (Recursive_Check): When Process_Languages is
2047         All_Languages, call first Prj.Nmsc.Ada_Check, then
2048         Prj.Nmsc.Other_Languages_Check.
2049
2050         * prj-proc.adb (Process): Use Ada_Sources_Present or
2051         Other_Sources_Present (instead of Sources_Present) depending on
2052         Process_Languages.
2053
2054         * lang-specs.h: Keep -g and -m switches in the same order, and as the
2055         last switches.
2056
2057         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
2058         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
2059         False.
2060         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
2061         False.
2062
2063         * lib.ads (Disable_Switch_Storing): New procedure.
2064
2065         * make.adb: Modifications to reduce nesting level of this package.
2066         (Check_Standard_Library): New procedure
2067         (Gnatmake.Check_Mains): New procedure
2068         (Gnatmake.Create_Binder_Mapping_File): New procedure
2069         (Compile_Sources.Compile): Add switch -gnatez as the last option
2070         (Display): Never display -gnatez
2071
2072         * Makefile.generic:
2073         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
2074
2075         * gnatcmd.adb (Check_Project): New function
2076         (Process_Link): New procedure to reduce nesting depth
2077         (Check_Files): New procedure to reduce the nesting depth.
2078         For GNAT METRIC, include the inherited sources in extending projects.
2079         (GNATCmd): When GNAT LS is invoked with a project file and no files,
2080         add the list of files from the sources of the project file. If this list
2081         is too long, put it in a temp text files and use switch -files=
2082         (Delete_Temp_Config_Files): Delete the temp text file that contains
2083         a list of source for gnatpp or gnatmetric, if one has been created.
2084         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
2085         in the project file is too large, create a temporary text file that
2086         list them and pass it to the tool with "-files=<temp text file>".
2087         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
2088
2089         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
2090         generated file is in not in Ada.
2091
2092         * gnatls.adb: Remove all parameters And_Save that are no longer used.
2093         (Scan_Ls_Arg): Add processing for -files=
2094         (Usage): Add line for -files=
2095
2096         * g-os_lib.adb (On_Windows): New global constant Boolean flag
2097         (Normalize_Pathname): When on Windows and the path starts with a
2098         directory separator, make sure that the resulting path will start with
2099         a drive letter.
2100
2101         * clean.adb (Clean_Archive): New procedure
2102         (Clean_Project): When there is non-Ada code, delete the global archive,
2103         the archive dependency files, the object files and their dependency
2104         files, if they exist.
2105         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
2106
2107 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
2108
2109         * sinfo.ads: Fix typo in comment.
2110
2111         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
2112         the TSS for remote access-to-subprogram types, since these TSS are
2113         always present once the type has been analyzed.
2114         (RAS_E_Dereference): Same.
2115
2116         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
2117         reference raises Bad_Attribute, mark the reference as analyzed so the
2118         node (and any children resulting from rewrites that could have occurred
2119         during the analysis that ultimately failed) is not analyzed again.
2120
2121         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
2122
2123         * exp_dist.adb: Minor comment fix.
2124
2125         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
2126         type is an anonymous access type, no unchecked deallocation of the
2127         allocated object can occur. If the object is controlled, attach it with
2128         a count of 1. This allows attachment to the Global_Final_List, if
2129         no other relevant list is available.
2130         (Get_Allocator_Final_List): For an anonymous access type that is
2131         the type of a discriminant or record component, the corresponding
2132         finalisation list is the one of the scope of the type.
2133
2134 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
2135
2136         * sem_ch3.adb (Replace_Type): When computing the signature of an
2137         inherited subprogram, use the first subtype if the derived type
2138         declaration has no constraint.
2139
2140         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
2141         before applying previous optimization. Minor code cleanup.
2142
2143         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
2144         placed at the beginning of an unpacked record without explicit
2145         alignment, a slice of it will be aligned and does not need a copy when
2146         used as an actual.
2147
2148 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
2149
2150         PR ada/15591
2151         PR ada/15592
2152         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
2153         reference is written with expressions mimicking parameters.
2154
2155 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
2156
2157         PR ada/15589
2158         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
2159         STEP 2a. The constraints of a full type declaration of a derived record
2160         type are checked for conformance with those declared in the
2161         corresponding private extension declaration. The message
2162         "not conformant with previous declaration" is emitted if an error is
2163         detected.
2164
2165 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
2166
2167         * g-traceb.ads: Document the need for -E binder switch in the spec.
2168
2169         * g-trasym.ads: Document the need for -E binder switch in the spec.
2170
2171 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
2172
2173         * sem_prag.adb: Add handling of pragma Detect_Blocking.
2174
2175         * snames.h, snames.ads, snames.adb: Add entry for pragma
2176         Detect_Blocking.
2177
2178         * s-rident.ads: Change reference to pragma Detect_Blocking.
2179
2180         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
2181         system.ads.
2182
2183         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
2184         to indicate whether pragma Detect_Blocking is active.
2185
2186         * par-prag.adb: Add entry for pragma Detect_Blocking.
2187
2188         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
2189         of not handling WITH.
2190         Note that this replaces the previous update which was incorrect.
2191
2192 2004-06-25  Javier Miranda  <miranda@gnat.com>
2193
2194         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
2195         use-clauses to have a clean environment.
2196
2197         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
2198         the installation of the use-clauses to stablish a clean environment in
2199         case of compilation of a separate unit; otherwise the call to
2200         use_one_package is protected by the barrier Applicable_Use.
2201
2202         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
2203         the installation of the use-clauses to stablish a clean environment in
2204         case of compilation of a separate unit.
2205         (End_Use_Clauses): Minor comment cleanup.
2206
2207 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
2208
2209         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
2210
2211 2004-06-23  Richard Henderson  <rth@redhat.com>
2212
2213         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
2214
2215 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2216
2217         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
2218         now bool instead of int.
2219         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
2220         * trans.c (gnu_switch_label_stack): New function.
2221         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
2222         elaboration of renamed entity returns.
2223         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
2224         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
2225         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
2226         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
2227         DECL_SIZE_UNIT and simplify variable-sized case.
2228         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
2229         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
2230         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
2231         (build_unit_elab): Disable for now.
2232         * utils.c (mark_visited): New function.
2233         (pushdecl): Walk tree to call it for global decl.
2234         (update_pointer_to): Update all variants of pointer and ref types.
2235         Add arg to COMPONENT_REF.
2236         (convert): Likewise.
2237         Move check for converting between variants lower down.
2238         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
2239         (build_allocator): Don't force type of MODIFY_EXPR.
2240         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
2241         put_var_into_stack.
2242
2243 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2244
2245         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
2246         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
2247         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
2248         subprograms.
2249         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
2250         all callers changed.
2251         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
2252         the way that EXIT_STMT finds the loop label.
2253         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
2254         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
2255         (add_stmt): Use annotate_with_locus insted of setting directly.
2256         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
2257         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
2258         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
2259         (build_vms_descriptor): Add extra args to ARRAY_REF.
2260         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
2261         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
2262         New cases.
2263         (build_binary_op): Don't make explicit CONVERT_EXPR.
2264         Add extra rgs to ARRAY_REF.
2265
2266 2004-06-14  Pascal Obry  <obry@gnat.com>
2267
2268         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
2269         Windows.  Fix minor typo.
2270
2271         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
2272         which is now supported on Windows. With this implementation using the
2273         Library Project feature is no different on Windows than on UNIX.
2274
2275 2004-06-14  Vincent Celier  <celier@gnat.com>
2276
2277         * makegpr.adb (Compile_Sources): Nothing to do when there are no
2278         non-Ada sources.
2279
2280         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
2281
2282         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
2283         found, show the project name and the path of the previously parsed
2284         project file.
2285
2286 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
2287
2288         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
2289         array, avoid copying the actual before the call.
2290
2291 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
2292
2293         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
2294         Instead, allocate memory on worst-case alignment assumptions, and then
2295         return an aligned address within the allocated zone.
2296
2297 2004-06-14  Robert Dewar  <dewar@gnat.com>
2298
2299         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
2300         elab entities in predefined units in No_Run_Time_Mode.
2301         (Gen_Adainit_C): Same fix
2302         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
2303         units in No_Run_Time_Mode
2304         (Gen_Elab_Calls_C): Same fix
2305
2306         * symbols-vms-alpha.adb: Minor reformatting
2307
2308         * g-debpoo.ads: Minor reformatting
2309
2310         * lib.adb (In_Same_Extended_Unit): Version working on node id's
2311
2312         * lib.ads (In_Same_Extended_Unit): Version working on node id's
2313
2314         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
2315         working on nodes.
2316
2317         * make.adb: Minor reformatting
2318
2319         * par-ch12.adb: Minor reformatting
2320
2321         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
2322
2323         * prj-strt.adb: Minor reformatting
2324
2325         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
2326         be more general.
2327
2328         * sem_attr.adb: Minor reformatting
2329
2330         * sem_ch7.adb: Minor reformatting
2331
2332         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
2333         for type in the same unit as the object declaration.
2334
2335         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
2336         static string expressions and not just string literals.
2337         Minor reformatting
2338         (Set_Warning): Reset restriction warning flag for restriction pragma
2339         Implement pragma Profile_Warnings
2340         Implement pragma Profile (Restricted)
2341         Give obolescent messages for old restrictions and pragmas
2342
2343         * snames.h, snames.ads, snames.adb: Add new entry for pragma
2344         Profile_Warnings.
2345
2346         * s-rident.ads: Add declarations for restrictions required by profile
2347         Restricted and profile Ravenscar.
2348
2349         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
2350
2351         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
2352         configuration pragmas.
2353
2354 2004-06-11  Vincent Celier  <celier@gnat.com>
2355
2356         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
2357         gnatsym, when symbol policy is Restricted.
2358
2359         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
2360         gnatsym, when symbol policy is Restricted.
2361
2362         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
2363         read the symbol file.
2364         (Finalize): Fail in symbol policy Restricted if a symbol in the original
2365         symbol file is not in the object files. Do not create a new symbol file
2366         when symbol policy is Restricted.
2367
2368         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
2369         in Scng.
2370
2371         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
2372         Restricted.
2373         (Usage): Line for new switch -R
2374
2375         * make.adb (Initialize): When the platform is not VMS, add the
2376         directory where gnatmake is invoked in the front of the path, if
2377         gnatmake is invoked with directory information.  Change the Scan_Args
2378         while loop to a for loop.
2379         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
2380         if Depth is equal or greater than the proposed depth, there is nothing
2381         to do.
2382         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
2383         instead of 0.
2384
2385         * prj.ads: Add new symbol policy Restricted.
2386
2387         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
2388         with the new parameters Check_All_Labels and Case_Location.
2389
2390         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
2391         (Library_Symbol_File needs to be defined).
2392
2393         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
2394         and Case_Location If Check_All_Labels is True, check that all values of
2395         the string type are used, and output warning(s) if they are not.
2396
2397         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
2398         and Case_Location.
2399
2400         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
2401
2402         * gnat_ugn.texi: Update documentation about the library directory in
2403         Library Projects.
2404
2405         * makegpr.adb (Display_Command): In verbose mode, also display the
2406         value of the CPATH env var, when the compiler is gcc.
2407         (Initialize): Change the Scan_Args while loop to a for loop
2408         (Compile_Individual_Sources): Change directory to object directory
2409         before compilations.
2410
2411         * symbols.ads: New symbol policy Restricted.
2412
2413 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
2414
2415         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
2416         is now taken care of internally in the Exception_Propagation package
2417         and does not require clients assistance any more.
2418
2419         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
2420         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
2421         functions. Helpers to maintain a predicate required in the handling of
2422         occurrence transfer between tasks.
2423         This is now handled internally and does not require clients assistance
2424         for the setup/propagate separation anymore.
2425         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
2426         allocation strategy, handle the Setup_And_Not_Propagated predicate and
2427         document.
2428
2429         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
2430         raise_after_setup, now that everything is handled internally within the
2431         setup/propagation engine.
2432
2433 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
2434
2435         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
2436         Add additional conditions for the case of an actual being a simple
2437         name or literal. Improve inlining by preventing the generation
2438         of temporaries with a short lifetime (one use).
2439
2440 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
2441
2442         PR ada/15587
2443
2444         * einfo.ads: Minor comment updates for Has_Completion and
2445         E_Constant list of flags.
2446
2447         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
2448         and constant redeclarations now set the Has_Completion flag of their
2449         defining identifiers.
2450
2451         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
2452         Inspect_Deferred_Constant_Completion.
2453         Used to detect private deferred constants that have not been completed
2454         either by a constant redeclaration or pragma Import. Emits error message
2455         "constant declaration requires initialization expression".
2456
2457         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
2458         completes a deferred constant.
2459
2460 2004-06-11  Geert Bosch  <bosch@gnat.com>
2461
2462         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
2463
2464         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
2465         calculating exponent for scaling denormal numbers.
2466         (Leading_Part): Properly raise Constraint_Error for zero or negative
2467         Adjustment.
2468         (Remainder): Properly raise Constraint_Error for zero divisor.
2469
2470 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
2471
2472         * sem_util.adb: Minor reformatting.
2473
2474         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
2475         dereference when accessing the entry parameter record.
2476         (Check_Array_Type): Always check for possible implicit dereference.
2477         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
2478         Abort if a pointer is still present (denoting that an implicit
2479         dereference was left in the tree by the front-end).
2480
2481         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
2482         dereference when accessing the entry parameter record.
2483         (Check_Array_Type): Always check for possible implicit dereference.
2484         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
2485         Abort if a pointer is still present (denoting that an implicit
2486         dereference was left in the tree by the front-end).
2487
2488 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
2489
2490         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
2491         message, like the compiler itself does. Easier to parse the output.
2492
2493         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
2494
2495         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
2496         be base names, and not includes directories.
2497
2498 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
2499
2500         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
2501         so that dependencies are properly taken into account by make.
2502
2503 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
2504
2505         PR ada/15622
2506         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
2507         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
2508
2509 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
2510
2511         * Makefile.in (install-gnatlib): install target-specific run-time files.
2512
2513         * Make-lang.in: Remove obsolete targets.
2514
2515 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
2516
2517         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
2518         specification, to catch misuses of program unit names.
2519
2520         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
2521         superfluous conversions in an instance.
2522
2523 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
2524
2525         PR ada/15403
2526
2527         * sem_ch12.adb (Save_References): If operator node has been folded to
2528         enumeration literal, associated_node must be discarded.
2529
2530 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
2531
2532         * s-stchop-vxworks.adb: Add required pragma Convention to
2533         Task_Descriptor because it is updated by a C function.
2534
2535 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
2536
2537         PR ada/15568
2538
2539         * Makefile.in: Remove target specific SO_OPT on IRIX
2540
2541 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2542
2543         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
2544         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
2545         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
2546         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
2547         (STMT_STMT, USE_STMT): New statement codes.
2548         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
2549         * ada-tree.h: Reflect above changes.
2550         (struct tree_loop_id): Deleted.
2551         (union lang_tree_node, struct lang_decl, struct lang_type):
2552         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
2553         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
2554         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
2555         (IS_ADA_STMT): New macro.
2556         * decl.c (annotate_decl_with_node): New function.
2557         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
2558         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
2559         Call add_stmt_with_node to do needed assignments.
2560         Add call to update setjmp buffer directly, not via EXPR_STMT.
2561         (maybe_variable): Argment GNAT_NODE deleted.
2562         * gigi.h (maybe_variable): Likewise.
2563         (make_transform, add_stmt_with_node, set_block_for_group): New.
2564         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
2565         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
2566         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
2567         (set_lineno, set_lineno_from_sloc): Likewise.
2568         (record_code_position, insert_code_for): Likewise.
2569         (gnat_poplevel): Now returns void.
2570         (end_subprog_body): Now takes argument.
2571         * misc.c (cgraph.h, tree-inline.h): New includes.
2572         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
2573         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
2574         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
2575         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
2576         (gnat_parse_file): Don't set immediate_size_expand.
2577         Call cgraph functions.
2578         (gnat_expand_expr): Remove most cases.
2579         (record_code_position, insert_code_for): Remove from here.
2580         * trans.c (toplev.h, tree-gimple.h): Now included.
2581         (discard_file_names): Deleted.
2582         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
2583         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
2584         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
2585         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
2586         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
2587         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
2588         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
2589         (set_block_for_group, add_stmt_list): Likewise.
2590         (start_stmt_group): Renamed from start_block_stmt.
2591         (end_stmt_group): Likewise, from end_block_stmt.
2592         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
2593         (gigi): Don't set discard_file_names or call set_lineno.
2594         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
2595         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
2596         Numerous changes throughout to reflect new names and complete
2597         function-at-a-time implementation.
2598         (gnat_expand_stmt): Delete or comment out all cases.
2599         (process_inlined_subprograms): Use add_stmt.
2600         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
2601         call set_lineno; also remove unneeded block handling.
2602         (process_type): Remove unneeded block handling.
2603         (build_unit_elab): Remove calls to deleted functions.
2604         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
2605         (tree-dump.h): Likewise.
2606         (struct ada_binding_level): Add field jmpbuf_decl.
2607         (gnat_define_builtin, gnat_install_builtins): New.
2608         (gnat_gimplify_function, gnat_finalize): Likewise.
2609         (gnat_poplevel): No longer return BLOCK, set it instead.
2610         Remove code dealing with nested functions.
2611         (gnat_init_decl_processing): Also set size_type_node.
2612         Call gnat_install_builtins.
2613         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
2614         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
2615         Remove special-case for "main".
2616         (end_subprog_body): Add arg and rework for tree-ssa.
2617         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
2618         Add case for BOOLEAN_TYPE.
2619         * utils2.c (rtl.h): Now include.
2620         (build_call_raise): Test Debug_Flag_NN directly.
2621         (build_call_alloc_dealloc): Don't use local stack allocation for now.
2622         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
2623         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
2624
2625 2004-06-07  Robert Dewar  <dewar@gnat.com>
2626
2627         * a-direct.ads, einfo.ads: Minor comment updates
2628
2629         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
2630         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
2631         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
2632         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
2633         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
2634
2635         * s-interr-sigaction.adb: Remove unreferenced variable
2636         (Attached_Interrupts).  Minor reformatting.
2637         Avoid use of variable I (replace by J).
2638
2639         * par-ch10.adb: Fix text of one error message
2640
2641         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
2642         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
2643         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
2644         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
2645         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
2646         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
2647         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
2648         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
2649         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
2650         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
2651         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
2652         2005 support.
2653
2654 2004-06-07  Doug Rupp  <rupp@gnat.com>
2655
2656         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
2657
2658         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
2659
2660         * mlib-tgt-vms-ia64.adb: New file.
2661
2662         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
2663         Add mlib-tgt-vms-ia64.adb
2664         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
2665         Move to alpha specific ifeq section.
2666         Add VMS specific versions of symbols.adb
2667         Renaming of 5q vms files.
2668
2669         * 5qsystem.ads renamed to system-vms_64.ads.
2670
2671 2004-06-07  Vincent Celier  <celier@gnat.com>
2672
2673         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
2674         explain that when a time of day corresponding to the non existing hour
2675         on the day switching to DST is specified, Split may return a different
2676         value for Seconds.
2677
2678         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
2679         to GNAT PRETTY.
2680
2681         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
2682         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
2683
2684         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
2685         to False.
2686         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
2687         the linking options.
2688         (Build_Library.Check_Libs): On VMS, if there is a dependency on
2689         g-trasym.ads, set Gtrasymobj_Needed to True.
2690
2691         * prj-attr.adb: Add new package Metrics for gnatmetric
2692
2693         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
2694         canonical case to take into account files with upper case characters on
2695         Windows.
2696         (Ada_Check): Load the reference symbol file name in the name buffer to
2697         check it, not the symbol file name.
2698
2699         * snames.ads, snames.adb: Add standard name Metrics (name of project
2700         file package for gnatmetric).
2701
2702         * vms_conv.ads: Add Metric to Comment_Type
2703
2704         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
2705
2706         * vms_data.ads: Add qualifiers for GNAT METRIC
2707
2708         * makegpr.adb (Link_Executables): Take into account the switches
2709         specified in package Linker of the main project.
2710
2711 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
2712
2713         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
2714         the index of the last element is Units.Last, not Units.Table'Last
2715         (which is usually not a valid index within the actually allocated
2716         storage for the table).
2717
2718         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
2719         determines whether to generate a call to a checked storage pool
2720         Dereference action.
2721         Generate such a call only for a dereference that either comes from
2722         source, or is the result of rewriting a dereference that comes from
2723         source.
2724
2725 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
2726
2727         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
2728
2729 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
2730
2731         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
2732         file level, elaborate the stride for inner dimensions in alignment
2733         units, not bytes.
2734
2735         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
2736         in a comment.
2737
2738 2004-06-07  Javier Miranda  <miranda@gnat.com>
2739
2740         * exp_ch6.adb: Correct wrong modification in previous patch
2741
2742 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
2743
2744         * g-trasym.ads: Corrected comment to properly reflect level of support
2745         on VMS.
2746
2747 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
2748
2749         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
2750         includes case of a variable referenced on the left hand side of an
2751         assignment, therefore remove redundant code. Variables and prefixes of
2752         indexed or selected components are now marked as referenced on left
2753         hand side. Warnings are now properly emitted when variables or prefixes
2754         are assigned but not read.
2755
2756         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
2757         left hand side referenced variables. Private access types do not
2758         produce the warning "variable ... is assigned but never read".
2759         Add also additional checks to left hand side referenced variables.
2760         Aliased, renamed objects and access types do not produce the warning
2761         "variable ... is assigned but never read" since other entities may read
2762         the memory location.
2763
2764 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
2765
2766         * Makefile.in: In the powerpc/vxworks-specific section, restore
2767         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
2768         by mistake).
2769
2770 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
2771
2772         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
2773         predefined operators.
2774         Removes spurious type errors from g-trasym-vms.adb.
2775
2776         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
2777         distinct from the operator appearing in the source, call appropriate
2778         routine to insert conversions when needed, and complete resolution of
2779         node.
2780         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
2781         interpretations for rewritten right operand.
2782         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
2783         the other operand is overloaded and the context is a type conversion.
2784
2785 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2786
2787         * ada-tree.def (BLOCK_STMT): Now has two operands.
2788         (BREAK_STMT): New.
2789
2790         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
2791
2792         * gigi.h: (gnat_poplevel): Now returns a tree.
2793
2794         * trans.c (end_block_stmt): Add arg; all callers changed.
2795         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
2796         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
2797         (add_stmt): Set TREE_TYPE.
2798         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
2799         (gnat_expand_stmt, case BREAK_STMT): New case.
2800
2801         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
2802
2803 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
2804
2805         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
2806         procedure Set_Stack_Size that is not needed.
2807
2808 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
2809
2810         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
2811         used for gnatpp input file and for the files upon which it depends
2812
2813 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
2814
2815         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
2816
2817 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
2818
2819         * gnatvsn.ads: Bump version numbers appropriately.
2820         Add new build type.
2821
2822 2004-06-07  Pascal Obry  <obry@gnat.com>
2823
2824         * gnat_ugn.texi: Improve comments about imported names and link names
2825         on Windows. Add a note about the requirement to use -k gnatdll's option
2826         when working with a DLL which has stripped stdcall symbols (no @nn
2827         suffix).
2828
2829 2004-05-27  Vincent Celier  <celier@gnat.com>
2830
2831         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
2832         COMMENTS_LAYOUT=UNTOUCHED
2833
2834         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
2835         symbols-vms-alpha.adb
2836
2837 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
2838
2839         * sem.ads: Clarify documentation on checks suppression.
2840
2841         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
2842
2843 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
2844
2845         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
2846         the case of multiple derivations.
2847         (Is_Object_Reference): For a selected component, verify that the prefix
2848         is itself an object and not a value.
2849
2850         * sem_ch12.adb (Same_Instantiated_Constant): New name for
2851         Same_Instantiated_Entity.
2852         (Same_Instantiated_Variable): Subsidiary to
2853         Check_Formal_Package_Instance, to recognize actuals for in-out generic
2854         formals that are obtained from a previous formal package.
2855         (Instantiate_Subprogram_Body): Emit proper error when
2856         generating code and the proper body of a stub is missing.
2857
2858         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
2859         has a universal interpretation, do the disambiguation here.
2860
2861         * exp_ch4.adb (Expand_N_Type_Conversion,
2862         Expand_N_Unchecked_Type_Conversion): Special handling when target type
2863         is Address, to avoid typing anomalies when Address is a visible integer
2864         type.
2865
2866         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
2867         to determine whether a subprogram should not be marked Pure, even when
2868         declared in a pure package.
2869
2870 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
2871
2872         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
2873
2874         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
2875         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
2876         Update the documentation about the Ravenscar profile, following the
2877         definition found in AI-249.
2878
2879         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
2880         setting the Profile (Ravenscar). This must be done in addition to
2881         setting the required restrictions.
2882
2883         * rtsfind.ads: Add the set of operations defined in package
2884         Ada.Interrupts.
2885
2886         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
2887         restriction.
2888
2889 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
2890
2891         lang-specs.h: Always require -c or -S and always redirect to /dev/null
2892         if -gnatc or -gnats is passed.
2893
2894 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
2895
2896         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
2897         a significant reference. Warnings are now properly emitted when a
2898         discriminated type is not referenced.
2899
2900         * lib-xref.adb (Generate_Reference): A deferred constant completion,
2901         record representation clause or record type discriminant does not
2902         produce a reference to its corresponding entity. Warnings are now
2903         properly emitted when deferred constants and record types are not
2904         referenced.
2905
2906 2004-05-27  Geert Bosch  <bosch@gnat.com>
2907
2908         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
2909         Fixes ACATS Annex G tests.
2910
2911 2004-05-27  Robert Dewar  <dewar@gnat.com>
2912
2913         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
2914         handling WITH
2915
2916 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
2917
2918         * s-interr.adb (Server_Task): Take into account case of early return
2919         from sigwait under e.g. linux.
2920
2921 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
2922
2923         * gnat_ugn.texi: Add description for the new gnatpp options:
2924          -rnb - replace the original source without creating its backup copy
2925          -c0 - do not format comments
2926
2927 2004-05-24  Geert Bosch  <bosch@gnat.com>
2928
2929         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
2930         with 192 bits of precision, sufficient to reduce a double-extended
2931         arguments X with a maximum relative error of T'Machine_Epsilon, for X
2932         in -2.0**32 .. 2.0**32.
2933         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
2934         reduction by the processor, which only uses a 68-bit approximation of
2935         Pi.
2936         (Tan): Always reduce arguments and compute function either using
2937         the processor's fptan instruction, or by dividing sin and cos as needed.
2938
2939 2004-05-24  Doug Rupp  <rupp@gnat.com>
2940
2941         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
2942         gcc error on 32/64 bit VMS.
2943
2944 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
2945
2946         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
2947         since this is what we get for stack overflows although not documented
2948         as such.
2949         Document the issues which may require adjustments to our signal
2950         handlers.
2951
2952 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
2953
2954         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
2955         enclosing dynamic scope if the instantiation is within a generic unit.
2956
2957 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
2958
2959         * exp_dbug.ads: Fix typo.
2960
2961         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
2962         Rename it to its proper name: system-linux-ia64.ads
2963         (stamp-gnatlib1): Remove extra target specific run time files when
2964         setting up the rts directory.
2965
2966 2004-05-24  Javier Miranda  <miranda@gnat.com>
2967
2968         * einfo.ads, einfo.adb (Limited_Views): Removed.
2969         (Limited_View): New attribute that replaces the previous one. It is
2970         now a bona fide package with the limited-view list through the
2971         first_entity and first_private attributes.
2972
2973         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
2974         limited-private-with clause.
2975         (Install_Limited_Withed_Unit): Install the private declarations of a
2976         limited-private-withed package. Update the installation of the shadow
2977         entities according to the new structure (see Build_Limited_Views)
2978         (Build_Limited_Views): Replace the previous implementation of the
2979         limited view by a package entity that references the first shadow
2980         entity plus the first shadow private entity (required for limited-
2981         private-with clause)
2982         (New_Internal_Shadow_Entity): Code cleanup.
2983         (Remove_Limited_With_Clause): Update the implementation to undo the
2984         new work carried out by Build_Limited_Views.
2985         (Build_Chain): Complete documentation.
2986         Replace Ada0Y by Ada 0Y in comments
2987         Minor reformating
2988
2989         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
2990         types the level of accessibility depends on the enclosing type
2991         declaration.
2992
2993         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
2994         entities. Complete documentation of previous change.
2995
2996 2004-05-24  Robert Dewar  <dewar@gnat.com>
2997
2998         * namet.adb: Minor reformatting
2999         Avoid use of name I (replace by J)
3000         Minor code restructuring
3001
3002         * sem_ch6.adb: Minor reformatting
3003
3004         * lib-writ.adb: Do not set restriction as active if this is a
3005         Restriction_Warning case.
3006
3007         * sem_prag.adb: Reset restriction warning flag if real pragma
3008         restriction encountered.
3009
3010         * s-htable.adb: Minor reformatting
3011         Change rotate count to 3 in Hash (improves hash for small strings)
3012
3013         * 5qsystem.ads: Add comments for type Address (no literals allowed).
3014
3015         * gnat_ugn.texi: Add new section of documentation "Code Generation
3016         Control", which describes the use of -m switches.
3017
3018 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
3019
3020         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
3021         through the DECL_INITIAL for renamed variables.
3022
3023 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
3024
3025         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
3026
3027 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
3028
3029         * exp_dbug.ads: Correct comments concerning handling of overloading,
3030         since we no longer use $ anymore.
3031
3032 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
3033
3034         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
3035         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
3036         with illegal subunits.
3037
3038 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
3039
3040         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
3041         body with front-end inlining enabled, check whether an inline pragma
3042         appears immediately after the body and applies to it.
3043
3044         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
3045         enabled and the pragma appears after the body of the subprogram.
3046
3047 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3048
3049         Part of function-at-a-time conversion
3050
3051         * misc.c (adjust_decl_rtl): Deleted.
3052         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
3053         Define.
3054
3055         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
3056         (add_decl_stmt, add_stmt, block_has_vars): New functions.
3057         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
3058
3059         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
3060         when making a decl.
3061         (gnat_to_gnu_entity): Likewise.
3062         Use add_stmt to update setjmp buffer.
3063         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
3064         flush_addressof.
3065         No longer call adjust_decl_rtl.
3066         (DECL_INIT_BY_ASSIGN_P): New macro.
3067         (DECL_STMT_VAR): Likewise.
3068
3069         * trans.c (gigi): Call start_block_stmt to make the outermost
3070         BLOCK_STMT.
3071         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
3072         Call start_block_stmt and end_block_stmt temporarily.
3073         Use gnat_expand_stmt instead of expand_expr_stmt.
3074         (add_decl_stmt): New function.
3075         (tree_transform): Call it.
3076         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
3077         (end_block_stmt): Set type and NULL_STMT.
3078         (gnat_expand_stmt): Make recursize call instead of calling
3079         expand_expr_stmt.
3080         (gnat_expand_stmt, case DECL_STMT): New case.
3081         (set_lineno_from_sloc): Do nothing if global.
3082         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
3083         (start_block_stmt, add_stmt, end_block_stmt): New functions.
3084         (build_block_stmt): Call them.
3085         (gnat_to_code): Don't expand NULL_STMT.
3086         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
3087         args.
3088         (tree_transform): Likewise.
3089         (tree_transform, case N_Null_Statement): Return NULL_STMT.
3090         (gnat_expand_stmt, case NULL_STMT): New case.
3091         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
3092         IF_STMT_TRUE.
3093
3094         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
3095         TREE_ADDRESSABLE.
3096
3097         * utils.c (create_var_decl): Do not call expand_decl or
3098         expand_decl_init.
3099         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
3100         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
3101         here.
3102         (struct e_stack): Add chain_next to GTY.
3103         (struct binding_level): Deleted.
3104         (struct ada_binding_level): New struct.
3105         (free_block_chain): New.
3106         (global_binding_level, clear_binding_level): Deleted.
3107         (global_bindings_p): Rework to see if no chain.
3108         (kept_level_p, set_block): Deleted.
3109         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
3110         new data structure and work directly on BLOCK node.
3111         (gnat_poplevel): Similarly.
3112         (get_decls): Look at BLOCK_VARS.
3113         (insert_block): Work directly on BLOCK node.
3114         (block_has_var): New function.
3115         (pushdecl): Rework for new binding structures.
3116         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
3117         poplevel.
3118         (build_subprog_body): Likewise.
3119         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
3120
3121         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
3122
3123         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
3124         (DECL_STMT_VAR): Likewise.
3125
3126 2004-05-17  Robert Dewar  <dewar@gnat.com>
3127
3128         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
3129         procedure
3130
3131         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
3132         of restriction synonyums by using
3133         Restrict.Process_Restriction_Synonyms.
3134
3135         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
3136
3137         * s-restri.ads (Tasking_Allowed): Correct missing comment
3138
3139         * s-rident.ads: Add entries for restriction synonyms
3140
3141         * ali.adb: Fix some problems with badly formatted ALI files that can
3142         result in infinite loops.
3143
3144         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
3145         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
3146         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
3147         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
3148         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
3149         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
3150         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
3151         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
3152         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
3153         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
3154         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
3155         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
3156         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
3157         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
3158         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
3159         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
3160         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
3161         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
3162         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
3163         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
3164         to Task_Id (minor cleanup).
3165
3166 2004-05-17  Vincent Celier  <celier@gnat.com>
3167
3168         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
3169         directory separator.
3170
3171         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
3172         project being extended, if Languages is not declared in extending
3173         project.
3174
3175 2004-05-17  Javier Miranda  <miranda@gnat.com>
3176
3177         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
3178         limited view of a visible sibling.
3179
3180 2004-05-14  Robert Dewar  <dewar@gnat.com>
3181
3182         * gnat_ugn.texi: Minor change to -gnatS documentation
3183
3184         * sprint.adb: Remove some instances of Assert (False) and for this
3185         purpose replace them by output of a ??? string.
3186
3187         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
3188         Assert (False).
3189
3190         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
3191         flag processing. This was suppressing required dependencies in
3192         No_Run_Time mode and is not needed since the binder does not generate
3193         references for things in libgnat anyway.
3194
3195         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
3196         warning.
3197
3198 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
3199
3200         * gnat_ugn.texi: Document AIX-specific issue with initialization of
3201         resolver library.
3202
3203         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
3204         action for the case of an actual parameter in an init proc call.
3205
3206 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
3207
3208         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
3209         subtype, check visible entities in base type.
3210
3211         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
3212         actions if the object is a renaming.
3213
3214         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
3215         Check_Formal_Package_Instance, to determine more precisely when the
3216         formal and the actual denote the same entity.
3217
3218 2004-05-14  Javier Miranda  <miranda@gnat.com>
3219
3220         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
3221
3222         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
3223         corresponding to a private_with must be removed from visibility; it
3224         will be made visible later, just before we analyze the private part of
3225         the package.
3226         (Check_Private_Child_Unit): Allow private_with clauses in public
3227         siblings.
3228         (Install_Siblings): Make visible the private entities of private-withed
3229         siblings.
3230         (Install_Withed_Unit): Do not install the private withed unit if we
3231         are compiling a package declaration and the Private_With_OK flag was
3232         not set by the caller. These declarations will be installed later,
3233         just before we analyze the private part of the package.
3234
3235         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
3236         during the evaluation of the expression that initializes the object,
3237         decorate it with the expected type to avoid cascade errors.
3238         Code cleanup.
3239
3240         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
3241         subprogram we have to install the private_with clauses after its
3242         specification has been analyzed (as documented in AI-262.TXT).
3243
3244         * sem_ch8.adb (Has_Private_With): New function. Determines if the
3245         current compilation unit has a private with on a given entity.
3246         (Find_Direct_Name): Detect the Beaujolais problem described in
3247         AI-262.TXT
3248
3249         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
3250         provides the functionality of the function Is_Ancestor that was
3251         previously available in sem_ch10. It has been renamed to avoid
3252         overloading.
3253
3254         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
3255
3256 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3257
3258         * utils.c (build_vms_descriptor): Use SImode pointers.
3259
3260 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
3261
3262         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
3263
3264 2004-05-14  GNAT Script  <nobody@gnat.com>
3265
3266         * Make-lang.in: Makefile automatically updated
3267
3268 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
3269
3270         Renaming of target specific files for clarity
3271
3272         * Makefile.in: Rename GNAT target specific files.
3273
3274         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
3275         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
3276         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
3277         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
3278         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
3279         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
3280         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
3281         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
3282         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
3283         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
3284         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
3285         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
3286         51osinte.adb, 51osinte.ads, 51system.ads,
3287         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
3288         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
3289         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
3290         56tpopsp.adb, 57system.ads, 58system.ads,
3291         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
3292         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
3293         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
3294         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
3295         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
3296         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
3297         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
3298         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
3299         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
3300         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
3301         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
3302         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
3303         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
3304         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
3305         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
3306         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
3307         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
3308         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
3309         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
3310         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
3311         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
3312         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
3313         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
3314         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
3315         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
3316         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
3317         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
3318         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
3319         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
3320         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
3321         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
3322         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
3323         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
3324         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
3325         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
3326         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
3327         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
3328         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
3329         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
3330         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
3331
3332         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
3333         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
3334         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
3335         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
3336         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
3337         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
3338         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
3339         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
3340         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
3341         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
3342         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
3343         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
3344         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
3345         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
3346         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
3347         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
3348         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
3349         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
3350         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
3351         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
3352         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
3353         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
3354         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
3355         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
3356         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
3357         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
3358         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
3359         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
3360         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
3361         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
3362         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
3363         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
3364         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
3365         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
3366         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
3367         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
3368         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
3369         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
3370         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
3371         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
3372         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
3373         s-osinte-vms.ads, s-osinte-vxworks.adb,
3374         s-osinte-vxworks.ads, s-osprim-mingw.adb,
3375         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
3376         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
3377         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
3378         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
3379         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
3380         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
3381         s-stchop-vxworks.adb, s-taprop-dummy.adb,
3382         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
3383         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
3384         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
3385         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3386         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
3387         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
3388         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
3389         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
3390         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
3391         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
3392         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
3393         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
3394         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
3395         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
3396         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
3397         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
3398         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
3399         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
3400         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
3401         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
3402         system-irix-o32.ads, system-linux-x86_64.ads,
3403         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
3404         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
3405         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
3406         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
3407         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
3408         system-vxworks-mips.ads, system-vxworks-ppc.ads,
3409         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
3410         above.
3411
3412 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
3413
3414         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
3415
3416 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
3417
3418         Merge from tree-ssa-20020619-branch.
3419
3420         * config-lang.in (boot_language, build_by_default): Set
3421         to no.
3422         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
3423         (max_size): Add static chain op for call_expr.
3424
3425 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
3426
3427         PR target/15331
3428         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
3429
3430 2004-05-11  Roger Sayle  <roger@eyesopen.com>
3431
3432         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
3433         COND_EXPR.
3434
3435 2004-05-10  Doug Rupp  <rupp@gnat.com>
3436
3437         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
3438         system.aux_dec.
3439
3440         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
3441
3442         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
3443
3444         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
3445         Fixes undefined symbols in IA64 gnatlib.
3446
3447         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
3448
3449         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
3450         Short_Address). This will be moved to system.auxdec.
3451
3452 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
3453
3454         * sem_util.adb: Replace test for presence of a node that is always
3455         present with a call to Discard_Node.
3456
3457         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
3458         Analyze on the library unit node after generation of distribution stub
3459         constructs.  The call was a no-op because Unit_Node has already been
3460         Analyzed, and the tree fragments for the distribution stubs are
3461         analyzed as they are inserted in Exp_Dist.
3462         Update comment regarding to distribution stubs to reflect that we
3463         do not generate stub in separate files anymore.
3464
3465         * einfo.ads: Clarify the fact that a tagged private type has the
3466         E_Record_Type_With_Private Ekind.
3467
3468         * erroutc.adb: Minor reformatting
3469
3470         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
3471         values if line length is increased using -gnatyM (noticed during code
3472         reading).
3473
3474         * eval_fat.adb: Minor reformatting
3475         Put spaces around exponentiation operator
3476
3477 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
3478
3479         PR ada/15005
3480         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
3481         has been rewritten as an explicit dereference, retrieve type of
3482         original node to check for possibly unconstrained record type.
3483
3484 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
3485
3486         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
3487         overriding, use the operation of the parent unconditionally.
3488
3489         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
3490         operation when either operand is a literal, to avoid further
3491         ambiguities.
3492
3493         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
3494         overridden by a previous explicit declaration, mark the previous entity
3495         as overriding.
3496
3497         * sem_disp.adb (Check_Dispatching_Operation): New predicate
3498         Is_Visibly_Controlled, to determine whether a declaration of a
3499         primitive control operation for a derived type overrides an inherited
3500         one. Add warning if the explicit declaration does not override.
3501
3502 2004-05-10  Vincent Celier  <celier@gnat.com>
3503
3504         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
3505         some cases when the sources are no longer present.
3506
3507         * make.adb (Collect_Arguments): Fail if an external source, not part
3508         of any project need to be compiled, when switch -x has not been
3509         specified.
3510
3511         * makeusg.adb: Document new switch -x
3512
3513         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
3514         defaulted to False.
3515
3516         * switch-m.adb (Scan_Make_Switches): New switch -x
3517
3518         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
3519         gnatmake switch -x.
3520
3521         * gnat_ugn.texi: Document new gnatmake switch -x
3522
3523 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
3524
3525         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
3526
3527         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
3528         (process_attributes): Likewise.
3529
3530 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
3531
3532         * s-inmaop.ads: Fix spelling mistake in one of the comments.
3533
3534 2004-05-10  Robert Dewar  <dewar@gnat.com>
3535
3536         * gnat_ugn.texi: Document that for config pragma files, the maximum
3537         line length is always 32767.
3538
3539         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
3540         literals is now allowed.
3541
3542         * gnat-style.texi: Remove statement about splitting long lines before
3543         an operator rather than after, since we do not follow this rule at all.
3544         Clarify rule (really lack of rule) for spaces around exponentiation
3545
3546         * sem_elim.adb: Allow concatenation of string literals as well as a
3547         single string literal for pragma arguments.
3548
3549         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
3550
3551         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
3552         written for append case.
3553
3554         * frontend.adb: Changes to avoid checking max line length in config
3555         pragma files.
3556
3557         * g-os_lib.ads: Minor reformatting
3558
3559         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
3560         wrong in any case. Instead use standard value. Noticed during code
3561         reading.
3562
3563         * opt.ads (Max_Line_Length): New field, used to implement removal of
3564         limitation on length of lines when scanning config pragma files.
3565
3566         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
3567         makeutl.ads, makeutl.adb: Minor reformatting
3568
3569         * scn.adb: Do not check line length while scanning config pragma files
3570         Do not check line length while scanning out license information
3571
3572         * scng.adb: Changes to avoid line length checks while parsing config
3573         pragma files.
3574
3575 2004-05-10  GNAT Script  <nobody@gnat.com>
3576
3577         * Make-lang.in: Makefile automatically updated
3578
3579 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
3580
3581         * osint.adb (Find_Program_Name): Fix handling of VMS version
3582         number.
3583
3584 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
3585
3586         * g-os_lib.ads (Invalid_Time): New constant
3587
3588         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
3589         return OS_Time instead of time_t to match what is imported by Ada.
3590         Now return -1 if the file doesn't exist, instead of a random value
3591
3592 2004-05-05  Robert Dewar  <dewar@gnat.com>
3593
3594         * usage.adb: Add line for -gnatR?s switch
3595
3596         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
3597
3598         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
3599         and for Match (Data_First, Data_last)
3600
3601         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
3602         written when we are dealing with multi-unit files.
3603
3604 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
3605
3606         * Makefile.in: Remove unused targets and variables.
3607
3608 2004-05-05  Vincent Celier  <celier@gnat.com>
3609
3610         * switch-m.adb: New gnatmake switch -eI
3611
3612         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
3613         of new gnatmake switch -eInnn.
3614
3615         * makegpr.adb: Take into account new parameters Index and Src_Index in
3616         Prj.Util.
3617
3618         * clean.adb: Implement support for multi-unit sources, including new
3619         switch -i.
3620
3621         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
3622         Src_Index.
3623
3624         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
3625         (Extract_From_Q): New out parameter Index
3626         (Mark, Is_Marked): Subprograms moved to Makeutl
3627         (Switches_Of): New parameter Source_Index
3628         (Add_Switch): New parameter Index
3629         (Check): New parameter Source_Index
3630         (Collect_Arguments): New parameter Source_Index
3631         (Collect_Arguments_And_Compile): New parameter Source_Index
3632         (Compile): New parameter Source_Index
3633         Put subprograms in alphabetical order
3634         Add support for multi-source sources, including in project files.
3635
3636         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
3637         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
3638         Make.
3639
3640         * makeusg.adb: New gnatmake switch -eInnn
3641
3642         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
3643         Prj.Util.Value_Of.
3644
3645         * opt.ads (Main_Index): New variable, defaulted to 0.
3646
3647         * osint.ads, osinte.adb (Add_File): New parameter Index
3648         (Current_Source_Index): New function
3649
3650         * prj.adb: Take into account new components Index and Src_Index
3651
3652         * prj.ads (String_Element): New component Index
3653         (Variable_Value): New component Index
3654         (Array_Element): New component Src_Index
3655
3656         * prj-attr.adb: Indicate that optional index may be specified for
3657         attributes Main, Executable, Spec, Body and some of Switches.
3658
3659         * prj-attr.ads (Attribute_Kind): New values for optional indexes
3660         (Attribute_Record): New component Optional_Index
3661
3662         * prj-com.ads (File_Name_Data): New component Index
3663
3664         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
3665
3666         * prj-env.adb (Put): Output optional index
3667
3668         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
3669         attributes Spec and Body.
3670
3671         * prj-nmsc.adb: Process optional indexes
3672
3673         * prj-pp.adb: Ouput "at" for optional indexes
3674
3675         * prj-proc.adb: Take into account optional indexes
3676
3677         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
3678         Optional_Index. For string literal,
3679         process optional index when Optional_Index is True.
3680         (Parse_Expresion): New Boolean parameter Optional_Index
3681
3682         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
3683         (Set_Source_Index_Of): New procedure
3684
3685         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
3686         index.
3687
3688         * prj-util.ads (Executable_Of): New parameter Index
3689         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
3690         New parameter Src_Index, defaulted to 0.
3691
3692 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
3693
3694         PR ada/15257
3695         * sem_ch3.adb (Access_Definition): If this is an access parameter
3696         whose designated type is imported through a limited_with clause, do
3697         not add the enclosing subprogram to the list of private dependents of
3698         the type.
3699
3700 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
3701
3702         PR ada/15258
3703         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
3704         a limited_with clause, and the other is its non-limited view.
3705
3706 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
3707
3708         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
3709
3710         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
3711         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
3712         Stand.Boolean_Literals to produce references to entities
3713         Standard_False and Standard_True from compile-time computed boolean
3714         values.
3715
3716         * stand.ads (Boolean_Literals): New variable, provides the entity
3717         values for False and True, for use by the expander.
3718
3719 2004-05-05  Doug Rupp  <rupp@gnat.com>
3720
3721         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
3722         5vinmaop.adb: Unchecked convert Short_Address vice Address
3723
3724         * adaint.c, raise.c: Caste CRTL function return value
3725         to avoid gcc error on 32/64 bit IVMS.
3726
3727         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
3728         target = IA64/VMS.
3729
3730         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
3731
3732         * 5qsystem.ads (Address): Declare as Long_Integer
3733         (Short_Address): Declare as 32 bit subtype of Address
3734         Declare  abstract address operations to avoid gratuitous ambiguities.
3735
3736 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
3737
3738         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
3739         instead of the old Boolean_Entry_Barriers.
3740         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
3741
3742 2004-05-05  GNAT Script  <nobody@gnat.com>
3743
3744         * Make-lang.in: Makefile automatically updated
3745
3746 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
3747
3748         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
3749
3750 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
3751
3752         PR ada/15152
3753
3754         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
3755         alone. Replacing object references by literals is inappropriate in a
3756         so low level context.
3757
3758 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
3759
3760         * a-exexpr.adb: Add comments
3761
3762 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
3763
3764         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
3765         declare the Ancestor_Tags array in Type_Specific_Data with a small size
3766         without risking a bounds check error when accessing one of its
3767         components.
3768         (Type_Specific_Data): Define Ancestor_Tags as a small array.
3769         This prevents us from hitting a limitation during the debug info
3770         generation when using stabs.
3771
3772         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
3773         small array.
3774         This prevents us from hitting a limitation during the debug info
3775         generation when using stabs.
3776
3777 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
3778
3779         lang-specs.h: Remove -gnatz* from specs.
3780
3781 2004-05-03  Vincent Celier  <celier@gnat.com>
3782
3783         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
3784
3785         * Make-lang.in, Makefile.in: Add gprmake
3786
3787 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
3788
3789         * sem_aggr.adb: Fix typo in comment.
3790
3791 2004-05-03  Robert Dewar  <dewar@gnat.com>
3792
3793         * make.adb: Minor reformatting
3794
3795         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
3796
3797         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
3798         so that it works when address is not a private type.
3799
3800         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
3801         properly with rewritten unchecked conversions. This prevents
3802         order-of-elaboration issues that can otherwise arise.
3803         (Minimum_Size): Don't check size of access types under VMS
3804
3805         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
3806         interpretations of integer literals as type System.Address.
3807
3808         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
3809         (Is_Descendent_Of): New function
3810
3811 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
3812
3813         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
3814         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
3815         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
3816
3817         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
3818         of the old Max_Entry_Queue_Depth.
3819
3820         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
3821         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
3822         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
3823
3824         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
3825         New entry for proper handling of Max_Entry_Queue_Depth.
3826         New entry for proper handling of No_Dynamic_Interrupts.
3827
3828         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
3829         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
3830         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
3831         the GNAT specific restriction Max_Entry_Queue_Depth.
3832         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
3833         the GNAT specific restriction No_Dynamic_Interrupts.
3834
3835         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
3836         instead of the old Boolean_Entry_Barriers.
3837         Use the new restriction No_Dynamic_Attachment instead of the old
3838         No_Dynamic_Interrupts.
3839
3840         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
3841         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
3842
3843         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
3844         of the old Max_Entry_Queue_Depth.
3845
3846 2004-05-03  GNAT Script  <nobody@gnat.com>
3847
3848         * Make-lang.in: Makefile automatically updated
3849
3850 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
3851
3852         * checks.adb (Enable_Range_Check): If the prefix of an index component
3853         is an access to an unconstrained array, perform check unconditionally.
3854
3855 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3856
3857         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
3858         Component_Clause.
3859
3860 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
3861
3862         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
3863         alternate stack setting. There was no support for the tasking cases
3864         and the changes eventually caused a number of side-effect failures in
3865         the non-tasking case too.
3866
3867 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
3868
3869         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
3870         -gnats is passed.
3871
3872 2004-04-29  Vincent Celier  <celier@gnat.com>
3873
3874         * make.adb (Gnatmake): Increase max size of argument array for
3875         gnatbind for the potential addition of -F.
3876         If there are Stand-Alone Library projects, invoke gnatbind with -F to
3877         be sure that elaboration flags will be checked.
3878
3879         * switch-c.adb: Correct call to Scan_Pos for -gnateI
3880
3881 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
3882
3883         * sem_warn.adb (Check_References): Move '<access-variable> may be
3884         null' warning out of under Warn_On_No_Value_Assigned.
3885
3886 2004-04-29  Ed Falis  <falis@gnat.com>
3887
3888         * gnat_ugn.texi: Fixed texi error
3889
3890 2004-04-29  Robert Dewar  <dewar@gnat.com>
3891
3892         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
3893         abstract operations if they come from predefined files.
3894
3895         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
3896         Dynamic, not RM).
3897
3898         * s-addope.adb: Correct obvious error in mod function
3899
3900 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
3901
3902         * Makefile.in: Add target pairs for powerpc darwin*
3903         tasking support.
3904
3905         * a-intnam-darwin.ads, s-osinte-darwin.adb,
3906         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
3907
3908 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
3909
3910         * Makefile.in: Add target macro definitions for s390*-linux*.
3911         * system-linux-s390.ads: New file.
3912         * system-linux-s390x.ads: New file.
3913
3914 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
3915
3916         * gnat_ugn.texi: Correct argument to @setfilename.
3917
3918 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
3919
3920         * a-exexpr.adb (Unwind_Word): New data type.
3921         (Unwind_Exception): Use it as type of Private1 and Private2.
3922
3923         * raise.c (db_action_for): Fix debug printf.
3924
3925 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
3926
3927         * a-wtmoio.ads: Formal type must be a modular type, not a signed
3928         integer type.
3929
3930 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3931
3932         * decl.c (gnat_to_gnu_entity, case object): Call
3933         __builtin_update_setjmp_buf.
3934
3935         * gigi.h (update_setjmp_buf): Deleted.
3936         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
3937
3938         * misc.c: (update_setjmp_buf): Deleted.
3939
3940         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
3941         around block of RTL.
3942
3943         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
3944
3945 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
3946
3947         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
3948         subprogram for which no pragma All_Calls_Remote applies, store the
3949         address of the real subprogram in the underlying record type, so local
3950         dereferences do not go through the PCS.
3951
3952 2004-04-26  Robert Dewar  <dewar@gnat.com>
3953
3954         * i-c.ads: Add some type qualifications to avoid ambiguities when
3955         compiling with s-auxdec.ads and a non-private address type.
3956
3957 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
3958
3959         * Makefile.rtl: Fix error in previous check-in:
3960         Add s-addope.o to non tasking object list (rather than tasking object
3961         list).
3962
3963 2004-04-26  Javier Miranda  <miranda@gnat.com>
3964
3965         * sem_aggr.adb: Fix typo in comments
3966         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
3967         Required to check the null-exclusion attribute.
3968
3969         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
3970         case of anonymous access types in record and array components. For a
3971         component definition the level is the same of the enclosing composite
3972         type.
3973
3974         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
3975         that are anonymous access types the level of accessibility depends on
3976         the enclosing type declaration. In order to have this information, set
3977         the scope of the anonymous access type to the enclosing record type
3978         declaration.
3979         (Array_Type_Declaration): In case of components that are anonymous
3980         access types the level of accessibility depends on the enclosing type
3981         declaration. In order to have this information, set the scope of the
3982         anonymous access type to the enclosing array type declaration.
3983
3984         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
3985         access type.
3986
3987         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
3988         renaming of anonymous access-to-constant types allowed if and only if
3989         the renamed object is access-to-constant.
3990
3991         * sem_util.adb (Type_Access_Level): In case of anonymous access types
3992         that are component_definition or discriminants of a nonlimited type,
3993         the level is the same as that of the enclosing component type.
3994
3995 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
3996
3997         * sem_elim.adb: Some minor code reorganization from code reading. Fix
3998         misprint in the function name (File_Name_Match).
3999
4000 2004-04-23  Laurent GUERBY <laurent@guerby.net>
4001
4002         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
4003         install.
4004
4005 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4006
4007         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
4008
4009 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
4010
4011         * adaint.c (__gnat_try_lock): No longer requires that the parent
4012         directory be writable, the directory itself is enough.
4013         (gnat_is_absolute_path): Change profile, so that the call from
4014         GNAT.OS_Lib can be made more efficient.
4015
4016         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
4017         from GNAT.OS_Lib can be made more efficient.
4018
4019         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
4020         one copy of the file name. Found by code reading.
4021
4022 2004-04-23  Vincent Celier  <celier@gnat.com>
4023
4024         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
4025         Correct documentation on gnatmake switches transmitted to the compiler
4026
4027         * ali.ads: Minor comment fix
4028
4029 2004-04-23  Javier Miranda  <miranda@gnat.com>
4030
4031         * sem_ch6.adb: (Confirming Types): Code cleanup
4032
4033         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
4034         subprogram types: E_Anonymous_Access_Subprogram_Type and
4035         E_Anonymous_Access_Protected_Subprogram_Type.
4036
4037 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
4038
4039         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
4040         whether a pragma All_Calls_Remote applies to the subprogram on which
4041         'Access is taken.
4042         No functional change is introduced by this revision; the new parameter
4043         will be used to allow calls to local RCI subprograms to be optimized
4044         to not use the PCS in the case where no pragma All_Calls_Remote applies,
4045         as is already done in the PolyORB implementation of the DSA.
4046
4047         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
4048         whether a pragma All_Calls_Remote applies to the subprogram on which
4049         'Access is taken.
4050         No functional change is introduced by this revision; the new parameter
4051         will be used to allow calls to local RCI subprograms to be optimized
4052         to not use the PCS in the case where no pragma All_Calls_Remote applies,
4053         as is already done in the PolyORB implementation of the DSA.
4054
4055 2004-04-23  Robert Dewar  <dewar@gnat.com>
4056
4057         * Makefile.rtl: Add entry for s-addope.o in run time library list
4058         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
4059         * s-addope.ads, s-addope.adb: New files.
4060
4061         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
4062         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
4063         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
4064         System.Address to be non-private and signed.
4065
4066         * sem_elim.adb: Minor reformatting (fairly extensive)
4067         Some minor code reorganization from code reading
4068         Add a couple of ??? comments
4069
4070 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4071
4072         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
4073         (tree_transform, case N_If_Statement): Remove non-determinism.
4074
4075         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
4076
4077 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
4078
4079         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
4080         Eliminate' section.
4081
4082         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
4083         no longer used as a parameter name for Eliminate pragma).
4084
4085 2004-04-22  Laurent GUERBY <laurent@guerby.net>
4086
4087         PR optimization/14984
4088         PR optimization/14985
4089         * trans.c (gigi): Fix non determinism leading to bootstrap
4090         comparison failures.
4091
4092 2004-04-21  Pascal Obry  <obry@gnat.com>
4093
4094         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
4095         passed to spawnvp() to properly handle program pathname with spaces on
4096         Win32.
4097
4098 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
4099
4100         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
4101         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
4102         unlocked in case of exceptions.
4103
4104 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
4105
4106         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
4107         This function does not exist anymore.
4108
4109 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
4110
4111         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
4112
4113         * link.c: Move variables to the __gnat name space.
4114
4115         * Makefile.in: list link.o explicitly when needed.
4116
4117         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
4118
4119 2004-04-21  Javier Miranda  <miranda@gnat.com>
4120
4121         * einfo.adb (Original_Access_Type): New subprogram
4122         (Set_Original_Access_Type): New subprogram
4123         (Write_Field21_Name): Write the name of the new field
4124
4125         * einfo.ads (Original_Access_Type): New field present in access to
4126         subprogram types.
4127         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
4128         E_Anonymous_Access_Protected_Subprogram_Type.
4129
4130         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
4131         subprogram types.
4132
4133         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
4134         to anonymous access to subprogram types.
4135
4136         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
4137         to subprogram types.
4138
4139         * sem_ch3.adb (Access_Definition): Complete decoration of entities
4140         corresponding to anonymous access to subprogram types.
4141         (Analyze_Component_Declaration): Add new actual to the call to
4142         subprogram replace_anonymous_access_to_protected_subprogram.
4143         (Array_Type_Declaration): Add new actual to the call to subprogram
4144         replace_anonymous_access_to_protected_subprogram.
4145         (Process_Discriminants): Add new actual to the call to subprogram
4146         replace_anonymous_access_to_protected_subprogram.
4147         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
4148
4149         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
4150         formal.
4151
4152         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
4153         access to subprogram types.
4154
4155         * sem_util.adb (Has_Declarations): Addition of package_specification
4156         nodes.
4157
4158 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
4159
4160         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
4161         inlined flags to renamed entity only if in current unit.
4162
4163 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
4164
4165         * s-parint.ads: Add DSA implementation marker.
4166
4167         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
4168         value of System.Partition_Interface.DSA_Implementation to determine
4169         what version of the distributed systems annex is available (no
4170         implementation, GLADE, or PolyORB).
4171
4172 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
4173
4174         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
4175
4176 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4177
4178         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
4179         with new type if alias sets differ.
4180         Fixes ACATS c41103b.
4181
4182 2004-04-21  Vincent Celier  <celier@gnat.com>
4183
4184         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
4185         Add array Lang_Args for the language specific compiling argument
4186         switches.
4187
4188         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
4189
4190 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
4191
4192         * gnat_rm.texi: Update the descripton of the Eliminate pragma
4193         according to the recent changes in the format of the parameters of the
4194         pragma (replacing Homonym_Number with Source_Location).
4195
4196 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
4197
4198         * 5isystem.ads: Removed, unused.
4199
4200         * gnat_rm.texi: Redo 1.13 change.
4201
4202 2004-04-19  Robert Dewar  <dewar@gnat.com>
4203
4204         * s-stoele.ads: Clean up definition of Storage_Offset (the new
4205         definition is cleaner, avoids the kludge of explicit Standard operator
4206         references, and also is consistent with a visible System.Address with
4207         no visible operations.
4208
4209         * s-geveop.adb: Add declarations to avoid assumption of visible
4210         operations on type System.Address (since these might not be available
4211         if Address is a non-private type for which the operations
4212         are made abstract).
4213
4214         * sem_eval.adb: Minor reformatting
4215
4216         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
4217         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
4218         reformatting (new function spec format).
4219
4220         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
4221         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
4222         s-caun64.adb: Add declarations to avoid assumption of visible
4223         operations on type System.Address (since these might not be available
4224         if Address is a non-private type for which the operations are made
4225         abstract).
4226
4227         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
4228
4229         * exp_intr.adb: Minor comment update
4230
4231         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
4232
4233         * 5omastop.adb: Add declarations to avoid assumption of visible
4234         operations on type System.Address (since these might not be available
4235         if Address is a non-private type for which the operations
4236         are made abstract).
4237
4238 2004-04-19  Vincent Celier  <celier@gnat.com>
4239
4240         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
4241
4242         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
4243         defaulted to Ada.
4244
4245         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
4246         defaulted to Ada.
4247         Call Check with Process_Languages.
4248         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
4249         with Process_Languages.
4250         (Recursive_Check): New Boolean parameter Process_Languages. Call
4251         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
4252         Process_Languages.
4253
4254         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
4255
4256         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
4257         parameter Ada_Main, defaulted to True.
4258         Check for Ada specific characteristics only when Ada_Main is True.
4259
4260         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
4261
4262         * prj.adb: (Project_Empty): Add new Project_Data components.
4263
4264         * prj.ads: New types and tables for non Ada languages.
4265         (Project_Data): New components Languages, Impl_Suffixes,
4266         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
4267         Include_Path, Include_Data_Set.
4268
4269         * prj-env.ads, prj-env.adb: Minor reformatting
4270
4271         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
4272         Put subprograms in alphabetical order
4273
4274         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
4275         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
4276         Opt.Follow_Links.
4277
4278         * mlib-prj.adb: Back out modification in last version, as they are
4279         incorrect.
4280         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
4281
4282         * make.adb: (Mains): Moved to package Makeutl
4283         (Linker_Opts): Moved to package Makeutl
4284         (Is_External_Assignment): Moved to package Makeutl
4285         (Test_If_Relative_Path): Moved to package Makeutl
4286         (Gnatmake): Move sorting of linker options to function
4287         Makeutl.Linker_Options_Switches.
4288
4289         * makeutl.ads, makeutl.adb: New files.
4290
4291         * Makefile.in: Add makeutl.o to the object files for gnatmake
4292
4293         * makeusg.adb: Add line for new switch -eL.
4294
4295         * gnatls.adb (Image): New function.
4296         (Output_Unit): If in verbose mode, output the list of restrictions
4297         specified by pragmas Restrictions.
4298
4299         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
4300         Text_IO.
4301
4302         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
4303         needed, to put it in the range 1970 (included) - 2026 (excluded).
4304         (Time_Of): Do not shift Unix_Min_Year (1970).
4305         Shift the date by multiple of 56 years, if needed, to put it in the
4306         range 1970 (included) - 2026 (excluded).
4307
4308         * adaint.h, adaint.c (__gnat_set_executable): New function.
4309
4310 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4311
4312         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
4313         and pop GC context.
4314         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
4315         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
4316         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
4317         (tree_transform, case N_Code_Statement): Likewise.
4318         (gnat_expand_stmt, case LABEL_STMT): Don't look at
4319         LABEL_STMT_FIRST_IN_EH.
4320         (gnat_expand_stmt, case ASM_STMT): New case.
4321
4322         * utils2.c (build_unary_op): Properly set TREE_READONLY of
4323         UNCONSTRAINED_ARRAY_REF.
4324
4325         * utils.c (poplevel): Temporarily push/pop GC context around inline
4326         function expansion.
4327
4328         * decl.c (maybe_variable): Properly set TREE_READONLY of
4329         UNCONSTRAINED_ARRAY_REF.
4330         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
4331
4332         * ada-tree.def: (ASM_STMT): New.
4333
4334         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
4335         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
4336         ASM_STMT_INPUT): New.
4337         (ASM_STMT_CLOBBER): Likewise.
4338
4339 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
4340
4341         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
4342         general rcheck mechanism to raise Program_Error for E.4(18), instead
4343         of a custom raiser in System.Partition_Interface.
4344         Part of general cleanup work before PolyORB integration.
4345
4346         * snames.ads, snames.adb: Add new runtime library entities and names
4347         for PolyORB DSA.
4348
4349         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
4350         exp_dist.
4351         (Build_Subprogram_Id): New subprogram provided by exp_dist
4352         Code reorganisation in preparation for PolyORB integration.
4353
4354         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
4355         exp_dist.
4356         (Build_Subprogram_Id): New subprogram provided by exp_dist
4357
4358         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
4359         actual parameter types for call to dereference of an
4360         access-to-subprogram type.
4361
4362         * rtsfind.ads: Add new runtime library entities and names for PolyORB
4363         DSA.
4364
4365         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
4366         instead, which has the same behaviour here since we never pass it a
4367         NULL pointer.
4368
4369         * link.c (run_path_option, Solaris case): Use -Wl, as for other
4370         platforms.
4371
4372         * Makefile.in: adjust object file lists for gnatlink and gnatmake
4373         to account for new dependency upon Interfaces.C.Strings + link.o
4374         For x86 FreeBSD, use 86numaux.
4375
4376         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
4377         from Mlib.Tgt to Mlib.
4378
4379         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
4380         target-independent.
4381
4382         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
4383         target-specific versions of this subprogram, now implemented as a
4384         target-independent function in Mlib.
4385
4386         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
4387         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
4388         (Linker_Library_Path_Option): Remove target-specific versions of this
4389         subprogram, now implemented as a target-independent function in Mlib.
4390
4391         * atree.adb: (Allocate_Initialize_Node): New subprogram.
4392         Factors out node table slots allocation.
4393         (Fix_Parents): New subprogram.
4394         Encapsulate the pattern of fixing up parent pointers for syntactic
4395         children of a rewritten node.
4396         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
4397         (Rewrite): Use New_Copy when creating saved copy of original node.
4398         (Replace): Use Copy_Node to copy nodes.
4399
4400 2004-04-19  Javier Miranda  <miranda@gnat.com>
4401
4402         * sprint.adb (Sprint_Node_Actual): Give support to the new
4403         Access_To_Subprogram node available in Access_Definition nodes. In
4404         addition, give support to the AI-231 node fields: null-exclusion,
4405         all-present, constant-present.
4406
4407         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
4408
4409         * sinfo.ads, sinfo.adb:
4410         New field Access_To_Subprogram_Definition in Access_Definition nodes
4411
4412         * sem_ch6.adb (Process_Formals): Move here the code that creates and
4413         decorates internal subtype declaration corresponding to the
4414         null-excluding formal. This code was previously in Set_Actual_Subtypes.
4415         In addition, carry out some code cleanup on this code. In case of
4416         access to protected subprogram call
4417         Replace_Anonymous_Access_To_Protected_Subprogram.
4418         (Set_Actual_Subtypes): Code cleanup.
4419
4420         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
4421         Find_Type in case of anonymous access renamings. Add warning in case of
4422         null-excluding attribute used in anonymous access renaming.
4423
4424         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
4425         subprogram
4426
4427         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
4428         subprogram.
4429         (Access_Definition): In case of anonymous access to subprograms call
4430         the corresponding semantic routine to decorate the node.
4431         (Access_Subprogram_Declaration): Addition of some comments indicating
4432         some code that probably should be added here. Detected by comparison
4433         with the access_definition subprogram.
4434         (Analyze_Component_Declaration): In case of access to protected
4435         subprogram call Replace_Anonymous_Access_To_Protected.
4436         (Array_Type_Declaration): In case of access to protected subprogram call
4437         Replace_Anonymous_Access_To_Protected_Subprogram.
4438         (Process_Discriminants): In case of access to protected subprogram call
4439         Replace_Anonymous_Access_To_Protected_Subprogram.
4440
4441         * par.adb (P_Access_Definition): New formal that indicates if the
4442         null-exclusion part was present.
4443         (P_Access_Type_Definition): New formal that indicates if the caller has
4444         already parsed the null-excluding part.
4445
4446         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
4447         (P_Identifier_Declarations): Code cleanup and give support to renamings
4448         of anonymous access to subprogram types.
4449         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
4450         (P_Array_Type_Definition): Give support to AI-254.
4451         (P_Component_Items): Give support to AI-254.
4452         (P_Access_Definition): New formal that indicates if the header was
4453         already parsed by the caller.
4454         (P_Access_Type_Definition): New formal that indicates if the caller has
4455         already parsed the null-excluding part.
4456
4457         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
4458         call to P_Access_Definition.
4459
4460 2004-04-19  Geert Bosch  <bosch@gnat.com>
4461
4462         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
4463         the delicate semantics of floating-point to integer conversion.
4464         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
4465
4466         * eval_fat.adb (Machine_Mantissa): Moved to spec.
4467         (Machine_Radix): New function.
4468
4469         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
4470         conversion checks.
4471         (Machine_Radix): New function also for use in conversion checks.
4472
4473 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
4474
4475         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
4476
4477         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
4478         to decorate the access-to-protected subprogram and the equivalent type.
4479
4480         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
4481         to anonymous access to subprogram types.
4482
4483         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
4484         constant-folding, for legality checks in contexts that require an RM
4485         static expression.
4486
4487         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
4488         temporary but stack checking is not enabled, increment serial number
4489         to so that symbol generation is consistent with and without stack
4490         checking.
4491
4492         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
4493         independent on whether stack checking is enabled, caller must check
4494         the corresponding flag.
4495
4496         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
4497         range checks.
4498         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
4499         parent if it has discriminants.
4500         (Build_Derived_Private_Type): Constructed full view does
4501         not come from source.
4502         (Process_Discriminants): Default discriminants on a tagged type are
4503         legal if this is the internal completion of a private untagged
4504         derivation.
4505
4506         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
4507         no constraint checks, because it corresponds to an existing object.
4508
4509         * sem_prag.adb (Process_Convention): Pragma applies
4510         only to subprograms in the same declarative part, i.e. the same unit,
4511         not the same scope.
4512
4513         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
4514         ignore type mismatch on a numeric conversion if expression comes from
4515         expansion.
4516
4517 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
4518
4519         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
4520         Homonym_Number parameter, add processing for Source_Location parameter
4521         corresponding.
4522         (Check_Eliminated): Remove the check for homonym numbers, add the check
4523         for source location traces.
4524
4525         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
4526         with Arg_Source_Location corresponding to the changes in the format of
4527         the pragma.
4528
4529         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
4530         Eliminate pragma corresponding to the changes in the format of the
4531         pragma: Homonym_Number is replaced with Source_Location, two ways of
4532         distinguishing homonyms are mutially-exclusive.
4533
4534 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
4535
4536         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
4537
4538         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
4539         No_Dollar_In_Label, no longer necessary, as it is always True.
4540         (Strip_Suffixes): Likewise.
4541
4542 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
4543
4544         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
4545         modulus for compatibility with size clause on targets with 16-bit
4546         Integer.
4547
4548         * layout.adb (Discrimify): In the case of private types, set Vtyp to
4549         full type to fix type mismatches on calls to size functions for
4550         discriminant-dependent array components.
4551
4552 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
4553
4554         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
4555         lib.
4556
4557 2004-04-19  Pascal Obry  <obry@gnat.com>
4558
4559         * mdll-utl.adb (Locate): New version is idempotent.
4560
4561 2004-04-17  Laurent Guerby <laurent@guerby.net>
4562
4563         PR ada/14988 (partial)
4564         * impunit.adb: Fix typo.
4565
4566 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
4567
4568         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
4569         and install-rts-cert targets.  Remove all gnatlib and gnattools
4570         targets and all other rts-* targets (moved to libada).  Remove (now)
4571         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
4572         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
4573
4574 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4575
4576         * trans.c (tree_transform): Shortcut returning error_mark_node for
4577         statements in annotate_only_mode.
4578         (tree_transform, case N_Label, case N_Return_Statement,
4579         N_Goto_Statement): Make statement tree instead of generating code.
4580         (tree_transform, case N_Assignment_Statement): No longer check
4581         type_annotate_only.
4582         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
4583         RETURN_STMT): New.
4584         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
4585         New fcns.
4586         (gnat_to_gnu): Collect any RTL generated and deal with it.
4587         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
4588         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
4589         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
4590
4591         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
4592
4593         * ada-tree.def (EXPR_STMT): Fix typo in name.
4594         (BLOCK_STMT, IF_STMT): New nodes.
4595
4596         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
4597         LABEL_STMT_FIRST_IN_EH): New macros.
4598         (RETURN_STMT_EXPR): Likewise.
4599
4600         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
4601         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
4602
4603 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
4604
4605         * atree.ads: Correct documentation on extended nodes.
4606
4607         * link.c: Set run_path_option for FreeBSD.
4608
4609 2004-04-08  Vincent Celier  <celier@gnat.com>
4610
4611         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
4612         one of the ALI file, do not link with DEC lib.
4613
4614         * par.adb Remove the last two characters ("%s" or "%b") when checking
4615         if a language defined unit may be recompiled.
4616
4617 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
4618
4619         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
4620         removal of abstract operation leaves no possible interpretation for
4621         expression.
4622
4623         * sem_eval.adb (Eval_Qualified_Expression): Use
4624         Set_Raises_Constraint_Error on node when needed, so that it does not
4625         get optimized away by subsequent optimizations.
4626
4627         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
4628         operands even when they are not wrapped in a type conversion.
4629
4630 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
4631
4632         * sem_prag.adb (Set_Exported): Warn about making static as result of
4633         export only when the export is coming from source. This may be not
4634         be true e.g. on VMS where we expand export pragmas for exception codes
4635         together with imported or exported exceptions, and we don't want the
4636         user to be warned about something he didn't write.
4637
4638 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
4639
4640         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
4641         duplication between normal entities and those declared as renamings.
4642         No functional change.
4643
4644         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
4645         inline functions returning an unconstrained result.
4646
4647 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
4648
4649         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
4650         conform to what other front-ends do.
4651
4652 2004-04-08  Doug Rupp  <rupp@gnat.com>
4653
4654         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
4655         libraries.
4656
4657 2004-04-06  Pascal Obry  <obry@gnat.com>
4658
4659         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
4660
4661         * osint.adb (Program_Name): Do not look past a directory separator.
4662
4663 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
4664
4665         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
4666
4667         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
4668         requirement for preserving a copy of the original assignment node.
4669
4670         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
4671
4672 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
4673
4674         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
4675         when supported.
4676
4677 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
4678
4679         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
4680         operator calls in functional notation, and apply
4681         Universal_Interpretation to operands, not to their type.
4682
4683 2004-04-06  Robert Dewar  <dewar@gnat.com>
4684
4685         * 5wdirval.adb: Minor reformatting
4686
4687 2004-04-06  Ed Falis  <falis@gnat.com>
4688
4689         * gnat_rm.texi: Improve a reference to the GCC manual
4690
4691 2004-04-05  Vincent Celier  <celier@gnat.com>
4692
4693         * adaint.h, adaint.c: Add function __gnat_named_file_length
4694
4695         * impunit.adb: Add Ada.Directories to the list
4696
4697         * Makefile.in: Add VMS and Windows versions of
4698         Ada.Directories.Validity package body.
4699
4700         * Makefile.rtl: Add a-direct and a-dirval
4701
4702         * mlib-tgt.ads: Minor comment update.
4703
4704         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
4705         a-direct.ads, a-direct.adb: New files.
4706
4707 2004-04-05  Vincent Celier  <celier@gnat.com>
4708
4709         PR ada/13620
4710         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
4711         just to the compiler.
4712
4713 2004-04-05  Robert Dewar  <dewar@gnat.com>
4714
4715         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
4716         returned string is 1.
4717
4718         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
4719
4720         * eval_fat.ads: Minor reformatting
4721
4722         * g-curexc.ads: Document that lower bound of returned string values
4723         is always one.
4724
4725         * gnatlink.adb: Add ??? comment for previous change
4726         (need to document why this is VMS specific)
4727
4728         * s-stoele.ads: Minor reformatting
4729
4730         * tbuild.ads: Minor reformatting throughout (new function specs)
4731
4732         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
4733         after WITH.
4734
4735         * scng.adb: Minor reformatting
4736
4737 2004-04-05  Geert Bosch  <bosch@gnat.com>
4738
4739         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
4740         (Leading_Part): Still perform truncation to machine number if the
4741         specified radix_digits is greater or equal to machine_mantissa.
4742
4743 2004-04-05  Javier Miranda  <miranda@gnat.com>
4744
4745         * par-ch3.adb: Complete documentation of previous change
4746         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
4747         (aliased must appear before constant).
4748
4749         * par-ch4.adb: Complete documentation of previous change.
4750
4751         * par-ch6.adb: Complete documentation of previous change.
4752
4753         * sinfo.ads: Fix typo in commment.
4754
4755 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
4756
4757         * sem_ch3.adb (Inherit_Components): If derived type is private and has
4758         stored discriminants, use its discriminants to constrain parent type,
4759         as is done for non-private derived record types.
4760
4761         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
4762         Ada 2005 AI-310: an abstract non-dispatching operation is not a
4763         candidate interpretation in an overloaded call.
4764
4765         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
4766         expression is Null and target type is not an access type (e.g. a
4767         non-private address type).
4768
4769 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
4770
4771         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
4772         statement whose right-hand side is an inlined call, save a copy of the
4773         original assignment subtree to preserve enough consistency for
4774         Analyze_Assignment to proceed.
4775
4776         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
4777         complete assignment subtree which is now unnecessary, as the expansion
4778         of inlined call has been improved to preserve a consistent assignment
4779         tree.  Note_Possible_Modification must be called only
4780         after checks have been applied, or else unnecessary checks will
4781         be generated.
4782
4783         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
4784         of explicit dereferences that do not Come_From_Source:
4785          - be selective on cases where we must go back to the dereferenced
4786            pointer (an assignment to an implicit dereference must not be
4787            recorded as modifying the pointer);
4788          - do not rely on Original_Node being present (Analyze_Assignment
4789            calls Note_Possible_Modification on a copied tree).
4790
4791         * sem_warn.adb (Check_References): When an unset reference to a pointer
4792         that is never assigned is encountered, prefer '<pointer> may be null'
4793         warning over '<pointer> is never assigned a value'.
4794
4795 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
4796
4797         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
4798         the ABI.
4799
4800 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
4801
4802         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
4803         libexc. We currently don't reference anything in this library and
4804         linking it in triggers linker warnings we don't want to see.
4805
4806         * init.c: Update comments.
4807
4808 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4809
4810         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
4811         * utils.c (create_field_decl): Likewise.
4812         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
4813
4814 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
4815
4816         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
4817         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
4818         Add info directory entry and category.
4819
4820 2004-04-02  Jan Hubicka  <jh@suse.cz>
4821
4822         * utils.c: Include function.h
4823         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
4824
4825 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
4826
4827         PR ada/14150
4828         * Make-lang.in: Clean up generation of documentation
4829
4830         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
4831
4832         * xgnatug.adb: Removed, replaced by xgnatugn.adb
4833
4834         * xgnatugn.adb: Replaces xgnatug.adb
4835
4836         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
4837
4838         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
4839
4840         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
4841         gnat_ug_wnt.texi: Removed.
4842
4843 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
4844
4845         * utils2.c: Update copyright notice.
4846
4847 2004-04-01  Robert Dewar  <dewar@gnat.com>
4848
4849         * checks.adb: Minor reformatting throughout
4850         Note that prev checkin added RM reference to alignment warning
4851
4852 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
4853
4854         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
4855         non-static when building aggregate for bit-packed array.
4856
4857         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
4858         function call that is itself the actual in a procedure call, build
4859         temporary for it.
4860
4861         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
4862         a string literal, create a temporary for it, constant folding only
4863         handles scalars here.
4864
4865 2004-04-01  Vincent Celier  <celier@gnat.com>
4866
4867         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
4868         Error_Msg_SP): New empty procedures to instantiate the Scanner.
4869         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
4870         tokens.
4871         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
4872         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
4873         and get the checksum.
4874
4875         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
4876         already in the Q.
4877         Increase the Marking_Label at the end of the Multiple_Main_Loop,
4878         instead of at the beginning.
4879
4880         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
4881         directly.
4882         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
4883         on VMS.
4884
4885         * osint.ads (Multi_Unit_Index_Character): New Character global variable
4886
4887         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
4888         not '~' directly.
4889
4890         * par.adb: Remove test on file name to detect language defined units.
4891         Add test on unit name, after parsing, to detect language defined units
4892         that are not compiled with -gnatg (except System.RPC and its children)
4893
4894         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
4895         following units without style checking.
4896
4897         * switch-c.adb: Change -gnatC to -gnateI
4898
4899         * usage.adb: Document new switch -gnateInnn
4900
4901         * scng.adb (Accumulate_Token_Checksum): New procedure
4902         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
4903         word or literal number.
4904         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
4905         numbers.
4906
4907 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
4908
4909         * a-tasatt.adb,
4910         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
4911         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
4912         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
4913         5vtpopde.adb: Add missing 'constant' keywords.
4914
4915 2004-04-01  Javier Miranda  <miranda@gnat.com>
4916
4917         * par-ch4.adb: (P_Allocator): Code cleanup
4918
4919         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
4920         attribute.
4921
4922         * sinfo.ads: Complete documentation of previous change
4923
4924 2004-04-01  Pascal Obry  <obry@gnat.com>
4925
4926         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
4927         only on VMS.  This special handling was done because an old GNU/ld bug
4928         on Windows which has been fixed.
4929
4930 2004-04-01  GNAT Script  <nobody@gnat.com>
4931
4932         * Make-lang.in: Makefile automatically updated
4933
4934 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4935
4936         * decl.c (gnat_to_gnu_entity, make_type_from_size):
4937         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
4938         * trans.c (tree_transform, convert_with_check): Likewise.
4939         * utils.c (gnat_signed_or_unsigned_type): Likewise.
4940         (build_vms_descriptor, unchecked_convert): Likewise.
4941         * utils2.c (nonbinary_modular_operation): Likewise.
4942
4943 2004-03-29  Javier Miranda  <miranda@gnat.com>
4944
4945         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
4946         (Install_Null_Excluding_Check): Local subprogram that determines whether
4947         an access node requires a runtime access check and if so inserts the
4948         appropriate run-time check.
4949         (Apply_Access_Check): Call Install_Null_Excluding check if required
4950         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
4951
4952         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
4953
4954         * einfo.ads: Fix typo in comment
4955
4956         * exp_ch3.adb (Build_Assignment): Generate conversion to the
4957         null-excluding type to force the corresponding run-time check.
4958         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
4959         type to force the corresponding run-time check.
4960
4961         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
4962         the null-excluding type to force the corresponding run-time check.
4963
4964         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
4965         case of access types unless they have the null-excluding attribute.
4966
4967         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
4968         part.
4969
4970         * exp_util.ads: Fix typo in comment
4971
4972         * par.adb (P_Null_Exclusion): New subprogram
4973         (P_Subtype_Indication): New formal that indicates if the null-excluding
4974         part has been scanned-out and it was present
4975
4976         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
4977
4978         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
4979         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
4980         type to force the corresponding run-time check
4981         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
4982         components
4983         (Resolve_Array_Aggregate): Carry out some static checks
4984         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
4985
4986         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
4987         attribute must be set only if specified by means of the null-excluding
4988         part. In addition, we must also propagate the access-constant attribute
4989         if present.
4990         (Access_Subprogram_Declaration, Access_Type_Declaration,
4991         Analyze_Component_Declaration, Analyze_Object_Declaration,
4992         Array_Type_Declaration, Process_Discriminants,
4993         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
4994         and carry out some static checks.
4995         (Build_Derived_Access_Type): Set the null-excluding attribute
4996         (Derived_Type_Declaration, Process_Subtype): Carry out some static
4997         checks.
4998
4999         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
5000
5001         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
5002
5003         * sem_ch6.adb (Process_Formals): Carry out some static checks.
5004         (Set_Actual_Subtypes): Generate null-excluding subtype if the
5005         null-excluding part was present; it is not required to be done here in
5006         case of anonymous access types.
5007         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
5008         value.
5009
5010         * sem_res.adb (Resolve_Actuals): Carry out some static check
5011         (Resolve_Null): Allow null in anonymous access
5012
5013         * sinfo.adb: New subprogram Null_Exclusion_Present
5014         All_Present and Constant_Present available on access_definition nodes
5015
5016         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
5017         object_declaration, derived_type_definition, component_definition,
5018         discriminant_specification, access_to_object_definition,
5019         access_function_definition, allocator, access_procedure_definition,
5020         access_definition, parameter_specification, All_Present and
5021         Constant_Present flags available on access_definition nodes.
5022
5023 2004-03-29  Robert Dewar  <dewar@gnat.com>
5024
5025         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
5026         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
5027         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
5028         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
5029         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
5030         sem_prag.adb: Updates to handle multiple units/file
5031
5032         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
5033
5034         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
5035         sem_util.adb: Minor reformatting
5036
5037         * sem_ch12.adb: Add comment for previous change
5038
5039 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
5040
5041         * osint.adb (Executable_Prefix): Set Exec_Name to the current
5042         executable name when not initialized. Otherwise, use its current value.
5043
5044         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
5045         initialize it to another executable name than the current one. This
5046         allows to configure paths for an executable name (gnatmake) different
5047         from the current one (gnatdist).
5048
5049 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
5050
5051         * exp_ch6.adb (Expand_Call): A call to a function declared in the
5052         current unit cannot be inlined if it appears in the body of a withed
5053         unit, to avoid order of elaboration problems in gigi.
5054
5055         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
5056         information for protected (wrapper) operation as well, to simplify gdb
5057         use.
5058
5059         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
5060         protected body, indicate that the entity for the generated spec comes
5061         from source, to ensure that references are properly generated for it.
5062         (Build_Body_To_Inline): Do not inline a function that returns a
5063         controlled type.
5064
5065         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
5066         apply convention to homonyms that are declared explicitly.
5067
5068         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
5069         that renames an equality operator and the operands are overloaded,
5070         resolve them with the declared formal types, before rewriting as an
5071         operator.
5072
5073 2004-03-29  GNAT Script  <nobody@gnat.com>
5074
5075         * Make-lang.in: Makefile automatically updated
5076
5077 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
5078
5079         * memtrack.adb: Log realloc calls, which are treated as free followed
5080         by alloc.
5081
5082 2004-03-25  Vincent Celier  <celier@gnat.com>
5083
5084         * prj-makr.adb (Process_Directories): Detect when a file contains
5085         several units. Do not include such files in the config pragmas or
5086         in the naming scheme.
5087
5088         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
5089         Resolve links only when not in Trusted_Mode.
5090         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
5091         Do not resolve links for the display names.
5092
5093         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
5094         resolve links when computing the display names.
5095
5096 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
5097
5098         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
5099         attribute reference does not denote a subtype, it can be any
5100         expression that has a classwide type, potentially after an implicit
5101         dereference.  In particular, the prefix can be a view conversion for
5102         a classwide type (for which Is_Object_Reference holds), but it can
5103         also be a value conversion for an access-to-classwide type. In the
5104         latter case, there is an implicit dereference, and the original node
5105         for the prefix does not verify Is_Object_Reference.
5106
5107         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
5108         conversion of a discriminant-dependent component of a mutable object
5109         is one itself.
5110
5111 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
5112
5113         * freeze.adb (Freeze_Entity): When an inherited subprogram is
5114         inherited, has convention C, and has unconstrained array parameters,
5115         place the corresponding warning on the derived type declaration rather
5116         than the original subprogram.
5117
5118         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
5119         indication on renaming declaration, if formal has a box and actual
5120         is absent.
5121
5122         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
5123         determine whether to generate an implicit or explicit reference to
5124         the renamed entity.
5125
5126         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
5127         subprogram renaming comes from a defaulted formal subprogram in an
5128         instance.
5129
5130 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
5131
5132         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
5133         value expressions to ensure that calls within a component definition
5134         will be checked (since those are evaluated during the record type's
5135         elaboration).
5136
5137 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
5138
5139         * s-tpobop.adb: Code clean up:
5140         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
5141         code.
5142         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
5143
5144 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
5145
5146         * Makefile.in: Clean up in the ravenscar run time.
5147
5148 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5149
5150         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
5151         of No_Strict_Aliasing to build_pointer_type_for_mode.
5152         * utils.c (update_pointer_to): Walk pointer and ref chains.
5153
5154 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
5155
5156         * ali.ads: Fix Comment about Dynamic_Elab.
5157
5158         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
5159         Has_RACW, Is_Generic, etc.)
5160         (Output_Object, Gnatls): Take into account ALI files not attached to
5161         an object.
5162
5163 2004-03-22  Vincent Celier  <celier@gnat.com>
5164
5165         * gprep.adb: Change all String_Access to Name_Id
5166         (Is_ASCII_Letter): new function
5167         (Double_File_Name_Buffer): New procedure
5168         (Preprocess_Infile_Name): New procedure
5169         (Process_Files): New procedure
5170         (Gnatprep): Check if output and input are existing directories.
5171         Call Process_Files to do the real job.
5172
5173 2004-03-22  Robert Dewar  <dewar@gnat.com>
5174
5175         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
5176         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
5177
5178 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
5179
5180         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
5181         case when the source contains only comments.
5182
5183 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
5184
5185         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
5186         declaration for a child subprogram body that acts as a spec, indicate
5187         that the entity in the declaration needs debugging information.
5188
5189         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
5190         full view if the subtype is created for a constrained record component;
5191         gigi has enough information to construct the record, and there is no
5192         place in the tree for the declaration.
5193
5194         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
5195         serial number for the dummy body that is built for analysis, to avoid
5196         inconsistencies in the generation of internal names when compiling
5197         with -gnatN.
5198
5199 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
5200
5201         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
5202         object.
5203
5204 2004-03-22  GNAT Script  <nobody@gnat.com>
5205
5206         * Make-lang.in: Makefile automatically updated
5207
5208 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5209
5210         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
5211         * trans.c (tree_transform, emit_index_check): Likewise.
5212         * utils.c (build_template): Likewise.
5213         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
5214         (maybe_unconstrained_array, unchecked_convert): Likewise.
5215         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
5216         (build_unary_op): Likewise.
5217         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
5218         (fill_vms_descriptor): Likewise.
5219         (build_call_alloc_dealloc): Likewise.
5220         ALIGN is unsigned.
5221         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
5222
5223 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
5224
5225         PR other/14630
5226         * gnat_ug.texi: Add info directory category and entry.
5227         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
5228         gnat_ug_wnt.texi: Regenerate.
5229
5230 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
5231
5232         * ada-tree.h: Update copyright notice.
5233         Minor reformatting.
5234
5235 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
5236
5237         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
5238         as regular exception objects and not as mere integers representing the
5239         condition code.  The latter approach required some dynamics to mask off
5240         severity bits, which did not fit well into the GCC table based model.
5241         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
5242         exception data objects. We don't it and it would conflict with the other
5243         external symbol we have to generate for such exceptions.
5244
5245         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
5246         the special code for VMS exceptions, since these are now represented
5247         as regular exceptions objects.
5248
5249 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5250
5251         * decl.c (debug_no_type_hash): Remove.
5252         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
5253         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
5254
5255 2004-03-19  Laurent Guerby <laurent@guerby.net>
5256
5257         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
5258         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
5259
5260 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5261
5262         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
5263         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
5264         (TYPE_RM_SIZE_INT): Directly use type.values.
5265         (TREE_LOOP_ID): Clean up check.
5266         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
5267         TYPE_VALUES, not TYPE_FIELDS.
5268         * trans.c (convert_with_check): Delay access of bounds of basetype
5269         until sure is numeric.
5270
5271 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
5272
5273         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
5274
5275         Code clean up:
5276         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
5277         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
5278         Specific.Set instead of direct call to e.g pthread_setspecific.
5279
5280 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
5281
5282         * adaint.c: Update comments.
5283
5284         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
5285         GNATLIB_SHARED for FreeBSD.
5286
5287 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
5288
5289         * init.c [VxWorks]: Do not fix the stack size for the environment task.
5290         When needed (stack checking) the stack size is retrieved
5291         from the VxWorks kernel.
5292
5293         * Makefile.in: Flag -nostdinc is required when building the run time
5294         for avoiding looking for files in the base compiler.
5295         Add the VxWorks specific version of the package body for
5296         System.Stack_checking.Operations (5zstchop.adb).
5297
5298         * Make-lang.in: Add the object file for
5299         System.Stack_Checking.Operations.
5300
5301         * Makefile.rtl: Add object file for the package
5302         System.Stack_Checking.Operations.
5303
5304         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
5305
5306         * s-stache.ads, s-stache.adb: Move the operations related to stack
5307         checking from this package to package System.Stack_Checking.Operations.
5308         This way, stack checking operations are only linked in the final
5309         executable when using the -fstack-check flag.
5310
5311 2004-03-18  Doug Rupp  <rupp@gnat.com>
5312
5313         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
5314         Reorganize ifeq's.
5315
5316         * 5qsystem.ads, 5xcrtl.ads: New files.
5317
5318 2004-03-18  Vincent Celier  <celier@gnat.com>
5319
5320         * prj.adb (Reset): Reset hash table Files_Htable
5321
5322         * prj-env.adb (Source_Paths, Object_Paths): New tables.
5323         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
5324         the procedures Add_To_Path_File.
5325         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
5326         making sure that each directory is present only once and, for object
5327         dirs, when a directory already present is added, the duplicate is
5328         removed and the directory is always put as the last in the table.
5329         Write the path files at the end of these accumulations.
5330
5331         * prj-nmsc.adb (Record_Source): Add source file name in hash table
5332         Files_Htable for all sources.
5333
5334         * prj-proc.adb (Process): Remove restrictions between not directly
5335         related extending projects.
5336
5337 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
5338
5339         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
5340         (Find_Sources): Minor speed optimization.
5341
5342         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
5343         parameter Trusted_Mode.
5344
5345 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
5346
5347         * scn.adb (Determine_License): Take into account a degenerated case
5348         when the source contains only comments.
5349
5350 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
5351
5352         * sem_warn.adb (Check_References): For a warning on a selected
5353         component that does not come from source, locate an uninitialized
5354         component of the record type to produce a more precise error message.
5355
5356 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
5357
5358         * 3zsoccon.ads: Fix multicast options.
5359
5360         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
5361         in the spec.
5362
5363 2004-03-15  Robert Dewar  <dewar@gnat.com>
5364
5365         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
5366         pragma used for a private type.
5367
5368         * lib-xref.adb (Generate_Reference): Do not generate warning if
5369         reference is in a different unit from the pragma Unreferenced.
5370
5371         * 5vtpopde.adb: Minor reformatting
5372         Fix casing of To_Task_ID
5373
5374         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
5375         flag if we have an unchecked conversion to an access type in the same
5376         unit.
5377
5378 2004-03-15  Geert Bosch  <bosch@gnat.com>
5379
5380         * a-ngcoty.adb (Modulus): In alternate formula for large real or
5381         imaginary parts, use Double precision throughout.
5382
5383         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
5384         we want to be able to compile run-time with -gnata for testing, but
5385         this may also be instantiated in user code that is compiled with -gnata.
5386
5387 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
5388
5389         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
5390         codes. Having a separate type for this is useful to enforce consistency
5391         throughout the various run-time units.
5392         (Exception_Data): Use Exception_Code for Import_Code.
5393
5394         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
5395         Natural and Integer in various places.
5396         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
5397         with the severity bits masked off.
5398         (Register_VMS_Exception): Handle the additional exception data pointer
5399         argument.
5400
5401         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
5402         component, now reflected by an exported accessor.
5403         (is_handled_by): New routine to compute whether the propagated
5404         occurrence matches some handler choice specification. Extracted out of
5405         get_action_description_for, and expanded to take care of the VMS
5406         specifities.
5407         (get_action_description_for): Use is_handled_by instead of an explicit
5408         complex condition to decide if the current choice at hand catches the
5409         propagated occurrence.
5410
5411         * raise.h (Exception_Code): New type for C.
5412
5413         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
5414         System.Standard_Library.Exception_Code, to allow references from the
5415         pragma import/export expander.
5416
5417         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
5418         New accessors to allow easy access to GNAT exception data
5419         characteristics.
5420         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
5421         redundant Handled_By_Others component, helper for the personality
5422         routine which will now be able to call the appropriate exception data
5423         accessor instead.
5424
5425         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
5426         component of Standard_Exception_Type to be the closest possible to
5427         Exception_Code in System.Standard_Library, that we cannot get at this
5428         point. Expand a ??? comment to notify that this type node should
5429         probably be rewritten later on.
5430
5431         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
5432         registration call to include a pointer to the exception object in the
5433         arguments.
5434
5435         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
5436         instead of int and explicit bitmasks.
5437
5438 2004-03-15  Vincent Celier  <celier@gnat.com>
5439
5440         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
5441         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
5442
5443         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
5444         longer needed now that it is in the spec of
5445         System.Tasking.Task_Attributes.
5446
5447         * adaint.h, adaint.c: (__gnat_create_output_file): New function
5448
5449         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
5450
5451         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
5452
5453         * make.adb (Gnatmake): Do not check the executable suffix; it is being
5454         taken care of in Scan_Make_Arg.
5455         (Scan_Make_Arg): Add the executable suffix only if the argument
5456         following -o, in canonical case, does not end with the executable
5457         suffix.  When in verbose mode and executable file name does not end
5458         with executable suffix, output the executable name, in canonical case.
5459
5460         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
5461         to avoid warnings when instantiating Ada.Task_Attributes.
5462         Minor reformating.
5463
5464         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
5465         in the correct order.
5466
5467         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
5468         redirect standard output and error to a file for the invocation of the
5469         compiler, then read the file.
5470
5471         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
5472         directory, instead of the Value.
5473         (Find_Source_Dirs): Remove useless code & comments.
5474
5475 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
5476
5477         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
5478         tagged type is inherited, and the parent operation is not frozen yet,
5479         force generation of a freeze node for the inherited operation, so the
5480         corresponding dispatch entry is properly initialized.
5481         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
5482         when looking for user-defined equality operation.
5483
5484         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
5485         boolean when locating primitive equality of tagged component.
5486
5487         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
5488         bit-aligned field and the right-hand side a string literal, introduce
5489         a temporary before expanding assignment into a loop.
5490
5491         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
5492         priority in full, to ensure that any expanded subepxressions of it are
5493         elaborated in the scope of the init_proc.
5494
5495         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
5496         after object declaration, skipping over code that may have been
5497         generated for validity checks.
5498
5499         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
5500         discriminants, ignore the known discriminants of its full view, if
5501         any, to check legality.
5502
5503         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
5504         component if type has unknown discriminants.
5505         (Analyze_Private_Extension_Declaration): Discriminant constraint is
5506         null if type has unknown discriminants.
5507
5508         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
5509         for end label when present.
5510
5511         * s-fileio.adb (Open): When called with a C_Stream, use given name for
5512         temporary file, rather than an empty string.
5513
5514 2004-03-15  Ed Falis  <falis@gnat.com>
5515
5516         * s-thread.adb: Removed, no longer used.
5517
5518 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5519
5520         * decl.c (target.h): Now include.
5521         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
5522         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
5523         (validate_size): For POINTER_TYPE, get smallest size permitted on
5524         machine.
5525
5526         * fe.h: Sort Einfo decls and add Set_Mechanism.
5527
5528         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
5529         (ada/decl.o): Depends on target.h.
5530
5531         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
5532         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
5533
5534 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
5535
5536         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
5537
5538         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
5539         Insert_Dereference_Action when rewriting an implicit dereference into
5540         an explicit one, this will be taken care of during expansion of the
5541         explicit dereference.
5542         (Expand_N_Slice): Same. Always do the rewriting, even for the case
5543         of non-packed slices, since the dereference action generated by
5544         expansion of the explicit dereference is needed in any case.
5545         (Expand_N_Selected_Component): When rewriting an implicit dereference,
5546         analyze and resolve the rewritten explicit dereference so it is seen
5547         by the expander.
5548         (Insert_Dereference_Action): This procedure is now called only for the
5549         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
5550         dereferences that do not come from source (including explicit
5551         dereferences resulting from rewriting implicit ones), but do not
5552         recursively insert a check for the dereference nodes contained within
5553         the check.
5554         (Insert_Dereference_Action): Clarify and correct comment.
5555
5556 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
5557
5558         PR ada/14131
5559         Move language detection to the top level.
5560         * config-lang.in: Build by default.
5561
5562 2004-03-05  Robert Dewar  <dewar@gnat.com>
5563
5564         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
5565
5566         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
5567         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
5568         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
5569         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
5570         unchecked conversion to spec to avoid warnings.
5571
5572         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
5573         to Task_ID
5574
5575         * 7stpopsp.adb: Correct casing in To_Task_ID call
5576
5577         * a-strsea.ads, a-strsea.adb: Minor reformatting
5578
5579         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
5580
5581         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
5582         Adjust Max_Msg_Length to be clearly large enough.
5583
5584         * fe.h: Define In_Same_Source_Unit
5585
5586         * osint.adb: Add pragma Warnings Off to suppress warnings
5587         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
5588         aliasing warnings.
5589
5590         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
5591
5592         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
5593
5594         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
5595
5596         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
5597
5598         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
5599
5600         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
5601         node. We now do generate them for gcc back end.
5602
5603         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
5604         warning.
5605
5606         * sinput-c.adb: Fix bad name in header.
5607         Add pragma Warnings Off to suppress aliasing warning.
5608
5609         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
5610
5611         * snames.h, snames.ads, snames.adb: Add entry for pragma
5612         No_Strict_Aliasing.
5613
5614 2004-03-05  Vincent Celier  <celier@gnat.com>
5615
5616         * prj-com.ads: Add hash table Files_Htable to check when a file name
5617         is already a source of another project.
5618
5619         * prj-nmsc.adb (Record_Source): Before recording a new source, check
5620         if its file name is not already a source of another project. Report an
5621         error if it is.
5622
5623         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
5624         source file name, call gnatpp with all the sources of the main project.
5625
5626         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
5627         of file names.
5628
5629         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
5630         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
5631         /RUNTIME_SYSTEM=, converted to --RTS=
5632         /NOTABS, converted to -notabs
5633
5634 2004-03-05  Pascal Obry  <obry@gnat.com>
5635
5636         * make.adb: Minor reformatting.
5637
5638 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
5639
5640         Part of implemention of AI-262.
5641         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
5642
5643         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
5644         procedure.
5645
5646         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
5647         when component type is a partially constrained class-wide subtype.
5648         (Constrain_Discriminated_Type): If parent type has unknown
5649         discriminants, a constraint is illegal, even if full view has
5650         discriminants.
5651         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
5652         with unknown discriminants whose full view is a discriminated record.
5653
5654         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
5655         flag, to handle properly derivations of tagged types with unknown
5656         discriminants.
5657         (Analyze_Package_Spec, Analyze_Package_Body): Install
5658         Private_With_Clauses before analyzing private part or body.
5659
5660         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
5661         Has_Discriminants can be true for a given type (documentation).
5662
5663 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
5664
5665         * s-restri.ads: Fix license (GPL->GMGPL).
5666
5667         * s-tassta.adb: Minor reformatting.
5668
5669         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
5670         by calls to Exit_One_ATC_Level, since additional clean up is performed
5671         by this function.
5672
5673         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
5674         by calls to Exit_One_ATC_Level, since additional clean up is performed
5675         by this function.
5676
5677 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5678
5679         * trans.c: Reflect GCC changes to fix bootstrap problem.
5680         Add warning for suspicious aliasing unchecked conversion.
5681
5682 2004-03-05  GNAT Script  <nobody@gnat.com>
5683
5684         * Make-lang.in: Makefile automatically updated
5685
5686 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
5687
5688         * ali.adb (Read_Instantiation_Instance): Do not modify the
5689         current_file_num when reading information about instantiations, since
5690         this corrupts files in later references.
5691
5692 2004-03-02  Vincent Celier  <celier@gnat.com>
5693
5694         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
5695         before checking if it is read-only.
5696
5697         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
5698         of SRC_DIRS and eliminate duplicates.
5699
5700         * gprcmd.adb: Replace command "path" with command "path_sep" to return
5701         the path separator.
5702         (Usage): Document path_sep
5703
5704         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
5705         C++ compiler. No need for a script.
5706         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
5707         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
5708         subst.
5709
5710         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
5711         where there are Ada sources.
5712         (Set_Ada_Paths): Only add to the include path the source dirs of project
5713         with Ada sources.
5714         (Add_To_Path): Add the Display_Values of the directories, not their
5715         Values.
5716
5717         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
5718         data.
5719
5720         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
5721         is not No_Name.
5722         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
5723         Value is canonicalized.
5724         (Language_Independent_Check): Do not copy Value to Display_Value when
5725         canonicalizing Value.
5726
5727         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
5728         path to find limited with cycles.
5729         (Parse_Single_Project): Use canonical cased path to find the end of a
5730         with cycle.
5731
5732 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
5733
5734         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
5735         and not a child unit.
5736
5737         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
5738         appear in a with_clause.
5739
5740         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
5741         only happen in type_annotate mode, do not try to elaborate it.
5742
5743         * exp_util.adb (Force_Evaluation): If expression is a selected
5744         component on the left of an assignment, use a renaming rather than a
5745         temporary to remove side effects.
5746
5747         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
5748         inlined instance body, which is analyzed before the end of the
5749         enclosing scope.
5750
5751 2004-03-02  Robert Dewar  <dewar@gnat.com>
5752
5753         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
5754         sem_ch4.adb: Use new feature for substitution of keywords in VMS
5755
5756         * errout.ads, errout.adb: Implement new circuit for substitution of
5757         keywords in VMS.
5758
5759         * sem_case.adb (Analyze_Choices): Place message properly when case is
5760         a subtype reference rather than an explicit range.
5761
5762         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
5763
5764 2004-03-02  Doug Rupp  <rupp@gnat.com>
5765
5766         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
5767
5768 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
5769
5770         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
5771
5772 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5773
5774         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
5775         BLKmode bitfield.
5776
5777 2004-02-25  Robert Dewar  <dewar@gnat.com>
5778
5779         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
5780         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
5781         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
5782         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
5783         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
5784         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
5785         the defining instance of the type to avoid aliasing problems.
5786         Fix copyright header.  Fix bad comments in package header.
5787
5788         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
5789
5790 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
5791
5792         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
5793         rewritten as references when aliased through an address clause.
5794
5795         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
5796         whether call can be interpreted as an indirect call to the result of a
5797         parameterless function call returning an access subprogram.
5798
5799 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
5800
5801         Code clean up:
5802         * exp_ch7.adb (Make_Clean): Remove generation of calls to
5803         Unlock[_Entries], since this is now done by Service_Entries directly.
5804
5805         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
5806
5807         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
5808         Requeue_Call for better code readability. Change spec and update calls:
5809         PO_Service_Entries now unlock the PO on exit.
5810         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
5811         PO_Service_Entries.
5812
5813         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
5814
5815         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
5816
5817 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
5818
5819         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
5820         protected subprogram call and analyzing the result of such expanding
5821         in case when the called protected subprogram is eliminated.
5822
5823         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
5824         names.
5825
5826 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
5827
5828         * Makefile.in: Clean ups.
5829
5830 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
5831
5832         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
5833         protected operations if original subprogram is flagged as eliminated.
5834         (Expand_N_Subprogram_Body): For a protected operation, create
5835         discriminals for next operation before checking whether the operation
5836         is eliminated.
5837
5838         * exp_ch9.adb (Expand_N_Protected_Body,
5839         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
5840         for internal protected operations if the original subprogram is
5841         eliminated.
5842
5843         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
5844         declared in a single protected object.
5845
5846 2004-02-23  Vincent Celier  <celier@gnat.com>
5847
5848         * prj-attr.adb: Make attribute Builder'Executable an associative array,
5849         case insensitive if file names are case insensitive, instead of a
5850         standard associative array.
5851
5852         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
5853         them as case insensitive on platforms where the file names are case
5854         sensitive.
5855
5856         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
5857         project file has already been parsed that canonical path are compared.
5858
5859 2004-02-23  Robert Dewar  <dewar@gnat.com>
5860
5861         * sinput-c.ads: Correct bad unit title in header
5862
5863         * freeze.adb: Minor reformatting
5864
5865 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5866
5867         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
5868         nonaddressable COMPONENT_REF that is removing padding that we are
5869         taking the address of, take the address of the padded record instead
5870         if item is variable size.
5871
5872 2004-02-20  Robert Dewar  <dewar@gnat.com>
5873
5874         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
5875
5876 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
5877
5878         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
5879         itype references for the constrained designated type of a component
5880         whose base type is already frozen.
5881
5882 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
5883
5884         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
5885         avoid GCC warnings.
5886
5887 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
5888
5889         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
5890         identifier for a phantom package that rewrites the formal package
5891         declaration with a box. The Add semantic decorations for the defining
5892         identifier from the original node (that represents the formal package).
5893
5894 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
5895
5896         * Make-lang.in (ada/stamp-sdefault): Use the top level
5897         move-if-change.
5898
5899 2004-02-19  Richard Henderson  <rth@redhat.com>
5900
5901         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
5902
5903 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
5904
5905         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
5906         Scan_ALI can be used for multiple ALI files without reinitializing
5907         between calls.
5908
5909 2004-02-18  Robert Dewar  <dewar@gnat.com>
5910
5911         * debug.adb: Minor reformatting.
5912
5913 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5914
5915         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
5916         to zero if there is an address clause.
5917
5918 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
5919
5920         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
5921
5922 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
5923
5924         * layout.adb (Layout_Component_List): Revise generation of call to
5925         discriminant-checking function to pass selections of all of the type's
5926         discriminants rather than just the variant-controlling discriminant.
5927
5928 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
5929
5930         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
5931         fail in the current setup and triggers spurious system error messages.
5932         Pretend it occurred and failed instead.
5933
5934 2004-02-18  Vincent Celier  <celier@gnat.com>
5935
5936         * bld.adb: Mark FLDFLAGS as saved
5937         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
5938         it is not the root project.  Put each directory to be
5939         extended between double quotes to prevent it to be expanded on Windows.
5940         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
5941         the project file. Set them back to their initial values if they have not
5942         been set in the project file.
5943
5944         * gprcmd.adb: (Gprdebug, Debug): New global variables
5945         (Display_Command): New procedure
5946         (Usage): Document new command "linkopts"
5947         Call Display_Command when env var GPRDEBUG has the value "TRUE"
5948         Implement new command "linkopts"
5949         Remove quotes that may be around arguments for "extend"
5950         Always call Normalize_Pathname with arguments formatted for the platform
5951
5952         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
5953         Change @echo to @$(display) in target clean to be able to clean silently
5954
5955         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
5956
5957         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
5958         canonical case.
5959
5960         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
5961         = Extending_All when current project is an extending all project.
5962
5963         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
5964         set to True only for LINK command, after Unix switch -o.
5965         (Process_Arguments): Set Output_File_Expected to True for LINK command
5966         after Unix switch -o. When Output_File_Expected is True, never add an
5967         extension to a file name.
5968
5969         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
5970         option file name, only to the --for-linker= switch.
5971         (Option_File_Name): If option file name do not end with ".opt", append
5972         "/OPTIONS".
5973
5974 2004-02-18  GNAT Script  <nobody@gnat.com>
5975
5976         * Make-lang.in: Makefile automatically updated
5977
5978 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
5979
5980         * Make-lang.in (stamp-sdefault): Do not depend on
5981         move-if-change.
5982
5983 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
5984
5985         * config-lang.in: Disable Ada by default until probe logic for
5986         a bootstrap Ada compiler can be moved to the top level configure
5987         script.
5988
5989 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
5990
5991         * decl.c (components_to_record): Don't claim that the internal fields
5992         we make to hold the variant parts are semantically addressable, because
5993         they are not.
5994
5995         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
5996         adjust the comment describing the modular type form when we can use it.
5997         (Install_PAT): Account for the Esiz renaming.
5998
5999         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
6000         sc_onstack context indication before raising the exception to which
6001         the signal is mapped. Allows better handling of later signals possibly
6002         triggered by the resumed user code if the exception is handled.
6003
6004 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
6005
6006         * 5zinit.adb: Removed, no longer used.
6007
6008 2004-02-12  Robert Dewar  <dewar@gnat.com>
6009
6010         * ali.adb: Remove separating space between parameters on R line. Makes
6011         format consistent with format used by the binder for Set_Globals call.
6012
6013         * atree.ads, atree.adb: Minor reformatting (new function header format)
6014
6015         * bindgen.adb: Add Run-Time Globals documentation section containing
6016         detailed documentation of the globals passed from the binder file to
6017         the run time.
6018
6019         * gnatls.adb: Minor reformatting
6020
6021         * init.c (__gnat_set_globals): Add note pointing to documentation in
6022         bindgen.
6023
6024         * lib-writ.ads, lib-writ.adb: Remove separating space between
6025         parameters on R line.
6026         Makes format consistent with format used by the binder for Set_Globals
6027         call.
6028
6029         * osint.ads: Add 2004 to copyright notice
6030         Minor reformatting
6031
6032         * snames.ads: Correct capitalization of FIFO_Within_Priorities
6033         Noticed during code reading, documentation issue only
6034
6035         * usage.adb: Remove junk line for obsolete C switch
6036         Noticed during code reading
6037
6038 2004-02-12  Vincent Celier  <celier@gnat.com>
6039
6040         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
6041         extend for each directory, so that multiple /** directories are
6042         extended individually.
6043         (Recursive_Process): Set the default for LANGUAGES to ada
6044
6045         * gprcmd.adb: Define new command "ignore", to do nothing.
6046         Implement new comment "path".
6047
6048         * Makefile.generic: Suppress output when SILENT is set
6049         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
6050         used, so that the correct compiler is invoked.
6051         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
6052         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
6053
6054 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
6055
6056         * Makefile.in: Clean ups and remove obsolete targets.
6057
6058 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
6059
6060         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
6061         predicate declared in exp_util.
6062
6063         * exp_util.adb: Add comments.
6064
6065         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
6066         visibility before compiling context of the subunit.
6067
6068         * sem_res.adb (Check_Parameterless_Call): If the context expects a
6069         value but the name is a procedure, do not attempt to analyze as a call,
6070         in order to obtain more telling diagnostics.
6071
6072         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
6073         'Access on parameterless function calls.
6074         (Normalize_Actuals): For a parameterless function call with missing
6075         actuals, defer diagnostic until resolution of enclosing call.
6076
6077         * sem_util.adb (Wrong_Type): If the context type is an access to
6078         subprogram and the expression is a procedure name, suggest a missing
6079         'attribute.
6080
6081 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
6082             Nathanael Nerode  <neroden@gcc.gnu.org>
6083
6084         PR ada/6637, PR ada/5911
6085         Merge with libada-branch:
6086         * config-lang.in: Build libada only when ada is built.
6087
6088 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
6089
6090         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
6091         for a tagged type, verify that both formals have the same type.
6092
6093         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
6094         temporary when the formal is an in-parameter and the actual a possibly
6095         unaligned slice.
6096
6097         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
6098         when expansion is disabled, to ensure proper name capture with
6099         overloaded literals.  Condition can be of any boolean type, resolve
6100         accordingly.
6101
6102         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
6103         renaming is for a formal subprogram with a default operator name, and
6104         there is a usable operator that is visible at the point of
6105         instantiation.
6106
6107 2004-02-09  Robert Dewar  <dewar@gnat.com>
6108
6109         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
6110         rewrite to ignore errors in ali files, intended to allow tools downward
6111         compatibility with new versions of ali files.
6112
6113         * ali.ads: Add new parameter Ignore_Errors
6114
6115         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
6116         duplicating the error message giving the file with restrictions.
6117
6118         * debug.adb: Add debug flag I for gnatbind
6119
6120         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
6121         operators for the case where the operator is a defining operator.
6122
6123         * exp_ch3.adb: Minor reformatting (new function spec format).
6124
6125         * exp_ch4.adb: Add comment for previous change, and make minor
6126         adjustment to loop to always check for improper loop termination.
6127         Minor reformatting throughout (new function spec format).
6128
6129         * gnatbind.adb: Implement -di debug flag for gnatbind
6130
6131         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
6132
6133         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
6134
6135         * lib-load.adb: Fix bad assertion.
6136         Found by testing and code reading.
6137         Minor reformatting.
6138
6139         * lib-load.ads: Minor reformatting.
6140
6141         * lib-writ.adb: There is only one R line now.
6142
6143         * lib-writ.ads: Add documentation on making downward compatible changes
6144         to ali files so old tools work with new ali files.
6145         There is only one R line now.
6146         Add documentation on format incompatibilities (with special GPS note)
6147
6148         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
6149
6150         * par-load.adb: Minor reformatting
6151
6152         * sem_ch8.adb: Fix to error message from last update
6153         Minor reformatting and restructuring of code from last update
6154
6155         * par-prag.adb, snames.adb, snames.ads, snames.h,
6156         sem_prag.adb: Implement pragma Profile.
6157
6158         * stylesw.adb: Implement -gnatyN switch to turn off all style check
6159         options.
6160
6161         * usage.adb: Add line for -gnatyN switch
6162
6163         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
6164
6165 2004-02-09  Albert Lee  <lee@gnat.com>
6166
6167         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
6168
6169 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
6170
6171         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
6172         slices.
6173
6174         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
6175         is nested in an instance that is not frozen yet, to avoid
6176         order-of-elaboration problems in gigi.
6177
6178         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
6179         body the attribute is legal.
6180
6181 2004-02-09  Robert Dewar  <dewar@gnat.com>
6182
6183         * s-rident.ads: Minor comment correction
6184
6185         * targparm.adb: Remove dependence on uintp completely. There was
6186         always a bug in Make in that it called Targparm before initializing
6187         the Uint package. The old code appeared to get away with this, but
6188         the new code did not! This caused an assertion error in gnatmake.
6189
6190         * targparm.ads: Fix bad comment, restriction pragmas with parameters
6191         are indeed fully supported.
6192
6193 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
6194
6195         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
6196
6197 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6198
6199         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
6200         with targetm.calls.promote_prototypes.
6201
6202 2004-02-04  Robert Dewar  <dewar@gnat.com>
6203
6204         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
6205         ali.ads, gprcmd.adb: Minor reformatting
6206
6207         * bindgen.adb: Output restrictions string for new style restrictions
6208         handling
6209
6210         * impunit.adb: Add s-rident.ads (System.Rident) and
6211         s-restri (System.Restrictions)
6212
6213         * lib-writ.adb: Fix bug in writing restrictions string (last few
6214         entries wrong)
6215
6216         * s-restri.ads, s-restri.adb: Change name Restrictions to
6217         Run_Time_Restrictions to avoid conflict with package name.
6218         Add circuit to read and acquire run time restrictions.
6219
6220 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
6221
6222         * restrict.ads, restrict.adb: Use the new restriction
6223         No_Task_Attributes_Package instead of the old No_Task_Attributes.
6224
6225         * sem_prag.adb: No_Task_Attributes is a synonym of
6226         No_Task_Attributes_Package.
6227
6228         * snames.ads, snames.adb: New entry for proper handling of
6229         No_Task_Attributes.
6230
6231         * s-rident.ads: Adding restriction No_Task_Attributes_Package
6232         (AI-00249) that supersedes the GNAT specific restriction
6233         No_Task_Attributes.
6234
6235 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
6236
6237         * sem_prag.adb:
6238         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
6239          body, an identifier may be wrapped in an unchecked conversion.
6240
6241 2004-02-04  Vincent Celier  <celier@gnat.com>
6242
6243         * lib-writ.ads: Comment update for the W lines
6244
6245         * bld.adb: (Expression): An empty string list is static
6246
6247         * fname-uf.adb: Minor comment update
6248
6249         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
6250
6251         * gnatbind.adb: Initialize Cumulative_Restrictions with the
6252         restrictions on the target.
6253
6254 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
6255
6256         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
6257         gen_rtx.
6258
6259 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
6260
6261         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
6262
6263 2004-02-02  Vincent Celier  <celier@gnat.com>
6264
6265         * gprcmd.adb (Check_Args): If condition is false, print the invoked
6266         comment before the usage.
6267         Gprcmd: Fail when command is not recognized.
6268         (Usage): Document command "prefix"
6269
6270         * g-md5.adb (Digest): Process last block.
6271         (Update): Do not process last block. Store remaining characters and
6272         length in Context.
6273
6274         * g-md5.ads (Update): Document that several call to update are
6275         equivalent to one call with the concatenated string.
6276         (Context): Add fields to allow new Update behaviour.
6277
6278         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
6279         defaulted to False.
6280         When May_Fail is True and no existing file can be found, return No_File.
6281
6282         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
6283         functions.
6284
6285         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
6286         spec file name instead on the W line.
6287
6288 2004-02-02  Robert Dewar  <dewar@gnat.com>
6289
6290         * ali.adb: Read and acquire info from new format restrictions lines
6291
6292         * bcheck.adb: Add circuits for checking restrictions with parameters
6293
6294         * bindgen.adb: Output dummy restrictions data
6295         To be changed later
6296
6297         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
6298         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
6299         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
6300         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
6301         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
6302
6303         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
6304         the warning message on access to possibly uninitialized variable S)
6305         Minor changes for new restrictions handling.
6306
6307         * gnatbind.adb: Minor reformatting
6308         Minor changes for new restrictions handling
6309         Move circuit for -r processing here from bcheck (cleaner)
6310
6311         * gnatcmd.adb, gnatlink.adb: Minor reformatting
6312
6313         * lib-writ.adb: Output new format restrictions lines
6314
6315         * lib-writ.ads: Document new R format lines for new restrictions
6316         handling.
6317
6318         * s-restri.ads/adb: New files
6319
6320         * Makefile.rtl: Add entry for s-restri.ads/adb
6321
6322         * par-ch3.adb: Fix bad error messages starting with upper case letter
6323         Minor reformatting
6324
6325         * restrict.adb: Major rewrite throughout for new restrictions handling
6326         Major point is to handle restrictions with parameters
6327
6328         * restrict.ads: Major changes in interface to handle restrictions with
6329         parameters. Also generally simplifies setting of restrictions.
6330
6331         * snames.ads/adb: New entry for proper handling of No_Requeue
6332
6333         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
6334         restriction counting.
6335         Other minor changes for new restrictions handling
6336
6337         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
6338         Restriction_Warnings now allows full parameter notation
6339         Major rewrite of Restrictions for new restrictions handling
6340
6341 2004-02-02  Javier Miranda  <miranda@gnat.com>
6342
6343         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
6344         syntax rule for object renaming declarations.
6345         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
6346         component definitions.
6347
6348         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
6349         components.
6350         (Array_Type_Declaration): Give support to access components. In addition
6351         it was also modified to reflect the name of the object in anonymous
6352         array types. The old code did not take into account that it is possible
6353         to have an unconstrained anonymous array with an initial value.
6354         (Check_Or_Process_Discriminants): Allow access discriminant in
6355         non-limited types.
6356         (Process_Discriminants): Allow access discriminant in non-limited types
6357         Initialize the new Access_Definition field in N_Object_Renaming_Decl
6358         node.  Change Ada0Y to Ada 0Y in comments
6359
6360         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
6361         equality operators.
6362         Change Ada0Y to Ada 0Y in comments
6363
6364         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
6365         renamings Change Ada0Y to Ada 0Y in comments
6366
6367         * sem_type.adb (Find_Unique_Type): Give support to the equality
6368         operators for universal access types
6369         Change Ada0Y to Ada 0Y in comments
6370
6371         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
6372
6373         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
6374         field.
6375         (N_Object_Renaming_Declaration): Addition of Access_Definition field
6376         Change Ada0Y to Ada 0Y in comments
6377
6378         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
6379         component definition and object renaming nodes
6380         Change Ada0Y to Ada 0Y in comments
6381
6382 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
6383
6384         * restrict.adb: Use the new restriction identifier
6385         No_Requeue_Statements instead of the old No_Requeue for defining the
6386         restricted profile.
6387
6388         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
6389         No_Requeue_Statements.
6390
6391         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
6392         that supersedes the GNAT specific restriction No_Requeue. The later is
6393         kept for backward compatibility.
6394
6395 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
6396
6397         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
6398         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
6399         pragma and fix incorrect ones.
6400
6401         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
6402         warning if the pragma is redundant.
6403
6404 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
6405
6406         * 5staprop.adb: Add missing 'constant' keywords.
6407
6408         * Makefile.in: use consistent value for SYMLIB on
6409         platforms where libaddr2line is supported.
6410
6411 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6412
6413         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
6414         annotating types.
6415
6416 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
6417
6418         * init.c (__gnat_install_handler): Setup an alternate stack for signal
6419         handlers in the environment thread. This allows proper propagation of
6420         an exception on stack overflows in this thread even when the builtin
6421         ABI stack-checking scheme is used without support for a stack reserve
6422         region.
6423
6424         * utils.c (create_field_decl): Augment the head comment about bitfield
6425         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
6426         here, because the former is not accurate enough at this point.
6427         Let finish_record_type decide instead.
6428         Don't make a bitfield if the field is to be addressable.
6429         Always set a size for the field if the record is packed, to ensure the
6430         checks for bitfield creation are triggered.
6431         (finish_record_type): During last pass over the fields, clear
6432         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
6433         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
6434         from DECL_BIT_FIELD.
6435
6436 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
6437
6438         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
6439         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
6440         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
6441
6442 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6443
6444         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
6445
6446         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
6447         (ZCX_By_Default): Likewise.
6448         (Front_End_ZCX_Support): Likewise.
6449
6450         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
6451         (Initialize_Lock): Mark Level unreferenced.
6452         (Sleep): Mark Reason unreferenced.
6453         (Timed_Sleep): Likewise.
6454         (Wakeup): Likewise.
6455         (Exit_Task): Use Result.
6456         (Check_No_Locks): Mark Self_ID unreferenced.
6457
6458         * 5gtasinf.adb (New_Sproc): Make Attr constant.
6459         (Bound_Thread_Attributes): Make Sproc constant.
6460         (New_Bound_Thread_Attributes): Likewise.
6461
6462 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
6463
6464         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
6465         one-dimensional array an slice assignments, when component type is
6466         controlled.
6467
6468         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
6469         component type is controlled, and control_actions are in effect, use
6470         TSS procedure rather than generating inline code.
6471
6472         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
6473         arrays with controlled components.
6474
6475 2004-01-26  Vincent Celier  <celier@gnat.com>
6476
6477         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
6478         command line for the non VMS case.
6479
6480         * gnatlink.adb (Process_Binder_File): When building object file, if
6481         GNU linker is used, put all object paths between quotes, to prevent ld
6482         error when there are unusual characters (such as '!') in the paths.
6483
6484         * Makefile.generic: When there are sources in Ada and the main is in
6485         C/C++, invoke gnatmake with -B, instead of -z.
6486
6487         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
6488         from VMS_Conversion.
6489         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
6490         specification of argument file on the command line.
6491
6492 2004-01-26  Bernard Banner  <banner@gnat.com>
6493
6494         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
6495
6496 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
6497
6498         * snames.adb: Update copyright notice.
6499         Add info on slice assignment for controlled arrays.
6500
6501 2004-01-23  Robert Dewar  <dewar@gnat.com>
6502
6503         * exp_aggr.adb: Minor reformatting
6504
6505         * exp_ch9.adb: Minor code clean up
6506         Minor reformatting
6507         Fix bad character in comment
6508
6509         PR ada/13471
6510         * targparm.adb (Get_Target_Parameters): Give clean abort error on
6511         unexpected end of file, along with more detailed message.
6512
6513 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6514
6515         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
6516         PAT.
6517
6518         * decl.c (copy_alias_set): New function.
6519         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
6520
6521 2004-01-23  Doug Rupp  <rupp@gnat.com>
6522
6523         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
6524         lib$${file} in case subsequent character is not a separator.
6525
6526 2004-01-23  Vincent Celier  <celier@gnat.com>
6527
6528         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
6529         when the GCC version is at least 3.
6530
6531         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
6532         Remove all "Opt.", to prepare for opt split
6533
6534         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
6535         Extends_All. Set to True when the project parsed is an extending all
6536         project. Fails for importing an extending all project only when the
6537         imported project is an extending all project.
6538         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
6539         depending on the value of Extends_All returned.
6540
6541         * prj-proc.adb (Process): Check that no project shares its object
6542         directory with a project that extends it, directly or indirectly,
6543         including a virtual project.
6544         Check that no project extended by another project shares its object
6545         directory with another also extended project.
6546
6547         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
6548         Kind = N_With_Clause
6549
6550         * prj-tree.ads: Minor reformatting
6551         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
6552
6553 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
6554
6555         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
6556         applies to a type with an incomplete view, use full view in Name of
6557         clause, for consistency with uses of Get_Attribute_Definition_Clause.
6558
6559 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
6560
6561         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
6562         SCHED_RR, since other values are not supported by this policy.
6563         (Initialize): Move initialization of mutex attribute to package
6564         elaboration, to prevent early access to this variable.
6565
6566         * Makefile.in: Remove mention of Makefile.adalib, unused.
6567
6568         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
6569         1ssecsta.ads: Removed, unused.
6570
6571 2004-01-21  Javier Miranda  <miranda@gnat.com>
6572
6573         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
6574         entity if already built in the current scope.
6575
6576         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
6577         reminder in internal scopes. Required for nested limited aggregates.
6578
6579 2004-01-21  Doug Rupp  <rupp@gnat.com>
6580
6581         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
6582         VMS. Replace all occurences of libgnat- and libgnarl- with
6583         libgnat$(hyphen) and libgnarl$(hyphen).
6584         Fixed shared library build problem on VMS.
6585
6586 2004-01-21  Robert Dewar  <dewar@gnat.com>
6587
6588         * mlib-prj.adb: Minor reformatting
6589
6590 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
6591
6592         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
6593         'constant' keywords for declaration of pointers that are not modified.
6594
6595         * exp_pakd.adb: Fix English in comment.
6596
6597 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
6598
6599         PR ada/10889
6600         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
6601         copy all attributes of the parent, including the foreign language
6602         convention.
6603
6604 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
6605
6606         PR ada/10565
6607         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
6608         for 'delay until' statement.
6609
6610 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
6611
6612         * Make-lang.in: Replace $(docdir) with doc.
6613         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
6614         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
6615         to use consistent MAKEINFO rule.
6616         (ada.man, ada.srcman): Dummy entry.
6617         (ADA_INFOFILES): Define.
6618         (ada.info, ada.srcinfo): New rules.
6619
6620 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
6621
6622         * utils.c: Update copyright notice, missed in previous change.
6623
6624 2004-01-19  Vincent Celier  <celier@gnat.com>
6625
6626         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
6627         args if Bind is True. Set First_ALI, if not already done.
6628         (Build_Library): For Stand Alone Libraries, extract from one ALI file
6629         an eventual --RTS switch, for gnatbind, and all backend switches +
6630         --RTS, for linking.
6631
6632 2004-01-19  Robert Dewar  <dewar@gnat.com>
6633
6634         * sem_attr.adb, memtrack.adb: Minor reformatting
6635
6636 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
6637
6638         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
6639         that rename enumeration literals. This is properly done in sem_eval.
6640
6641         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
6642         to functions that rename enumeration literals.
6643
6644         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
6645         functions that rename enumeration literals.
6646
6647 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
6648
6649         * Make-lang.in (utils.o): Depend on target.h.
6650         * utils.c: Include target.h.
6651         (process_attributes): Use targetm.have_named_sections instead
6652         of ASM_OUTPUT_SECTION_NAME.
6653
6654 2004-01-16  Andreas Jaeger  <aj@suse.de>
6655
6656         * Makefile.in: Add $(DESTDIR).
6657
6658 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
6659
6660         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
6661         also when not defining if a Size clause applies. That information is
6662         not to be ignored.
6663
6664 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
6665
6666         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
6667         symbolic links for the shared gnat run time when needed.
6668
6669 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
6670
6671         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
6672         for writing, and terminate with an error message if not.
6673
6674 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
6675
6676         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
6677         warning on an access to subprogram in an instance, when the target
6678         type is declared in the same generic unit.
6679         (Eval_Attribute): If 'access is known to fail accessibility check,
6680         rewrite as a raise statement.
6681
6682 2004-01-15  GNAT Script  <nobody@gnat.com>
6683
6684         * Make-lang.in: Makefile automatically updated
6685
6686 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
6687
6688         * Make-lang.in (ada.srcextra): Dummy entry.
6689
6690 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
6691
6692         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
6693
6694 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
6695
6696         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
6697         components that are initialized with aggregates.
6698
6699 2004-01-13  Vincent Celier  <celier@gnat.com>
6700
6701         * gnatlink.adb (Process_Binder_File): To find directory of shared
6702         libgcc, if "gcc-lib" is not a subdirectory, look for the last
6703         subdirectory "lib" in the path of the shared libgnat or libgnarl.
6704
6705         * make.adb (Gnatmake): If GCC version is at least 3, link with
6706         -shared-libgcc, when there is at least one shared library project.
6707
6708         * opt.ads (GCC_Version): New integer constant.
6709
6710         * adaint.c (get_gcc_version): New function.
6711
6712 2004-01-13  Robert Dewar  <dewar@gnat.com>
6713
6714         * sem_dist.adb, sem_res.adb, sem_util.adb,
6715         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
6716         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
6717
6718 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
6719
6720         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
6721         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
6722         declarations.
6723
6724 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
6725
6726         * misc.c: Remove trailing spaces.
6727         Update copyright notice missed in previous change.
6728
6729         PR ada/13572
6730         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
6731         prefix/share/make
6732
6733         * Makefile.generic: Update copyright.
6734         Add license notice.
6735
6736         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
6737         of prefix/share/make.
6738
6739         * Makefile.prolog: Update copyright.
6740         Add license notice.
6741
6742 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
6743
6744         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
6745         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
6746         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
6747         instead of String.
6748
6749         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
6750         signature.
6751
6752 2004-01-12  Javier Miranda  <miranda@gnat.com>
6753
6754         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
6755         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
6756         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
6757         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
6758         Component_Definition node.
6759
6760 2004-01-12  Ed Falis  <falis@gnat.com>
6761
6762         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
6763
6764 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
6765
6766         * link.c: Change default libgnat kind to STATIC for FreeBSD.
6767
6768 2004-01-12  Bernard Banner  <banner@gnat.com>
6769
6770         * Makefile.in: map 86numaux to a-numaux for x86_64
6771
6772 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
6773
6774         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
6775         generated to rename a generic actual, go to the actual itself, the
6776         subtype is not a user-visible entity.
6777
6778         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
6779         part is a private subtype, reset the visibility of its full view, if
6780         any, to be consistent.
6781
6782         PR ada/13417
6783         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
6784         to use a generic package G as a formal package for another generic
6785         declared within G.
6786
6787 2004-01-12  Robert Dewar  <dewar@gnat.com>
6788
6789         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
6790
6791         * usage.adb: Remove mention of obsolete -gnatwb switch
6792         Noticed during code reading
6793
6794 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
6795
6796         * 1ssecsta.adb: Minor changes for -gnatwa warnings
6797
6798 2004-01-12  GNAT Script  <nobody@gnat.com>
6799
6800         * Make-lang.in: Makefile automatically updated
6801
6802 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
6803
6804         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
6805
6806 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6807
6808         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
6809
6810 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
6811
6812         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
6813         Update comment and copyright date.
6814         * stamp-xgnatug: Delete.
6815
6816 2004-01-05  Robert Dewar  <dewar@gnat.com>
6817
6818         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
6819         be modified by the binder generated main program if the -D switch is
6820         used.
6821
6822         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
6823         imported functions (since now we expect this to be done for imported
6824         functions)
6825
6826         * 5vtaprop.adb: Add several ??? for sections requiring more comments
6827         Minor reformatting throughout
6828
6829         * 5zinit.adb: Minor reformatting
6830         Add 2004 to copyright date
6831         Minor changes to avoid -gnatwa warnings
6832         Correct some instances of using OR instead of OR ELSE (noted while
6833         doing reformatting)
6834
6835         * sprint.adb: Minor updates to avoid -gnatwa warnings
6836
6837         * s-secsta.ads, s-secsta.adb:
6838         (SS_Get_Max): New function to obtain high water mark for ss stack
6839         Default_Secondary_Stack is not a constant since it may be modified by
6840         the binder generated main program if the -D switch is used.
6841
6842         * switch-b.adb: New -Dnnn switch for binder
6843
6844         * switch-c.adb:
6845         Make -gnatg imply all warnings currently in -gnatwa
6846
6847         * vms_conv.adb: Minor reformatting
6848         Add 2004 to copyright notice
6849         Add 2004 to printed copyright notice
6850
6851         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
6852         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
6853         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
6854         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
6855         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
6856         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
6857         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
6858         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
6859         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
6860         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
6861         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
6862         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
6863         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
6864         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
6865         checks.adb, clean.adb, cstand.adb, einfo.ads,
6866         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
6867         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
6868         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
6869         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
6870         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
6871         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
6872         Minor reformatting and code clean ups.
6873         Minor changes to prevent -gnatwa warnings
6874
6875         * ali.adb: Minor reformatting and cleanup of code
6876         Acquire new SS indication of secondary stack use from ali files
6877
6878         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
6879         (since now we expect this to be done for imported functions)
6880
6881         * bindgen.adb: Generate call to modify default secondary stack size if
6882         -Dnnn switch given
6883
6884         * bindusg.adb: Add line for new -D switch
6885
6886         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
6887         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
6888         Add circuitry for both records and arrays to avoid gigi
6889         processing if the type involved has non-bit-aligned components
6890
6891         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
6892         N_String_Literal node always references an E_String_Literal_Subtype
6893         entity. This may not be true in the future.
6894         (Possible_Bit_Aligned_Component): Move processing of
6895         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
6896
6897         * exp_ch6.adb (Expand_Thread_Body): Pick up
6898         Default_Secondary_Stack_Size as variable so that we get value modified
6899         by possible -Dnnn binder parameter.
6900
6901         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
6902         (Type_May_Have_Bit_Aligned_Components): New function.
6903
6904         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
6905         (Type_May_Have_Bit_Aligned_Components): New function.
6906
6907         * fe.h: (Set_Identifier_Casing): Fix prototype.
6908         Add declaration for Sem_Elim.Eliminate_Error_Msg.
6909         Minor reformatting.
6910
6911         * freeze.adb (Freeze_Entity): Add RM reference to error message about
6912         importing constant atomic/volatile objects.
6913         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
6914         unless explicit Pure_Function pragma given, to avoid insidious bug of
6915         call to non-pure imported function getting eliminated.
6916
6917         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
6918         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
6919         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
6920         Add 2004 to printed copyright notice
6921
6922         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
6923         stack used.
6924
6925         * Makefile.rtl: Add entry for g-sestin.o
6926         g-sestin.ads: New file.
6927
6928         * mdll.adb: Minor changes to avoid -gnatwa warnings
6929
6930         * mlib-tgt.adb: Minor reformatting
6931
6932         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
6933         New switch Sec_Stack_Used (GNAT, GNATBIND)
6934         Make Default_Secondary_Stack_Size a variable instead of a constant,
6935         so that it can be modified by the new -Dnnn bind switch.
6936
6937         * rtsfind.adb (Load_Fail): Give full error message in configurable
6938         run-time mode if all_errors mode is set. This was not done in the case
6939         of a file not found, which was an oversight.
6940         Note if secondary stack unit is used by compiler.
6941
6942         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
6943         ineffective elaborate all pragmas on non-visible packages (this
6944         happened when a renamed subprogram was called). Now the elaborate all
6945         always goes on the package containing the renaming rather than the one
6946         containing the renamed subprogram.
6947
6948         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
6949         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
6950
6951         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
6952         has an Etype that references an E_String_Literal.
6953         (Eval_String_Literal): Avoid assumption that N_String_Literal node
6954         always references an E_String_Literal_Subtype entity. This may not
6955         be true in the future.
6956
6957         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
6958         pragma location.
6959
6960         * sem_res.adb (Resolve): Specialize msg for function name used in proc
6961         call.
6962
6963 2004-01-05  Ed Falis  <falis@gnat.com>
6964
6965         * g-debuti.adb: Replaced direct boolean operator with short-circuit
6966         form.
6967
6968 2004-01-05  Vincent Celier  <celier@gnat.com>
6969
6970         * bld.adb: Minor comment updates
6971         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
6972         of Item_Name).
6973
6974         * make.adb (Gnatmake): Special process for files to compile/check when
6975         -B is specified. Fail when there are only foreign mains in attribute
6976         Main of the project file and -B is not specified. Do not skip bind/link
6977         steps when -B is specified.
6978
6979         * makeusg.adb: Document new switch -B
6980
6981         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
6982
6983         * switch-m.adb: (Scan_Make_Switches): Process -B switch
6984
6985         * vms_data.ads: Add new GNAT PRETTY qualifier
6986         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
6987
6988 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6989
6990         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
6991         case.
6992
6993         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
6994         Set_Identifier_Casing.
6995
6996         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
6997         has size that overflows.
6998
6999 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
7000
7001         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
7002         -gnatwa warning on static condition.
7003
7004 2004-01-05  Doug Rupp  <rupp@gnat.com>
7005
7006         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
7007
7008 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
7009
7010         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
7011         all attributes, including read-only attribute.
7012
7013 2004-01-05  Pascal Obry  <obry@gnat.com>
7014
7015         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
7016         library naming scheme.
7017
7018         * mlib-prj.adb (Build_Library): Generate different names for the static
7019         or dynamic version of the GNAT runtime. This is needed to support the
7020         new shared library naming scheme.
7021         (Process_Binder_File): Add detection of shared library in binder file
7022         based on the new naming scheme.
7023
7024         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
7025         scheme for the shared runtime libraries.
7026
7027         * Makefile.in:
7028         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
7029         scheme.
7030         (install-gnatlib): Do not create symlinks for shared libraries.
7031         (gnatlib-shared-default): Idem.
7032         (gnatlib-shared-dual-win32): New target. Not used for now as the
7033         auto-import feature does not support arrays/records.
7034         (gnatlib-shared-win32): Do not create copy for the shared libraries.
7035         (gnatlib-shared-vms): Fix shared runtime libraries names.
7036
7037         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
7038         dependent runtime shared library name.
7039
7040 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
7041
7042         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
7043         than the object.
7044
7045 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
7046
7047         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
7048         protected objects when allocator has a subtype indication, not a
7049         qualified expression. Note that qualified expressions may have to be
7050         checked when limited aggregates are implemented.
7051
7052         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
7053         pure, emit warning.
7054         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
7055         subprogram is imported, remove warning.
7056
7057 2004-01-05  Geert Bosch  <bosch@gnat.com>
7058
7059         * s-poosiz.adb: Update copyright notice.
7060         (Allocate): Use Task_Lock to protect against concurrent access.
7061         (Deallocate): Likewise.
7062
7063 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
7064
7065         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
7066         comment.
7067
7068 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
7069
7070         * gnat_ug.texi: Force a CVS commit by updating copyright.
7071         * gnat_ug_vxw.texi: Regenerate.
7072         * gnat_ug_wnt.texi: Regenerate.
7073         * gnat_ug_vms.texi: Regenerate.
7074         * gnat_ug_unx.texi: Regenerate.
7075
7076 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
7077
7078         * trans.c: Remove uses of "register" specifier in
7079         declarations of local variables.
7080
7081 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
7082
7083         * stamp-xgnatug: New stamp file.
7084         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
7085         (ada/doctools/xgnatug): Add $(build_exeext).
7086         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
7087         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
7088
7089 2003-12-17  Ed Falis  <falis@gnat.com>
7090
7091         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
7092         eliminate warning.
7093
7094         * a-exextr.adb: Add context clause for
7095         Ada.Exceptions.Last_Chance_Handler.
7096
7097 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
7098
7099         * cstand.adb (Create_Standard): Change the way how the declaration of
7100         the Duration type is created (making it the same way as it is for all
7101         the other standard types).
7102
7103 2003-12-17  Robert Dewar  <dewar@gnat.com>
7104
7105         * s-crtl.ads: Fix header format
7106         Change Pure to Preelaborate
7107
7108 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
7109
7110         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
7111         the expression type only if it is declared in the current unit.
7112
7113         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
7114         are universal and already analyzed, as can occur in constrained
7115         subcomponents that depend on discriminants, when one constraint is a
7116         subtype mark.
7117
7118         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
7119         type Any_Fixed is legal as the argument of a conversion, if only one
7120         fixed-point type is in context.
7121
7122 2003-12-17  GNAT Script  <nobody@gnat.com>
7123
7124         * Make-lang.in: Makefile automatically updated
7125
7126 2003-12-15  Robert Dewar  <dewar@gnat.com>
7127
7128         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
7129         sec stack size.
7130
7131 2003-12-15  Vincent Celier  <celier@gnat.com>
7132
7133         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
7134         (Gnatchop): Do not set failure status when reporting the number of
7135         warnings.
7136
7137 2003-12-15  Doug Rupp  <rupp@gnat.com>
7138
7139         * s-ctrl.ads: New file.
7140
7141         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
7142
7143         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
7144         (GNATBIND_OBJS): Add ada/s-crtl.o.
7145
7146         * Makefile.in [VMS]: Clean up ifeq rules.
7147
7148         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
7149         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
7150         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
7151         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
7152         s-tasdeb.adb: Update copyright.
7153         Import System.CRTL.
7154         Make minor modifications to use System.CRTL declared functions instead
7155         of importing locally.
7156
7157 2003-12-15  GNAT Script  <nobody@gnat.com>
7158
7159         * Make-lang.in: Makefile automatically updated
7160
7161 2003-12-11  Ed Falis  <falis@gnat.com>
7162
7163         * 5zinit.adb: Clean up.
7164
7165         * 5zintman.adb (Notify_Exception): replaced case statement with a call
7166         to __gnat_map_signal, imported from init.c to support
7167         signal -> exception mappings that depend on the vxWorks version.
7168
7169         * init.c:
7170         Created and exported __gnat_map_signal to support signal -> exception
7171         mapping that is dependent on the VxWorks version.
7172         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
7173
7174 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
7175
7176         * 5wosinte.ads: Link with -mthreads switch.
7177
7178 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
7179
7180         * init.c (__gnat_install_handler [NetBSD]): Set
7181         __gnat_handler_installed, as done on all other platforms.
7182         Remove duplicated code.
7183
7184 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
7185
7186         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
7187
7188 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
7189
7190         * sinfo.ads: Fix inconsistent example code in comment.
7191
7192 2003-12-11  Robert Dewar  <dewar@gnat.com>
7193
7194         * a-tiinau.adb: Add a couple of comments
7195
7196         * sem_ch3.adb: Minor reformatting
7197
7198         * sem_prag.adb:
7199         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
7200         Minor reformatting throughout
7201
7202 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
7203
7204         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
7205         bounds of a loop, create a separate block in order to generate proper
7206         cleanup actions to prevent memory leaks.
7207
7208         * sem_res.adb (Resolve_Call): After a call to
7209         Establish_Transient_Scope, the call may be rewritten and relocated, in
7210         which case no further processing is needed.
7211
7212         * sem_util.adb: (Wrong_Type): Refine previous fix.
7213          Fixes ACATS regressions.
7214
7215         PR ada/13353
7216
7217         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
7218         be inlined.
7219
7220 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
7221
7222         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
7223         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
7224         obsolete files.
7225
7226         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
7227         (rts-zfp): Ditto.
7228
7229 2003-12-08  Robert Dewar  <dewar@gnat.com>
7230
7231         * 7sintman.adb: Minor reformatting
7232
7233         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
7234         standard linker options to get standard libraries linked. We now plan
7235         to provide dummy versions of these libraries to match the appropriate
7236         configurable run-time (e.g. if a library is not needed at all, provide
7237         a dummy empty library).
7238
7239         * targparm.ads: Configurable_Run_Time mode no longer affects linker
7240         options (-L parameters and standard libraries). What we plan to do is
7241         to provide dummy libraries where the libraries are not required.
7242
7243         * gnatbind.adb: Minor comment improvement
7244
7245 2003-12-08  Javier Miranda  <miranda@gnat.com>
7246
7247         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
7248         aggregate in the parent. Otherwise constants with limited aggregates
7249         are not supported. Add new formal to pass the component type (Ctype).
7250         It is required to call the corresponding IP subprogram in case of
7251         default initialized components.
7252         (Gen_Assign): In case of default-initialized component, generate a
7253         call to the IP subprogram associated with the component.
7254         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
7255         of aggregate with default initialized components.
7256         (Has_Default_Init_Comps): Improve implementation to recursively check
7257         all the present expressions.
7258
7259         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
7260         to indicate that the initialization call corresponds to a
7261         default-initialized component of an aggregate.
7262         In case of default initialized aggregate with tasks this parameter is
7263         used to generate a null string (this is just a workaround that must be
7264         improved later). In case of discriminants, this parameter is used to
7265         generate a selected component node that gives access to the discriminant
7266         value.
7267
7268         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
7269         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
7270         allocated aggregates with default-initialized components.
7271
7272         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
7273         the box notation is used in positional aggregates.
7274
7275 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
7276
7277         * lib.ads: Fix typo in comment
7278
7279 2003-12-08  Vincent Celier  <celier@gnat.com>
7280
7281         * prj.adb (Project_Empty): New component Unkept_Comments
7282         (Scan): Remove procedure; moved to Prj.Err.
7283
7284         * prj.ads (Project_Data): New Boolean component Unkept_Comments
7285         (Scan): Remove procedure; moved to Prj.Err.
7286
7287         * prj-dect.adb: Manage comments for the different declarations.
7288
7289         * prj-part.adb (With_Record): New component Node
7290         (Parse): New Boolean parameter Store_Comments, defaulted to False.
7291         Set the scanner to return ends of line and comments as tokens, if
7292         Store_Comments is True.
7293         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
7294         comments are associated with these nodes. Store the node IDs in the
7295         With_Records.
7296         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
7297         With_Records.
7298         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
7299         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
7300         current project. Call Tree.Restore afterwards. Set the various nodes
7301         for comment storage (Next_End, End_Of_Line, Previous_Line,
7302         Previous_End).
7303
7304         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
7305         defaulted to False.
7306
7307         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
7308         to False. When Truncated is True, truncate the string, never go to the
7309         next line.
7310         (Write_End_Of_Line_Comment): New procedure
7311         (Print): Process comments for nodes N_With_Clause,
7312         N_Package_Declaration, N_String_Type_Declaration,
7313         N_Attribute_Declaration, N_Typed_Variable_Declaration,
7314         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
7315         Process nodes N_Comment.
7316
7317         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
7318         without comments and there are some comments, set the flag
7319         Unkept_Comments to True.
7320         (Scan): If there are comments, set the flag Unkept_Comments to True and
7321         clear the comments.
7322         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
7323         (Next_End_Nodes: New table
7324         (Comment_Zones_Of): New function
7325         (Scan): New procedure; moved from Prj. Accumulate comments in the
7326         Comments table and set end of line comments, comments after, after end
7327         and before end.
7328         (Add_Comments): New procedure
7329         (Save, Restore, Seset_State): New procedures
7330         (There_Are_Unkept_Comments): New function
7331         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
7332         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
7333         procedures.
7334         (First_Comment_After, First_Comment_After_End): New functions
7335         (First_Comment_Before, First_Comment_Before_End): New functions
7336         (Next_Comment): New function
7337         (End_Of_Line_Comment, Follows_Empty_Line,
7338         Is_Followed_By_Empty_Line): New functions
7339         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
7340         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
7341         (Set_Next_Comment): New procedure
7342         (Default_Project_Node): Associate comment before if the node can store
7343         comments.
7344
7345         * scans.ads (Token_Type): New enumeration value Tok_Comment
7346         (Comment_Id): New global variable
7347
7348         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
7349         defaulted to False.
7350         (Scan): Store position of start of comment. If comments are tokens, set
7351         Comment_Id and set Token to Tok_Comment when scanning a comment.
7352         (Set_Comment_As_Token): New procedure
7353
7354         * sinput-p.adb: Update Copyright notice
7355         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
7356         that no longer exists.
7357
7358 2003-12-08  Javier Miranda  <miranda@gnat.com>
7359
7360         * sem_aggr.adb: Add dependence on Exp_Tss package
7361         Correct typo in comment
7362         (Resolve_Aggregate): In case of array aggregates set the estimated
7363         type of the aggregate before calling resolve. This is needed to know
7364         the name of the corresponding IP in case of limited array aggregates.
7365         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
7366         in case of default initialized array components.
7367
7368         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
7369         types. Required to give support to limited aggregates in generic
7370         formals.
7371
7372 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
7373
7374         * sem_ch3.adb (Check_Initialization): For legality purposes, an
7375         inlined body functions like an instantiation.
7376         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
7377         until bounds are analyzed, to diagnose premature use of type.
7378
7379         * sem_util.adb (Wrong_Type): Improve error message when the type of
7380         the expression is used prematurely.
7381
7382 2003-12-08  GNAT Script  <nobody@gnat.com>
7383
7384         * Make-lang.in: Makefile automatically updated
7385
7386 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
7387
7388         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
7389         they are automatically generated by Make-lang.in and cause nothing but
7390         maintenance troubles.
7391
7392 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
7393
7394         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
7395         version of this unit).
7396
7397 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
7398
7399         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
7400         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
7401         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
7402         the body of System.Interrupt_Management common to several targets.
7403         Update copyright notice when appropriate.
7404
7405         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
7406         constant.
7407
7408         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
7409         to ensure that the kernel fills in the interrupted context structure
7410         before calling a signal handler, which is necessary to be able to
7411         unwind past it. Update the copyright notice.
7412
7413 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
7414
7415         * a-elchha.ads: New file.
7416
7417         * a-elchha.adb: New default last chance handler. Contents taken from
7418         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
7419
7420         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
7421         is moved to a-elchha.adb to provide a target-independent default last
7422         chance handler.
7423
7424         * Makefile.rtl: Add a-elchha.o
7425
7426         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
7427
7428 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
7429
7430         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
7431         declared in an instance, do not inline the call if the instance is not
7432         frozen yet, to prevent order of elaboration problems.
7433
7434         * sem_prag.adb: Add comments for previous fix.
7435
7436 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
7437
7438         * g-table.adb: Use the right variable in Set_Item.
7439         Update copyright notice.
7440
7441 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
7442
7443         * Makefile.in: Remove unused rules.
7444
7445 2003-12-05  Vincent Celier  <celier@gnat.com>
7446
7447         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
7448         -nostdlib. Not needed here after all.
7449
7450 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
7451
7452         PR ada/11724
7453
7454         * adaint.h, adaint.c, g-os_lib.ads:
7455         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
7456         on some platforms (including FreeBSD), it is a 64 bit value.
7457         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
7458
7459 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
7460
7461         * gnatvsn.ads (Library_Version): Now contain only the relevant
7462         version info.
7463         (Verbose_Library_Version): New constant.
7464
7465         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
7466         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
7467         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
7468
7469         * gnatlbr.adb: Clean up: replace Library_Version by
7470         Verbose_Library_Version.
7471
7472         * make.adb, lib-writ.adb, exp_attr.adb:
7473         Clean up: replace Library_Version by Verbose_Library_Version.
7474
7475         * 5lintman.adb: Removed.
7476
7477         * Makefile.in:
7478         Update and simplify computation of LIBRARY_VERSION.
7479         Fix computation of GSMATCH_VERSION.
7480         5lintman.adb is no longer used: replaced by 7sintman.adb.
7481
7482 2003-12-03  Robert Dewar  <dewar@gnat.com>
7483
7484         * exp_ch5.adb:
7485         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
7486         name. Modified to consider small non-bit-packed arrays as troublesome
7487         and in need of component-by-component assigment expansion.
7488
7489 2003-12-03  Vincent Celier  <celier@gnat.com>
7490
7491         * lang-specs.h: Process nostdlib as nostdinc
7492
7493         * back_end.adb: Update Copyright notice
7494         (Scan_Compiler_Arguments): Process -nostdlib directly.
7495
7496 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
7497
7498         * Makefile.in:
7499         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
7500         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
7501         included in HIE_NONE_TARGET_PAIRS.
7502
7503 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
7504
7505         * sem_attr.adb:
7506         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
7507         is legal in an instance, because legality is cheched in the template.
7508
7509         * sem_prag.adb:
7510         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
7511         appplied to an unchecked conversion of a formal parameter.
7512
7513         * sem_warn.adb:
7514         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
7515         variables.
7516
7517 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
7518
7519         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
7520         routines. The second one is new functionality to deal with backtracing
7521         through signal handlers.
7522         (unwind): Split into the two separate subroutines above.
7523         Update the documentation, and deal properly with sizeof (REG) different
7524         from sizeof (void*).
7525
7526 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
7527
7528         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
7529         so that the debugger can reliably access the value of the parameter,
7530         and therefore is able to display the exception name when an exception
7531         breakpoint is reached.
7532
7533 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
7534
7535         * fmap.adb: Fix typo in warning message.
7536
7537         * g-socket.ads, g-socket.adb: Make Free a visible instance of
7538         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
7539
7540 2003-12-01  Vincent Celier  <celier@gnat.com>
7541
7542         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
7543         ther is no Afile.
7544         (Build_Library): Get the switches only if Default_Switches is declared
7545         in package Binder.
7546
7547 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
7548
7549         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
7550         actuals that are indexed components, reanalyze actual to ensure that
7551         packed array references are properly expanded.
7552
7553         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
7554         attempted assignment to a discriminant.
7555
7556 2003-12-01  Robert Dewar  <dewar@gnat.com>
7557
7558         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
7559         reformatting.
7560
7561         * switch-c.adb: Minor reformatting of comments
7562
7563 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
7564
7565         * Makefile.in: Clean ups.
7566
7567 2003-12-01  GNAT Script  <nobody@gnat.com>
7568
7569         * Make-lang.in: Makefile automatically updated
7570
7571 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
7572
7573         * 5wsystem.ads: Disable zero cost exception, not ready yet.
7574
7575 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
7576
7577         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
7578         to force serialization.
7579
7580 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
7581
7582         * g-socket.ads, g-socket.adb:
7583         Clarify documentation of function Stream. Introduce a Free procedure
7584         to release the returned Stream once it becomes unused.
7585
7586         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
7587
7588 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
7589
7590         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
7591         since NT 4 cannot handle timeout values that are too large,
7592         e.g. DWORD'Last - 1.
7593
7594 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
7595
7596         * exp_ch4.adb:
7597         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
7598         in procedure calls and whose expansion must be deferred.
7599
7600         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
7601         is in exp_ch4.
7602
7603         * sem_ch3.adb:
7604         (Build_Derived_Array_Type): Create operator for unconstrained type
7605         if ancestor is unconstrained.
7606
7607 2003-11-26  Vincent Celier  <celier@gnat.com>
7608
7609         * make.adb (Project_Object_Directory): New global variable
7610         (Change_To_Object_Directory): New procedure
7611         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
7612         of Change_Dir directly. Do not change working directory to object
7613         directory of main project after each compilation.
7614         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
7615         directly.
7616         Change to object directory of main project before binding step.
7617         (Initialize): Initialize Project_Object_Directory to No_Project
7618
7619         * mlib-prj.adb:
7620         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
7621         binding a Stand-Alone Library.
7622
7623         * output.adb: Update Copyright notice
7624         (Write_Char): Output buffer when full
7625
7626 2003-11-26  Robert Dewar  <dewar@gnat.com>
7627
7628         * sem_ch13.adb: (Check_Size): Reset size if size is too small
7629
7630         * sem_ch13.ads:
7631         (Check_Size): Fix documentation to include bit-packed array case
7632
7633         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
7634
7635         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
7636
7637         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
7638
7639 2003-11-24  Arnaud Charlet <charlet@act-europe.fr>
7640
7641         PR ada/13142
7642         * utils.c (init_gigi_decls): Change name of built-in setjmp to
7643         __builtin_setjmp, since this is apparently needed by recent
7644         non Ada changes.
7645
7646 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7647
7648         * adadecode.c: Only include ctype.h if not IN_GCC.
7649         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
7650
7651 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
7652
7653         * Makefile.in:
7654         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
7655         signals and interrupts.
7656
7657         * 5zintman.ads: New File.
7658
7659         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
7660         add exception signals to the set of unmasked signals.
7661
7662         * 5ztaprop.adb:
7663         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
7664         between signals and interrupts.
7665         Add to Unblocked_Signal_Mask the set of signals that are in
7666         Keep_Unmasked.
7667
7668         * 7sinmaop.adb:
7669         Adding a check to see whether the Interrupt_ID we want to unmask is in
7670         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
7671         reason is that the index type of the Keep_Unmasked array is not always
7672         Interrupt_ID; it may be a subtype of Interrupt_ID.
7673
7674 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
7675
7676         * exp_util.adb:
7677         (Remove_Side_Effects): Condition constantness of object created for a
7678          an unchecked type conversion on the constantness of the expression
7679          to ensure the correct value for 'Constrained when passing components
7680          of view-converted class-wide objects.
7681
7682 2003-11-24  Robert Dewar  <dewar@gnat.com>
7683
7684         * par-load.adb (Load): Improve handling of misspelled and missing units
7685         Removes several cases of compilation abandoned messages
7686
7687         * lib.adb: (Remove_Unit): New procedure
7688
7689         * lib.ads: (Remove_Unit): New procedure
7690
7691         * lib-load.adb: Minor reformatting
7692
7693 2003-11-24  Vincent Celier  <celier@gnat.com>
7694
7695         * make.adb:
7696         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
7697         (Marking_Label): Label to mark processed source files. Incremented for
7698         each executable.
7699         (Gnatmake): Increase Marking_Labet for each executable
7700         (Is_Marked): Compare against marking label
7701         (Mark): Mark with marking label
7702
7703 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
7704
7705         * s-thread.ads:
7706         Move the declaration of the TSD for System.Threads to System.Soft_Links.
7707         Add some comments.
7708
7709         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
7710         (rts-cert): build a single relocatable object for the run-time lib.
7711         Fix perms.
7712
7713 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
7714
7715         * Make-lang.in:
7716         Use gnatls rather than gcc to obtain the location of GNAT RTL for
7717         crosstools build.
7718
7719 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
7720
7721         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
7722         can not use it as before (that is, as a variable) when dumping it into
7723         the tree file. Add a local variable to store the result of this
7724         function and to be used as the string to be written into the tree.
7725
7726         * scn.adb (Initialize_Scanner): Add comments explaining the recent
7727         changes.
7728
7729         * sinput.adb (Source_First, Source_Last): In case of
7730         Internal_Source_File, replace returning attributes of
7731         Internal_Source_Ptr (which is wrong) with returning attributes of
7732         Internal_Source.
7733
7734 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
7735
7736         * sem_ch3.adb:
7737         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
7738         used for implicit concatenation operators.
7739         Code cleanup.
7740
7741         * sem_elab.adb:
7742         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
7743         task bodies that are in the scope of a Suppress pragma.
7744         (Check_A Call): Use the flag to prevent spurious elaboration checks.
7745
7746         * sinfo.ads, sinfo.adb:
7747         New flag No_Elaboration_Check on function/procedure calls, to properly
7748         suppress checks on calls in task bodies that are within a local suppress
7749         pragma.
7750
7751         * exp_ch4.adb:
7752         (Expand_Concatenate_Other): Use the proper integer type for the
7753         expression for the upper bound, to avoid universal_integer computations
7754         when possible.
7755
7756 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
7757
7758         * .cvsignore: Delete.
7759
7760 2003-11-21  Andreas Schwab  <schwab@suse.de>
7761
7762         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
7763
7764 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
7765
7766         * 5wsystem.ads: Enable zero cost exception.
7767
7768 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
7769
7770         * 5ztiitho.adb: Remove an unreferenced variable.
7771
7772 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
7773
7774         * adaint.c: For FreeBSD, use mkstemp.
7775
7776 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
7777
7778         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
7779
7780 2003-11-21  Robert Dewar  <dewar@gnat.com>
7781
7782         * bld.adb: Remove useless USE of gnatvsn
7783
7784         * gnatchop.adb: Minor reformatting
7785         Clean up version handling to be more consistent
7786
7787         * gnatxref.adb: Minor reformatting
7788
7789         * gprcmd.adb: Minor reformatting
7790         Fix output of copyright to be more consistent with other tools
7791
7792 2003-11-21  Vincent Celier  <celier@gnat.com>
7793
7794         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
7795
7796 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
7797
7798         * atree.adb (Initialize): Add initializations for global variables
7799         used in New_Copy_Tree.
7800
7801         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
7802         Internal_Source_File as the actual).
7803         Put the set of statements creating Any_Character before the set of
7804         statements creating Any_Array to have Any_Character fully initialized
7805         when it is used in creating Any_Array.
7806
7807         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
7808         not call Scan in case if the actual is Internal_Source_File
7809         Add 2003 to copyright note.
7810
7811         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
7812         processing Internal_Source_File.
7813
7814         * types.ads: Add the constant Internal_Source_File representing the
7815         source buffer for artificial source-code-like strings created within
7816         the compiler (the definition of Source_File_Index is changed).
7817
7818 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
7819
7820         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
7821         56system.ads: New file, FreeBSD version.
7822
7823 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
7824
7825         * Make-lang.in (ada.extraclean): Delete.
7826
7827 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
7828
7829         * gnatmem.adb: Clean up verbose output.
7830
7831         * gprcmd.adb: Change copyright to FSF.
7832
7833 2003-11-19  Vincent Celier  <celier@gnat.com>
7834
7835         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
7836         and Version (ignored).
7837
7838         * symbols.ads: (Policy): New type
7839         (Initialize): New parameter Reference, Symbol_Policy and
7840         Library_Version.
7841         Remove parameter Force.
7842         Minor reformatting.
7843
7844         * snames.ads, snames.adbadb: New standard names
7845         Library_Reference_Symbol_File and Library_Symbol_Policy
7846
7847         * mlib-prj.adb:
7848         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
7849         project.
7850
7851         * mlib-tgt.adb:
7852         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
7853
7854         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
7855
7856         * prj.adb: (Project_Empty): New component Symbol_Data
7857
7858         * prj.ads: (Policy, Symbol_Record): New types
7859         (Project_Data): New component Symbol_Data
7860
7861         * prj-attr.adb:
7862         New attributes Library_Symbol_File, Library_Symbol_Policy and
7863         Library_Reference_Symbol_File.
7864
7865         * prj-nmsc.adb:
7866         (Ada_Check): When project is a Stand-Alone library project, process
7867         attribute Library_Symbol_File, Library_Symbol_Policy and
7868         Library_Reference_Symbol_File.
7869
7870         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
7871         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
7872         5sml-tgt.adb (Build_Dynamic_Library): New parameter
7873         Symbol_Data (ignored).
7874
7875         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
7876         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
7877         functions Option_File_Name and Version_String. Set new options of
7878         gnatsym related to symbol file, symbol policy and reference symbol
7879         file.
7880
7881         * 5vsymbol.adb:
7882         Extensive modifications to take into account the reference symbol file,
7883         the symbol policy, the library version and to put in the symbol file the
7884         minor and major IDs.
7885
7886         * bld.adb (Process_Declarative_Items): Put second argument of
7887         gprcmd to_absolute between single quotes, to avoid problems with
7888         Windows.
7889
7890         * bld-io.adb: Update Copyright notice.
7891         (Flush): Remove last character of a line, if it is a back slash, to
7892         avoid make problems.
7893
7894         * gnatsym.adb:
7895         Implement new scheme with reference symbol file and symbol policy.
7896
7897         * g-os_lib.ads: (Is_Directory): Clarify comment
7898
7899 2003-11-19  Robert Dewar  <dewar@gnat.com>
7900
7901         * atree.adb: Move New_Copy_Tree global variables to head of package
7902
7903         * errout.adb: Minor reformatting
7904
7905 2003-11-19  Javier Miranda  <miranda@gnat.com>
7906
7907         * sem_ch4.adb: (Diagnose_Call): Improve error message.
7908         Add reference to Ada0Y (AI-50217)
7909
7910         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
7911         sem_util.adb: Add reference to AI-50217
7912
7913         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
7914
7915         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
7916
7917         * sem_aggr.adb: Complete documentation of AI-287 changes
7918
7919         * par-ch4.adb: Document previous changes.
7920
7921         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
7922         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
7923         Ada0Y (AI-50217)
7924
7925         * exp_aggr.adb: Add references to AI-287 in previous changes
7926
7927 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
7928
7929         * exp_ch6.adb:
7930         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
7931         in the rewriting is the result of an inlined call.
7932
7933         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
7934         parameter is a type conversion, use original node to construct the
7935         post-call assignment, because expression may have been rewritten, e.g.
7936         if it is a packed array.
7937
7938         * sem_attr.adb:
7939         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
7940         body, just as it is in an instance.
7941         Categorization routines
7942
7943         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
7944         Instantiate_Object): Set proper sloc reference for message on missing
7945         actual.
7946
7947 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
7948
7949         * Makefile.in: Add FreeBSD libgnat pairs.
7950
7951         * usage.adb: Fix typo in usage message.
7952
7953 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
7954
7955         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
7956         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
7957         pragma Thread_Body.
7958         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
7959
7960         * s-thread.adb: This file is now a dummy implementation of
7961         System.Thread.
7962
7963 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
7964
7965         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
7966
7967 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
7968
7969         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
7970         instanciation references in the parent type description.
7971
7972 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7973
7974         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
7975
7976         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
7977         TYPE_PRECISION directly from esize.
7978
7979 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
7980
7981         * cstreams.c:
7982         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
7983
7984         * init.c: Initialization routines for FreeBSD
7985
7986         * link.c: Link info for FreeBSD
7987
7988         * sysdep.c: Add the case of FreeBSD
7989
7990 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
7991
7992         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
7993         already called in System.Threads.
7994
7995         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
7996         environment task, as it has been moved to System.Threads.Initialization.
7997
7998 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
7999
8000         * adaint.c (__gnatlib_install_locks): Only reference
8001         __gnat_install_locks on VMS, since other platforms can avoid using
8002         --enable-threads=gnat
8003
8004 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8005
8006         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
8007
8008         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
8009         TYPE_PACKED_ARRAY_TYPE_P.
8010         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
8011
8012         Part of PR ada/12806
8013         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
8014         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
8015
8016 2003-11-17  Vincent Celier  <celier@gnat.com>
8017
8018         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
8019         to False.
8020         Do not set exit status to Failure when Warning is True.
8021         (Gnatchop): Make errors "no compilation units found" and
8022         "no source files written" warnings only.
8023
8024         * make.adb (Gnatmake): When using a project file, set
8025         Look_In_Primary_Dir to False.
8026         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
8027         and Local_Configuration_Pragmas in the project where they are declared
8028         not an extending project which might have inherited them.
8029
8030         * osint.adb (Locate_File): If Name is already an absolute path, do not
8031         look for a directory.
8032
8033         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
8034         -gnats (Check_Syntax) is used, issue only a warning, not an error.
8035
8036         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
8037         in objects of type Variable_Value.
8038
8039         * prj.ads: (Variable_Value): New component Project
8040
8041         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
8042         is in a project extended by Project.
8043
8044         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
8045         Project of Variable_Values to this new parameter value.
8046         (Expression): Set component Project of Variable_Values.
8047         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
8048         Set the component Project in array elements.
8049
8050 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
8051
8052         * errout.adb: (Initialize): Add initialization for error nodes.
8053
8054         * sem_ch12.adb (Initialize): Add missing initializations for
8055         Exchanged_Views and Hidden_Entities.
8056
8057 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
8058
8059         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
8060         already instantiated tree for use in subsequent inlining.
8061         (Analyze_Associations, Instantiate_Formal_Subprogram,
8062         Instantiate_Object): improve error message for mismatch in
8063         instantiations.
8064
8065         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
8066         instantiations of subprograms declared in instances.
8067
8068 2003-11-17  Javier Miranda  <miranda@gnat.com>
8069
8070         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
8071         executed only under the Extensions_Allowed flag.
8072
8073 2003-11-17  Robert Dewar  <dewar@gnat.com>
8074
8075         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
8076         zeroes suppressed.
8077         (Address_Image): Fix bug of returning 0x instead of 0x0
8078         Minor reformatting (function specs).
8079
8080         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
8081         (missed case of 33-63)
8082
8083         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
8084
8085         * s-thread.adb: Add comments for pragma Restriction
8086
8087         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
8088         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
8089
8090 2003-11-17  Ed Falis  <falis@gnat.com>
8091
8092         * s-thread.adb: Added No_Tasking restriction for this implementation.
8093
8094 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
8095
8096         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
8097         instanciation references in the parent type description.
8098
8099 2003-11-17  GNAT Script  <nobody@gnat.com>
8100
8101         * Make-lang.in: Makefile automatically updated
8102
8103 2003-11-16  Jason Merrill  <jason@redhat.com>
8104
8105         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
8106         and TAGS files that include them for each front end.
8107
8108 2003-11-14  Andreas Jaeger  <aj@suse.de>
8109
8110         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
8111         is the canonical version.
8112         * misc.c (gnat_handle_option): Likewise.
8113
8114         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
8115
8116         * 5nsystem.ads: New file for x86_64-linux-gnu.
8117
8118 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
8119
8120         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
8121
8122         * comperr.adb: Fix logic in previous change.
8123
8124 2003-11-13  Vincent Celier  <celier@gnat.com>
8125
8126         * 5bml-tgt.adb (Build_Dynamic_Library): Use
8127         Osint.Include_Dir_Default_Prefix instead of
8128         Sdefault.Include_Dir_Default_Name.
8129
8130         * gnatlbr.adb: Update Copyright notice
8131         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
8132         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
8133         instead of Sdefault.Object_Dir_Default_Name
8134
8135         * gnatlink.adb:
8136         (Process_Binder_File): Never suppress the option following -Xlinker
8137
8138         * mdll-utl.adb:
8139         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
8140         Sdefault.Object_Dir_Default_Name.
8141
8142         * osint.ads, osint.adb:
8143         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
8144         Minor reformatting.
8145
8146         * vms_conv.ads: Minor reformating
8147         Remove GNAT STANDARD and GNAT PSTA
8148
8149         * vms_conv.adb:
8150         Allow GNAT MAKE to have several files on the command line.
8151         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
8152         Sdefault.Object_Dir_Default_Name.
8153         Minor Reformating
8154         Remove data for GNAT STANDARD
8155
8156         * vms_data.ads:
8157         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
8158         Remove data for GNAT STANDARD
8159         Remove options and documentation for -gnatwb/-gnatwB: these warning
8160         options no longer exist.
8161
8162 2003-11-13  Ed Falis  <falis@gnat.com>
8163
8164         * 5zthrini.adb: (Init_RTS): Made visible
8165
8166         * 5zthrini.adb:
8167         (Register): Removed unnecessary call to taskVarGet that checked whether
8168          an ATSD was already set as a task var for the argument thread.
8169
8170         * s-thread.adb:
8171         Updated comment to reflect that this is a VxWorks version
8172         Added context clause for System.Threads.Initialization
8173         Added call to System.Threads.Initialization.Init_RTS
8174
8175 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
8176
8177         * 5zthrini.adb:
8178         (Init_RTS): New procedure, for the initialization of the run-time lib.
8179
8180         * s-thread.adb:
8181         Remove dependancy on System.Init, so that this file can be used in the
8182         AE653 sequential run-time lib.
8183
8184 2003-11-13  Robert Dewar  <dewar@gnat.com>
8185
8186         * bindgen.adb: Minor reformatting
8187
8188 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
8189
8190         * checks.adb:
8191         (Apply_Discriminant_Check): Do no apply check if target type is derived
8192         from source type with no applicable constraint.
8193
8194         * lib-writ.adb:
8195         (Ensure_System_Dependency): Do not apply the style checks that may have
8196         been specified for the main unit.
8197
8198         * sem_ch8.adb:
8199         (Find_Selected_Component): Further improvement in error message, with
8200         RM reference.
8201
8202         * sem_res.adb:
8203         (Resolve): Handle properly the case of an illegal overloaded protected
8204         procedure.
8205
8206 2003-11-13  Javier Miranda  <miranda@gnat.com>
8207
8208         * exp_aggr.adb:
8209         (Has_Default_Init_Comps): New function to check the presence of
8210         default initialization in an aggregate.
8211         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
8212         extension aggregate of a limited record. In addition, a new formal
8213         was added to do not initialize the record controller (if any) during
8214         this recursive expansion of ancestors.
8215         (Init_Controller): Add support for limited record components.
8216         (Expand_Record_Aggregate): In case of default initialized components
8217         convert the aggregate into a set of assignments.
8218
8219         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
8220         describing the new syntax.
8221         Nothing else needed to be done because this subprogram delegates part of
8222         its work to P_Precord_Or_Array_Component_Association.
8223         (P_Record_Or_Array_Component_Association): Give support to the new
8224         syntax for default initialization of components.
8225
8226         * sem_aggr.adb:
8227         (Resolve_Aggregate): Relax the strictness of the frontend in case of
8228         limited aggregates.
8229         (Resolve_Record_Aggregate): Give support to default initialized
8230         components.
8231         (Get_Value): In case of default initialized components, duplicate
8232         the corresponding default expression (from the record type
8233         declaration). In case of default initialization in the *others*
8234         choice, do not check that all components have the same type.
8235         (Resolve_Extension_Aggregate): Give support to limited extension
8236         aggregates.
8237
8238         * sem_ch3.adb:
8239         (Check_Initialization): Relax the strictness of the front-end in case
8240         of aggregate and extension aggregates. This test is now done in
8241         Get_Value in a per-component manner.
8242
8243         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
8244         expression corresponds to a limited aggregate. This test is now done
8245         in Get_Value.
8246
8247         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
8248         Box_Present flag.
8249
8250         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
8251         present in an N_Component_Association node
8252
8253 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
8254
8255         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
8256         type-conformant entry only if they are homographs.
8257
8258 2003-11-13  GNAT Script  <nobody@gnat.com>
8259
8260         * Make-lang.in: Makefile automatically updated
8261
8262 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8263
8264         * adadecode.c: Use <> form of include for ctype.h.
8265         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
8266
8267 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8268
8269         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
8270         Works around PR middle-end/6552.
8271
8272 2003-11-10  Ed Falis  <falis@gnat.com>
8273
8274         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
8275
8276         * 5zinit.adb: (Install_Handler): Moved back to spec
8277         (Install_Signal_Handlers): Deleted
8278
8279         * 5zthrini.adb: Added context clause for System.Storage_Elements
8280         (Register): Only handles creation of taskVar; initialization moved to
8281         Thread_Body_Enter.
8282         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
8283         Added declaration of environment task secondary stack and
8284         initialization.
8285
8286         * s-thread.adb: Implement bodies for thread body processing
8287
8288         * s-thread.ads:
8289         Added comment identifying supported targets for pragma Thread_Body.
8290
8291 2003-11-10  Pascal Obry  <obry@gnat.com>
8292
8293         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
8294         GNAT_MAX_PATH_LEN.
8295
8296         * s-fileio.adb:
8297         (Open): Properly check for string length before copying into the buffer.
8298         Raises Name_Error if buffer is too small. Note that this was a potential
8299         buffer overflow.
8300
8301 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
8302
8303         * bindgen.adb, comperr.adb: Code clean ups.
8304         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
8305
8306 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
8307
8308         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
8309
8310 2003-11-10  Vincent Celier  <celier@gnat.com>
8311
8312         * gprcmd.adb:
8313         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
8314         installation.
8315
8316         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
8317
8318         * prj.adb: (Project_Empty): Add new boolean component Virtual
8319
8320         * prj.ads: (Virtual_Prefix): New constant string
8321         (Project_Data): New boolean component Virtual
8322
8323         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
8324         a library project is extended by a virtual extending project.
8325
8326         * prj-part.adb:
8327         Modifications throughout to implement extending-all project, including:
8328         (Virtual_Hash, Processed_Hash): New hash tables
8329         (Create_Virtual_Extending_Project): New procedure
8330         (Look_For_Virtual_Projects_For): New procedure
8331
8332         * prj-proc.adb:
8333         (Process): After checking the projects, if main project is an
8334         extending-all project, set the object directory of all virtual extending
8335         project to the object directory of the main project.
8336         Adjust error message when a virtual extending project has the same
8337         object directory as an project being extended.
8338         (Recursive_Process): If name starts with the virtual prefix, set Virtual
8339         to True in the project data.
8340
8341         * prj-tree.adb:
8342         (Default_Project_Node): Add new boolean component Extending_All
8343         (Is_Extending_All): New function
8344         (Set_Is_Extending_All): New procedure
8345
8346         * prj-tree.ads: (Is_Extending_All): New function
8347         (Set_Is_Extending_All): New procedure
8348         (Project_Node_Record): New boolean component Extending_All
8349
8350         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
8351
8352         * vms_data.ads:
8353         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
8354
8355         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
8356         "gprcmd prefix" to define it.
8357
8358 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
8359
8360         * einfo.ads: Fix a typo and remove an extraneous word in comments.
8361
8362         * lib-load.adb:
8363         (Create_Dummy_Package_Unit): Set the scope of the entity for the
8364         created dummy package to Standard_Standard, not to itself, to
8365         defend other parts of the front-end against encoutering a cycle in
8366         the scope chain.
8367
8368         * sem_ch10.adb:
8369         (Analyze_With_Clause): When setting the entities for the successive
8370         N_Expanded_Names that constitute the name of a child unit, do not
8371         attempt to go further than Standard_Standard in the chain of scopes.
8372         This case arises from the placeholder units created by
8373         Create_Dummy_Package_Unit in the case of a with_clause for a
8374         nonexistent child unit.
8375
8376 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
8377
8378         * exp_ch6.adb:
8379         (Expand_Thread_Body): Place subprogram on scope stack, so that new
8380         declarations are given the proper scope.
8381
8382         * sem_ch13.adb:
8383         (Check_Expr_Constants): Reject an expression that contains a constant
8384         created during expansion, and that appears after the object to which
8385         the address clause applies.
8386
8387         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
8388         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
8389         that uses 'Range of a function call with controlled components, so
8390         that the function result can be finalized before starting the loop.
8391
8392         * sem_ch8.adb:
8393         (Find_Selected_Component): Improve error message when prefix is
8394         an implicit dereference of an incomplete type.
8395
8396 2003-11-10  Robert Dewar  <dewar@gnat.com>
8397
8398         * opt.ads: New Print_Standard flag for -gnatS switch
8399
8400         * sem_ch13.adb: Remove some additional checks for unaligned arrays
8401
8402         * cstand.adb (Create_Standard): Print out package standard if -gnatS
8403         switch set
8404
8405         * debug.adb: Update doc for -gnatds to discuss relationship with new
8406         -gnatS flag
8407
8408         * sinfo.adb: Add new field Entity_Or_Associated_Node
8409
8410         * sinfo.ads: Add new field Entity_Or_Associated_Node
8411         Update documentation for Associated_Node and Entity fields to clarify
8412         relationship and usage.
8413
8414         * sprint.adb:
8415         (Write_Id): Properly process Associated_Node field in generic template
8416
8417         * switch-c.adb:
8418         Recognize new -gnatS switch for printing package Standard
8419         This replaces gnatpsta
8420
8421         * usage.adb:
8422         Add line for  new -gnatS switch for printing package Standard
8423         This replaces gnatpsta
8424
8425 2003-11-10  Andreas Jaeger  <aj@suse.de>
8426
8427         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
8428         integer.
8429
8430 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
8431
8432         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
8433         by gnat1.
8434
8435 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
8436
8437         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
8438         no longer needed.
8439
8440         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
8441
8442         * sysdep.c: Add handling of cygwin.
8443
8444 2003-11-10  GNAT Script  <nobody@gnat.com>
8445
8446         * Make-lang.in: Makefile automatically updated
8447
8448 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
8449
8450         PR 12950
8451         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
8452         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
8453         Replace GNAT_ROOT by GCC_ROOT.
8454
8455         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
8456
8457 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
8458
8459         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
8460         and update for changed meaning of GET_MODE_BITSIZE.
8461
8462 2003-11-04  Doug Rupp  <rupp@gnat.com>
8463
8464         * sysdep.c: Problem discovered during IA64 VMS port.
8465         [VMS] #include <unixio.h> to get proper prototypes.
8466
8467         * adaint.c:
8468         Issues discovered/problems fixed during IA64 VMS port.
8469         [VMS] #define _POSIX_EXIT for proper semantics.
8470         [VMS] #include <unixio.h> for proper prototypes.
8471         [VMS] (fork): #define IA64 version.
8472         (__gnat_os_exit): Remove unnecessary VMS specific code.
8473
8474 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8475
8476         Part of PR ada/12806
8477
8478         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
8479         tree, not integer.
8480
8481         * decl.c:
8482         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
8483         not integer.
8484
8485         * targtyps.c, decl.c, misc.c,
8486         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
8487         routines to work around change in FP sizing semantics in GCC.
8488
8489         * utils.c:
8490         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
8491
8492         * gigi.h: (enumerate_modes): New function.
8493
8494         * Make-lang.in: (ada/misc.o): Add real.h.
8495
8496         * misc.c: (enumerate_modes): New function.
8497
8498 2003-11-04  Robert Dewar  <dewar@gnat.com>
8499
8500         * 3vtrasym.adb: Minor reformatting
8501         Use terminology encoded/decoded name, rather than C++ specific notion
8502         of mangling (this is the terminology used throughout GNAT).
8503
8504         * einfo.h: Regenerated
8505
8506         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
8507
8508         * exp_ch6.adb:
8509         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
8510
8511         * par-prag.adb: Add dummy entry for Thread_Body pragma
8512
8513         * rtsfind.ads:
8514         Add entries for System.Threads entities for thread body processing
8515
8516         * sem_attr.adb:
8517         (Analyze_Pragma, Access attributes): Check these are not applied to a
8518         thread body, since this is not permitted
8519
8520         * sem_prag.adb: Add processing for Thread_Body pragma.
8521         Minor comment fix.
8522
8523         * sem_res.adb:
8524         (Resolve_Call): Check for incorrect attempt to call a thread body
8525          procedure with a direct call.
8526
8527         * snames.ads, snames.adb: Add entry for Thread_Body pragma
8528         Add names associated with thread body expansion
8529
8530         * snames.h: Add entry for Thread_Body pragma
8531
8532         * s-thread.adb: Add entries for thread body processing
8533         These are dummy bodies so far
8534
8535         * s-thread.ads: Add documentation on thread body handling.
8536         Add entries for thread body processing.
8537
8538 2003-11-04  Javier Miranda  <miranda@gnat.com>
8539
8540         * sem_ch10.adb:
8541         (Build_Limited_Views): Return after posting an error in case of limited
8542         with_clause on subprograms, generics, instances or generic renamings
8543         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
8544         on subprograms, generics, instances or generic renamings
8545
8546 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
8547
8548         * raise.c (setup_to_install): Correct mistake in last revision; two
8549         arguments out of order.
8550
8551         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
8552         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
8553         notice, missed in previous change.
8554         Remove trailing blanks and other style errors introduced in previous
8555         change.
8556
8557 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
8558
8559         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
8560         rid of the wrapper for a LJM type, ensuring we don't do that if the
8561         field is addressable.  This avoids potential low level type view
8562         mismatches later on, for instance in a by-reference argument passing
8563         process.
8564
8565 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8566
8567         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
8568         aligned at byte boundary.
8569
8570 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
8571
8572         * decl.c (components_to_record): Do not delete the empty variants from
8573         the end of the union type.
8574
8575 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
8576
8577         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
8578         operation for a derived type, an explicit declaration may use a local
8579         subtype of Boolean.
8580
8581 2003-11-04  Vincent Celier  <celier@gnat.com>
8582
8583         * make.adb (Gnatmake): Allow main sources on the command line with a
8584         library project when it is only for compilation (no binding or
8585         linking).
8586
8587 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8588
8589         * Makefile.in: Remove many duplicate variables.
8590
8591 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
8592
8593         * Make-lang.in (dvi): Move targets to $(docobjdir).
8594         (gnat_ug_vms.dvi): Simplify rule and adjust target.
8595         (gnat_ug_wnt.dvi): Likewise.
8596         (gnat_ug_unx.dvi): Likewise.
8597         (gnat_ug_vxw.dvi): Likewise.
8598         (gnat_rm.dvi): Likewise.
8599         (gnat-style.dvi): Likewise.
8600
8601 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
8602
8603         * gigi.h: Missed commit from update for C90.
8604
8605 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
8606
8607         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
8608
8609 2003-10-31  Andreas Schwab  <schwab@suse.de>
8610
8611         * raise.c (get_action_description_for): Fix typo in last change.
8612
8613 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
8614
8615         PR ada/12761
8616         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
8617         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
8618
8619 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
8620
8621         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
8622         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
8623         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
8624         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
8625         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
8626
8627 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
8628
8629         * 3vtrasym.adb:
8630         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
8631         numbers when symbol name is too long.
8632
8633 2003-10-30  Ed Falis  <falis@gnat.com>
8634
8635         * g-signal.ads, g-signal.adb: New files
8636
8637         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
8638
8639         * Makefile.rtl: Introduce GNAT.Signals
8640
8641 2003-10-30  Robert Dewar  <dewar@gnat.com>
8642
8643         * freeze.adb: Minor reformatting
8644
8645         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
8646
8647         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
8648         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
8649         New handling of Id_Check parameter to improve recognition of keywords
8650         used as identifiers.
8651         Update copyright notice to include 2003
8652
8653 2003-10-29  Robert Dewar  <dewar@gnat.com>
8654
8655         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
8656         sem_ch10.adb: Minor reformatting
8657
8658         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
8659         (Expand_Assign_Record): Test right hand side for bit unaligned as well
8660
8661 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
8662
8663         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
8664         Support for TBK$SYMBOLIZE-based symbolic traceback.
8665
8666 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
8667
8668         * exp_disp.adb:
8669         Revert previous change, that did not work well when pragma No_Run_Time
8670         was used in conjunction with a run-time other than ZFP.
8671
8672 2003-10-29  Vincent Celier  <celier@gnat.com>
8673
8674         * make.adb:
8675         (Gnatmake): When there are no Ada mains in attribute Main, disable the
8676          bind and link steps only is switch -z is not used.
8677
8678 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
8679
8680         * Makefile.generic: Remove duplicated setting of CC.
8681
8682         * Makefile.prolog: Set CC to gcc by default, to override make's
8683         default (cc).
8684
8685         * einfo.h: Regenerated.
8686
8687 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
8688
8689         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
8690         current body, after compiling subunit.
8691
8692         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
8693         when in deleted code, because gigi needs properly ordered freeze
8694         actions to annotate types.
8695
8696         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
8697         prevent the premature freezing of record type that contains
8698         subcomponents with a private type that does not yet have a completion.
8699
8700 2003-10-29  Javier Miranda  <miranda@gnat.com>
8701
8702         * sem_ch12.adb:
8703         (Analyze_Package_Instantiation): Check that instances can not be used in
8704         limited with_clauses.
8705
8706         * sem_ch8.adb:
8707         (Analyze_Package_Renaming): Check that limited withed packages cannot
8708         be renamed. Improve text on error messages related to limited
8709         with_clauses.
8710
8711         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
8712
8713         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
8714         Update copyright notice.
8715
8716         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
8717         (Install_Limited_Context_Clauses): New subprogram that isolates all the
8718         checks required for limited context_clauses and installs the limited
8719         view.
8720         (Install_Limited_Withed_Unit): Complete its documentation.
8721         (Analyze_Context): Check that limited with_clauses are only allowed in
8722         package specs.
8723         (Install_Context): Call Install_Limited_Context_Clauses after the
8724         parents have been installed.
8725         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
8726         package as 'From_With_Type'; this mark indicates that the limited view
8727         is installed. Used to check bad usages of limited with_clauses.
8728         (Build_Limited_Views): Do not add shadow entities to the scope's list
8729         of entities. Do not add real entities to the Non_Limited_Views chain.
8730         Improve error notification.
8731         (Remove_Context_Clauses): Remove context clauses in two phases:
8732         limited views first and regular views later (to maintain the
8733         stack model).
8734         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
8735         its visible entities.
8736
8737 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
8738
8739         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
8740         with any type that Is_Fixed_Point_Type.
8741
8742         * sinfo.ads: Fix documentation for Associated_Node attribute.
8743
8744 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
8745
8746         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
8747         both '-gnatc' and '-gnatt' are specified.
8748
8749         * atree.adb (Initialize): Add initialization for Node_Count (set to
8750         zero).
8751
8752 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8753
8754         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
8755         do not consider as Pure.
8756
8757         Part of implementation of function-at-a-time:
8758
8759         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
8760         (tree_transform): Add new argument to build_component_ref.
8761         (tree_transform, case N_Assignment_Statement): Make and return an
8762         EXPR_STMT.
8763         (tree_transform): If result IS_STMT, set flags and return it.
8764         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
8765
8766         * utils2.c (build_simple_component_ref, build_component_ref): Add new
8767         arg, NO_FOLD_P.
8768         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
8769         (build_allocator): Likewise.
8770
8771         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
8772         Add new arg to build_component_ref.
8773         (maybe_unconstrained_array, unchecked_convert): Likewise.
8774
8775         * ada-tree.def (EXPR_STMT): New code.
8776
8777         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
8778
8779         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
8780         build_component_ref calls.
8781
8782         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
8783
8784         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
8785         (build_component_ref): Add new argument, NO_FOLD_P.
8786
8787 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
8788
8789         * Makefile.generic: Add missing substitution on object_deps handling.
8790
8791         PR ada/5909:
8792         * Make-lang.in (check-ada): Enable ACATS test suite.
8793
8794 2003-10-27  Robert Dewar  <dewar@gnat.com>
8795
8796         * exp_ch3.adb:
8797         (Freeze_Array_Type): We do not need an initialization routine for types
8798         derived from String or Wide_String. They should be treated the same
8799         as String and Wide_String themselves. This caused problems with the
8800         use of Initialize_Scalars.
8801
8802         * exp_ch5.adb:
8803         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
8804         composites. This allows use of component clauses that are not byte
8805         aligned.
8806
8807         * sem_prag.adb:
8808         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
8809         is an attempt to pack an array of atomic objects.
8810
8811         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
8812
8813 2003-10-27  Pascal Obry  <obry@gnat.com>
8814
8815         * g-dirope.adb:
8816         (Basename): Check for drive letters in a pathname only on DOS based OS.
8817
8818 2003-10-27  Vincent Celier  <celier@gnat.com>
8819
8820         * make.adb:
8821         (Gnatmake): When unable to change dir to the object dir, display the
8822         content of the parent dir of the obj dir, to try to understand why this
8823         happens.
8824
8825 2003-10-27  GNAT Script  <nobody@gnat.com>
8826
8827         * Make-lang.in: Makefile automatically updated
8828
8829 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
8830
8831         * sem_ch12.adb:
8832         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
8833         should not be done in Save/Restore_Scope_Stack, because it is performed
8834         locally.
8835
8836         * sem_ch8.adb:
8837         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
8838         whether use clauses should be removed/restored.
8839
8840         * sem_ch8.ads:
8841         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
8842         whether use clauses should be removed/restored.
8843
8844 2003-10-26  Andreas Jaeger  <aj@suse.de>
8845
8846         * Makefile.in: Remove duplicated lines.
8847
8848 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
8849
8850         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
8851         minimize the differences with ACT tree.
8852
8853         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
8854         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
8855         Gnatvsn.Gnat_Static_Version_String to reduce differences between
8856         ACT and FSF trees.
8857
8858 2003-10-24  Pascal Obry  <obry@gnat.com>
8859
8860         * adadecode.c (ostrcpy): New function.
8861         (__gnat_decode): Use ostrcpy of strcpy.
8862         (has_prefix): Set first parameter a const.
8863         (has_suffix): Set first parameter a const.
8864         Update copyright notice. Fix source name in header.
8865         Removes a trailing space.
8866         PR ada/12014.
8867
8868 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
8869
8870         * exp_disp.adb:
8871         Remove the test against being in No_Run_Time_Mode before generating a
8872         call to Register_Tag. It is redundant with the test against the
8873         availability of the function Register_Tag.
8874
8875 2003-10-24  Vincent Celier  <celier@gnat.com>
8876
8877         * g-catiio.adb: (Month_Name): Correct spelling of February
8878
8879         * make.adb: (Mains): New package
8880         (Initialize): Call Mains.Delete
8881         (Gnatmake): Check that each main on the command line is a source of a
8882         project file and, if there are several mains, each of them is a source
8883         of the same project file.
8884         (Gnatmake): When a foreign language is specified in attribute Languages,
8885         no main is specified on the command line and attribute Mains is not
8886         empty, only build the Ada main. If there is no Ada main, just compile
8887         the Ada sources and their closure.
8888         (Gnatmake): If a main is specified on the command line with directory
8889         information, check that the source exists and, if it does, that the path
8890         is the actual path of a source of a project.
8891
8892         * prj-env.adb:
8893         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
8894         Full_Path is True, return the full path instead of the simple file name.
8895         (Project_Of): New function
8896
8897         * prj-env.ads:
8898         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
8899         defaulted to False.
8900         (Project_Of): New function
8901
8902 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
8903
8904         * Makefile.generic:
8905         Ensure objects of main project are always checked and rebuilt if needed.
8906         Set CC to gcc by default.
8907         Prepare new handling of link by creating a global archive (not activated
8908         yet).
8909
8910         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
8911         stringt.h: Update copyright notice. Remove trailing blanks.
8912         Fix source name in header.
8913
8914 2003-10-24  Robert Dewar  <dewar@gnat.com>
8915
8916         * sem_ch12.adb: Minor reformatting
8917
8918         * sem_ch3.adb:
8919         Minor reformatting (including new function return style throughout)
8920
8921         * sem_ch3.ads:
8922         Minor reformatting (including new function return style throughout)
8923
8924 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
8925
8926         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
8927         stringt.h: Update copyright notice. Remove trailing blanks.
8928         Fix source name in header.
8929
8930 2003-10-24  GNAT Script  <nobody@gnat.com>
8931
8932         * Make-lang.in: Makefile automatically updated
8933
8934 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
8935
8936         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
8937         stringt.h: Convert to ISO C90 declarations and definitions.
8938
8939 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
8940
8941         PR ada/11978:
8942         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
8943         External_Tag attribute definition clauses.
8944
8945 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
8946
8947         PR ada/7613:
8948         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
8949         child unit, generate a fully qualified name to avoid spurious errors
8950         when the context contains renamings of different child units with
8951         the same simple name.
8952
8953         * exp_dbug.ads: Add documentation on name qualification for renamings
8954         of child units.
8955
8956 2003-10-23  Robert Dewar  <dewar@gnat.com>
8957
8958         * g-regpat.ads, g-regpat.adb: Minor reformatting
8959
8960 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
8961
8962         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
8963
8964 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8965
8966         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
8967         Machine call.
8968
8969         * urealp.h: (Machine): Update to proper definition.
8970
8971 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
8972
8973         * init.c, adaint.c: Minor reformatting.
8974
8975 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
8976
8977         * adaint.c (w32_epoch_offset): Define static const at file level.
8978         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
8979         rather than t_create, t_access in call to GetFileTime. Use union
8980         to convert between FILETIME and  unsigned long long.
8981         (__gnat_file_time_name): Test for invalid file handle.
8982         (__gnat_set_filetime_name): Support win32 targets using
8983         w32api SetFileTime.
8984
8985 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
8986
8987         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
8988
8989         * ctrl_c.c (__gnat_int_handler): Remove declaration.
8990
8991         * decl.c (creat_concat_name):  Const-ify prefix.
8992
8993         * adaint.c: Include ctype.h if __MINGW32__.
8994         (__gnat_readlink): Mark arguments as possibly unused.
8995         (__gnat_symlink): Likewise.
8996         (__gnat_is_symbolic_link): Likewise.
8997         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
8998         declaration
8999         (__gnat_file_time_name): Don't declare struct stat statbuf when
9000         not needed.
9001         (__gnat_is_absolute_path): Add parenthesis around condition of
9002         'if' statement to avoid warning.
9003         (__gnat_plist_init): Specify void as parameter.
9004         (plist_enter): Likewise.
9005         (plist_leave): Likewise.
9006         (remove_handle): Make static. Initialize prev.
9007
9008 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
9009
9010         * Makefile.in: Disable build of gnatpsta. PR ada/10110.
9011         * cstreams.c (__gnat_full_name): Minor improvements and clean up
9012         of previous change.
9013
9014 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9015
9016         * tracebak.c (MAX): Avoid redefinition warning.
9017
9018         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
9019         Change msg to const char *.
9020         (__gnat_install_handler): Remove ss, unused.
9021         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
9022         to const char *.
9023         * cstreams.c (__gnat_full_name): Declare p only when used.
9024         (__gnat_full_name) [sgi] Return buffer.
9025
9026 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
9027
9028         * mingw32.h: New file.
9029         * gnat_wrapper.adb: New file.
9030
9031 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
9032
9033         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
9034         string match a pre compiled regular expression (the corresponding
9035         version of the function working on a raw regular expression)
9036         Fix typos in various comments
9037         Update copyright notice in spec
9038
9039 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
9040
9041         * exp_ch3.adb:
9042         (Component_Needs_Simple_Initialization): Return False when the type is a
9043         packed bit array. Revise spec comments to document this case.
9044
9045         * exp_prag.adb:
9046         (Expand_Pragma_Import): Set any expression on the imported object to
9047         empty to avoid initializing imported objects (in particular this
9048         covers the case of zero-initialization of bit arrays).
9049         Update copyright notice.
9050
9051 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
9052
9053         * sem_ch12.adb:
9054         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
9055         a subunit is missing.
9056         (Instantiate_Subprogram_Body): If body of function is missing, set type
9057         of return expression explicitly in dummy body, to prevent cascaded
9058         errors when a subunit is missing.
9059         Fixes PR 5677.
9060
9061         * sem_ch3.adb:
9062         (Access_Subprogram_Declaration): Verify that return type is valid.
9063         Fixes PR 8693.
9064
9065         * sem_elab.adb:
9066         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
9067         generic.
9068         Fixes PR 12318.
9069
9070         * sem_util.adb:
9071         (Corresponding_Discriminant): If the scope of the discriminant is a
9072         private type without discriminant, use its full view.
9073         Fixes PR 8247.
9074
9075 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
9076
9077         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
9078         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
9079         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
9080         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
9081         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
9082         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
9083         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
9084         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
9085         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
9086         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
9087         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
9088         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
9089         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
9090         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
9091         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
9092         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
9093         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
9094         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
9095         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
9096         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
9097         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
9098         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
9099         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
9100         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
9101         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
9102         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
9103         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
9104         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
9105         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
9106         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
9107         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
9108         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
9109         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
9110         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
9111         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
9112         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
9113         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
9114         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
9115         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
9116         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
9117         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
9118         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
9119         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
9120         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
9121         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
9122         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
9123         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
9124         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
9125         vms_conv.ads, vms_conv.adb, vms_data.ads,
9126         vxaddr2line.adb: Files added. Merge with ACT tree.
9127
9128         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
9129         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
9130         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
9131         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
9132         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
9133         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
9134         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
9135         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
9136         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
9137         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
9138
9139         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
9140         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
9141         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
9142         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
9143         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
9144         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
9145         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
9146         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
9147         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
9148         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
9149         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
9150         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
9151         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
9152         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
9153         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
9154         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
9155         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
9156         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
9157         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
9158         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
9159         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
9160         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
9161         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
9162         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
9163         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
9164         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
9165         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
9166         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
9167         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
9168         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
9169         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
9170         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
9171         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
9172         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
9173         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
9174         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
9175         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
9176         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
9177         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
9178         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
9179         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
9180         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
9181         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
9182         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
9183         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
9184         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
9185         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
9186         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
9187         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
9188         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
9189         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
9190         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
9191         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
9192         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
9193         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
9194         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
9195         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
9196         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
9197         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
9198         checks.adb, checks.ads, cio.c, comperr.adb,
9199         comperr.ads, csets.adb, cstand.adb, cstreams.c,
9200         debug_a.adb, debug_a.ads, debug.adb, decl.c,
9201         einfo.adb, einfo.ads, errout.adb, errout.ads,
9202         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
9203         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
9204         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
9205         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
9206         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
9207         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
9208         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
9209         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
9210         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
9211         fe.h, fmap.adb, fmap.ads, fname.adb,
9212         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
9213         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
9214         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
9215         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
9216         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
9217         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
9218         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
9219         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
9220         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
9221         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
9222         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
9223         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
9224         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
9225         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
9226         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
9227         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
9228         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
9229         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
9230         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
9231         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
9232         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
9233         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
9234         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
9235         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
9236         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
9237         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
9238         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
9239         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
9240         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
9241         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
9242         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
9243         layout.adb, lib.adb, lib.ads, lib-list.adb,
9244         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
9245         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
9246         link.c, live.adb, make.adb, make.ads,
9247         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
9248         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
9249         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
9250         misc.c, mkdir.c, mlib.adb, mlib.ads,
9251         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
9252         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
9253         namet.adb, namet.ads, namet.h, nlists.ads,
9254         nlists.h, nmake.adt, opt.adb, opt.ads,
9255         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
9256         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
9257         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
9258         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
9259         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
9260         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
9261         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
9262         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
9263         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
9264         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
9265         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
9266         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
9267         prj-util.adb, prj-util.ads, raise.c, raise.h,
9268         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
9269         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
9270         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
9271         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
9272         scans.ads, scn.adb, scn.ads, s-crc32.adb,
9273         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
9274         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
9275         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
9276         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
9277         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
9278         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9279         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
9280         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
9281         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
9282         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
9283         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
9284         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
9285         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
9286         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
9287         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
9288         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
9289         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
9290         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
9291         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
9292         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
9293         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
9294         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
9295         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
9296         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
9297         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
9298         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
9299         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
9300         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
9301         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
9302         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
9303         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
9304         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
9305         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
9306         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
9307         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
9308         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
9309         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
9310         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
9311         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
9312         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
9313         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
9314         stringt.adb, stringt.ads, stringt.h, style.ads,
9315         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
9316         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
9317         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
9318         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
9319         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
9320         table.adb, table.ads, targparm.adb, targparm.ads,
9321         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
9322         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
9323         ttypes.ads, types.ads, types.h, uintp.adb,
9324         uintp.ads, uintp.h, uname.adb, urealp.adb,
9325         urealp.ads, urealp.h, usage.adb, utils2.c,
9326         utils.c, validsw.adb, validsw.ads, widechar.adb,
9327         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
9328         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
9329         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
9330         gnatvsn.ads: Merge with ACT tree.
9331
9332         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
9333
9334 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
9335
9336         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
9337         (gnat_ug_vmx.info): Likewise.
9338         (gnat_ug_vxw.info): Likewise.
9339         (gnat_ug_wnt.info): Likewise.
9340         (gnat_rm.info): Likewise.
9341         (gnat-style.info): Likewise.
9342
9343         * Make-lang.in (ada.install-info): Remove target.
9344         (info): New target.
9345         (install-info): Likewise.
9346         (gnat_ug_unx.info): Simplify rule.
9347         (gnat_ug_vmx.info): Likewise.
9348         (gnat_ug_vxw.info): Likewise.
9349         (gnat_ug_wnt.info): Likewise.
9350         (gnat_rm.info): Likewise.
9351         (gnat-style.info): Likewise.
9352
9353 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
9354
9355         * Make-lang.in: Replace uses of $(target_alias) with
9356         $(target_noncanonical).
9357         * ada/Makefile.in: Remove unused mention of $(target_alias).
9358
9359 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
9360
9361         * Make-lang.in (ada.info): Replace with ...
9362         (info): ... this.
9363         (ada.dvi): Replace with ...
9364         (dvi): ... this.
9365
9366 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
9367
9368         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
9369         initialize dconstp5 and dconstmp5.
9370
9371 2003-09-28  Richard Henderson  <rth@redhat.com>
9372
9373         * trans.c (tree_transform): Update call to expand_asm_operands.
9374
9375 2003-09-21  Richard Henderson  <rth@redhat.com>
9376
9377         * trans.c, utils.c: Revert.
9378
9379 2003-09-21  Richard Henderson  <rth@redhat.com>
9380
9381         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
9382         change to const.
9383
9384 2003-09-04  Michael Matz  <matz@suse.de>
9385
9386         * misc.c: Include "target.h".
9387         * Make-lang.in (misc.o): Add dependency on target.h.
9388
9389 2003-09-03  DJ Delorie  <dj@redhat.com>
9390
9391         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
9392         hook.
9393
9394 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
9395
9396         * Makefile.in: Update substitutions to match changes to
9397         configure.  Use include directives instead of @-insertions
9398         to read in host and target fragments.  Add a rule to
9399         regenerate ada/Makefile.
9400
9401 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
9402
9403         * lang-options.h: Remove.
9404         * lang.opt: Add help text.
9405
9406 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
9407
9408         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
9409         calls.
9410
9411 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
9412
9413         * misc.c (gnat_handle_option): Don't handle filenames.
9414
9415 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
9416
9417         * Make-lang.in: Replace PWD with PWD_COMMAND.
9418         * Makefile.adalib: Likewise.
9419         * Makefile.in: Likewise.
9420
9421 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
9422
9423         * misc.c (gnat_argv): Revert last change.
9424         (gnat_handle_option, gnat_init_options): Copy arguments.
9425
9426 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
9427
9428         * misc.c (gnat_argv): Make const.
9429
9430 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
9431
9432         * misc.c (save_argc, save_argv): Keep non-static!
9433
9434 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
9435
9436         * misc.c (save_argc, save_argv): Make static.
9437         (gnat_init_options): New prototype.
9438         (gnat_init_options): Update.
9439
9440 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
9441
9442         * gnat_ug.texi: Remove unlikely characters from @vars.
9443         * gnat_ug_vms.texi: Regenerate.
9444
9445 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
9446
9447         * misc.c (record_code_position): Adjust emit_note call.
9448
9449 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
9450
9451         * misc.c (gnat_handle_option): Don't check for missing arguments.
9452
9453 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
9454
9455         * utils.c (end_subprog_body): Adjust expand_function_end call.
9456
9457 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
9458
9459         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
9460         Bind_Main_Program.
9461
9462 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
9463
9464         * lang.opt: Declare Ada.
9465         * misc.c (gnat_init_options): Update.
9466
9467 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
9468
9469         * utils.c (begin_subprog_body): Adjust init_function_start call.
9470
9471 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
9472
9473         * Make-lang.in: Update to use options.c and options.h.
9474         * misc.c: Include options.h not aoptions.h.
9475         (gnat_handle_option): Abort on unrecognized switch.
9476         (gnat_init_options): Request Ada switches.
9477
9478 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
9479
9480         * lang.opt: Add -Wall.
9481         * misc.c (gnat_handle_option): Handle it.
9482
9483 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
9484
9485         * misc.c (gnat_handle_option): Fix warnings.
9486
9487 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
9488
9489         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
9490
9491 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
9492
9493         * Make-lang.in: Update to handle command-line options.
9494         * lang.opt: New file.
9495         * misc.c: Include aoptions.h.
9496         (cl_options_count, cl_options): Remove.
9497         (gnat_handle_option): New.
9498         (gnat_decode_option): Remove.
9499         (LANG_HOOKS_DECODE_OPTION): Remove.
9500         (LANG_HOOKS_HANDLE_OPTION): Override.
9501
9502 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
9503
9504         * init.c, misc.c, trans.c, utils.c: Remove dead code.
9505
9506 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
9507
9508         * Makefile.in: Replace "host_canonical" with "host" for autoconf
9509         substitution.
9510
9511 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
9512
9513         * Make-lang.in: Update.
9514         * misc.c: Include opts.h. Define cl_options_count and cl_options.
9515
9516 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
9517
9518         * misc.c (gnat_init_options): Update.
9519
9520 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
9521
9522         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
9523         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
9524         __attribute__ ((__unused__)).
9525
9526 2003-06-05  Jan Hubicka  <jh@suse.cz>
9527
9528         * Make-lang.in:  Add support for stageprofile and stagefeedback
9529
9530 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
9531
9532         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
9533         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
9534
9535 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
9536
9537         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
9538         Remove non-VMS directive.
9539         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
9540         alternatives.
9541         (Examples of gnatls Usage): Remove VMS alternative.
9542
9543 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
9544
9545         PR ada/9953:
9546         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
9547         and turn ZCX_By_Default back to False since the underlying support
9548         is not quite there yet.
9549
9550 2003-06-01  Andreas Jaeger  <aj@suse.de>
9551
9552         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
9553         and ROUND_TYPE_SIZE_UNIT.
9554
9555 2003-05-22   Geert Bosch <bosch@gnat.com>
9556
9557         * gnat_rm.texi : Remove reference to Ada Core Technologies.
9558
9559 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
9560
9561         * trans.c (tree_transform): Use location_t and input_location
9562         directly.
9563         (build_unit_elab): Likewise.
9564         * utils.c (create_label_decl): Likewise.
9565
9566 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
9567
9568         * trans.c (tree_transform, build_unit_elab,
9569         set_lineno): Rename lineno to input_line.
9570         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
9571         end_subprog_body): Likewise.
9572         * utils2.c (build_call_raise): Likewise.
9573
9574 2003-05-01  Laurent Guerby <guerby@acm.org>
9575
9576         PR ada/10546
9577         * 5iosinte.ads: Increase pthread_cond_t size to match recent
9578         LinuxThread and NPTL version, merge from ACT.
9579
9580 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
9581
9582         * utils.c (convert): No need to clear TREE_CST_RTL.
9583
9584 2003-04-23   Geert Bosch <bosch@gnat.com>
9585
9586         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
9587         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
9588         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
9589         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
9590         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
9591         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
9592         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
9593         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
9594         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
9595         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
9596         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
9597         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
9598         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
9599         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
9600         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
9601         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
9602         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
9603         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
9604         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
9605         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
9606         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
9607         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
9608         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
9609         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
9610         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
9611         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
9612         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
9613         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
9614         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
9615         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
9616         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
9617         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
9618         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
9619         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
9620         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
9621         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
9622         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
9623         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
9624         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
9625         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
9626         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
9627         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
9628         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
9629         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
9630         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
9631         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
9632         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
9633         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
9634         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
9635         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
9636         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
9637         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
9638         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
9639         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
9640         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
9641         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
9642         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
9643         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
9644         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
9645         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
9646         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
9647         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
9648         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
9649         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
9650         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
9651         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
9652         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
9653         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
9654         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
9655         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
9656         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
9657         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
9658         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
9659         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
9660         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
9661         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
9662         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
9663         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
9664         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
9665         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
9666         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
9667         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
9668         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
9669         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
9670         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
9671         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
9672         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
9673         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
9674         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
9675         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
9676         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
9677         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
9678         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
9679         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
9680         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
9681         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
9682         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
9683         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
9684         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
9685         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
9686         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
9687         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
9688         ali.adb, ali.ads, alloc.ads, argv.c,
9689         atree.adb, atree.ads, atree.h, aux-io.c,
9690         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
9691         binde.adb, binde.ads, binderr.adb, binderr.ads,
9692         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
9693         butil.adb, butil.ads, cal.c, calendar.ads,
9694         casing.adb, casing.ads, ceinfo.adb, checks.adb,
9695         checks.ads, cio.c, comperr.adb, comperr.ads,
9696         config-lang.in, csets.adb, csets.ads, csinfo.adb,
9697         cstand.adb, cstand.ads, cuintp.c, debug.adb,
9698         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
9699         dec-io.ads, dec.ads, deftarg.c, directio.ads,
9700         einfo.adb, einfo.ads, elists.adb, elists.ads,
9701         elists.h, errno.c, errout.adb, errout.ads,
9702         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
9703         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
9704         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
9705         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
9706         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
9707         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
9708         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
9709         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
9710         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
9711         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
9712         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
9713         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
9714         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
9715         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
9716         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
9717         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
9718         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
9719         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
9720         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
9721         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
9722         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
9723         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
9724         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
9725         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
9726         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
9727         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
9728         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
9729         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
9730         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
9731         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
9732         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
9733         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
9734         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
9735         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
9736         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
9737         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
9738         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
9739         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
9740         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
9741         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
9742         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
9743         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
9744         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
9745         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
9746         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
9747         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
9748         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
9749         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
9750         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
9751         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
9752         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
9753         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
9754         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
9755         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
9756         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
9757         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
9758         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
9759         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
9760         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
9761         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
9762         lib.adb, lib.ads, live.adb, live.ads,
9763         machcode.ads, make.adb, make.ads, makeusg.adb,
9764         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
9765         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
9766         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
9767         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
9768         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
9769         mlib.ads, namet.adb, namet.ads, nlists.adb,
9770         nlists.ads, opt.adb, opt.ads, osint-b.adb,
9771         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
9772         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
9773         osint.ads, output.adb, output.ads, par-ch10.adb,
9774         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
9775         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
9776         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
9777         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
9778         par-tchk.adb, par-util.adb, par.adb, par.ads,
9779         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
9780         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
9781         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
9782         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
9783         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
9784         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
9785         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
9786         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
9787         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
9788         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
9789         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
9790         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
9791         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
9792         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
9793         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
9794         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
9795         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
9796         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
9797         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
9798         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
9799         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
9800         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
9801         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
9802         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
9803         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
9804         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
9805         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
9806         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
9807         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
9808         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
9809         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
9810         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
9811         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
9812         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
9813         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
9814         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
9815         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
9816         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
9817         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
9818         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
9819         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
9820         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
9821         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
9822         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
9823         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
9824         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
9825         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
9826         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
9827         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
9828         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
9829         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
9830         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
9831         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
9832         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
9833         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
9834         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
9835         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
9836         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
9837         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
9838         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
9839         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
9840         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
9841         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
9842         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
9843         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
9844         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
9845         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
9846         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
9847         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
9848         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
9849         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
9850         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
9851         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
9852         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
9853         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
9854         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
9855         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
9856         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
9857         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
9858         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
9859         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
9860         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
9861         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
9862         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
9863         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
9864         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
9865         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
9866         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
9867         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
9868         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
9869         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
9870         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
9871         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
9872         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
9873         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
9874         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
9875         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
9876         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
9877         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
9878         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
9879         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
9880         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
9881         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
9882         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
9883         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
9884         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
9885         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
9886         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
9887         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
9888         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
9889         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9890         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
9891         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
9892         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
9893         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
9894         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
9895         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
9896         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
9897         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
9898         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
9899         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
9900         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
9901         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
9902         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
9903         snames.ads, sprint.adb, sprint.ads, stand.adb,
9904         stand.ads, stringt.adb, stringt.ads, style.adb,
9905         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
9906         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
9907         switch-m.ads, switch.adb, switch.ads, system.ads,
9908         table.adb, table.ads, targparm.adb, targparm.ads,
9909         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
9910         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
9911         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
9912         ttypef.ads, ttypes.ads, types.adb, types.ads,
9913         uintp.adb, uintp.ads, uname.adb, uname.ads,
9914         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
9915         usage.adb, usage.ads, validsw.adb, validsw.ads,
9916         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
9917         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
9918         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
9919         formatting and other trivial changes from ACT.
9920
9921 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
9922
9923         * gigi.h, utils2.c (build_constructor):
9924         Rename gnat_build_constructor. Use build_constructor.
9925         * decl.c (gnat_to_gnu_entity)
9926         * trans.c (tree_transform, pos_to_constructor, extract_values)
9927         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
9928         (unchecked_convert)
9929         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
9930         (fill_vms_descriptor):
9931         Update to match.
9932
9933 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
9934
9935         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
9936         * misc.c (gnat_tree_size): New function.
9937         (LANG_HOOKS_TREE_SIZE): Override.
9938
9939 2003-04-03  Jason Merrill  <jason@redhat.com>
9940
9941         * misc.c (gnat_adjust_rli): #if 0.
9942
9943 2003-03-31   Geert Bosch <bosch@gnat.com>
9944
9945         PR ada/10020
9946         * link.c : Fix misspelled "const" keyword
9947
9948 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
9949
9950         PR c++/7086
9951         * utils2.c: Adjust calls to put_var_into_stack.
9952
9953 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
9954
9955         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
9956
9957 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
9958
9959         * misc.c (gnat_init): Update for new prototype.
9960
9961 2003-03-05  Olivier Hainque  <hainque@gnat.com>
9962
9963         ada/9961
9964         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
9965         warning, and fix return type for the IN_RTS && !SJLJ case.
9966
9967 2003-03-04  Tom Tromey  <tromey@redhat.com>
9968
9969         * Make-lang.in (ada.tags): New target.
9970
9971 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
9972
9973         ada/9911
9974         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
9975         wrapper, which name remains constant whatever underlying GCC
9976         scheme.
9977
9978         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
9979         the stable interface needed for a-except.
9980
9981 2003-03-02  Andreas Jaeger  <aj@suse.de>
9982
9983         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
9984         gnat_ug_wnt.texi: Regenerate.
9985
9986 2003-03-02  Laurent Guerby <guerby@acm.org>
9987
9988         * Makefile.in (install-gnatlib): Match previous change there
9989         so it works.
9990
9991 2003-02-28  Andreas Schwab  <schwab@suse.de>
9992
9993         * Make-lang.in (install-gnatlib): Change to ada directory before
9994         running make instead of using ada/Makefile directly.
9995
9996 2003-02-18  Ben Elliston  <bje@redhat.com>
9997
9998         Part of fix for PR ada/9406
9999         * gnat_ug.texi (Binder output file): Grammar fix.
10000
10001 2003-02-18  Ben Elliston  <bje@redhat.com>
10002
10003         PR other/7350
10004         * 5qtaprop.adb (Sleep): Fix typo in comment.
10005
10006 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
10007
10008         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
10009         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10010         gnat_ug_wnt.texi: Regenerate.
10011
10012 2003-02-03  Christian Cornelssen <ccorn@cs.tu-berlin.de>
10013
10014         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
10015         be created if necessary.
10016         (ada.install-common): Let $(DESTDIR)$(bindir) be created
10017         if necessary.  Remove erroneous and redundant gnatchop
10018         installation commands.  Test for gnatdll before attempting
10019         to install it.
10020         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
10021         and gnatdll from all plausible locations.
10022
10023 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
10024
10025         * utils2.c (build_unary_op): Don't check flag_volatile.
10026         * gnat_ug.texi: Remove -fvolatile from example.
10027         * gnat_ug_vxw.texi: Likewise.
10028
10029 2003-01-29  Laurent Guerby <guerby@acm.org>
10030
10031         PR ada/8344
10032         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
10033         * Makefile.in: match previous change.
10034         * Make-lang.in: match previous change.
10035
10036 2003-01-29      Joel Sherrill <joel@OARcorp.com>
10037
10038         * 5rosinte.ads: Add SIGXCPU.
10039         * 5rtpopsp.adb: New file.
10040         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
10041         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
10042         specific file 5rtpopsp.adb.
10043         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
10044         is likely needed for all newlib targets.
10045         * init.c: Add RTEMS specific version of __gnat_initialize().
10046
10047 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10048
10049         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
10050
10051 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10052
10053         * init.c (__gnat_error_handler): Make msg const.
10054
10055         * gmem.c (convert_addresses): Move declaration ...
10056         * adaint.h: ... here.
10057         * adaint.c (convert_addresses): Adapt addrs type to match
10058         prototype.
10059
10060         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
10061
10062 2003-01-24  Andreas Schwab  <schwab@suse.de>
10063
10064         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
10065         size_t to avoid warning.
10066
10067 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
10068
10069         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
10070
10071 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
10072
10073         * gnat_rm.texi: Remove RCS version number.
10074
10075         * ada-tree.h (union lang_tree_node): Add chain_next option.
10076
10077 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
10078
10079         * Make-lang.in (ada.install-info, ada.install-common,
10080         ada.uninstall): Prepend $(DESTDIR) to the destination
10081         directory in all (un)installation commands.
10082         * Makefile.in (install-gnatlib, install-rts): Ditto.
10083
10084 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
10085
10086         * gnat_rm.texi, gnat_ug.texi: Use @copying.
10087         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10088         gnat_ug_wnt.texi: Regenerate.
10089
10090 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
10091
10092         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
10093         only.
10094         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
10095         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
10096         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
10097         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
10098         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
10099         $(srcdir)/doc/include/gcc-common.texi.
10100
10101 2002-12-15   Geert Bosch <bosch@gnat.com>
10102
10103         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
10104
10105 2002-12-14   Geert Bosch <bosch@gnat.com>
10106
10107         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
10108         case of a body created for a Renaming_As_Body, on which
10109         conformance checks are not performed. Fixes PR ada/5690.
10110
10111 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
10112
10113         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
10114         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
10115         not already included.
10116         * Make-lang.in: Update dependencies.
10117
10118 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
10119         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
10120         solution to buffer overflow bug on GNU/Linux.
10121
10122 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
10123         Closes PR ada/5856 and PR ada/6919 !
10124         * bindgen.adb: Remove all references to Public_Version.
10125         * comperr.adb: Remove all references to Public_Version and
10126         GNATPRO_Version; correct bug reporting instructions.
10127         * comperr.ads: Change to match bug box.
10128         * gnatvsn.ads: Remove all references to Public version and
10129         GNATPRO version.
10130
10131 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
10132         PR ada/6919
10133         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
10134         GNU/Linux.
10135
10136         PR ada/6558
10137         * config-lang.in: Remove diff_excludes.
10138
10139 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
10140         PR ada/8358
10141         * trans.c (gnu_pending_elaboration_lists): New GC root.
10142         (build_unit_elab): Use..
10143
10144 2002-10-30   Geert Bosch <bosch@gnat.com>
10145         PR ada/6558
10146         * misc.c : Include optabs.h
10147
10148         * Make-lang.in (misc.o): Add dependency on optabs.h
10149
10150 2002-10-29   Geert Bosch <bosch@gnat.com>
10151         PR ada/6558
10152         * Make-lang.in (gnatbind): Depend on CONFIG_H
10153
10154 2002-10-29  Geert bosch  <bosch@gnat.com>
10155         PR ada/6558
10156         * misc.c: Unrevert misc.c (1.13)
10157
10158 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
10159
10160         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
10161         maintainership comments.
10162
10163 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
10164         PR ada/5904
10165         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
10166         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
10167         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
10168         7staprop.adb: Correct statements in comments about
10169         maintainership of GNAT.
10170
10171         PR ada/5904
10172         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
10173         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
10174         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
10175         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
10176         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
10177         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
10178         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
10179         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
10180         comments about maintainership of GNAT.
10181
10182         PR ada/6919 (forward port of patch for PR ada/5904)
10183         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
10184         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
10185         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
10186         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
10187         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
10188         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
10189         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
10190         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
10191         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
10192         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
10193         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
10194         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
10195         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
10196         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
10197         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
10198         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
10199         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
10200         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
10201         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
10202         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
10203         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
10204         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
10205         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
10206         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
10207         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
10208         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
10209         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
10210         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
10211         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
10212         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
10213         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
10214         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
10215         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
10216         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
10217         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
10218         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
10219         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
10220         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
10221         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
10222         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
10223         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
10224         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
10225         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
10226         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
10227         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
10228         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
10229         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
10230         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
10231         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
10232         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
10233         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
10234         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
10235         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
10236         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
10237         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
10238         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
10239         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
10240         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
10241         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
10242         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
10243         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
10244         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
10245         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
10246         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
10247         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
10248         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
10249         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
10250         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
10251         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
10252         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
10253         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
10254         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
10255         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
10256         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
10257         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
10258         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
10259         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
10260         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
10261         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
10262         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
10263         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
10264         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
10265         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
10266         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
10267         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
10268         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
10269         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
10270         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
10271         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
10272         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
10273         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
10274         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
10275         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
10276         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
10277         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
10278         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
10279         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
10280         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
10281         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
10282         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
10283         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
10284         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
10285         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
10286         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
10287         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
10288         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
10289         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
10290         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
10291         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
10292         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
10293         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
10294         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
10295         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
10296         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
10297         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
10298         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
10299         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
10300         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
10301         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
10302         par-endh.adb par-labl.adb par-load.adb par-prag.adb
10303         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
10304         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
10305         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
10306         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
10307         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
10308         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
10309         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
10310         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
10311         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
10312         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
10313         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
10314         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
10315         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
10316         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
10317         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
10318         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
10319         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
10320         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
10321         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
10322         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
10323         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
10324         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
10325         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
10326         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
10327         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
10328         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
10329         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
10330         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
10331         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
10332         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
10333         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
10334         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
10335         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
10336         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
10337         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
10338         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
10339         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
10340         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
10341         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
10342         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
10343         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
10344         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
10345         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
10346         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
10347         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
10348         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
10349         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
10350         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
10351         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
10352         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
10353         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
10354         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
10355         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
10356         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
10357         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
10358         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
10359         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
10360         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
10361         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
10362         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
10363         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
10364         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
10365         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
10366         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
10367         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
10368         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
10369         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
10370         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
10371         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
10372         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
10373         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
10374         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
10375         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
10376         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
10377         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
10378         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
10379         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
10380         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
10381         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
10382         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
10383         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
10384         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
10385         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
10386         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
10387         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
10388         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
10389         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
10390         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
10391         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
10392         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
10393         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
10394         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
10395         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
10396         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
10397         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
10398         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
10399         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
10400         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
10401         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
10402         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
10403         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
10404         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
10405         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
10406         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
10407         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
10408         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
10409         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
10410         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
10411         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
10412         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
10413         stringt.ads stringt.h style.adb style.ads stylesw.adb
10414         stylesw.ads switch.adb switch.ads sysdep.c system.ads
10415         table.adb table.ads targparm.adb targparm.ads targtyps.c
10416         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
10417         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
10418         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
10419         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
10420         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
10421         usage.ads utils.c utils2.c validsw.adb validsw.ads
10422         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
10423         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
10424         xtreeprs.adb: Correct statements in comments about maintainership
10425         of GNAT.
10426
10427 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
10428
10429         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
10430         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
10431         * gnatvsn.ads: Gnat_Version_String is now a function.
10432         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
10433         copy the C version_string into a String and return it.
10434         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
10435         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
10436         Remove pragma Ident (Gnat_Version_String).  If this was the
10437         sole use of package Gnatvsn, remove the with statement too.
10438         * gnat1drv.adb: Tweak -gnatv output.
10439
10440 2002-09-17  Richard Henderson  <rth@redhat.com>
10441
10442         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
10443         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
10444         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
10445         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
10446         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
10447         and real_2expN instead of a loop.
10448         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
10449         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
10450
10451 2002-08-25  Andre Leis <a.leis@gmx.net>
10452             David Billinghurst (David.Billinghurst@riotinto.com>
10453
10454         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
10455
10456 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10457
10458         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
10459         Remove $(CONFIG_H) dependency.
10460
10461 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
10462
10463         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
10464
10465 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10466
10467         * adadecode.c (ada_demangle): Use xstrdup in lieu of
10468         xmalloc/strcpy.
10469         * misc.c (gnat_decode_option): Likewise.
10470
10471 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
10472
10473         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
10474         function approach did not work well because of a side effect (the
10475         function call could reallocate the table which was being indexed
10476         using its result). Fixes ada/4851. [RESURRECTED]
10477
10478 2002-07-01  Roger Sayle  <roger@eyesopen.com>
10479
10480         * ada/utils.c (builtin_function): Accept an additional parameter.
10481
10482 2002-06-28  Andreas Jaeger  <aj@suse.de>
10483
10484         PR ada/7144
10485         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
10486         <adi@thur.de>.
10487
10488 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10489
10490         * Makefile.in (SHELL): Set to @SHELL@.
10491
10492 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10493
10494         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
10495         array size calculation.
10496
10497 2002-06-04  Andreas Jaeger  <aj@suse.de>
10498
10499         * Make-lang.in (gnatbind): Readd rule that has been lost in last
10500         patch.
10501
10502 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
10503
10504         Merge from pch-branch:
10505
10506         * config-lang.in (gtfiles): Add ada-tree.h.
10507         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
10508         (SET_TYPE_MODULUS): New.
10509         (SET_TYPE_INDEX): New.
10510         (SET_TYPE_DIGITS_VALUE): New.
10511         (SET_TYPE_RM_SIZE): New.
10512         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
10513         (SET_TYPE_ADA_SIZE): New.
10514         (SET_TYPE_ACTUAL_BOUNDS): New.
10515         (SET_DECL_CONST_CORRESPONDING_VAR): New.
10516         (SET_DECL_ORIGINAL_FIELD): New.
10517         (TREE_LOOP_ID): Correct typo.
10518         * decl.c: Use new macros.
10519         * utils.c: Include debug.h, use new macros.
10520         * utils2.c: Use new macros.
10521
10522         * ada-tree.h: Update all macros for new tree description.
10523         (struct tree_loop_id): New.
10524         (union lang_tree_node): New.
10525         (struct lang_decl): New.
10526         (struct lang_type): New.
10527         * misc.c (gnat_mark_tree): Delete.
10528         (LANG_HOOKS_MARK_TREE): Delete.
10529         * trans.c (tree_transform): No longer any need to cast
10530         for TREE_LOOP_ID.
10531
10532         * utils.c (struct language_function): New dummy structure.
10533
10534         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
10535         (misc.o): Likewise.
10536         (utils.o): Likewise; also gtype-ada.h.
10537         * Make-lang.in (gnat1): Add dependency on s-gtype.
10538         (gnatbind): Add dependency on $(CONFIG_H).
10539         * utils.c: Correct last #include.
10540         (stuct e_stack): Remove unnecessary 'static'.
10541         (mark_e_stack): Remove unused prototype.
10542
10543         * scn-nlit.adb: Remove whitespace after version number to
10544         keep lines under 80 chars.
10545         * snames.adb: Likewise.
10546         * treepr.ads: Likewise.
10547
10548         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
10549         (misc.o): Likewise.
10550         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
10551         * config-lang.in (gtfiles): New.
10552         * decl.c: Use gengtype for roots.
10553         * gigi.h: Use gengtype for roots.
10554         * trans.c: Use gengtype for roots.
10555         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
10556
10557 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
10558
10559         * misc.c (gnat_init): Adjust setting of internal_error_function.
10560
10561 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
10562
10563         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
10564         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10565         gnat_ug_wnt.texi: Regenerate.
10566
10567 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
10568
10569         * 5ntaprop.adb (with System.OS_Primitives): Remove.
10570
10571         * cstreams.c (max_path_len): Move from here ...
10572         * adaint.c (__gnat_max_path_len): ... to here.
10573         * adaint.c (__gnat_max_path_len): Declare.
10574         * g-dirope.adb (Max_Path): Adjust.
10575         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
10576         * i-cstrea.ads (max_path_len): Adjust.
10577         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
10578         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
10579
10580         * Makefile.in, Make-lang.in: Documentation is now built in
10581         Make-lang.in.  Store Info and generated Texinfo files in the
10582         source directory.
10583         * gnat_ug.texi: Remove CVS keywords, correct version number.
10584         Set file name correctly.
10585
10586         * gnat_ug_*.texi: Add.
10587         * .cvsignore: Ignore generated Texinfo files.
10588
10589 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
10590
10591         * ada.h: Add MI guard macro.
10592         (SUBTYPE): Define constants with an anonymous enum, not static
10593         const variables.
10594         (IN): Cast constants to appropriate type before use.
10595
10596 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
10597
10598         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
10599         (experimental)".
10600
10601 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10602
10603         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
10604         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
10605         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
10606         (ALL_ADA_CFLAGS): Likewise.
10607         (ADA_INCLUDES): Likewise.
10608         Adapt for new working dir.
10609         (GNATBIND): Use Makefile.in version.
10610         (.SUFFIXES): Copy from Makefile.in.
10611         (ada-warn): Define.
10612         (.adb.o, .ads.o): Copy from Makefile.in.
10613         Added $(OUTPUT_OPTION).
10614         (GNAT1_C_OBJS): Moved from Makefile.in.
10615         Prefix with ada subdir.
10616         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
10617         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
10618         Adapt for new working dir.
10619         (EXTRA_GNATBIND_OBJS): Likewise.
10620         (ADA_BACKEND): Moved from Makefile.in.
10621         Renamed to avoid conflict with global BACKEND.
10622         Use that one.
10623         (TARGET_ADA_SRCS): Moved from Makefile.in.
10624         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
10625         Use ADA_BACKEND.
10626         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
10627         (ada_extra_files): Moved from Makefile.in.
10628         Prefix with ada subdir.
10629         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
10630         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
10631         (ada/nmake.ads): Likewise.
10632         (update-sources): Moved from Makefile.in.
10633         Prefix with ada subdir.
10634         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
10635         (ADA_TREE_H): Likewise.
10636         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
10637         (ada/memtrack.o): Likewise.
10638         (ada/adadecode.o): Likewise.
10639         Update dependencies.
10640         (ada/adaint.o): New.
10641         (ada/argv.o): Moved from Makefile.in.
10642         Prefix with ada subdir.
10643         Update dependencies.
10644         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
10645         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
10646         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
10647         Prefix with ada subdir.
10648         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
10649         (GNAT DEPENDENCIES): Regenerate.
10650         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
10651         toplevel Makefile.in.
10652         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
10653         (TARGET_ADA_SRCS): Removed.
10654         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
10655         (GNATBIND_OBJS): Likewise.
10656         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
10657         (BACKEND): Removed.
10658         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
10659         (TREE_H): Likewise.
10660         (ada_extra_files): Likewise.
10661         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
10662         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
10663         (update-sources): Likewise.
10664         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
10665         (ADA_TREE_H): Likewise.
10666         (adadecoce.o): Likewise.
10667         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
10668         (GNAT DEPENDENCIES): Likewise.
10669
10670 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10671
10672         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
10673         * Makefile.in: Likewise.
10674
10675 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10676
10677         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
10678         Restore $(CONFIG_H) and prefix.o dependencies.
10679         (ada.stage[1-4]): Depend on stage?-start.
10680
10681         * Makefile.in (b_gnatb.c): Depend on interfac.o.
10682
10683 2002-05-02  Jim Wilson  <wilson@redhat.com>
10684
10685         * utils.c (finish_record_type): Change record_size to record_type.
10686
10687 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10688
10689         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
10690         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
10691         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
10692
10693 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
10694
10695         * misc.c (gnat_parse_file): Update.
10696
10697 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10698
10699         * misc.c (gnat_init): Don't set lang_attribute_common.
10700
10701 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
10702
10703         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
10704
10705 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
10706
10707         * gnat_ug.texi: New file.
10708
10709         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
10710         instead of gfdl.texi
10711
10712         * xgnatug.adb, ug_words: New files.
10713
10714         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
10715         gnat_rm and gnat-style manuals.
10716
10717 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
10718
10719         * gigi.h (incomplete_type_error): Remove.
10720         * utils.c (incomplete_type_error): Remove.
10721
10722 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
10723
10724         * trans.c (tree_transform): Add has_scope argument to
10725         expand_start_stmt_expr.
10726
10727 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10728
10729         * gigi.h (truthvalue_conversion): Rename.
10730         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
10731         * trans.c (tree_transform): Update.
10732         * utils2.c (truthvalue_conversion): Rename, update.
10733         (build_binary_op, build_unary_op): Update.
10734
10735 2002-04-04  Laurent Guerby  <guerby@acm.org>
10736
10737         * make.adb: Implement -margs, remove restriction about file name placement.
10738         * makeusg.adb: Documentation update.
10739         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
10740         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
10741
10742 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10743
10744         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
10745         (builtin_function): Similarly.
10746
10747 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10748
10749         * decl.c (gnat_to_gnu_entity): Update.
10750         * gigi.h (mark_addressable): Rename.
10751         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10752         * trans.c (tree_transform): Update.
10753         * utils.c (create_var_decl): Update.
10754         * util2.c (build_binary_op, build_unary_op,
10755         fill_vms_descriptor): Update.
10756         (mark_addressable): Rename, update.
10757
10758 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10759
10760         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
10761         Rename.
10762         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10763         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10764         * trans.c (tree_transform, convert_with_check): Update.
10765         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
10766         Rename.
10767
10768 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
10769
10770         * gigi.h (finish_incomplete_decl): Rename.
10771         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
10772         * utils.c (gnat_init_decl_processing): Don't set hook.
10773         (finish_incomplete_decl): Rename.
10774
10775 2002-03-29  Andreas Schwab  <schwab@suse.de>
10776
10777         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
10778         directory.
10779
10780 2001-03-28  Robert Dewar <dewar@gnat.com>
10781
10782         * checks.ads:
10783         (Remove_Checks): New procedure
10784
10785         * checks.adb:
10786         (Remove_Checks): New procedure
10787
10788         * exp_util.adb:
10789         Use new Duplicate_Subexpr functions
10790         (Duplicate_Subexpr_No_Checks): New procedure
10791         (Duplicate_Subexpr_No_Checks_Orig): New procedure
10792         (Duplicate_Subexpr): Restore original form (checks duplicated)
10793         (Duplicate_Subexpr): Call Remove_Checks
10794
10795         * exp_util.ads:
10796         (Duplicate_Subexpr_No_Checks): New procedure
10797         (Duplicate_Subexpr_No_Checks_Orig): New procedure
10798         Add 2002 to copyright notice
10799
10800         * sem_util.adb: Use new Duplicate_Subexpr functions
10801
10802         * sem_eval.adb:
10803         (Eval_Indexed_Component): This is the place to call
10804         Constant_Array_Ref and to replace the value. We simply merge
10805         the code of this function in here, since it is now no longer
10806         used elsewhere. This fixes the problem of the back end not
10807         realizing we were clever enough to see that this was
10808         constant.
10809         (Expr_Val): Remove call to Constant_Array_Ref
10810         (Expr_Rep_Val): Remove call to Constant_Array_Ref
10811         Minor reformatting
10812         (Constant_Array_Ref): Deal with string literals (patch
10813         suggested by Zack Weinberg on the gcc list)
10814
10815 2001-03-28  Ed Schonberg <schonber@gnat.com>
10816
10817         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
10818         Duplicate_Subexpr_Move_Checks.
10819
10820         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
10821         Duplicate_Subexpr_Move_Checks.
10822
10823         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
10824         value of array exists before retrieving it (it may a private
10825         protected component in a function).
10826
10827 2002-03-28   Geert Bosch <bosch@gnat.com>
10828
10829         * prj-pp.adb : New file.
10830
10831         * prj-pp.ads : New file.
10832
10833 2002-03-28  Andreas Jaeger  <aj@suse.de>
10834
10835         * Makefile.in (stamp-sdefault): Fix path for Makefile.
10836
10837 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
10838
10839         * misc.c (gnat_expand_expr): Move prototype.
10840
10841 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10842
10843         * misc.c (insert_default_attributes): Remove.
10844
10845 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10846
10847         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10848         (gnat_init): Don't set hook.
10849         (gnat_expand_expr): Fix prototype.
10850
10851 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10852
10853         * misc.c (ggc_p): Remove.
10854
10855 2002-03-27  Geert Bosch  <bosch@gnat.com>
10856
10857         * prj-makr.ads, prj-makr.adb : New files.
10858
10859 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
10860
10861         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
10862         (lang_mark_tree): Make static, rename.
10863
10864 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
10865
10866         * misc.c (maybe_build_cleanup): Remove.
10867
10868 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10869
10870         * gigi.h (yyparse): Remove.
10871
10872 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
10873
10874         * gnat_rm.texi: Sync with ACT version.
10875           (From Ben Brosgol <brosgol@gnat.com>)
10876
10877 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
10878
10879         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
10880         (gnat_init): Remove old hook.
10881
10882 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
10883
10884         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
10885         (yyparse): Rename gnat_parse_file.
10886
10887 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
10888
10889         Delete all lines containing "$Revision:".
10890         * xeinfo.adb: Don't look for revision numbers.
10891         * xnmake.adb: Likewise.
10892         * xsinfo.adb: Likewise.
10893         * xsnames.adb: Likewise.
10894         * xtreeprs.adb: Likewise.
10895
10896 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10897
10898         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
10899         gnat_tree_code_name): Delete.
10900         (tree_code_type, tree_code_length, tree_code_name): Define.
10901         (gnat_init): Don't try to copy into the various tree_code
10902         arrays.
10903
10904 2002-03-11  Richard Henderson  <rth@redhat.com>
10905
10906         * Makefile.in (.NOTPARALLEL): Add fake tag.
10907
10908 2002-03-07  Geert Bosch  <bosch@gnat.com>
10909
10910         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
10911         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
10912         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
10913         switch-m.adb, switch-m.ads : New files.
10914
10915 2002-03-07  Geert Bosch  <bosch@gnat.com>
10916
10917         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
10918         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
10919         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
10920         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
10921         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
10922         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
10923         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
10924         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
10925         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
10926         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
10927         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
10928         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
10929         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
10930         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
10931         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
10932         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
10933         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
10934         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
10935         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
10936         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
10937         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
10938         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
10939         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
10940         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
10941         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
10942         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
10943         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
10944         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
10945         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
10946         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
10947         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
10948         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
10949         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
10950         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
10951         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
10952         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
10953         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
10954         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
10955         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
10956         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
10957         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
10958         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
10959         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
10960         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
10961         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
10962         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
10963         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
10964         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
10965         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
10966         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
10967         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
10968         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
10969         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
10970         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
10971         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
10972         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
10973         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
10974         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
10975         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
10976         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
10977         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
10978         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
10979         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
10980         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
10981         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
10982         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
10983         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
10984         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
10985         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
10986         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
10987         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
10988         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
10989         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
10990         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
10991         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
10992         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
10993         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
10994         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
10995         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
10996         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
10997         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
10998         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
10999         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
11000         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
11001         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
11002         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
11003         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
11004         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
11005         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
11006         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
11007         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
11008         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
11009         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
11010         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
11011         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
11012         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
11013         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
11014
11015         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
11016         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
11017         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
11018         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
11019
11020         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
11021         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
11022
11023         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
11024         to mdll-fil.ad[bs] and mdll-util.ad[bs]
11025
11026         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
11027         from mdllfile.ad[bs] and mdlltool.ad[bs]
11028
11029 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11030
11031         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
11032         lieu of explicit sizeof/sizeof.
11033
11034 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11035
11036         * misc.c (copy_lang_decl): Remove.
11037
11038 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11039
11040         * misc.c: Delete traditional-mode-related code copied from the
11041         C front end but not used, or used only to permit the compiler
11042         to link.
11043
11044 2002-02-07  Richard Henderson  <rth@redhat.com>
11045
11046         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
11047         * adaint.h (__gnat_to_gm_time): Update prototype.
11048
11049 2002-01-30  Richard Henderson  <rth@redhat.com>
11050
11051         * trans.c (tree_transform) [N_Loop_Statement]: Use
11052         expand_exit_loop_top_cond.
11053
11054 2001-12-23  Richard Henderson  <rth@redhat.com>
11055
11056         * utils.c (end_subprog_body): Push GC context around
11057         rest_of_compilation for nested functions.
11058
11059 2001-12-23  Richard Henderson  <rth@redhat.com>
11060
11061         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
11062
11063 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
11064
11065         * gnat-style.texi (Declarations and Types): Remove ancient style
11066         rule which was mandated by code generation issues.
11067
11068         * gnat-style.texi (header): Add @dircategory, @direntry.
11069         (title page): Remove date.
11070         (general) Add @./@: where approriate, and two spaces after the
11071         full stop at the end of a sentence.  Use @samp markup when
11072         referring concrete lexical entities (keywords, attribute names
11073         etc.), and @syntax for ARM grammar elements. Use @r for English
11074         text in comments.  Use @emph for emphasis.  Change "if-statements"
11075         etc. to "if statements" (without @samp). Break long lines.  Make
11076         casing of section names consistent.
11077         (Identifiers): Use @samp markup for variable names.
11078         (Comments): Use @samp markup for comment characters. Line-end
11079         comments may follow any Ada code, not just statements.  Fix
11080         misspelling of "Integer" as "integer".
11081         (Loop statements): Do not use variable name "I", use "J".
11082         (Subprogram Declarations): Document alignment.
11083         (Subprogram Bodies, Block statements): Document empty line before
11084         "begin".
11085
11086 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
11087
11088         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
11089         function approach did not work well because of a side effect (the
11090         function call could reallocate the table which was being indexed
11091         using its result). Fixes ada/4851.
11092
11093 2001-12-19  Robert Dewar <dewar@gnat.com>
11094
11095         * bindgen.adb: Minor reformatting
11096
11097         * cstand.adb: Minor reformatting
11098
11099         * fmap.adb: Minor reformatting
11100         Change name from Add for Add_To_File_Map (Add is much too generic)
11101         Change Path_Name_Of to Mapped_Path_Name
11102         Change File_Name_Of to Mapped_File_Name
11103         Fix copyright dates in header
11104
11105         * fmap.ads:
11106         Change name from Add for Add_To_File_Map (Add is much too generic)
11107         Change Path_Name_Of to Mapped_Path_Name
11108         Change File_Name_Of to Mapped_File_Name
11109         Fix copyright dates in header
11110
11111         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
11112         Add use clause for Fmap.
11113
11114         * make.adb: Minor reformatting
11115
11116         * osint.adb: Minor reformatting.  Change of names in Fmap.
11117         Add use clause for Fmap.
11118
11119         * prj-env.adb: Minor reformatting
11120
11121         * prj-env.ads: Minor reformatting
11122
11123         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
11124         error found (there were odd exceptions to this general rule in
11125         -gnatec/-gnatem processing)
11126
11127 2001-12-19  Olivier Hainque <hainque@gnat.com>
11128
11129         * raise.c (__gnat_eh_personality): Exception handling personality
11130         routine for Ada.  Still in rough state, inspired from the C++ version
11131         and still containing a bunch of debugging artifacts.
11132         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
11133         inspired from the C++ library.
11134
11135         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
11136         exception handling integration.
11137
11138 2001-12-19  Arnaud Charlet <charlet@gnat.com>
11139
11140         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
11141         (HIE_SOURCES): Add s-secsta.ad{s,b}.
11142         (HIE_OBJS): Add s-fat*.o
11143         (RAVEN_SOURCES): Remove files that are no longer required. Add
11144         interrupt handling files.
11145         (RAVEN_MOD): Removed, no longer needed.
11146
11147 2001-12-19  Robert Dewar <dewar@gnat.com>
11148
11149         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
11150         Add 2001 to copyright date
11151
11152         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
11153         need to force universal inlining for these cases.
11154
11155 2001-12-19  Arnaud Charlet <charlet@gnat.com>
11156
11157         * s-taprob.adb: Minor clean ups so that this unit can be used in
11158         Ravenscar HI.
11159
11160         * exp_ch7.adb: Allow use of secondary stack in HI mode.
11161         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
11162
11163 2001-12-19  Vincent Celier <celier@gnat.com>
11164
11165         * prj-tree.ads (Project_Node_Record): Add comments for components
11166         Pkg_Id and Case_Insensitive.
11167
11168 2001-12-19  Pascal Obry <obry@gnat.com>
11169
11170         * g-socket.adb: Minor reformatting. Found while reading code.
11171
11172 2001-12-19  Robert Dewar <dewar@gnat.com>
11173
11174         * prj-tree.ads: Minor reformatting
11175
11176 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
11177
11178         * config-lang.in (diff_excludes): Remove.
11179
11180 2001-12-17  Ed Schonberg <schonber@gnat.com>
11181
11182         * sem_res.adb (Resolve_Selected_Component): do not generate a
11183         discriminant check if the selected component is a component of
11184         the argument of an initialization procedure.
11185
11186         * trans.c (tree_transform, case of arithmetic operators): If result
11187         type is private, the gnu_type is the base type of the full view,
11188         given that the full view itself may be a subtype.
11189
11190 2001-12-17  Robert Dewar <dewar@gnat.com>
11191
11192         * sem_res.adb: Minor reformatting
11193
11194         * trans.c (tree_transform, case N_Real_Literal): Add missing third
11195         parameter in call to Machine (unknown horrible effects from this
11196         omission).
11197
11198         * urealp.h: Add definition of Round_Even for call to Machine
11199         Add third parameter for Machine
11200
11201 2001-12-17  Ed Schonberg <schonber@gnat.com>
11202
11203         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
11204         predefined units in No_Run_Time mode.
11205
11206 2001-12-17  Richard Kenner <kenner@gnat.com>
11207
11208         * misc.c (insn-codes.h): Now include.
11209
11210 2001-12-17  Olivier Hainque <hainque@gnat.com>
11211
11212         * a-except.adb: Preparation work for future integration of the GCC 3
11213         exception handling mechanism
11214         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
11215         to factorize previous code sequences and make them externally callable,
11216         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
11217         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
11218         Use the new notification routines.
11219
11220 2001-12-17  Emmanuel Briot <briot@gnat.com>
11221
11222         * prj-tree.ads (First_Choice_Of): Document the when others case
11223
11224 2001-12-17  Arnaud Charlet <charlet@gnat.com>
11225
11226         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
11227         HI-E mode, in order to support Ravenscar profile properly.
11228
11229         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
11230         mode on 32 bits targets.
11231
11232 2001-12-17  Vincent Celier <celier@gnat.com>
11233
11234         * fmap.adb: Initial version.
11235
11236         * fmap.ads: Initial version.
11237
11238         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
11239         If search is successfully done, add to mapping.
11240
11241         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
11242
11243         * make.adb:
11244         (Gnatmake): Add new local variable Mapping_File_Name.
11245          Create mapping file when using project file(s).
11246          Delete mapping file before exiting.
11247
11248         * opt.ads (Mapping_File_Name): New variable
11249
11250         * osint.adb (Find_File): Use path name found in mapping, if any.
11251
11252         * prj-env.adb (Create_Mapping_File): New procedure
11253
11254         * prj-env.ads (Create_Mapping_File): New procedure.
11255
11256         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
11257         (Mapping_File)
11258
11259         * usage.adb: Add entry for new switch -gnatem.
11260
11261         * Makefile.in: Add dependencies for fmap.o.
11262
11263 2001-12-17  Ed Schonberg <schonber@gnat.com>
11264
11265         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
11266         is a package instantiation rewritten as a package body.
11267         (Install_Withed_Unit): Undo previous change, now redundant.
11268
11269 2001-12-17  Gary Dismukes <dismukes@gnat.com>
11270
11271         * layout.adb:
11272         (Compute_Length): Move conversion to Unsigned to callers.
11273         (Get_Max_Size): Convert Len expression to Unsigned after calls to
11274         Compute_Length and Determine_Range.
11275         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
11276         Compute_Length and Determine_Range.
11277         Above changes fix problem with length computation for supernull arrays
11278         where Max (Len, 0) wasn't getting applied due to the Unsigned
11279         conversion used by Compute_Length.
11280
11281 2001-12-17  Arnaud Charlet <charlet@gnat.com>
11282
11283         * rtsfind.ads:
11284         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
11285          System.Secondary_Stack.
11286         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
11287          in HI-E mode.
11288         Remove unused entity RE_Exception_Data.
11289
11290         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
11291
11292         * rident.ads (No_Secondary_Stack): New restriction.
11293
11294 2001-12-17  Joel Brobecker <brobecke@gnat.com>
11295
11296         * gnat_rm.texi: Fix minor typos. Found while reading the section
11297         regarding "Bit_Order Clauses" that was sent to a customer.
11298         Very interesting documentation!
11299
11300 2001-12-17  Robert Dewar <dewar@gnat.com>
11301
11302         * sem_case.adb (Choice_Image): Avoid creating improper character
11303         literal names by using the routine Set_Character_Literal_Name. This
11304         fixes bombs in certain error message cases.
11305
11306 2001-12-17  Arnaud Charlet <charlet@gnat.com>
11307
11308         * a-reatim.adb: Minor reformatting.
11309
11310 2001-12-17  Ed Schonberg <schonber@gnat.com>
11311
11312         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
11313         case where the formal is an extension of another formal in the current
11314         unit or in a parent generic unit.
11315
11316 2001-12-17  Arnaud Charlet <charlet@gnat.com>
11317
11318         * s-tposen.adb: Update comments.  Minor reformatting.
11319         Minor code clean up.
11320
11321         * s-tarest.adb: Update comments.  Minor code reorganization.
11322
11323 2001-12-17  Gary Dismukes <dismukes@gnat.com>
11324
11325         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
11326         when Java_VM.
11327
11328 2001-12-17  Robert Dewar <dewar@gnat.com>
11329
11330         * exp_attr.adb: Minor reformatting
11331
11332 2001-12-17  Ed Schonberg <schonber@gnat.com>
11333
11334         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
11335         derivations nested within a child unit: verify that the parent
11336         type is declared in an outer scope.
11337
11338 2001-12-17  Robert Dewar <dewar@gnat.com>
11339
11340         * sem_ch12.adb: Minor reformatting
11341
11342 2001-12-17  Ed Schonberg <schonber@gnat.com>
11343
11344         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
11345         warning if current unit is a predefined one, from which bodies may
11346         have been deleted.
11347
11348 2001-12-17  Robert Dewar <dewar@gnat.com>
11349
11350         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
11351         Fix header format. Add 2001 to copyright date.
11352
11353         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
11354         which caused CE during compilation if checks were enabled.
11355
11356 2001-12-17  Vincent Celier <celier@gnat.com>
11357
11358         * make.adb:
11359         (Switches_Of): New function
11360         (Test_If_Relative_Path): New procedure
11361         (Add_Switches): Use new function Switches_Of
11362         (Collect_Arguments_And_Compile): Use new function Switches_Of.
11363         When using a project file, test if there are any relative
11364         search path. Fail if there are any.
11365         (Gnatmake): Only add switches for the primary directory when not using
11366         a project file. When using a project file, change directory to the
11367         object directory of the main project file. When using a project file,
11368         test if there are any relative search path. Fail if there are any.
11369         When using a project file, fail if specified executable is relative
11370         path with directory information, and prepend executable, if not
11371         specified as an absolute path, with the exec directory.  Make sure
11372         that only one -o switch is transmitted to the linker.
11373
11374         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
11375
11376         * prj-nmsc.adb:
11377         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
11378         when using a non standard naming scheme.
11379         (Check_Ada_Naming_Scheme): Make sure that error messages
11380         do not raise exceptions.
11381         (Is_Illegal_Append): Return True if there is no dot in the suffix.
11382         (Language_Independent_Check): Check the exec directory.
11383
11384         * prj.adb (Project_Empty): Add new component Exec_Directory
11385
11386         * prj.ads:
11387         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
11388         (Project_Data): Add component Exec_Directory
11389
11390         * snames.adb: Updated to match snames.ads revision 1.215
11391
11392         * snames.ads: Added Exec_Dir
11393
11394 2001-12-17  Robert Dewar <dewar@gnat.com>
11395
11396         * make.adb: Minor reformatting
11397
11398         * prj-nmsc.adb: Minor reformatting
11399
11400         * snames.adb: Updated to match snames.ads
11401
11402         * snames.ads: Alphebetize entries for project file
11403
11404 2001-12-17  Ed Schonberg <schonber@gnat.com>
11405
11406         * trans.c (process_freeze_entity): Do nothing if the entity is a
11407         subprogram that was already elaborated.
11408
11409 2001-12-17  Richard Kenner <kenner@gnat.com>
11410
11411         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
11412         and Esize if object is referenced via pointer.
11413
11414 2001-12-17  Ed Schonberg <schonber@gnat.com>
11415
11416         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
11417         is discrete before analyzing choices.
11418
11419 2001-12-17  Joel Brobecker <brobecke@gnat.com>
11420
11421         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
11422         containing the name of the Ada Main Program. This string is mainly
11423         intended for the debugger.
11424         (Gen_Output_File_C): Do the equivalent change when generating a C file.
11425
11426 2001-12-17  Robert Dewar <dewar@gnat.com>
11427
11428         * ali.adb: Set new Dummy_Entry field in dependency entry
11429
11430         * ali.ads: Add Dummy_Entry field to source dependency table
11431
11432         * bcheck.adb (Check_Consistency): Ignore dummy D lines
11433
11434         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
11435
11436         * lib-writ.ads: Document dummy D lines for missing files.
11437
11438         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
11439
11440 2001-12-17  Robert Dewar <dewar@gnat.com>
11441
11442         * ali.adb: Type reference does not reset current file.
11443
11444         * ali.adb: Recognize and scan renaming reference
11445
11446         * ali.ads: Add spec for storing renaming references.
11447
11448         * lib-xref.ads: Add documentation for handling of renaming references
11449
11450         * lib-xref.adb: Implement output of renaming reference.
11451
11452         * checks.adb:
11453         (Determine_Range): Document local variables
11454         (Determine_Range): Make sure Hbound is initialized. It looks as though
11455          there could be a real problem here with an uninitialized reference
11456          to Hbound, but no actual example of failure has been found.
11457
11458 2001-12-17  Laurent Pautet <pautet@gnat.com>
11459
11460         * g-socket.ads:
11461         Fix comment of Shutdown_Socket and Close_Socket. These functions
11462         should not fail silently because if they are called twice, this
11463         probably means that there is a race condition in the user program.
11464         Anyway, this behaviour is consistent with the rest of this unit.
11465         When an error occurs, an exception is raised with the error message
11466         as exception message.
11467
11468 2001-12-17  Robert Dewar <dewar@gnat.com>
11469
11470         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
11471         that it happens before modification of Sloc values for -gnatD.
11472
11473         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
11474         so that it happens before modification of Sloc values for -gnatD.
11475
11476         * switch.adb: Minor reformatting
11477
11478 2001-12-15  Richard Henderson  <rth@redhat.com>
11479
11480         * sem_ch7.adb: Wrap comment.
11481
11482 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
11483
11484         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
11485         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
11486         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
11487         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
11488         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
11489         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
11490         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
11491         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
11492         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
11493         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
11494         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
11495         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
11496         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
11497         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
11498         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
11499         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
11500         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
11501         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
11502         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
11503         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
11504         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
11505         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
11506         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
11507         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
11508         spelling errors.
11509
11510 2001-12-14  Vincent Celier <celier@gnat.com>
11511
11512         * osint.adb(Create_Debug_File): When an object file is specified,
11513         put the .dg file in the same directory as the object file.
11514
11515 2001-12-14  Robert Dewar <dewar@gnat.com>
11516
11517         * osint.adb: Minor reformatting
11518
11519         * lib-xref.adb (Output_Instantiation): New procedure to generate
11520         instantiation references.
11521
11522         * lib-xref.ads: Add documentation of handling of generic references.
11523
11524         * ali.adb (Read_Instantiation_Ref): New procedure to read
11525         instantiation references
11526
11527         * ali.ads: Add spec for storing instantiation references
11528
11529         * bindusg.adb: Minor reformatting
11530
11531         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11532
11533         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11534
11535         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11536
11537         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11538
11539         * csets.ads:
11540         Fix header format
11541         Add 2001 to copyright date
11542         Add entry for Latin-5 (Cyrillic ISO-8859-5)
11543
11544 2001-12-14  Matt Gingell <gingell@gnat.com>
11545
11546         * adaint.c: mktemp is a macro on Lynx and can not be used as an
11547         expression.
11548
11549 2001-12-14  Richard Kenner <kenner@gnat.com>
11550
11551         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
11552         if operand is CONSTRUCTOR.
11553
11554 2001-12-14  Ed Schonberg <schonber@gnat.com>
11555
11556         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
11557         before emiting check on right-hand side, so that exception information
11558         is correct.
11559
11560 2001-12-14  Richard Kenner <kenner@gnat.com>
11561
11562         * utils.c (create_var_decl): Throw away initializing expression
11563         if just annotating types and non-constant.
11564
11565 2001-12-14  Vincent Celier <celier@gnat.com>
11566
11567         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
11568         Default_Ada_...
11569
11570         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
11571         Remove functions.
11572         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
11573
11574         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
11575         Remove functions.
11576         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
11577
11578 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
11579
11580         * ChangeLog: Remove piece of diff output.
11581
11582 2001-12-14  Geert Bosch <bosch@gnat.com>
11583
11584         * config-lang.in: Update copyright notice
11585
11586         * layout.adb: Remove commented out code.
11587
11588         * mdllfile.ads: Update copyright notice. Fix header format.
11589
11590         * sem_case.ads: Likewise.
11591
11592         * sem_ch3.adb: Minor reformatting.
11593
11594 2001-12-12  Geert Bosch <bosch@gnat.com>
11595
11596         * freeze.ads: Update copyright date.
11597
11598         * g-comlin.ads: Minor reformatting.
11599
11600         * gnat-style.texi: Fix typo.
11601
11602 2001-12-12  Geert Bosch <bosch@gnat.com>
11603
11604         *  einfo.h: Regenerate.
11605
11606 2001-12-12  Ed Schonberg <schonber@gnat.com>
11607
11608         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
11609         on known node types, rather than untyped fields. Further cleanups.
11610
11611 2001-12-12  Robert Dewar <dewar@gnat.com>
11612
11613         * sem_ch12.adb:
11614         (Save_Entity_Descendant): Minor comment update.
11615         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
11616          of an N_Attribute_Reference node. As per note below, this does not
11617         eliminate need for Associated_Node in attribute ref nodes.
11618         (Associated_Node): Documentation explicitly mentions attribute
11619         reference nodes, since this field is used in such nodes.
11620
11621         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
11622
11623 2001-12-12  Robert Dewar <dewar@gnat.com>
11624
11625         * s-stalib.adb: Add more comments on with statements being needed
11626
11627         * par-ch12.adb: Minor reformatting
11628
11629         * prj-dect.ads: Fix copyright header
11630
11631         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
11632         inputs fit in 32 bits, but the result still overflows.
11633
11634         * s-fatgen.ads: Minor comment improvement
11635
11636 2001-12-12  Ed Schonberg <schonber@gnat.com>
11637
11638         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
11639         formal derived type, look for an inherited component from the full
11640         view of the parent, if any.
11641
11642 2001-12-12  Robert Dewar <dewar@gnat.com>
11643
11644         * checks.ads (Apply_Alignment_Check): New procedure.
11645
11646         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
11647         ensure that the alignment of objects with address clauses is
11648         appropriate, and raise PE if not.
11649
11650         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
11651         Exp_Pakd.Known_Aligned_Enough
11652
11653         * mdllfile.ads: Minor reformatting
11654
11655         * mlib-fil.ads: Minor reformatting
11656
11657 2001-12-12  Ed Schonberg <schonber@gnat.com>
11658
11659         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
11660         fix to any component reference if enclosing record has non-standard
11661         representation.
11662
11663 2001-12-12  Vincent Celier <celier@gnat.com>
11664
11665         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
11666         Iteration
11667
11668 2001-12-12  Ed Schonberg <schonber@gnat.com>
11669
11670         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
11671         sem_attr.
11672
11673 2001-12-12  Robert Dewar <dewar@gnat.com>
11674
11675         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
11676
11677 2001-12-12  Emmanuel Briot <briot@gnat.com>
11678
11679         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
11680         and it adds dependencies to system.io.
11681
11682 2001-12-12  Pascal Obry <obry@gnat.com>
11683
11684         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
11685         variable name.
11686
11687 2001-12-11  Ed Schonberg <schonber@gnat.com>
11688
11689         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
11690         that is the parent of other generics, the instance body replaces the
11691         instance node.  Retrieve the instance of the spec, which is the one
11692         that is visible in clients and within the body.
11693
11694 2001-12-11  Vincent Celier <celier@gnat.com>
11695
11696         * gnatmain.adb: Initial version.
11697
11698         * gnatmain.ads: Initial version.
11699
11700         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
11701
11702         * snames.adb: Updated to match snames.ads.
11703
11704         * snames.ads: Added Gnatstub.
11705
11706 2001-12-11  Vincent Celier <celier@gnat.com>
11707
11708         * prj-attr.adb (Initialization_Data): Change name from
11709         Initialisation_Data.
11710
11711 2001-12-11  Emmanuel Briot <briot@gnat.com>
11712
11713         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
11714         + and * applied to backslashed expressions like \r.
11715
11716 2001-12-11  Vasiliy Fofanov <fofanov@gnat.com>
11717
11718         * g-os_lib.ads: String_List type added, Argument_List type is now
11719         subtype of String_List.
11720
11721 2001-12-11  Robert Dewar <dewar@gnat.com>
11722
11723         * g-os_lib.ads: Change copyright to FSF
11724         Add comments for String_List type
11725
11726 2001-12-11  Vincent Celier <celier@gnat.com>
11727
11728         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
11729         string to the buffer).
11730
11731 2001-12-11  Ed Schonberg <schonber@gnat.com>
11732
11733         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
11734         sem_attr.
11735
11736         * sem_attr.adb: Simplify previous fix for Address.
11737         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
11738         to avoid anomalies where the bound of the type appears to raise
11739         constraint error.
11740
11741 2001-12-11  Robert Dewar <dewar@gnat.com>
11742
11743         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
11744         handled.
11745
11746 2001-12-11  Ed Schonberg <schonber@gnat.com>
11747
11748         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
11749         renamed unit before checking for recursive instantiations.
11750
11751 2001-12-11  Emmanuel Briot <briot@gnat.com>
11752
11753         * prj.ads: Add comments for some of the fields.
11754
11755 2001-12-11  Robert Dewar <dewar@gnat.com>
11756
11757         * lib-xref.adb (Output_Refs): Don't output type references outside
11758         the main unit if they are not otherwise referenced.
11759
11760 2001-12-11  Ed Schonberg <schonber@gnat.com>
11761
11762         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
11763         code and diagnose additional illegal uses
11764
11765         * sem_util.adb (Is_Object_Reference): An indexed component is an
11766         object only if the prefix is.
11767
11768 2001-12-11  Vincent Celier <celier@gnat.com>
11769
11770         * g-diopit.adb: Initial version.
11771
11772         * g-diopit.ads: Initial version.
11773
11774         * g-dirope.adb:
11775         (Expand_Path): Avoid use of Unbounded_String
11776         (Find, Wildcard_Iterator): Moved to child package Iteration
11777
11778         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
11779
11780 2001-12-11  Robert Dewar <dewar@gnat.com>
11781
11782         * sem_attr.adb: Minor reformatting
11783
11784 2001-12-11  Ed Schonberg <schonber@gnat.com>
11785
11786         * sem_ch3.adb: Clarify some ???.
11787
11788 2001-12-11  Robert Dewar <dewar@gnat.com>
11789
11790         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
11791         Exp_Pakd.Known_Aligned_Enough
11792
11793         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
11794         version is moved to Exp_Ch13.
11795
11796 2001-12-11  Robert Dewar <dewar@gnat.com>
11797
11798         * einfo.ads: Minor reformatting
11799
11800         * exp_ch5.adb: Add comment for previous.change
11801
11802         * ali.adb: New interface for extended typeref stuff.
11803
11804         * ali.ads: New interface for typeref stuff.
11805
11806         * checks.adb (Apply_Alignment_Check): New procedure.
11807
11808         * debug.adb: Add -gnatdM for modified ALI output
11809
11810         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
11811
11812         * lib-xref.adb: Extend generation of <..> notation to cover
11813         subtype/object types. Note that this is a complete rewrite,
11814         getting rid of the very nasty quadratic algorithm previously
11815         used for derived type output.
11816
11817         * lib-xref.ads: Extend description of <..> notation to cover
11818         subtype/object types. Uses {..} for these other cases.
11819         Also use (..) for pointer types.
11820
11821         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
11822
11823         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
11824         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
11825
11826 2001-12-11  Vincent Celier <celier@gnat.com>
11827
11828         * gnatcmd.adb:
11829         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
11830         Changed /BIND_ONLY to /ACTIONS=BIND
11831         Changed /LINK_ONLY to /ACTIONS=LINK
11832
11833 2001-12-11  Ed Schonberg  <schonber@gnat.com>
11834
11835         * sem_ch8.adb (Find_Selected_Component): improved search for a
11836         candidate package in case of error.
11837
11838         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
11839         chain back on scope stack before reinstalling use clauses.
11840
11841         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
11842         is enabled, do not kill the code for the condition, to preserve
11843         warning.
11844
11845 2001-12-11  Robert Dewar <dewar@gnat.com>
11846
11847         * checks.adb (Insert_Valid_Check): Apply validity check to expression
11848         of conversion, not to result of conversion.
11849
11850 2001-12-11  Ed Schonberg <schonber@gnat.com>
11851
11852         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
11853         before freezing parent. If the declarations are mutually recursive,
11854         an access to the current record type may be frozen before the
11855         derivation is complete.
11856
11857 2001-12-05  Vincent Celier <celier@gnat.com>
11858
11859         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
11860         -c /COMPILE_ONLY, -l /LINK_ONLY
11861
11862         * opt.ads:
11863         (Bind_Only): New Flag
11864         (Link_Only): New flag
11865
11866         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
11867         and -l (Link_Only)
11868
11869         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
11870
11871         * make.adb:
11872         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
11873         (Gnatmake): Set the step flags. Only perform a step if the
11874         corresponding step flag is True.
11875         (Scan_Make_Arg): Reset the bind and link step flags when -u
11876         or -gnatc has been specified.
11877
11878 2001-12-05  Ed Schonberg <schonber@gnat.com>
11879
11880         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
11881         get bounds from right operand.
11882
11883         * sem_eval.adb: Minor reformatting
11884
11885         * exp_util.adb (Make_Literal_Range): use bound of literal rather
11886         than Index'First, its lower bound may be different from 1.
11887
11888         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
11889         and C48009J
11890
11891 2001-12-05  Vincent Celier <celier@gnat.com>
11892
11893         * prj-nmsc.adb Minor reformatting
11894
11895         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
11896         set and libraries are not supported.
11897
11898 2001-12-05  Ed Schonberg <schonber@gnat.com>
11899
11900         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
11901         private view explicitly, so the back-end can treat as a global
11902         when appropriate.
11903
11904 2001-12-05  Ed Schonberg <schonber@gnat.com>
11905
11906         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
11907          unit, always replace instance node with new body, for ASIS use.
11908
11909 2001-12-05  Vincent Celier <celier@gnat.com>
11910
11911         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
11912         libraries are not supported and both attributes Library_Name and
11913         Library_Dir are specified.
11914
11915         * prj-proc.adb (Expression): Set location of Result to location of
11916         first term.
11917
11918         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
11919         (prj-nmsc is now importing MLib.Tgt)
11920
11921         * prj-proc.adb: Put the change indicated above that was forgotten.
11922
11923 2001-12-05  Robert Dewar <dewar@gnat.com>
11924
11925         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
11926
11927 2001-12-05  Ed Schonberg <schonber@gnat.com>
11928
11929         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
11930         constraint, introduce explicit subtype declaration and derive from it.
11931
11932         * sem_ch3.adb: Minor reformatting
11933
11934 2001-12-05  Robert Dewar <dewar@gnat.com>
11935
11936         * checks.adb (Determine_Range): Increase cache size for checks.
11937         Minor reformatting
11938
11939         * exp_ch6.adb: Minor reformatting
11940         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
11941         a parameter whose root type is System.Address, since treating such
11942         subprograms as pure in the code generator is almost surely a mistake
11943         that will lead to unexpected results.
11944
11945         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
11946         change handling of conversions.
11947
11948         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
11949
11950 2001-12-05  Ed Schonberg <schonber@gnat.com>
11951
11952         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
11953         aggregate with static wrong size, attach generated Raise node to
11954         declaration.
11955
11956 2001-12-05  Robert Dewar <dewar@gnat.com>
11957
11958         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
11959         Fixes compilation abandoned bomb in B24009B.
11960
11961 2001-12-05  Ed Schonberg <schonber@gnat.com>
11962
11963         * sem_ch12.adb:
11964         Document use of Associated_Node on Selected_Components.
11965         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
11966         to clarify use of untyped descendant fields.
11967
11968 2001-12-05  Robert Dewar <dewar@gnat.com>
11969
11970         * prj-dect.ads: Add ??? comment
11971         Add 2001 to copyright notice (was not done in after all)
11972
11973         * prj-part.adb: Minor reformatting. Reword one awkward error message.
11974
11975         * prj.ads: Minor reformatting throughout, and add some ??? comments
11976
11977         * snames.ads: Minor reformatting
11978
11979 2001-12-05  Geert Bosch <bosch@gnat.com>
11980
11981         * snames.adb: Autoupdate
11982
11983 2001-12-05  Vincent Celier <celier@gnat.com>
11984
11985         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
11986
11987         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
11988
11989         * prj-env.adb: Minor comment changes (modifying -> extends).
11990
11991         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
11992
11993         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
11994         Tok_Extends.
11995
11996         * prj.adb (Initialize): Change Modifying to Extends.
11997
11998         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
11999
12000         * prj.ads: Minor comment change (Modifying -> extending).
12001
12002         * snames.ads: Change modifying to extends.
12003
12004 2001-12-05  Robert Dewar <dewar@gnat.com>
12005
12006         * sem_warn.adb: Remove stuff for conditionals, we are not going to
12007         do this after all.
12008
12009         * sem_warn.ads: Remove stuff for conditionals, we are not going to
12010         do this after all.  Add 2001 to copyright notice
12011
12012 2001-12-04  Geert Bosch <bosch@gnat.com>
12013
12014         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
12015
12016 2001-12-04  Robert Dewar <dewar@gnat.com>
12017
12018         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
12019         location if we already have errors. Stops some cases of cascaded
12020         errors.
12021
12022         * errout.adb: Improve comment.
12023
12024 2001-12-04  Robert Dewar <dewar@gnat.com>
12025
12026         * sem_ch12.adb:
12027         (Analyze_Formal_Type_Definition): Defend against Error.
12028         (Analyze_Formal_Subprogram): Defend against Error.
12029
12030         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
12031         remove following semicolon if present. Removes cascaded error.
12032
12033 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
12034
12035         * bindgen.adb:
12036         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
12037          exceptions equals 0.
12038         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
12039         Fixes PIWG E tests (which have to be run with -gnatL).
12040
12041 2001-12-04  Robert Dewar <dewar@gnat.com>
12042
12043         * einfo.ads: Minor reformatting
12044
12045 2001-12-04  Ed Schonberg <schonber@gnat.com>
12046
12047         * einfo.ads: Block_Node points to the identifier of the block, not to
12048         the block node itself, to preserve the link when the block is
12049         rewritten, e.g. within an if-statement with a static condition.
12050
12051         * inline.adb (Cleanup_Scopes): recover block statement from block
12052         entity using new meaning of Block_Node.
12053
12054         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
12055         identifier of block node, rather than to node itself.
12056
12057 2001-12-04  Gary Dismukes <dismukes@gnat.com>
12058
12059         * layout.adb:
12060         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
12061         (Discrimify): Go back to setting the Etypes of the selected component
12062         because the Vname component does not exist at this point and will
12063         fail name resolution. Also set Analyzed.
12064         Remove with and use of Sem_Res.
12065
12066 2001-12-04  Arnaud Charlet <charlet@gnat.com>
12067
12068         * Makefile.in: (HIE_SOURCES): add s-fat*.
12069
12070 2001-12-04  Robert Dewar <dewar@gnat.com>
12071
12072         * sem_attr.adb:
12073         (Compile_Time_Known_Attribute): New procedure.
12074         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
12075          proper range check.
12076
12077 2001-12-04  Ed Schonberg <schonber@gnat.com>
12078
12079         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
12080         processing discriminants to diagnose illegal default values.
12081
12082 2001-12-04  Ed Schonberg <schonber@gnat.com>
12083
12084         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
12085         access discriminant within a type extension that constrains its
12086         parent discriminants.
12087
12088 2001-12-04  Ed Schonberg <schonber@gnat.com>
12089
12090         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
12091         is malformed, use instance of Any_Id to allow analysis to proceed.
12092
12093         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
12094         type definition is illegal.
12095         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
12096         misplaced.
12097
12098 2001-12-04  Ed Schonberg <schonber@gnat.com>
12099
12100         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
12101         constants.
12102
12103 2001-12-04  Robert Dewar <dewar@gnat.com>
12104
12105         * errout.adb: Minor reformatting
12106
12107 2001-12-04  Robert Dewar <dewar@gnat.com>
12108
12109         * exp_util.adb: Minor reformatting from last change
12110
12111         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
12112         which is a rewriting of an expression, traverse the original
12113         expression to remove warnings that may have been posted on it.
12114
12115 2001-12-04  Ed Schonberg <schonber@gnat.com>
12116
12117         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
12118         record that has other packed components.
12119
12120 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
12121
12122         * adaint.c: Minor cleanups.
12123
12124 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
12125
12126         * adaint.c: Do not use utime.h on vxworks.
12127
12128 2001-12-04  Arnaud Charlet <charlet@gnat.com>
12129
12130         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
12131         more confusion than it solves.
12132
12133 2001-12-04  Geert bosch <bosch@gnat.com>
12134
12135         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
12136
12137 2001-12-04  Geert Bosch  <bosch@gnat.com>
12138
12139         * Makefile.in (update-sources): New target.
12140         For use by gcc_release script.
12141
12142 2001-12-04  Ed Schonberg <schonber@gnat.com>
12143
12144         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
12145         a configuration pragma, it is now legal wherever a pragma can appear.
12146
12147 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
12148
12149         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
12150         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
12151         is now @CROSS@ -DIN_GCC; update comment.
12152
12153 2001-12-04  Robert Dewar <dewar@gnat.com>
12154
12155         * einfo.adb (Has_Pragma_Pure_Function): New flag.
12156         Fix problem that stopped ceinfo from working
12157
12158         * einfo.ads (Has_Pragma_Pure_Function): New flag.
12159
12160         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
12161
12162 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
12163
12164         * gnatchop.adb:
12165         (File_Time_Stamp): New procedure.
12166         (Preserve_Mode): New boolean.
12167         (Write_Unit): Pass time stamp.
12168         Implement -p switch (preserve time stamps).
12169
12170         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
12171
12172         * gnatchop.adb: Do usage info for -p switch
12173
12174         * adaint.h (__gnat_set_file_time_name): New function
12175
12176         * adaint.c (__gnat_set_file_time_name): Implement
12177
12178         * adaint.h: Fix typo
12179
12180 2001-12-03  Robert Dewar <dewar@gnat.com>
12181
12182         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
12183         have Associated_Node.
12184
12185 2001-12-03  Robert Dewar <dewar@gnat.com>
12186
12187         * prj-proc.adb: Minor reformatting
12188
12189         * make.adb: Minor reformatting
12190
12191 2001-12-03  Geert Bosch <bosch@gnat.com>
12192
12193         * make.adb: Minor reformatting.
12194
12195 2001-12-03 Robert Dewar  <dewar@gnat.com>
12196
12197         * sem_ch12.adb: Minor reformatting
12198
12199 2001-12-03  Ed Schonberg <schonber@gnat.com>
12200
12201         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
12202         push Standard on the stack before analyzing the instance body,
12203         in order to have a clean visibility environment.
12204
12205         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
12206
12207 2001-12-03  Ed Schonberg <schonber@gnat.com>
12208
12209         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
12210         instantiation of a body that contains an inlined body.
12211
12212 2001-12-03  Ed Schonberg <schonber@gnat.com>
12213
12214         * sem_ch12.adb:
12215         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
12216         to prevent freezing within formal packages.
12217         (Freeze_Subprogram_Body): If body comes from another instance that
12218         appeared before its own body, place freeze node at end of current
12219         declarative part, to prevent a back-end crash.
12220         (Inline_Instance_Body): Handle properly a package instance within
12221         a subprogram instance that is a child unit.
12222
12223 2001-12-01  Graham Stott  <grahams@redhat.com>
12224
12225         * Makefile.in (misc.o): Add missing $(srcdir) prefix
12226         and add optabs.h dependency.
12227
12228         * misc.c: Include optabs.h
12229         (gnat_tree_code_type): Make static and const.
12230         (gnat_tree_code_length): Likewise.
12231         (gnat_tree_code_name): Likewise.
12232         (update_setjmp_buf): Obtain operands mode from insn_data.
12233
12234 2001-11-29  Richard Henderson  <rth@redhat.com>
12235
12236         * init.c: Remove obsolete dwarf2 frame.h section.
12237
12238 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
12239
12240         * Make-lang.in (ada.generated-manpages): New dummy target.
12241
12242 2001-11-29  Ed Schonberg <schonber@gnat.com>
12243
12244         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
12245         into Command, an array conversion is illegal here. Uncovered by
12246         ACATS B460005.
12247
12248 2001/11/28  Geert Bosch <bosch@gnat.com>
12249
12250         * init.c: Minor whitespace changes.
12251
12252 2001-11-28  Doug Rupp <rupp@gnat.com>
12253
12254         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
12255         signal stack.
12256
12257 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
12258
12259         * misc.c (gnat_expand_constant): Move declaration above
12260         definition of lang_hooks.
12261         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
12262         (gnat_init): lang_expand_constant no longer exists.
12263
12264         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
12265         always have vprintf.
12266         (gnat_init): Always call set_internal_error_function.
12267
12268 2001-11-27  Andreas Jaeger  <aj@suse.de>
12269
12270         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
12271
12272 2001-11-27  Laurent Guerby  <guerby@acm.org>
12273
12274         * Makefile.in: Regenerate Ada dependencies.
12275
12276 2001-11-26  Richard Henderson  <rth@redhat.com>
12277
12278         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
12279         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
12280         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
12281
12282 2001-11-25  Laurent Guerby  <guerby@acm.org>
12283
12284         * sysdep.c (rts_get_*): Fix style.
12285
12286 2001-11-19  Laurent Guerby  <guerby@acm.org>
12287
12288         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
12289         since it is of no apparent use and cause warnings.
12290
12291 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
12292
12293         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
12294         static too.
12295         (gnat_init): Don't return NULL.
12296         (finish_parse): Remove.
12297
12298 2001-11-17  Laurent Guerby  <guerby@acm.org>
12299
12300         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
12301         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
12302         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
12303         * lang-spec.h: Add missing struct field to silence warnings.
12304         * sysdep.c (rts_get_*): Provide K&R prototype.
12305         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
12306         * traceback.c (Unlock_Task, Lock_Task): Likewise.
12307         * tracebak.c (__gnat_backtrace): Remove unused variable.
12308         * utils.c (end_subprog_body): Move to K&R style.
12309
12310 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12311
12312         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
12313
12314 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
12315
12316         * misc.c (gnat_init): Change prototype.  Include the
12317         functionality of the old init_parse and init_decl_processing.
12318         (gnat_init_decl_processing): New prototype.
12319         (init_parse): Remove.
12320         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
12321
12322 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
12323
12324         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
12325         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
12326         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
12327         set_yydebug): Remove.
12328
12329 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
12330
12331         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
12332         (struct lang_hooks): Constify.
12333         (language_string, lang_identify): Remove.
12334         * utils.c (init_decl_processing): Update.
12335
12336 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12337
12338         * misc.c: Include langhooks-def.h.
12339         * Makefile.in: Update.
12340
12341 2001-10-30  Robert Dewar <dewar@gnat.com>
12342
12343         * style.adb:
12344         (Check_Identifier): Rewrite circuit to be compatible with use of letters
12345         in the upper half of ASCII.
12346         (Check_Identifier): Minor reformatting
12347
12348 2001-10-30  Geert Bosch <bosch@gnat.com>
12349
12350         * (Associated_Node, Set_Associated_Node): Do not check for
12351         Freeze_Entity.
12352
12353 2001-10-30  Robert Dewar <dewar@gnat.com>
12354
12355         * a-reatim.ads: Minor reformatting
12356
12357 2001-10-30  Robert Dewar <dewar@gnat.com>
12358
12359         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
12360         undocumented declarations.
12361
12362 2001-10-30  Pascal Obry <obry@gnat.com>
12363
12364         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
12365         to the binder and linker.
12366         Minor style fix.
12367
12368         * mdll.ads: Fix layout.  Update copyright notice.
12369
12370         * mdll.adb: Fix layout.  Update copyright notice.
12371
12372 2001-10-30  Robert Dewar <dewar@gnat.com>
12373
12374         * usage.adb: Minor fix to output for -gnaty.
12375
12376 2001-10-30  Ed Schonberg <schonber@gnat.com>
12377
12378         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
12379         to accommodate all its possible values.
12380
12381         * a-reatim.adb (Split): Special-case handling of Time_Span_First
12382         and of small absolute values of T.
12383
12384 2001-10-30  Richard Kenner <kenner@gnat.com>
12385
12386         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
12387         set_mem_attributes since not needed and wrong if RESULT if a REG;
12388         fixes ACATS failures.
12389
12390 2001-10-30  Geert Bosch <bosch@gnat.com>
12391
12392         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
12393         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
12394
12395 2001-10-30  Robert Dewar <dewar@gnat.com>
12396
12397         * bindusg.adb: Undocument -f switch.
12398
12399         * gnatcmd.adb: Remove /FULL_ELABORATION.
12400
12401         * opt.ads (Force_RM_Elaboration_Order): Document that this is
12402         obsolescent.
12403
12404         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
12405
12406         * gnatbind.adb: Minor update of warning msg.
12407
12408 2001-10-30  Vincent Celier <celier@gnat.com>
12409
12410         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
12411         for project file switches (-P (/PROJECT_FILE=),
12412          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
12413         or MEDIUM or HIGH)
12414
12415 2001-10-30  Geert Bosch <bosch@gnat.com>
12416
12417         * decl.c: Minor whitespace fixes.
12418
12419 2001-10-30  Richard Kenner <kenner@gnat.com>
12420
12421         * utils2.c (build_allocator): Test for SIZE overflow in array case too
12422
12423 2001-10-30  Geert Bosch <bosch@gnat.com>
12424
12425         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
12426         Found due to GCC 3.0 warning of using uninitialized value.
12427
12428         * layout.adb:
12429         (Get_Max_Size): Use variant record for tracking value/expression.
12430          Makes logic clearer and prevents warnings for uninitialized variables.
12431         (Layout_Array_Type): Use variant record for tracking value/expression.
12432          Makes logic clearer and prevents warnings for uninitialized variables.
12433
12434 2001-10-30  Robert Dewar <dewar@gnat.com>
12435
12436         * lib.adb: Minor reformatting
12437
12438         * s-taprop.ads: Minor reformatting
12439
12440 2001-10-29  Laurent Guerby  <guerby@acm.org>
12441
12442         * init.c:
12443         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
12444         const.
12445         (_gnat_error_handler): Make MSG const.
12446
12447 2001-10-29  Richard Kenner <kenner@gnat.com>
12448
12449         * sysdep.c: Fix localtime_r problem on LynxOS.
12450         Also remove #elif to avoid warnings.
12451
12452         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
12453         used by this.
12454
12455         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
12456
12457 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
12458
12459         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
12460         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
12461         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
12462         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
12463         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
12464         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
12465         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
12466         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
12467         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
12468         types.ads, urealp.adb: Fix spelling errors.
12469
12470 2001-10-27  Laurent Guerby <guerby@acm.org>
12471
12472         * trans.c (gigi): Fix non determinism leading to bootstrap
12473         comparison failures for debugging information.
12474
12475 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
12476
12477         * gnat_rm.texi: Use @./@: where appropriate.
12478
12479 2001-10-26  Robert Dewar <dewar@gnat.com>
12480
12481         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
12482
12483 2001-10-26  Richard Kenner <kenner@gnat.com>
12484
12485         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
12486
12487 2001-10-26  Richard Kenner <kenner@gnat.com>
12488
12489         * decl.c (validate_size): Modify message for bad size to avoid
12490         implication that compiler is modifying the size.
12491
12492 2001-10-26  Robert Dewar <dewar@gnat.com>
12493
12494         * prj-util.adb: Minor reformatting. Fix bad header format.
12495
12496 2001-10-26  Robert Dewar <dewar@gnat.com>
12497
12498         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
12499
12500         * sinfo.ads: Clarify use of Associated_Node (documentation only).
12501
12502         * sem_ch12.adb: Change Node4 to Associated_Node. Change
12503         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
12504         much more narrowly in places where needed. These are cleanups.
12505
12506 2001-10-26  Joel Brobecker <brobecke@gnat.com>
12507
12508         * 5zosinte.ads (null_pthread): new constant.
12509
12510         * 5ztaprop.adb:
12511         (Initialize_TCB): Initialize thread ID to null, to be able to verify
12512          later that this field has been set.
12513         (Finalize_TCB): ditto.
12514         (Suspend_Task): Verify that the thread ID is not null before using it.
12515         (Resume_Task): ditto.
12516
12517         * s-tasdeb.adb:
12518         (Resume_All_Tasks): Lock the tasks list before using it.
12519         (Suspend_All_Tasks): ditto.
12520
12521 2001-10-26  Richard Kenner <kenner@gnat.com>
12522
12523         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
12524         Make constant variant of designated type for Is_Access_Constant.
12525         Call update_pointer_to with main variant.
12526
12527         * trans.c (process_freeze_entity, process_type):
12528         Call update_pointer_to on main variant.
12529
12530         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
12531         If main variant, update all other variants.
12532
12533         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
12534         TREE_STATIC.
12535
12536 2001-10-26  Robert Dewar <dewar@gnat.com>
12537
12538         * prj-util.adb: Minor reformatting
12539
12540 2001-10-26  Robert Dewar <dewar@gnat.com>
12541
12542         * prj-util.adb: Minor reformatting
12543
12544 2001-10-26  Robert Dewar <dewar@gnat.com>
12545
12546         * prj-attr.adb: Minor reformatting throughout
12547
12548 2001-10-26  Robert Dewar <dewar@gnat.com>
12549
12550         * prj-attr.ads: Minor reformatting
12551         Add ??? comment (this whole spec has almost no comments)
12552
12553 2001-10-26  Vincent Celier <celier@gnat.com>
12554
12555         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
12556         ("//") that precede the drive letter on Interix.
12557
12558 2001-10-26  Geert Bosch <bosch@gnat.com>
12559
12560         * gnat_rm.texi: Add GNAT Reference Manual.
12561
12562 2001-10-25  Robert Dewar <dewar@gnat.com>
12563
12564         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
12565         is Error. Similar change for other renaming cases.
12566
12567 2001-10-25  Robert Dewar <dewar@gnat.com>
12568
12569         * s-atacco.ads: Add pragma Inline_Always for functions.
12570         Fix header format. Add copyright 2001
12571
12572 2001-10-25  Ed Schonberg <schonber@gnat.com>
12573
12574         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
12575         return Error rather than Empty so that analysis can proceed.
12576
12577 2001-10-25  Ed Schonberg <schonber@gnat.com>
12578
12579         * sem_util.adb (Enter_Name): better handling of cascaded error
12580         messages when a unit appears in its own context.
12581
12582 2001-10-25  Ed Schonberg <schonber@gnat.com>
12583
12584         * sem_util.adb (Defining_Entity): in case of error, attach created
12585         entity to specification, so that semantic analysis can proceed.
12586
12587 2001-10-25  Robert Dewar <dewar@gnat.com>
12588
12589         * sem_util.adb
12590         (Defining_Entity): Deal with Error.
12591         (Process_End_Label): Deal with bad end label for.
12592
12593 2001-10-25  Ed Schonberg <schonber@gnat.com>
12594
12595         * sem_elab.adb (Check_A_Call): refine message when call is in an
12596         instance but callee is not declared in the generic unit.
12597
12598 2001-10-25  Ed Schonberg <schonber@gnat.com>
12599
12600         * sem_elab.adb (Check_A_Call): check for renaming before finding the
12601         enclosing unit, which may already be different from the calling unit.
12602
12603 2001-10-25  Geert Bosch <bosch@gnat.com>
12604
12605         * 4gintnam.ads: fix header format.
12606
12607 2001-10-25  Ed Schonberg <schonber@gnat.com>
12608
12609         * sem_res.adb (Resolve_Call): if the call is actually an indexing
12610         operation on the result of a parameterless call, perform elaboration
12611         check after the node has been properly rewritten.
12612
12613         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
12614         inlined within the generic tree, the defining identifier is not a
12615         compilation_unit.
12616
12617 2001-10-25  Ed Schonberg <schonber@gnat.com>
12618
12619         * sem_res.adb (Resolve): special-case resolution of Null in an
12620          instance or an inlined body to avoid view conflicts.
12621
12622         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
12623          compatibility by retrieving the access type of the generic copy.
12624
12625 2001-10-25  Robert Dewar <dewar@gnat.com>
12626
12627         * sem_ch3.adb:
12628         (Analyze_Number_Declaration): Handle error expression.
12629         (Signed_Integer_Type_Declaration): Handle error bound.
12630         (Analyze_Subtype_Indication): Handle error range.
12631
12632         * sem_util.adb (Get_Index_Bounds): Check for Error.
12633
12634 2001-10-25  Robert Dewar <dewar@gnat.com>
12635
12636         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
12637         in no run time mode.
12638
12639 2001-10-25  Pascal Obry <obry@gnat.com>
12640
12641         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
12642         mode case for ALLOC case.
12643
12644         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
12645         all platforms. Improvement of last change.
12646
12647 2001-10-25  Robert Dewar <dewar@gnat.com>
12648
12649         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
12650
12651 2001-10-25  Geert Bosch  <bosch@gnat.com>
12652
12653         * osint.adb (Is_Relative): Remove duplicate.
12654
12655 2001-10-25  Pascal Obry <obry@gnat.com>
12656
12657         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
12658         pathnames in UNIX and DOS style with drive letter.
12659         (Is_Relative): new routine.
12660
12661         * osint.adb: Minor reformatting
12662
12663         * osint.adb (Is_Relative): implementation using
12664         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
12665
12666 2001-10-25  Pascal Obry <obry@gnat.com>
12667
12668         * g-dirope.adb (Basename): correctly compute offset between the
12669         original Path and the translated one.
12670
12671         * g-dirope.adb: (Base_Name): add some comments.
12672
12673 2001-10-25  Robert Dewar <dewar@gnat.com>
12674
12675         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
12676         in HIE mode, avoids compilation abandoned message
12677
12678         * exp_imgv.adb: Correct typo in previous change
12679
12680         * exp_imgv.adb: Correct typo in previous change (not my day!)
12681
12682 2001-10-25  Robert Dewar <dewar@gnat.com>
12683
12684         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
12685
12686 2001-10-25  Pascal Obry <obry@gnat.com>
12687
12688         * g-awk.ads: Move all pragma inlines next to the routine
12689          declarations. This is more uniform with other GNAT spec.
12690
12691 2001-10-22  Geert Bosch  <bosch@gnat.com>
12692
12693         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
12694
12695 2001-10-19  Geert Bosch  <bosch@gnat.com>
12696
12697         * Makefile.in (tools, gnattools): Remove gnatmem.
12698
12699 2001-10-17  Richard Henderson  <rth@redhat.com>
12700
12701         * Makefile.in (misc.o): Depend on langhooks.h.
12702         * misc.c: Include it.
12703         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
12704         (LANG_HOOKS_DECODE_OPTION): New.
12705         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
12706
12707 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
12708
12709         * trans.c (tree_transform): Adjust to recent change in
12710         expand_asm_operands to implement named asm operands.
12711
12712 2001-10-11  Ed Schonberg  <schonber@gnat.com>
12713
12714         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
12715         renaming of discriminant for mutable record type.
12716
12717 2001-10-11  Robert Dewar  <dewar@gnat.com>
12718
12719         * validsw.adb: Properly save -gnatVn status.
12720
12721 2001-10-11  Robert Dewar <dewar@gnat.com>
12722
12723         * usage.adb: Add lines for V switch.
12724
12725         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
12726         (/VALIDITY_CHECKING).
12727
12728 2001-10-11  Ed Schonberg <schonber@gnat.com>
12729
12730         * sem_type.adb (Add_One_Interp): an operator for a type declared in
12731         an extension of System is known to be visible.
12732
12733 2001-10-11  Ed Schonberg <schonber@gnat.com>
12734
12735         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
12736         properly. Fixes regression on ACATS C34005G.
12737
12738 2001-10-11  Robert Dewar <dewar@gnat.com>
12739
12740         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
12741         loop in generic instance, since this is likely not very useful.
12742
12743 2001-10-11  Robert Dewar <dewar@gnat.com>
12744
12745         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
12746         the error message for high integrity mode.
12747
12748         * rtsfind.adb (RTE): Give message if we try to find an entity that
12749         is not available in high integrity mode.
12750
12751         * rtsfind.ads:
12752         (OK_To_Use_In_HIE_Mode): New array.
12753         (RTE): May return Empty in high integrity mode.
12754
12755         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
12756         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
12757
12758         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
12759         unit if not inlined always and in no runtime mode. Fixes problem
12760         caused by new Rtsfind changes.
12761
12762         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
12763         body is deleted.
12764
12765         * rtsfind.adb (RTE): Make sure we do not try to load unit after
12766         giving message for entity not available in high integrity mode.
12767
12768 2001-10-11  Pascal Obry <obry@gnat.com>
12769
12770         * impunit.adb: Add GNAT.CRC32.
12771
12772 2001-10-11  Ed Schonberg <schonber@gnat.com>
12773
12774         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
12775         properly the case where one universal operand in a non-static
12776         exponentiation of a real literal.
12777
12778 2001-10-11  Ed Schonberg <schonber@gnat.com>
12779
12780         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
12781         clause, return the gobal finalization list, for lack of anthing else.
12782
12783 2001-10-11  Ed Schonberg <schonber@gnat.com>
12784
12785         * exp_ch7.adb (Make_Transient_Block): if statement is within
12786         exception handler, always use new transient scope to place Clean
12787         procedure.
12788
12789 2001-10-11  Pascal Obry <obry@gnat.com>
12790
12791         * Makefile.in:
12792         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
12793         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
12794         (GNATLS_RTL_OBJS): add g-crc32.o
12795         (GNATMAKE_RTL_OBJS): add g-crc32.o
12796
12797         * ali-util.adb:
12798         (CRC_Match): new function.
12799         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
12800         instead of the previous simple checksum algorithm.
12801         (Time_Stamp_Mismatch): use CRC_Match for comparison.
12802         (Set_Source_Table): idem.
12803
12804         * ali-util.ads:
12805         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
12806         instead of simple checksum.
12807         (CRC_Match): new function.
12808         (CRC_Error): new constant.
12809
12810         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
12811         a CRC now and not a simple checksum. A CRC uses lower-case hex
12812         letters, fixes ambiguity in parsing.
12813
12814         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
12815         is what this variable will store.
12816
12817         * bcheck.adb: Change reference to chechsum in comments by CRC.
12818         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
12819         rename All_Checksum_Match to All_CRC_Match. Change due to API
12820         renaming since now GNAT does not use a simple checksum but a
12821         CRC using GNAT.CRC32.
12822
12823         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
12824         now and not anymore a simple checksum.
12825
12826         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
12827         places.
12828
12829         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
12830
12831         * scans.adb:
12832         (Restore_Scan_State): rename Checksum to CRC.
12833         (Save_Scan_State): idem.
12834
12835         * scans.ads:
12836         With GNAT.CRC32.
12837         (Checksum): rename to CRC.
12838         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
12839
12840         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
12841         GNAT.CRC32).  Update copyright notice.
12842
12843         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
12844         GNAT.CRC32).  Update copyright notice.
12845
12846         * scn.adb:
12847         (Accumulate_Checksum): removed.
12848         (Update): new procedure. Add a wide-character into the CRC.
12849
12850         * sinput-l.adb:
12851         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
12852         (Load_File): fix initialization of S (change Source_Checksum to
12853         Source_CRC)
12854
12855         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
12856         Source_CRC in S initialization.
12857
12858         * sinput.adb (Source_Checksum): renamed to Source_CRC.
12859
12860         * sinput.ads (Source_Checksum): renamed to Source_CRC.
12861         Update comments for the CRC.
12862
12863         * types.adb (Hex): Use lowercase for the letter part.
12864
12865         * types.ads (Get_Hex_String): Returns the hexadecimal representation
12866         for a word. This is currently used only for CRC. In previous version,
12867         the checksum was using a representation with all letter being
12868         upper-case. With the new implementation (using CRC) we do not remove
12869         the 32th bit of the CRC, so we can have an upper-case starting letter
12870         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
12871         It is ambigous since the CRC was optional and could be followed by
12872         options like EB, EE. So now this routines uses lower-case letter for
12873         the hexadecimal representation. Strange enough only lower case letters
12874         where checked in Scan_ALI (even if this was not a possible case).
12875
12876         * gnatvsn.ads (Library_Version): changed to 3.15a.
12877
12878         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
12879         for the compiler.
12880
12881         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
12882         for the compiler.
12883
12884         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
12885         Add 2001 to copyright notice
12886         (Accumulate_Checksum): Modify to use System.CRC32.
12887
12888         * ali-util.ads: Redo changes of previous revision to continue to use
12889         the word Checksum. Add 2001 to copyright notice.
12890
12891         * ali.adb: Undo some of previous changes, not needed.
12892         Keep the change for lower case letters in the checksum.
12893
12894         * ali.ads: Undo previous change not needed.
12895
12896         * bcheck.adb: Undo most of previous change, not needed.
12897         But do use Checksums_Match for checksum comparison.
12898
12899         * gnatls.adb: Undo most of previous change, not needed.
12900         But do use Checksums_Match for comparing checksums.
12901
12902         * lib-load.adb: Undo previous change, not needed.
12903
12904         * lib-writ.adb: Undo previous change, not needed.
12905
12906         * lib-writ.ads: Document that checksums use lower case,
12907         not upper case letters.
12908
12909         * scans.adb: Undo previous change, not needed
12910
12911         * scans.ads: Undo previous change, not needed.
12912
12913         * scn-nlit.adb: Undo previous changes, not needed.
12914
12915         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
12916
12917         * scn.adb:
12918         (Accumulate_Checksum): Use System.CRC32.
12919         (Initialize_Checksum): New procedure.
12920         Remove other changes of previous revision.
12921
12922         * sinput-p.adb: Undo previous change, not needed.
12923
12924         * sinput.adb: Undo previous change, not needed.
12925
12926         * sinput-l.adb: Undo previous change, not needed.
12927
12928         * sinput.ads: Undo previous change, not needed.  Keep only comment
12929         on new checksum algorithm
12930
12931         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
12932         Also remove a-tags and a-stream from GNAT sources.
12933
12934         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
12935
12936         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
12937
12938 2001-10-11  Geert Bosch  <bosch@gnat.com>
12939
12940         * einfo.h: Regenerate.
12941
12942         * nmake.ads: Regenerate.
12943
12944         * nmake.adb: Regenerate.
12945
12946         * sinfo.h: Regenerate.
12947
12948         * treeprs.adb: Regenerate.
12949
12950 2001-10-10  Geert Bosch  <bosch@gnat.com>
12951
12952         * gnat-style.texi: New file describing coding guidelines for Ada.
12953
12954 2001-10-10  Ed Schonberg <schonber@gnat.com>
12955
12956         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
12957         is Flag174.
12958
12959 2001-10-10  Geert Bosch  <bosch@gnat.com>
12960
12961         * snames.ads: Add new names for project facility.
12962
12963         * snames.adb: Update to reflect snames.ads changes.
12964
12965         * snames.h: Update to reflect snames.ads changes.
12966
12967 2001-10-10  Vincent Celier <celier@gnat.com>
12968
12969         * make.adb:
12970         (Add_Switches): reflect the changes for the switches attributes
12971         Default_Switches indexed by the programming language,
12972         Switches indexed by the file name.
12973         (Collect_Arguments_And_Compile): Idem.
12974         Reflect the attribute name changes.
12975
12976         * prj-attr.adb:
12977         (Initialisation_Data): Change the names of some packages and
12978         attributes.
12979         (Initialize): process case insensitive associative arrays.
12980
12981         * prj-attr.ads:
12982         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
12983
12984         * prj-dect.adb:
12985         (Parse_Attribute_Declaration): For case insensitive associative
12986          arrays, set the index string to lower case.
12987
12988         * prj-env.adb:
12989         Reflect the changes of the project attributes.
12990
12991         * prj-nmsc.adb:
12992         Replace Check_Naming_Scheme by Ada_Check and
12993         Language_Independent_Check.
12994
12995         * prj-nmsc.ads:
12996         Replaced Check_Naming_Scheme by 2 procedures:
12997         Ada_Check and Language_Independent_Check.
12998
12999         * prj-proc.adb:
13000         (Process_Declarative_Items): For case-insensitive associative
13001         arrays, set the index string to lower case.
13002         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
13003         Prj.Nmsc.Check_Naming_Scheme.
13004
13005         * prj-tree.adb:
13006         (Case_Insensitive): New function
13007         (Set_Case_Insensitive): New procedure
13008
13009         * prj-tree.ads:
13010         (Case_Insensitive): New function
13011         (Set_Case_Insensitive): New procedure
13012         (Project_Node_Record): New flag Case_Insensitive.
13013
13014         * prj-util.adb:
13015         (Value_Of): new function to get the string value of a single
13016         string variable or attribute.
13017
13018         * prj-util.ads:
13019         (Value_Of): new function to get the string value of a single
13020         string variable or attribute.
13021
13022         * prj.adb:
13023         (Ada_Default_Spec_Suffix): New function
13024         (Ada_Default_Impl_Suffix): New function
13025         Change definitions of several constants to reflect
13026         new components of record types.
13027
13028         * prj.ads:
13029         (Naming_Data): Change several components to reflect new
13030         elements of naming schemes.
13031         (Project_Data): New flags Sources_Present and
13032         Language_Independent_Checked.
13033         (Ada_Default_Spec_Suffix): New function.
13034         (Ada_Default_Impl_Suffix): New function.
13035
13036         * snames.ads:
13037         Modification of predefined names for project manager: added
13038         Implementation, Specification_Exceptions, Implementation_Exceptions,
13039         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
13040         Default_Switches, _Languages, Builder, Cross_Reference,
13041         Finder. Removed Body_Part, Specification_Append, Body_Append,
13042         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
13043         Gnatlink.
13044
13045         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
13046         Add comments.
13047
13048         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
13049         not that it is Nil_Variable_Value.
13050
13051         * prj.ads: Add ??? for uncommented declarations
13052
13053 2001-10-10  Ed Schonberg <schonber@gnat.com>
13054
13055         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
13056         constant, do not indicate possible modification, so that gigi can
13057         treat it as a bona fide constant.
13058
13059 2001-10-10  Robert Dewar <dewar@gnat.com>
13060
13061         * sem_prag.adb: Add processing for pragma External.
13062
13063         * snames.ads: Add entry for pragma External.
13064
13065         * par-prag.adb: Add pragma External.
13066
13067         * snames.adb: Updated to match snames.ads.
13068
13069 2001-10-10  Ed Schonberg <schonber@gnat.com>
13070
13071         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
13072         a dynamic task if the allocator appears in an indexed assignment
13073         or selected component assignment.
13074
13075         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
13076         For a dynamic task in an assignment statement, use target of
13077         assignment to generate meaningful name.
13078
13079 2001-10-10  Ed Schonberg <schonber@gnat.com>
13080
13081         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
13082         a generic package.
13083
13084         * einfo.ads: Body_Entity is also defined for generic package.
13085         Documentation change only
13086
13087         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
13088         others_choice for a discriminated component initialization,
13089         convert discriminant references into the corresponding discriminals.
13090
13091         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
13092         only if original type is private and expression has to be wrapped
13093         in a conversion.
13094
13095         * checks.adb:
13096         (Apply_Constraint_Check): Do not perform length check
13097         if expression is an aggregate with only an others_choice.
13098         (Length_N_Cond): two references to the same in_parameter
13099         (typically the discriminal in an init_proc) denote the same value.
13100         Two useful optimization uncovered by bugfixes above.
13101
13102 2001-10-10  Robert Dewar <dewar@gnat.com>
13103
13104         * xeinfo.adb: Change int to char in translation of enumeration types.
13105         This fixes a problem in the C representation of component alignment.
13106         Add 2001 to copyright notice
13107
13108 2001-10-10  Richard Kenner <kenner@gnat.com>
13109
13110         * decl.c: (validate_size): Do check size of object of integral type
13111         if it is a packed array type.
13112
13113 2001-10-10  Richard Kenner <kenner@gnat.com>
13114
13115         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
13116         VAR_DECL for constant if not Is_Public but -O0.
13117
13118 2001-10-10  Richard Kenner  <kenner@gnat.com>
13119
13120         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
13121
13122 2001-10-10  Geert Bosch  <bosch@gnat.com>
13123
13124         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
13125         use '/' as switch character, allowing for absolute file names.
13126
13127 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
13128
13129         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
13130         FSF address.
13131
13132 2001-10-08  Geert Bosch  <bosch@gnat.com>
13133
13134         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
13135         Automatically build utilities when files need to be regenerated.
13136
13137 2001-10-08  Geert Bosch  <bosch@gnat.com>
13138
13139         * xsnames.adb: New utility for updating snames.ads and snames.adb
13140
13141 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
13142
13143         * Make-lang.in (ADAFLAGS): Add -W -Wall.
13144         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
13145         (gnat1): Also depend on attribs.o.
13146         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
13147         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
13148         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
13149         (ADAFLAGS): Add -W -Wall.
13150         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
13151         take out CFLAGS.
13152
13153         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
13154         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
13155         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
13156         Use $(ADAC), not $(CC), as compilation command.
13157
13158         (gnattools): Depend directly on tools to build, don't use
13159         recursive make.
13160         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
13161
13162         * einfo.h, sinfo.h: New files (autogenerated).
13163
13164 2001-10-08  Richard Henderson  <rth@redhat.com>
13165
13166         * comperr.adb (Abort_In_Progress): New.
13167         (Compiler_Abort): Use it to prevent recursion.
13168
13169 2001-10-08  Robert Dewar <dewar@gnat.com>
13170
13171         * atree.adb: Set Error_Posted in Error node, helps error recovery.
13172
13173         * par-endh.adb (Output_End_Expected): We should also not test
13174         Error_Posted on the Error node, since now it is always set.
13175
13176         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
13177         to help error recovery. Part of general work on 9407-004.
13178
13179         * par.adb: Add ??? for misuse of error
13180
13181         * sem_res.adb:
13182         (Resolve): Defend against Error, fixes 9407-003.
13183         (Resolve_Discrete_Subtype_Indication): Defend against Error.
13184
13185         * sinfo.ads (N_Error): Now has Etype field (which will be set
13186         to Any_Type to help error recovery).
13187
13188 2001-10-08  Richard Kenner (kenner@gnat.com)
13189
13190         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
13191         Consistently set MEM attributes from expression; fixes
13192         bootstrap failure on x86.
13193
13194 2001-10-08  Geert Bosch  (bosch@gnat.com)
13195
13196         * 5oosinte.adb: Add 2001 to copyright notice.
13197
13198 2001-10-08  Geert Bosch  (bosch@gnat.com)
13199
13200         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
13201
13202         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
13203
13204 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
13205
13206         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
13207
13208 2001-10-05  Geert Bosch  (bosch@gnat.com)
13209
13210         * adaint.h: Small formatting fix.
13211
13212 2001-10-04  Geert Bosch  <bosch@gnat.com>
13213
13214         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
13215         Arg is int, not FILE *, in dummy version of functions.
13216
13217         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
13218         Arg is int, not FILE *.
13219
13220 2001-10-04  Geert Bosch  <bosch@gnat.com>
13221
13222         * 3lsoccon.ads: Added file, missed with initial check ins.
13223
13224         * 4lintnam.ads: Fix header format.
13225         Change Linux to GNU/Linux.
13226
13227         * 5iosinte.adb: Change Linux to GNU/Linux.
13228
13229         * 5iosinte.ads: Change Linux to GNU/Linux.
13230
13231         * 5itaprop.adb: Change Linux to GNU/Linux.
13232
13233         * 5itaspri.ads: Change Linux to GNU/Linux.
13234         Update copyright notice.
13235
13236         * 5lintman.adb: Change Linux to GNU/Linux.
13237
13238         * 5lml-tgt.adb: Change Linux to GNU/Linux.
13239
13240         * 5losinte.ads: Change Linux to GNU/Linux.
13241
13242         * 5lsystem.ads: Change Linux to GNU/Linux.
13243
13244         * 5qosinte.adb: Change Linux to GNU/Linux.
13245
13246         * 5qosinte.ads: Change Linux to GNU/Linux.
13247
13248         * 5qparame.ads: Change Linux to GNU/Linux.
13249
13250         * 5qtaprop.adb: Change Linux to GNU/Linux.
13251
13252         * 5qtaspri.ads: Change Linux to GNU/Linux.
13253         Add 2001 to copyright notice.
13254
13255         * 5vintman.ads: Change Linux to GNU/Linux.
13256         Fix header format.  Add 2001 to copyright notice.
13257
13258         * g-soccon.ads: Change Linux to GNU/Linux.
13259
13260         * g-trasym.ads: Change Linux to GNU/Linux.
13261         Add 2001 to copyright notice.
13262
13263         * memtrack.adb: Change Linux to GNU/Linux.
13264
13265         * s-intman.ads: Change Linux to GNU/Linux.
13266         Add 2001 to copyright notice.  Fix header format.
13267
13268         * s-stache.adb: Change Linux to GNU/Linux.
13269
13270         * adaint.c: Change Linux to GNU/Linux.
13271
13272         * cio.c: Change Linux to GNU/Linux.
13273
13274         * cstreams.c: Change Linux to GNU/Linux.
13275
13276         * init.c: Change Linux to GNU/Linux.
13277
13278         * gmem.c: Change Linux to GNU/Linux.
13279
13280         * tracebak.c: Change Linux to GNU/Linux.
13281
13282
13283 2001-10-02  Geert Bosch  <bosch@gnat.com>
13284
13285         * misc.c (insert_default_attributes): Add dummy version.