* config/arm/arm.md (addsi3_cbranch_scratch): Correct constraints.
[official-gcc.git] / gcc / ada / ChangeLog
blob300c0a7eefb65425ade38e7946f70221b6775930
1 2004-10-05  Vincent Celier  <celier@gnat.com>
3         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
5 2004-10-04  Laurent GUERBY <laurent@guerby.net>
7         PR ada/15156
8         * Makefile.in: Define and use RANLIB_FLAGS.
10 2004-10-04  Pascal Obry  <obry@gnat.com>
12         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
13         other x86 platforms).
15 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
17         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
18         in general and triggers stack alignment adjustment for thread entry
19         points on targets where this is necessary.
21 2004-10-04  Bernard Banner  <banner@gnat.com>
23         PR ada/13897
25         * Makefile.in: Add section for powerpc linux
26         Add variant i-vxwork-x86.ads
28         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
30 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
32         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
33         table registration calls when need be. Ensures no reference to the crt
34         ctors symbol are issued in the SJLJ case, which avoids possible
35         undefined symbol errors in the case of modules to be statically linked
36         with the kernel.
38 2004-10-04  Javier Miranda  <miranda@gnat.com>
40         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
41         in-line the code corresponding to subprogram Analyze_Actuals. In
42         addition, analyze the actuals only in case of subprogram call.
44 2004-10-04  Ed Falis  <falis@gnat.com>
46         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
48 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
50         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
51         in the documentation.
53 2004-10-04  Robert Dewar  <dewar@gnat.com>
55         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
56         IF and CASE.
57         (Analyze_Block_Statement): Add circuitry to detect following dead code
58         (Check_Unreachable_Code): Handle case of block exit
60 2004-10-04  Robert Dewar  <dewar@gnat.com>
62         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
63         (XMatchD): Avoid warning for Logic_Error call
65 2004-10-04  Robert Dewar  <dewar@gnat.com>
67         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
68         consider expressions buried within a procedure actual to be an actual.
69         This caused some blowups with uses of packed slices within a procedure
70         actual.
72 2004-10-04  Robert Dewar  <dewar@gnat.com>
74         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
75         longer need to be initialized to zero.
76         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
77         initialized to zero.
79         * checks.adb (Expr_Known_Valid): Packed arrays are now always
80         considered valid, even if the representation is modular. That's correct
81         now that we no longer initialize packed modular arrays to zero.
83         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
84         suffixes. These are now documented as the only cases in which the
85         debugger ignores outer records.
86         Previously, the spec allowed arbitrary suffixes for this purpose.
87         Change name of LJM to JM for packed array pad records
88         Create separate section on packed array handling, and add a whole new
89         set of comments to this section describing the situation with packed
90         modular types and justification requirements depending on endianness.
92 2004-10-04  Robert Dewar  <dewar@gnat.com>
94         * a-except.adb: Add a comment for last change
96         * einfo.ads: Minor spelling correction in comment
98         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
100         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
101         messages.
103         * sem_util.ads: Minor comment update
105 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
107         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
108         Inline_Always when in Configurable_Run_Time mode.
110         * sem_prag.adb (Process_Convention): If entity is an inherited
111         subprogram, apply convention to parent subprogram if in same scope.
112         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
113         when in Configurable_Run_Time mode.
115 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
117         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
118         class_wide type after component list has been inherited.
120 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
122         * sem_ch12.adb (Check_Generic_Actuals): New predicate
123         Denotes_Previous_Actual, to handle properly the case of a private
124         actual that is also the component type of a subsequent array actual.
125         The visibility status of the first actual is not affected when the
126         second is installed.
127         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
128         make fully recursive the treatment of formals of packages declared
129         with a box.
130         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
131         the above on exit from an instantiation.
132         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
133         current instantiation which is now complete.
134         (Analyze_Package_Instantiation): No instantiated body is needed if the
135         main unit is generic. Efficient, and avoid anomalies when a instance
136         appears in a package accessed through rtsfind.
138 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
140         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
141         do not generate a declaration for a temporary if the call is part of a
142         library-level instantiation.
144 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
146         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
147         searching for a limited component to flag.
149         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
150         expansion of Input, to account for the fact that the implicit call
151         generated by the attribute reference must freeze the user-defined
152         stream subprogram. This is only relevant to 'Input, because it can
153         appear in an object declaration, prior to the body of the subprogram.
155         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
156         expansion can proceed and further errors uncovered.
157         (Minor clean up): Fix cases of using | instead of \ for continuation
158         messages.
160 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
162         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
164         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
165         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
166         Use gcc_assert and gcc_unreachable.
168         * decl.c (gnat_to_gnu_entity, case object): Check and process a
169         specified alignment before validating size.
170         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
171         stripped-down declaration for the type of the inner field when making
172         a JM type.
174         * utils.c (finish_record_type): Do not compute the size in units
175         incrementally. Instead compute it once for the rep clause case.
176         Use gcc_assert and gcc_unreachable.
178 2004-10-04  Vincent Celier  <celier@gnat.com>
180         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
181         in file name.
182         (Is_Valid_Path_Name): Take '/' as a directory separator.
184 2004-10-04  Vincent Celier  <celier@gnat.com>
186         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
187         (Extended_Project) only if Extended_Project is defined, to avoid
188         assertion error.
189         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
190         resolved path.
191         (Parse_Single_Project): Ditto.
193         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
194         Add_To_Project_Path for virtual projects.
196 2004-10-04  Vincent Celier  <celier@gnat.com>
198         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, 
199         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb, 
200         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, 
201         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
202         parameter Options_2.
204         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
205         Build_Dynamic_Library with an empty Options_2.
207         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
208         default anymore.
210         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
211         directory separator, if any.
212         (Gprmake): Do not allow mains on the command line for library projects.
213         Do not attempt to link when the project is a library project.
214         (Library_Opts): New table to store Library_Options.
215         (Build_Library): If Library_Options is specified, pass these options
216         when building a shared library.
218 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
220         * s-tposen.adb (Service_Entry): The object must be always unlocked at
221         the end of this procedure now that the unlock operation was inserted
222         by the expander.
224 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
226         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
227         corresponding to the Preallocated_Stacks flags in System.
228         (Get_Target_Parameters): Including the processing for
229         Preallocated_Stacks.
231         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads, 
232         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads, 
233         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads, 
234         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads, 
235         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads, 
236         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads, 
237         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads, 
238         system-vxworks-mips.ads, system-os2.ads, system-interix.ads, 
239         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
240         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
241         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
242         used to signal whether the compiler creates the required stacks and
243         descriptors for the different tasks (when True) or it is done by the
244         underlying operating system at run time (when False).
245         It is initially set to False in all targets.
247         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
248         if it is supported by the target.
249         (Make_Task_Create_Call): Pass the stack address if it has been
250         previously created. Otherwise pass a Null_Address.
252         * snames.adb: Add _stack.
254         * snames.ads: Add Name_uStack. Required to allow the expander to
255         statically allocated task stacks.
257         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
258         Stack_Address argument.
259         Check that its value is equal to Null_Address because this target does
260         not support the static stack allocation.
262 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
264         * usage.adb: Change "pragma inline" to "pragma Inline" in information
265         and error messages
267 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
269         * exp_dist.adb: Split declaration of asynchronous flag out of
270         Add_RACW_Read_Attribute.
271         Minor reformatting for better alignment with PolyORB version.
272         Store the entity for the asynchronous flag of an RACW, rather than the
273         expression, in the asynchronous flags table. This will allow this flag
274         to be used in other subprograms beside Add_RACW_Read_Attribute.
276 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
278         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
279         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, 
280         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb, 
281         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads, 
282         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
283         sockets constant MSG_NOSIGNAL (Linux-specific).
284         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
285         all Send operations.
286         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
287         from trigerring SIGPIPE.
288         Rename components to avoid clash with Ada 2005 possible reserved
289         word 'interface'.
290         (Check_Selector): When the select system call returns with an error
291         condition, propagate Socket_Error to the caller.
293 2004-10-01  Jan Hubicka  <jh@suse.cz>
295         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
297 2004-09-23  Robert Dewar  <dewar@gnat.com>
299         PR ada/17540
301         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
302         instead do this at freeze time (we won't do it if there is an address
303         clause).
304         Change "pragma inline" to "pragma Inline" in information and error
305         messages.
306         Minor reformatting.
308         * freeze.adb (Check_Address_Clause): Remove previous change, not the
309         right way of doing things after all.
310         (Freeze_Entity): For object, set Is_Public for imported entities
311         unless there is an address clause present.
313 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
315         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
316         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
317         ensures proper handling of types with rep clauses, which might have
318         their TYPE_SIZE set already.
320 2004-09-21  Robert Dewar  <dewar@gnat.com>
322         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
323         packed array types in both little- and big-endian cases. This change
324         ensures that we no longer count on the unused bits being initialized
325         for such types (and in particular ensures that equality testing will
326         only read the relevant bits).
327         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
328         These changes mean that we no longer need to initialize small packed
329         arrays.
330         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
331         optimization to an LJM field as to its parent field.
333         * ada-tree.h, trans.c, utils.c, utils2.c:
334         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
336 2004-09-20  Jan Hubicka  <jh@suse.cz>
338         * utils.c (gnat_finalize): Remove.
339         (end_subprog_body): Directly call cgraph_finalize_function;
340         do not lower the nested functions.
342 2004-09-20  Robert Dewar  <dewar@gnat.com>
344         PR ada/17540
346         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
347         if an address clause is present, since that means that the Import
348         should be ignored.
350 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
352         * 5tsystem.ads: Removed, no longer used.
354 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
355             Zack Weinberg  <zack@codesourcery.com>
357         * ada-tree.def: Use tree_code_class enumeration constants
358         instead of code letters.
359         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
360         Update for new tree-class enumeration constants.
362 2004-09-17  Vincent Celier  <celier@gnat.com>
364         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
365         capabilities of the general project manager.
367 2004-09-09  Vincent Celier  <celier@gnat.com>
369         * a-direct.ads: Add pragma Ada_05
370         (Directory_Entry_Type): Give default value to component Kind to avoid
371         not initialized warnings.
373         * a-direct.adb (Current_Directory): Remove directory separator at the
374         end.
375         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
376         an existing directory.
377         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
378         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
379         Convert the result to File_Size.
381         * prj.ads: (Project_Error): New exception
383         * prj-attr.adb: Except in procedure Initialize, Fail comes from
384         Prj.Com, not from Osint.
385         (Attrs, Package_Attributes): Tables moved to private part of spec
386         (Add_Attribute, Add_Unknown_Package): Moved to new child package
387         Prj.Attr.PM.
388         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
389         Prj.Project_Error after call to Fail.
390         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
391         Fail. Check that package name is not already in use.
393         * prj-attr.ads: Comment updates to indicate that all subprograms may be
394         used by tools, not only by the project manager, and to indicate that
395         exception Prj.Prj_Error may be raised in case of problem.
396         (Add_Unknown_Package, Add_Attribute): Moved to new child package
397         Prj.Attr.PM.
398         (Attrs, Package_Attributes): Table instantiations moved from the body to
399         the private part to be accessible from Prj.Attr.PM body.
401         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
402         from new package Prj.Attr.PM.
403         (Parse_Attribute_Declaration): Call Add_Attribute from new package
404         Prj.Attr.PM.
406         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
408         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
409         instead of Elaboration_Checks).
411         * a-calend.adb: Minor reformatting
413 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
415         * gigi.h (maybe_pad_type): New declaration.
416         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
418         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
420         * cuintp.c: Convert to use buildN.
422         * decl.c (maybe_pad_type): No longer static.
423         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
424         target pointer.
425         Convert to use buildN.
427         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
428         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
429         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
430         RHS.
431         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
432         (gnat_gimplify_expr, case ADDR_EXPR): New case.
433         Convert to use buildN.
435         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
436         TREE_READONLY for const.
437         Convert to use buildN.
439         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
440         (create_var_decl): Refine when TREE_STATIC is set.
441         Convert to use buildN.
443 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
445         * gnat_ugn.texi: Delete text relating to checking of ali and object
446         consistency.
448         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
449         routines.
451 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
453         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
454         pragmas recognized by GNAT.
456         * gnat_rm.texi: Document pragma Detect_Blocking.
458         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
459         raise Program_Error if called from a protected operation.
461         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
462         the protected action nesting level.
463         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
464         protected action nesting level.
465         (Unlock): When pragma Detect_Blocking is active decrease the protected
466         action nesting level.
468         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
469         Protected_Action_Nesting.
471         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
472         Common_ATCB record. It contains the dynamic level of protected action
473         nesting for each task. It is needed for checking whether potentially
474         blocking operations are called from protected operations.
475         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
476         Detect_Blocking is active or not in the partition.
478         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
479         raise Program_Error if called from a protected operation.
480         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
481         Program_Error if called from a protected operation.
482         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
483         Program_Error if called from a protected operation.
485         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
486         raise Program_Error if called from a protected operation.
488         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
489         raise Program_Error if called from a protected operation, and increase
490         the protected action nesting level.
491         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
492         Program_Error if called from a protected operation, and increase the
493         protected action nesting level.
494         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
495         protected action nesting level.
497         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
498         raise Program_Error if called from a protected operation, and increase
499         the protected action nesting level.
500         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
501         Program_Error if called from a protected operation, and increase the
502         protected action nesting level.
503         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
504         raise Program_Error if called from a protected operation.
505         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
506         active, raise Program_Error if called from a protected operation.
507         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
508         protected action nesting level.
510         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
511         insertion of the statement raising Program_Error. The run time
512         contains the required machinery for handling that.
514         * sem_util.ads: Change comment associated to procedure
515         Check_Potentially_Blocking_Operation.
516         This procedure does not insert a call for raising the exception because
517         that is currently done by the run time.
519         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
521         * init.c: Add the global variable __gl_detect_blocking that indicates
522         whether pragma Detect_Blocking is active (1) or not (0). Needed for
523         making the pragma available at run time.
524         (__gnat_set_globals): Pass and update the detect_blocking parameter.
526         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
527         pragma Detect_Blocking is active.
529         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
531         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
532         DB is found in the ali file. Any unit compiled with pragma
533         Detect_Blocking active forces its effect in the whole partition.
535         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
536         Detect_Blocking is active and delay is called from a protected
537         operation.
539         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
540         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
541         Detect_Blocking is active (0 otherwise).
542         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
543         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
544         otherwise).
546 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
548         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
549         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
550         package.
552         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
553         (Register_Receiving_Stub): Add Subp_Info formal parameter.
554         Update API in placeholder implemetation of s-parint to reflect changes
555         in distribution runtime library.
557         * sem_ch3.adb (Expand_Derived_Record): Rename to
558         Expand_Record_Extension.
560         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
561         primitive operations of potentially distributed object types that have
562         non-controlling anonymous access formals.
564         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
565         subprogram.
566         New implementation of expansion for remote access-to-subprogram types,
567         based on the RACW infrastructure.
568         This version of sem_dist is compatible with PolyORB/DSA as well as
569         GLADE.
571         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
572         Asynchrronous that applies to a remote access-to-subprogram type, mark
573         the underlying RACW type as asynchronous.
575         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
576          __gnat_using_gnu_linker to 1.
578         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
579         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
580         GNAT.Perfect_Hash_Generators, and remove the empty
581         GNAT.Perfect_Hash package.
583         * atree.adb: Minor reformatting
585         * exp_ch3.adb (Expand_Derived_Record): Rename to
586         Expand_Record_Extension.
587         (Build_Record_Init_Proc.Build_Assignment): The default expression in
588         a component declaration must remain attached at that point in the
589         tree so New_Copy_Tree copies it if the enclosing record type is derived.
590         It is therefore necessary to take a copy of the expression when building
591         the corresponding assignment statement in the init proc.
592         As a side effect, in the case of a derived record type, we now see the
593         original expression, without any rewriting that could have occurred
594         during expansion of the ancestor type's init proc, and we do not need
595         to go back to Original_Node.
597         * exp_ch3.ads (Expand_Derived_Record): Rename to
598         Expand_Record_Extension.
600         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
601         Returns the RACW type used to implement a remote access-to-subprogram
602         type.
603         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
604         New subprograms. Used to create a proxy tagged object for a remote
605         subprogram. The proxy object is used as the designated object
606         for RAS values on the same partition (unless All_Calls_Remote applies).
607         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
608         System.Partition_Interface.Get_Unique_Remote_Pointer.
609         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
610         Renamed from Add_RAS_*_Attribute.
611         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
612         subprograms.
613         New implementation of expansion for remote access-to-subprogram types,
614         based on the RACW infrastructure.
616         * exp_dist.ads (Copy_Specification): Update comment to note that this
617         function can copy the specification from either a subprogram
618         specification or an access-to-subprogram type definition.
620 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
622         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
623         in an instance, between an explicit subprogram an one inherited from a
624         type derived from an actual.
626         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
627         add a polling call if the subprogram is to be inlined by the back-end,
628         to avoid repeated calls with multiple inlinings.
630         * checks.adb (Apply_Alignment_Check): If the expression in the address
631         clause is a call whose name is not a static entity (e.g. a dispatching
632         call), treat as dynamic.
634 2004-09-09  Robert Dewar  <dewar@gnat.com>
636         * g-trasym.ads: Minor reformatting
638         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
639         packed arrays, since unused bits are expected to be zero for a
640         comparison.
642 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
644         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
645         comment.
647 2004-09-09  Pascal Obry  <obry@gnat.com>
649         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
650         enable map file generation. Add the right option to generate the map
651         file if Map_File is set to True.
653         * gnatdll.adb (Gen_Map_File): New variable.
654         (Syntax): Add info about new -m (Map_File) option.
655         (Parse_Command_Line): Add support for -m option.
656         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
657         Minor reformatting.
659 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
661         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
662         new gnatdist implementation.
663         Define a subpackage isolating the output routines specific to this
664         verbose mode.
666 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
668         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
670         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
672 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
674         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
675         internal unit.
677         * opt.ads: Add Ada_Version_Runtime constant used to decide which
678         version of the language is used to compile the run time.
680 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
682         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
683         of variable length temporaries for function return now that the
684         back-end and gigi support it.
686 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
688         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
690         * trans.c (struct stmt_group): Delete field GLOBAL.
691         (gnat_init_stmt_group): Do not initialize it.
692         (call_to_gnu): Use save_expr, not protect_multiple_eval.
693         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
694         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
695         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
696         (start_stmt_group): Likewise.
697         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
699         * utils2.c (ggc.h): Include.
700         (build_call_raise): Call build_int_cst, not build_int_2.
702         * utils.c (gnat_init_decl_processing): Fix arg to
703         build_common_tree_nodes.
704         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
705         (gnat_define_builtin): Set built_in_decls.
706         (init_gigi_decls): Call build_int_cst, not build_int_2.
708         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
709         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
710         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
711         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
712         SET_TYPE_MODULE): Use them.
713         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
714         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
715         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
716         SET_TYPE_ADA_SIZE): Likewise.
717         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
718         (DECL_CONST_CORRESPONDING_VAR,
719         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
720         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
721         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
722         (TYPE_RM_SIZE_NUM): New macro.
723         (TYPE_RM_SIZE): Modified to use above.
725         * cuintp.c: (build_cst_from_int): New function.
726         (UI_To_gnu): Use it.
728         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
729         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
730         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
731         MIN_EXPR for the size, copy it into new.
733 2004-09-01  Robert Dewar  <dewar@gnat.com>
735         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
736         packed indexed component where array is an IN OUT formal. This
737         generated garbage code previously.
739         * gnat_ugn.texi: Document -fverbose-asm
741         * gnat-style.texi: Minor updates (note that boolean constants and
742         variables are joined with AND/OR rather than short circuit forms).
744 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
746         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
747         it is an upward conversion of an untagged type with no representation
748         change.
750 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
752         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
753         System.Partition_Interface.
755         * checks.adb (Apply_Access_Checks): Do not generate checks when
756         expander is not active (but check for unset reference to prefix of
757         dereference).
759         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
760         pragma Debug as an if statement with a constant condition, for
761         consistent treatment of entity references contained within the
762         enclosed procedure call.
764 2004-09-01  Vincent Celier  <celier@gnat.com>
766         * bindgen.adb: (Set_EA_Last): New procedure
767         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
768         Set_EA_Last.
769         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
770         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
771         linked without errors.
772         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
773         ST and EA.
774         (Gen_Exception_Table_C): Correct same bugs
776         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
778         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
779         on Windows, make sure that the drive letter is in upper case.
781         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
782         Windows, when the drive letter is added and Case_Sensitive is True, the
783         drive letter is forced to upper case.
785         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
786         to Options_2 for the call to MLib.Utl.Gcc.
788         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
789         directory separator when defining BASE_DIR.
791 2004-09-01  Pascal Obry  <obry@gnat.com>
793         * gprcmd.adb (Extend): Do not output trailing directory separator. This
794         is not needed and it confuses Windows GNU/make which does not report
795         directory terminated by a slash as a directory.
796         (gprcmd): Idem for "pwd" internal command.
798         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
799         target names rewrite to fix regressions with recent version of
800         GNU/make. Starting with GNU/make 3.80 the pipe character was not
801         handled properly anymore.
803 2004-09-01  Andreas Schwab  <schwab@suse.de>
805         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
806         * raise.c [!IN_RTS]: Undef abort.
808 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
810         * utils2.c (build_allocator): Use ssize_int.
812         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
814 2004-08-27  Andreas Schwab  <schwab@suse.de>
816         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
818 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
819             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
821         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
823 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
825         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
826         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
827         * utils.c (init_gigi_decls): Likewise.
828         * utils2.c (build_call_raise, build_allocator): Likewise.
830 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
832         * utils.c (gnat_init_decl_processing): Adjust
833         build_common_tree_nodes call.
835 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
837         * utils2.c (build_allocator): Use build_int_cst for negative
838         size types.
840 2004-08-18  Richard Henderson  <rth@redhat.com>
842         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
844 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
846         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
847         call.s
848         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
849         (gnat_to_gnu): Likewise.
851 2004-08-16  Pascal Obry  <obry@gnat.com>
853         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
854         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
855         option and not mdll anymore. Update comment.
857 2004-08-16  Pascal Obry  <obry@gnat.com>
859         * bld.adb (Put_Include_Project): Properly handle directory separators
860         on Windows.
862 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
864         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
865         decreasing the number of allocated junk nodes while searching for the
866         appropriate subprogram.
868 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
870         * cuintp.c (UI_To_gnu): Use build_int_cst..
871         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
872         * utils.c (init_gigi_decls): Likewise.
873         * utils2.c (build_call_raise): Likewise.
875 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
877         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
878         for a global aliased object with a variable size and an unconstrained
879         nominal subtype, pretend there is no initializer if the one we have is
880         incomplete, and avoid referencing an inexistant component in there. The
881         part we have will be rebuilt anyway and the reference may confuse
882         further operations.
884 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
886         * einfo.ads: Minor reformatting
888         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
889         restrictions in the ALI if we only want to warn about violations.
891 2004-08-13  Vincent Celier  <celier@gnat.com>
893         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
894         when creating a new Unit_Record in table Units.
896         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
897         that are violated, if any.
899         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
900         add directory separator if path already ends with a directory separator.
902 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
904         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
905         unit, this is an attempt to inline a construct that is not available in
906         the current restricted mode, so abort rather than trying to continue.
908         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
909         discriminants that rename those of the parent, recover names of
910         original discriminants for the constraint on the full view of the
911         parent.
912         (Complete_Private_Subtype): Do not create a subtype declaration if the
913         subtype is an itype.
915         * gnat_rm.texi: Added section on implementation of discriminated
916         records with default values for discriminants.
918 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
920         PR ada/15601
921         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
922         the second operand is overloaded.
924 2004-08-10  Richard Henderson  <rth@redhat.com>
926         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
927         add __builtin_alloca.
929 2004-08-10  Richard Henderson  <rth@redhat.com>
931         * config-lang.in (boot_language): Yes.
933 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
935         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
936         from complaining on potential uninitialized reference.
937         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
938         new specification and test explicitly for non-zero return value.
940         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
941         returning C.int, to avoid using a derived boolean type.
943         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
944         Duplicate_Subexpr_No_Checks in preference to direct use of
945         Remove_Side_Effects and New_Copy_Tree.
946         Clear Comes_From_Source on prefix of 'Size attribute reference.
948         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
949         g-socthi-vxworks.adb: Change calls to
950         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
951         and test explicitly for non-zero return value.
953         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
954         (Is_Socket_In_Set): Declare imported function as returning C.int, to
955         avoid using a derived boolean type.
957 2004-08-09  Albert Lee  <lee@gnat.com>
959         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
961 2004-08-09  Pascal Obry  <obry@gnat.com>
963         * gnat_ugn.texi: Document new way to build DLLs on Windows using
964         GCC's -shared option.
966         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
967         Options_2 parameter (options put after object files).
969 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
971         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
972         ignore overflows on low and high bounds of an index to also account for
973         differences in signedness between sizetype and gnu_index_subtype.
974         These are as legitimate as the ones caused by a lower TYPE_PRECISION
975         on sizetype.
977 2004-08-09  Robert Dewar  <dewar@gnat.com>
979         * s-solita.ads, s-solita.adb: Minor reformatting
981         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
982         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
983         obsolescent section
984         Add note that No_Implicit_Conditionals does not suppress
985         run time constraint checks.
987         * vms_conv.ads: Minor reformatting
989         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
990         and necessary for following change).
991         (Mark): Return new format Mark_Id containing sec stack address
992         (Release): Use sec stack address from Mark_Id avoiding Self call
994         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
995         pointer (cleanup and necessary for following change).
996         Define Mark_Id as record containing address of secondary stack, that way
997         Release does not need to find the stack again, decreasing the number of
998         calls to Self and improving efficiency.
1000         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
1002         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
1003         case variable into the individual case branches when possible.
1005         * sem_ch11.adb: Minor reformatting
1007         * prj.ads: Correct spelling of suffixs
1009         * prj-nmsc.adb: Minor reformatting
1010         Correct spelling suffixs throughout (also in identifiers)
1012         * freeze.adb: Minor spelling correction
1014         * exp_ch2.adb: Cleanups to handling of Current_Value
1015         (no functional effect).
1017         * bld.adb: Correct spelling of suffixs
1019         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
1021 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
1023         PR ada/15408
1025         * sem_ch7.adb (Install_Private_Declarations): In the body of the
1026         package or of a child, private entities are both immediately_visible
1027         and not hidden.
1029 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
1031         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
1032         there are no range checks on the value of the literal.
1034         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
1035         wrapped is the triggering alternative of an asynchronous select, action
1036         statements mustbe inserted before the select itself.
1038         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
1039         case where the prefix is a protected function call.
1040         (Resolve_Attribute, case 'Access): The attribute reference on a
1041         subprogram is legal in a generic body if the subprogram is declared
1042         elsewhere.
1044 2004-08-09  Vincent Celier  <celier@gnat.com>
1046         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
1047         languages, otherwise building the library may fail with unresolved
1048         symbols.
1049         (Compile_Sources): Do not build libraries if -c switch is used
1051         * gnatlink.adb (Process_Args): New switches -M and -Mmap
1052         (Write_Usage): If map file creation is supported, output new switches
1053         -M and -Mmap.
1054         (Gnatlink): When -M is specified, add the necessary switch(es) to the
1055         gcc call, when supported.
1057         * Makefile.in: Added indepsw.o to the object list for gnatlink
1058         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
1060         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
1061         indepsw.adb, indepsw.ads: New files.
1063 2004-08-09  Bernard Banner  <banner@gnat.com>
1065         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
1067         * Makefile.in: add section for vxworks x86
1069 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
1071         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
1072         per-object constrained components where the discriminant is of an
1073         Access type.
1074         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
1075         the parent initialization procedure for derived Unchecked_Unions.
1076         Instead, derived Unchecked_Unions build their own initialization
1077         procedure.
1078         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
1079         Check the body of the subprogram for details.
1080         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
1081         functions for derived Unchecked_Union types by introducing a condition.
1082         Allow the creation of TSS equality functions for Unchecked_Unions.
1083         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
1084         Add formal parameter Discr to function signature. Discr is used to
1085         control the generated case statement for Unchecked_Union types.
1086         (Make_Eq_If): Rename formal parameter Node to E in function signature.
1088         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
1089         Unchecked_Unions.
1090         Check the body of the subprogram for details.
1091         (Expand_Composite_Equality): Augment composite type equality to include
1092         correct handling of Unchecked_Union components.
1093         (Expand_N_In): Add condition to detect illegal membership tests when the
1094         subtype mark is a constrained Unchecked_Union and the expression lacks
1095         inferable discriminants, and build a Raise_Program_Error node.
1096         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
1097         to detect types that contain components of unconstrained Unchecked_Union
1098         subtype. Add condition to detect equality between types that have an
1099         unconstrained Unchecked_Union component, and build a Raise_Program_Error
1100         node. Add condition to detect equality between Unchecked_Union types
1101         that lack inferable discriminants, and build a Raise_Program_Error node.
1102         Otherwise build a TSS equality function call.
1103         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
1104         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
1105         with the operand lacking inferable discriminants, and build a Raise_
1106         Program_Error node.
1107         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
1108         composite equality.
1109         (Has_Inferable_Discriminants): Implement new predicate for objects and
1110         expressions of Unchecked_Union type. Check the body of subprogram for
1111         details.
1112         (Has_Unconstrained_UU_Components): Add function
1113         Component_Is_Unconstrained_UU. It is used to detect whether a single
1114         component is of an unconstrained Unchecked_Union subtype. Add function
1115         Variant_Is_Unconstrained_UU. It is used to detect whether a single
1116         component inside a variant is of an unconstrained Unchecked_Union type.
1118         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
1119         inferred discriminant values. Add condition to generate a case
1120         statement with an inferred discriminant as the switch.
1121         (Make_Component_List_Assign): Introduce a Boolean flag that determines
1122         the behaviour of the subprogram in the presence of an Unchecked_Union.
1123         Add condition to trigger the usage of the inferred discriminant value
1124         as the generated case statement switch.
1125         (Make_Field_Assign): Introduce a Boolean flag that determines the
1126         behaviour of the subprogram in the presence of an Unchecked_Union. Add
1127         condition to trigger the usage of the inferred discriminant value as
1128         the right-hand side of the generated assignment.
1130         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
1131         parameter generation when dealing with Unchecked_Unions.
1133         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
1134         checks for Unchecked_Unions.
1136         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
1138         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
1139         Raise_Program_Error nodes for the execution of Read and Write
1140         attributes of Unchecked_Union types and the execution of Input and
1141         Output attributes of Unchecked_Union types that lack default
1142         discriminant values.
1144         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
1145         Unchecked_Union. Add procedure Check_Component. It is used to inspect
1146         per-object constrained components of Unchecked_Unions for being
1147         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
1148         check individual components withing a variant.
1150         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
1151         comparison of Unchecked_Unions.
1152         (Resolve_Equality_OP): Remove guard that prevents equality between
1153         Unchecked_Unions.
1155         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
1156         of component subtypes for Unchecked_Union components.
1157         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
1158         since it is the actual subtype.
1160         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
1161         pass of Unchecked_Union subtypes as generic actuals to formal types
1162         that lack known_discriminant_parts or that are derived Unchecked_Union
1163         types, and do nothing. In any other case, produce an error message.
1165         * sem_ch3.adb (Analyze_Component_Declaration): Add function
1166         Contains_POC. It determines whether a constraint uses the discriminant
1167         of an enclosing record type.
1168         Add condition to detect per-object constrained component and set the
1169         appropriate flag.
1170         (Derived_Type_Declaration): Remove guard that prevents derivation from
1171         Unchecked_Union types.
1172         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
1173         Union subtypes.
1175         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
1176         references to Unchecked_Union discriminants.
1178         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
1179         formal generation when dealing with Unchecked_Unions.
1180         (Set_Actual_Subtypes): Add condition to prevent generation of actual
1181         subtypes for Unchecked_Unions.
1183         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
1184         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
1185         completions of discriminated partial views by Unchecked_Unions and
1186         produce an error message.
1188 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1190         * trans.c (struct stmt_group): New field, GLOBAL.
1191         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
1192         (struct elab_info): New struct.
1193         (elab_info_list, gnu_elab_proc_stack): New variables.
1194         (Compilation_Unit_to_gnu): New procedure.
1195         (gigi): Call it and also handle elaboration procs we've saved.
1196         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
1197         global field from parent.
1198         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
1199         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
1200         (start_stmt_group): Initialize global field from parent.
1201         (add_decl_expr): Set to global for current statement group.
1202         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
1203         post.
1205         * utils.c (global_bindings_p): True when no current_function_decl; no
1206         longer check current_binding_level.
1208 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
1210         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
1211         choice.
1213         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
1215 2004-08-06  Andreas Schwab  <schwab@suse.de>
1217         * utils.c (gnat_define_builtin): Remove second parameter of
1218         make_decl_rtl.
1219         (begin_subprog_body): Likewise.
1221 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
1223         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
1224         optimization, not supported by the tree-ssa back-end.
1226 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
1228         * s-mastop-irix.adb: Update comments.
1230         * a-except.adb (Exception_Information): Raise Constraint_Error if
1231         exception Id is Null_Id.
1232         This is required behavior, which is more reliably and clearly checked
1233         at the top level interface level.
1235 2004-07-26  Javier Miranda  <miranda@gnat.com>
1237         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
1238         call if a component has no default_expression and the box is used.
1240         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
1241         default_expression and you use box, it behaves as if you had declared a
1242         stand-alone object.
1243         (Resolve_Record_Aggregate): If a component has no default_expression and
1244         you use box, it behaves as if you had declared a stand-alone object.
1246         * sem_ch10.adb (Install_Siblings): Do not make visible the private
1247         entities of private-with siblings.
1249 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
1251         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
1252         for a component of an itype, set the parent pointer for analysis,
1253         there is no list in which to insert it.
1255         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
1256         bona-fide renamings, not for inherited operations.
1258         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
1259         actual for a formal that is an access parameter, create local
1260         finalization list even if the expression is not an aggregate.
1262 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
1264         PR ada/16213
1265         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
1266         Diagnose properly illegal subprogram renamings that are library units.
1268 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
1270         PR ada/15588
1271         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
1272         conversion rewritten as an unchecked conversion, check that original
1273         expression is a variable.
1275         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
1276         unchecked_conversion, create new node rather than rewriting in place,
1277         to preserve original construct.
1279 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1281         * gigi.h (gnat_expand_body): Deleted.
1283         * Make-lang.in: (trans.o): Depends on function.h.
1285         * misc.c: (gnat_expand_body): Moved to here.
1287         * trans.c (gnat_expand_body_1): Deleted.
1288         (gnat_expand_body): Moved from here.
1289         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
1290         (add_stmt): Check for marked visited with global_bindings_p.
1291         (gnat_gimplify_expr, case COMPONENT_REF): New case.
1292         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
1294         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
1295         VIEW_CONVERT_EXPR if not operation type.
1297         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
1298         fat pointer.
1300         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
1301         changes: reformatting of negation operators, removing unneeded
1302         inequality comparison with zero, converting equality comparisons with
1303         zero to negations, changing int/0/1 to bool/false/true, replace calls
1304         to gigi_abort with abort, and various other similar changes.
1306 2004-07-26  Vincent Celier  <celier@gnat.com>
1308         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
1309         "setup".
1311         * make.adb (Gnatmake): Fail when a library is not present and there is
1312         no object directory.
1314         * mlib-prj.adb (Check_Library): No need to check if the library needs
1315         to be rebuilt if there is no object directory, hence no object files
1316         to build the library.
1318         * opt.ads (Setup_Projects): New Boolean flag.
1320         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
1321         Location.
1322         Create directory when Kind /= "" and in "gnat setup". Report error if
1323         directory cannot be created.
1324         (Ada_Check): Create library interface copy dir if it does not exist
1325         and we are in "gnat setup".
1326         (Find_Sources): No error if in "gnat setup" and no Ada sources were
1327         found.
1328         (Language_Independent_Check): Create object directory, exec directory
1329         and/or library directory if they do not exist and we are in
1330         "gnat setup".
1332         * vms_conv.ads: (Command_Type): New command Setup.
1334         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
1336         * vms_data.ads: Add qualifiers/switches for new built-in command
1337         "setup".
1339 2004-07-25  Richard Henderson  <rth@redhat.com>
1341         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
1342         DECL_IGNORED_P on RESULT_DECL.
1344 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
1346         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
1347         allocation and potentially overflowing update with
1348         Tailored_Exception_Information. Use the sec-stack free procedural
1349         interface to output Exception_Information instead.
1351         * a-except.adb (To_Stderr): New subprogram for character, and string
1352         version moved from a-exextr to be visible from other separate units.
1353         (Tailored_Exception_Information): Remove the procedural version,
1354         previously used by the default Last_Chance_Handler and not any more.
1355         Adjust various comments.
1357         * a-exexda.adb: Generalize the exception information procedural
1358         interface, to minimize the use of secondary stack and the need for
1359         local buffers when the info is to be output to stderr:
1360         (Address_Image): Removed.
1361         (Append_Info_Character): New subprogram, checking for overflows and
1362         outputing to stderr if buffer to fill is of length 0.
1363         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
1364         (Append_Info_Address, Append_Info_Exception_Name,
1365         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
1366         Append_Info_Basic_Exception_Traceback,
1367         Append_Info_Exception_Information): New subprograms.
1368         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
1369         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
1370         Exception_Info_Maxlength, Exception_Name_Length,
1371         Exception_Message_Length): New subprograms.
1372         (Exception_Information): Use Append_Info_Exception_Information.
1373         (Tailored_Exception_Information): Use
1374         Append_Info_Basic_Exception_Information.
1375         Export services for the default Last_Chance_Handler.
1377         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
1378         other separate units.
1380 2004-07-20  Vincent Celier  <celier@gnat.com>
1382         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
1384 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
1386         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
1387         emit itype references for the designated types of component types that
1388         are declared outside of the full record declaration, and that may
1389         denote a partial view of that record type.
1391 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
1393         PR ada/15607
1394         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
1395         which is the designated type in an access component declaration, to the
1396         list of incomplete dependents of the parent type, to avoid elaboration
1397         issues with out-of-scope subtypes.
1398         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
1399         full view of the parent.
1401 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
1403         PR ada/15610
1404         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
1405         entities that are hidden, such as references to generic actuals
1406         outside an instance.
1408 2004-07-20  Javier Miranda  <miranda@gnat.com>
1410         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
1411         support to the new notation.
1412         (Analyze_Selected_Component): Add call to Try_Object_Operation.
1414 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
1416         * s-taprob.adb: Adding the elaboration code required for initializing
1417         the tasking soft links that are common to the full and the restricted
1418         run times.
1420         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
1421         restricted run time has been moved to the package
1422         System.Soft_Links.Tasking.
1424         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
1425         restricted run time has been moved to the package
1426         System.Soft_Links.Tasking.
1428         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
1430         * s-solita.ads, s-solita.adb: New files.
1432 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1434         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
1435         Case_Statement_to_gnu): Split off from gnat_to_gnu.
1436         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
1437         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
1438         Exception_Handler_to_gnu_zcx): Likewise.
1440 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
1442         * gigi.h (builtin_function): Declare.
1444 2004-07-15  Robert Dewar  <dewar@gnat.com>
1446         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
1447         reformatting
1449         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
1450         access values as an example of a warning.
1452         * gnat_rm.texi: Document new attribute Has_Access_Values
1454         * gnat-style.texi: Document that box comments belong on nested
1455         subprograms
1457         * sem_util.ads (Has_Access_Values): Improved documentation
1459         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
1461         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
1462         (Process_Interface_Name): Call to this new procedure
1463         (Set_Extended_Import_Export_External_Name): Call to this new procedure
1465         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
1467         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
1469         * einfo.ads: Minor comment typo fixed
1471 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
1473         * snames.adb: Add _atcb.
1475         * snames.ads: Add Name_uATCB.
1477         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
1478         (in the expanded code) when using the restricted run time.
1480         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
1481         a in parameter in order to allow ATCBs to be preallocated (in the
1482         expanded code).
1484         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
1485         order to allow ATCBs to be preallocated. In case of error, the ATCB is
1486         deallocated in System.Tasking.Stages.
1488         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
1489         order to allow ATCBs to be preallocated.
1491         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
1492         here. It was previously done in Initialize_ATCB.
1494         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
1496         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
1497         Restricted run time.
1499         * exp_ch3.adb: When using the Restricted run time, pass the
1500         preallocated Ada_Task_Control_Block when creating a task.
1502 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
1504         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
1505         function call that is itself an actual in an enclosing call, diagnose
1506         problem here rather than assuming that resolution will catch it.
1508         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
1509         the local copy of a generic unit for a formal package, and the generic
1510         is a child unit, install private part of ancestors before compiling
1511         private part of spec.
1513         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
1514         use scope entities rather than tree structures, to handle properly
1515         parent units that are instances rewritten as bodies for inlining
1516         purposes.
1518         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
1519         Remove_Parents): Handle properly a parent unit that is an
1520         instantiation, when the unit has been rewritten as a body for inlining
1521         purposes.
1523         * par.adb (Goto_List): Global variable to collect goto statements in a
1524         given unit, for use in detecting natural loops.
1526         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
1527         use in detecting natural loops.
1529         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
1530         backwards goto's, and rewrite as a infinite loop, to improve locality
1531         of temporaries.
1533         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
1534         subcomponent that includes an indexed reference, to prevent the
1535         generation of copies that would miscompile the desired assignment
1536         statement.
1537         (Build_Task_Image_Decls): Add a numeric suffix to
1538         generated name for string variable, to avoid spurious conflicts with
1539         the name of the type of a single protected object.
1541         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
1542         loop with an explicit exit statement, to avoid generating an
1543         out-of-range value with 'Succ leading to spurious constraint_errors
1544         when compiling with -gnatVo.
1546 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
1548         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
1549         might not be analyzed yet, even if its Etype is already set (case of an
1550         unchecked conversion built using Unchecked_Convert_To, for example).
1551         If the prefix has already been analyzed, this will be a nop anyway.
1553         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
1554         controller type, or an assignment of a record type with controlled
1555         components, copy only user data, and leave the finalization chain
1556         pointers untouched.
1558 2004-07-15  Vincent Celier  <celier@gnat.com>
1560         * make.adb (Collect_Arguments): Improve error message when attempting
1561         to compile a source not part of any project, when -x is not used.
1563         * prj.ads: (Defined_Variable_Kind): New subtype
1565         * prj-attr.adb (Register_New_Package): Two new procedures to register
1566         a package with or without its attributes.
1567         (Register_New_Attribute): Mew procedure to register a new attribute in a
1568         package.
1569         New attribute oriented subprograms: Attribute_Node_Id_Of,
1570         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
1571         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
1572         Next_Attribute.
1573         New package oriented subprograms: Package_Node_Id_Of,
1574         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
1576         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
1577         type.
1578         (Package_Node_Id): Now a private, self initialized type
1579         (Register_New_Package): New procedure to register a package with its
1580         attributes.
1581         New attribute oriented subprograms: Attribute_Node_Id_Of,
1582         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
1583         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
1584         Next_Attribute.
1585         New package oriented subprograms: Package_Node_Id_Of,
1586         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
1588         * prj-dect.adb (Parse_Attribute_Declaration,
1589         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
1591         * prj-makr.adb (Make): Parse existing project file before creating
1592         other files. Fail if there was an error during parsing.
1594         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
1595         new spec of Prj.Attr.
1597         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
1598         to new spec of Prj.Attr.
1600 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1602         * utils2.c: Fix typo in comment.
1604 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1606         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
1607         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
1609 2004-07-14  Andreas Schwab  <schwab@suse.de>
1611         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
1613 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1615         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
1616         object type.
1617         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
1618         TYPE_STUB_DECL.
1620         * misc.c (gnat_types_compatible_p): New function.
1621         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
1622         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
1624         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
1625         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
1626         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
1627         (mark_visited): Don't mark dummy type.
1628         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
1629         parameter, we must remove any LJM building from GNU_NAME.
1630         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
1631         (pos_to_constructor): Use int_const_binop.
1632         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
1633         PARM_DECL.
1635         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
1636         (gnat_pushlevel): Set TREE_USE on BLOCK node.
1637         (gnat_install_builtins): Add __builtin_memset.
1639 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
1641         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
1642         for a renaming, stabilize the initialization expression if we are at a
1643         local level.  At the local level, uses of the renaming may be performed
1644         by a direct dereference of the initializing expression, and we don't
1645         want possible variables there to be evaluated for every use.
1647         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
1648         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
1649         them on the way.  Account for the fact that we may introduce side
1650         effects in the process.
1652 2004-07-13  Richard Henderson  <rth@redhat.com>
1654         * misc.c (default_pass_by_ref): Use pass_by_reference.
1656 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
1658         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
1659         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
1661 2004-07-08  Richard Henderson  <rth@redhat.com>
1663         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
1664         commentary.
1666 2004-07-06  Vincent Celier  <celier@gnat.com>
1668         * vms_conv.ads: Minor reformatting.
1669         Alphabetical order for enumerated values of type Command_Type, to have
1670         the command in alphabetical order for the usage.
1672         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
1673         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
1675         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
1677         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
1678         (Add_Archive_Path): Only add the global archive if there is one.
1679         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
1680         or not any object file to put in the global archive, and don't build
1681         a global archive if there is none.
1682         (X_Switches): New table
1683         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
1684         in the X_Switches table, if any.
1685         (Initialize): Make sure the X_Switches table is empty
1686         (Scan_Arg): Record -X switches in table X_Switches
1688         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
1690         * make.adb: Minor comment fix
1692         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
1693         invoked with directory information, add the directory in front of the
1694         path.
1696         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
1697         invoked with directory information, add the directory in front of the
1698         path.
1700         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
1701         when Keep_Temporary_Files is False.
1702         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
1703         directory information, add the directory in front of the path.
1704         When not on VMS, handle new switch -dn before the command to set
1705         Keep_Temporary_Files to True.
1706         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
1707         everywhere.
1709         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
1710         invoked with directory information, add the directory in front of the
1711         path.
1713 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
1715         * snames.ads, snames.adb (Name_Stub): New name for the distributed
1716         systems annex.
1718         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
1719         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
1721         * g-socket.adb (To_Timeval): Fix incorrect conversion of
1722         Selector_Duration to Timeval for the case of 0.0.
1724         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
1725         documentation from Evolve_And_Then.
1727 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
1729         * s-taprop-tru64.adb, s-taprop-os2.adb,
1730         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
1732 2004-07-06  Robert Dewar  <dewar@gnat.com>
1734         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
1735         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
1736         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
1737         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
1738         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
1739         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
1740         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
1741         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
1742         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
1743         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
1744         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
1745         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
1746         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
1747         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
1748         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
1749         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
1750         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
1751         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
1752         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
1753         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
1754         vms_data.ads: Minor reformatting,
1755         Fix bad box comment format.
1757         * gnat_rm.texi: Fix minor grammatical error
1759         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
1761         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
1762         more cases of discriminated records to be recognized as not needing a
1763         secondary stack.
1764         (Has_Access_Values): New function.
1766         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
1768         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
1769         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
1770         with LRM terminology).
1771         Change terminology in comments primitive type => elementary type.
1773 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
1775         PR ada/15602
1776         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
1777         parameters do not impose any requirements on the presence of a body.
1779 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
1781         PR ada/15593
1782         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
1783         compilation unit and is in an open scope at the point of instantiation,
1784         assume that a body may be present later.
1786 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
1788         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
1789         Improve error message when specified size is not supported.
1791         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
1792         is never a primitive operation.
1794 2004-07-05  Andreas Schwab  <schwab@suse.de>
1796         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
1797         RECORD_OR_UNION_CHECK.
1798         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
1800 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
1802         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
1803         dependency on xgnatugn, instead build it via a submake.
1804         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
1806 2004-07-04  Richard Henderson  <rth@redhat.com>
1808         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
1810 2004-07-01  Richard Henderson  <rth@redhat.com>
1812         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
1813         * utils.c (max_size): Likewise.
1815 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1817         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
1818         and rest_of_type_compilation; add arg to create_*_decl.
1819         (annotate_decl_with_node): Deleted.
1820         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
1821         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
1822         (get_current_block_context, gnat_pushdecl): New declarations.
1823         (gnat_init_stmt_group): Likewise.
1824         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
1825         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
1826         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
1827         (gnat_init): Call gnat_init_stmt_group.
1828         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
1829         (gnu_pending_elaboration_list): Deleted.
1830         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
1831         (gigi): Rearrange initialization calls and move some to last above.
1832         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
1833         Delete calls to add_decl_expr; add arg to create_*_decl.
1834         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
1835         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
1836         begin_subprog_body and call it.
1837         Don't push and pop ggc context.
1838         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
1839         (add_stmt): Remove handling of DECL_EXPR from here.
1840         If not in function, mark visited.
1841         (add_decl_expr): Put global at top level.
1842         Check for cases of DECL_INITIAL we have to handle here.
1843         (process_type): Add extra arg to create_type_decl.
1844         (build_unit_elab): Rework to just gimplify.
1845         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
1846         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
1847         (get_pending_elaborations, pending_elaborations_p): Likewise.
1848         (push_pending_elaborations, pop_pending_elaborations): Likewise.
1849         (get_elaboration_location, insert_elaboration_list): Likewise.
1850         (gnat_binding_level): Renamed from ada_binding_level.
1851         (init_gnat_to_gnu): Don't clear pending_elaborations.
1852         (global_bindings_p): Treat as global if no current_binding_level.
1853         (set_current_block_context): New function.
1854         (gnat_pushdecl): Renamed from pushdecl; major rework.
1855         All callers changed.
1856         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
1857         (finish_record_type): Call call pushdecl for stub decl.
1858         (function_nesting_depth): Deleted.
1859         (begin_subprog_body): Delete obsolete code.
1860         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
1862 2004-06-28  Robert Dewar  <dewar@gnat.com>
1864         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1865         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
1866         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
1867         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
1868         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
1870         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
1871         deal with problem of inefficient slices on machines with strict
1872         alignment, when the slice is a component of a composite.
1874         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
1875         machines, we need the check there as well.
1877 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
1879         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
1880         determine safe copying direction for overlapping slice assignments
1881         when component is controlled.
1883         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
1884         formal derived type in the actual for a formal package are visible in
1885         the enclosing instance.
1887 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
1889         PR ada/15600
1890         * sem_util.adb (Trace_Components): Diagnose properly an illegal
1891         circularity involving a private type whose completion includes a
1892         self-referential component.
1893         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
1894         renaming or an instantiation from an implicit derived operation.
1896 2004-06-28  Pascal Obry  <obry@gnat.com>
1898         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
1899         DLL.
1900         (Library_File_Name_For): Idem.
1902 2004-06-28  Matthew Gingell  <gingell@gnat.com>
1904         * g-traceb.ads: Add explanatory note on the format of addresses
1905         expected by addr2line.
1907 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
1909         * Makefile.in: Force debugging information on s-tasdeb.adb,
1910         a-except.adb and s-assert.adb needed by the debugger.
1912 2004-06-28  Vincent Celier  <celier@gnat.com>
1914         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
1915         Need_To_Build_Lib.
1916         (Gnatmake): Ditto.
1918         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
1920         * prj.adb: Minor reformatting
1921         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
1923         * prj.ads: Comment updates
1924         Minor reformatting
1925         (Project_Data): Change Flag1 to Need_To_Build_Lib.
1926         Remove Flag2: not used.
1928         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
1929         declaration.
1931         * gnat_ugn.texi: Put a "null;" declaration in one project file example
1933         * gnat_rm.texi: Document Empty declarations "null;".
1935         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
1936         front of the linker options.
1937         (Link_Foreign): Put the global archives and the libraries in front of
1938         the linker options.
1940 2004-06-28  Javier Miranda  <miranda@gnat.com>
1942         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
1943         (RTU_Loaded): Code cleanup
1944         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
1945         withed predefined units.
1947         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
1948         explicitly withed predefined units.
1949         Fix typo in comment
1951         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
1952         explicitly withed predefined units.
1954 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1956         * ada-tree.def (DECL_STMT): Deleted.
1957         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
1958         (DECL_STMT_VAR): Deleted.
1959         * decl.c: add_decl_stmt now add_decl_expr.
1960         * gigi.h: Likewise.
1961         * trans.c: Likewise.
1962         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
1963         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
1964         (add_stmt): Only handle padded type here.
1965         (add_stmt_with_node): Allow gnat_node to not be present.
1966         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
1967         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
1968         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
1969         make a SAVE_EXPR for the entire fat pointer.
1970         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
1971         (create_index_type): Make a DECL_EXPR.
1972         (end_subprog_body): Don't call allocate_struct_function here but
1973         do clear cfun.
1975 2004-06-25  Pascal Obry  <obry@gnat.com>
1977         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
1978         Relocatable from Build_Dynamic_Library call.
1980         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
1981         Relocatable are now synonym.
1983         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
1985         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
1986         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
1987         call.
1989         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
1990         Lib_Address and Relocatable.
1991         (Default_DLL_Address): Removed.
1993         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1994         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
1995         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
1996         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
1997         (Default_DLL_Address): Removed.
1999         * mlib-tgt-mingw.adb: Ditto.
2000         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
2002         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
2003         the initial thread stack size.
2005         * a-strmap.ads: Move package L to private part as it is not used in
2006         the spec. Found while reading code.
2008 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
2010         * tracebak.c: Introduce support for a GCC infrastructure based
2011         implementation of __gnat_backtrace.
2013         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
2014         any more. Use accessors instead. This eases maintenance and relaxes
2015         some alignment constraints.
2016         (_GNAT_Exception structure): Remove the Ada specific fields
2017         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
2018         a-exexpr.adb.
2019         (is_handled_by, __gnat_eh_personality): Replace component references to
2020         exception structure by use of the new accessors.
2022         * init.c (__gnat_initialize): Adjust comments to match the just
2023         reverted meaning of the -static link-time option.
2025         * adaint.c (convert_addresses): Arrange not to define a stub for
2026         mips-irix any more, as we now want to rely on a real version from a
2027         recent libaddr2line.
2029         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
2030         the personality routine can use them and not have to rely on a C
2031         counterpart of the record anymore. This simplifies maintenance and
2032         relaxes the constraint of having Standard'Maximum_Alignment match
2033         BIGGEST_ALIGNMENT.
2034         Update comments, and add a section on the common header alignment issue.
2036 2004-06-25  Geert Bosch  <bosch@gnat.com>
2038         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
2039         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
2041 2004-06-25  Robert Dewar  <dewar@gnat.com>
2043         * gnat_rm.texi: Fix section on component clauses to indicate that the
2044         restriction on byte boundary placement still applies for bit packed
2045         arrays.
2046         Add comment on stack usage from Initialize_Scalars
2048         * gnat_ugn.texi: Add documentation for -gnatyLnnn
2050         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
2051         limiting nesting level.
2053         * usage.adb: Add line for -gnatyLnnn switch
2055         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
2056         sem_ch13.adb, exp_aggr.adb: Minor reformatting
2058         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
2059         type as well as on the subtype. This corrects a problem in freeze in
2060         setting alignments of atomic types.
2062         * sem_eval.ads: Minor comment typo fixed
2064         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
2065         level.  Minor reformatting.
2067         * fname.adb (Is_Predefined_File_Name): Require a letter after the
2068         minus sign. This means that file names like a--b.adb will not be
2069         considered predefined.
2071         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
2072         record Test new flag and give diagnostic for bad component clause.
2073         (Freeze_Entity): Set alignment of array from component alignment in
2074         cases where this is safe to do.
2076         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
2077         arrays.
2079         * cstand.adb: (Create_Standard): Set alignment of String to 1
2081         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
2083         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
2084         code in the common constrained array cases.
2086         * a-storio.adb: Change implementation to avoid possible alignment
2087         problems on machines requiring strict alignment (data should be moved
2088         as type Buffer, not type Elmt).
2090         * checks.adb (Apply_Array_Size_Check): Improve these checks by
2091         killing the overflow checks which we really do not need (64-bits is
2092         enough).
2094 2004-06-25  Vincent Celier  <celier@gnat.com>
2096         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
2097         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
2098         inconditionally for the main project.
2099         (Recursive_Add_Archives.Add_Archive_Path): New procedure
2100         (Link_Executables.Check_Time_Stamps): New procedure
2101         (Link_Executables.Link_Foreign): New procedure
2102         Changes made to reduce nesting level of this package
2103         (Check): New procedure
2104         (Add_Switches): When not in quiet output, check that a switch is not
2105         the concatenation of several valid switches. If it is, issue a warning.
2106         (Build_Global_Archive): If the global archive is rebuilt, linking need
2107         to be done.
2108         (Compile_Sources): Rebuilding a library archive does not imply
2109         rebuilding the global archive.
2110         (Build_Global_Archive): New procedure
2111         (Build_Library): New name for Build_Archive, now only for library
2112         project
2113         (Check_Archive_Builder): New procedure
2114         (Create_Global_Archive_Dependency_File): New procedure
2115         (Gprmake): Call Build_Global_Archive before linking
2116         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
2117         throughout.
2118         (Scan_Arg): Display the Copyright notice when -v is used
2120         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
2121         for gnatls.
2123         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
2124         COMPILE.
2125         Add new GNAT LIST qualifier /FILES=
2126         Added qualifier /DIRECTORY= to GNAT METRIC
2127         Added qualifier /FILES= to GNAT METRIC
2128         Added qualifier /FILES to GNAT PRETTY
2130         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
2131         to take into account both versions of the switch.
2133         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
2134         always be the last switch to the gcc driver. Disable switch storing so
2135         that switches automatically added by the gcc driver are not put in the
2136         ALI file.
2138         * prj.adb (Project_Empty): Take into account changes in components of
2139         Project_Data.
2141         * prj.ads (Languages_Processed): New enumaration value All_Languages.
2143         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
2144         used. Split Boolean component Ada_Sources_Present in two Boolean
2145         components Ada_Sources_Present and Other_Sources_Present.
2146         Minor reformatting
2148         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
2149         instead of Sources_Present.
2150         (Set_Ada_Paths.Add.Recursive_Add): Ditto
2152         * prj-nmsc.adb: Minor reformatting
2153         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
2154         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
2155         Check_Ada_Naming_Scheme.
2156         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
2157         throughout.
2159         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
2160         In_Limited.
2161         Make sure that all cycles where there is at least one "limited with"
2162         are detected.
2163         (Parse_Single_Project): New Boolean parameter In_Limited
2165         * prj-proc.adb (Recursive_Check): When Process_Languages is
2166         All_Languages, call first Prj.Nmsc.Ada_Check, then
2167         Prj.Nmsc.Other_Languages_Check.
2169         * prj-proc.adb (Process): Use Ada_Sources_Present or
2170         Other_Sources_Present (instead of Sources_Present) depending on
2171         Process_Languages.
2173         * lang-specs.h: Keep -g and -m switches in the same order, and as the
2174         last switches.
2176         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
2177         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
2178         False.
2179         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
2180         False.
2182         * lib.ads (Disable_Switch_Storing): New procedure.
2184         * make.adb: Modifications to reduce nesting level of this package.
2185         (Check_Standard_Library): New procedure
2186         (Gnatmake.Check_Mains): New procedure
2187         (Gnatmake.Create_Binder_Mapping_File): New procedure
2188         (Compile_Sources.Compile): Add switch -gnatez as the last option
2189         (Display): Never display -gnatez
2191         * Makefile.generic:
2192         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
2194         * gnatcmd.adb (Check_Project): New function
2195         (Process_Link): New procedure to reduce nesting depth
2196         (Check_Files): New procedure to reduce the nesting depth.
2197         For GNAT METRIC, include the inherited sources in extending projects.
2198         (GNATCmd): When GNAT LS is invoked with a project file and no files,
2199         add the list of files from the sources of the project file. If this list
2200         is too long, put it in a temp text files and use switch -files=
2201         (Delete_Temp_Config_Files): Delete the temp text file that contains
2202         a list of source for gnatpp or gnatmetric, if one has been created.
2203         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
2204         in the project file is too large, create a temporary text file that
2205         list them and pass it to the tool with "-files=<temp text file>".
2206         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
2208         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
2209         generated file is in not in Ada.
2211         * gnatls.adb: Remove all parameters And_Save that are no longer used.
2212         (Scan_Ls_Arg): Add processing for -files=
2213         (Usage): Add line for -files=
2215         * g-os_lib.adb (On_Windows): New global constant Boolean flag
2216         (Normalize_Pathname): When on Windows and the path starts with a
2217         directory separator, make sure that the resulting path will start with
2218         a drive letter.
2220         * clean.adb (Clean_Archive): New procedure
2221         (Clean_Project): When there is non-Ada code, delete the global archive,
2222         the archive dependency files, the object files and their dependency
2223         files, if they exist.
2224         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
2226 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
2228         * sinfo.ads: Fix typo in comment.
2230         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
2231         the TSS for remote access-to-subprogram types, since these TSS are
2232         always present once the type has been analyzed.
2233         (RAS_E_Dereference): Same.
2235         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
2236         reference raises Bad_Attribute, mark the reference as analyzed so the
2237         node (and any children resulting from rewrites that could have occurred
2238         during the analysis that ultimately failed) is not analyzed again.
2240         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
2242         * exp_dist.adb: Minor comment fix.
2244         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
2245         type is an anonymous access type, no unchecked deallocation of the
2246         allocated object can occur. If the object is controlled, attach it with
2247         a count of 1. This allows attachment to the Global_Final_List, if
2248         no other relevant list is available.
2249         (Get_Allocator_Final_List): For an anonymous access type that is
2250         the type of a discriminant or record component, the corresponding
2251         finalisation list is the one of the scope of the type.
2253 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
2255         * sem_ch3.adb (Replace_Type): When computing the signature of an
2256         inherited subprogram, use the first subtype if the derived type
2257         declaration has no constraint.
2259         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
2260         before applying previous optimization. Minor code cleanup.
2262         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
2263         placed at the beginning of an unpacked record without explicit
2264         alignment, a slice of it will be aligned and does not need a copy when
2265         used as an actual.
2267 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
2269         PR ada/15591
2270         PR ada/15592
2271         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
2272         reference is written with expressions mimicking parameters.
2274 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
2276         PR ada/15589
2277         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
2278         STEP 2a. The constraints of a full type declaration of a derived record
2279         type are checked for conformance with those declared in the
2280         corresponding private extension declaration. The message
2281         "not conformant with previous declaration" is emitted if an error is
2282         detected.
2284 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
2286         * g-traceb.ads: Document the need for -E binder switch in the spec.
2288         * g-trasym.ads: Document the need for -E binder switch in the spec.
2290 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
2292         * sem_prag.adb: Add handling of pragma Detect_Blocking.
2294         * snames.h, snames.ads, snames.adb: Add entry for pragma
2295         Detect_Blocking.
2297         * s-rident.ads: Change reference to pragma Detect_Blocking.
2299         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
2300         system.ads.
2302         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
2303         to indicate whether pragma Detect_Blocking is active.
2305         * par-prag.adb: Add entry for pragma Detect_Blocking.
2307         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
2308         of not handling WITH.
2309         Note that this replaces the previous update which was incorrect.
2311 2004-06-25  Javier Miranda  <miranda@gnat.com>
2313         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
2314         use-clauses to have a clean environment.
2316         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
2317         the installation of the use-clauses to stablish a clean environment in
2318         case of compilation of a separate unit; otherwise the call to
2319         use_one_package is protected by the barrier Applicable_Use.
2321         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
2322         the installation of the use-clauses to stablish a clean environment in
2323         case of compilation of a separate unit.
2324         (End_Use_Clauses): Minor comment cleanup.
2326 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
2328         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
2330 2004-06-23  Richard Henderson  <rth@redhat.com>
2332         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
2334 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2336         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
2337         now bool instead of int.
2338         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
2339         * trans.c (gnu_switch_label_stack): New function.
2340         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
2341         elaboration of renamed entity returns.
2342         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
2343         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
2344         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
2345         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
2346         DECL_SIZE_UNIT and simplify variable-sized case.
2347         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
2348         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
2349         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
2350         (build_unit_elab): Disable for now.
2351         * utils.c (mark_visited): New function.
2352         (pushdecl): Walk tree to call it for global decl.
2353         (update_pointer_to): Update all variants of pointer and ref types.
2354         Add arg to COMPONENT_REF.
2355         (convert): Likewise.
2356         Move check for converting between variants lower down.
2357         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
2358         (build_allocator): Don't force type of MODIFY_EXPR.
2359         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
2360         put_var_into_stack.
2362 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2364         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
2365         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
2366         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
2367         subprograms.
2368         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
2369         all callers changed.
2370         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
2371         the way that EXIT_STMT finds the loop label.
2372         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
2373         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
2374         (add_stmt): Use annotate_with_locus insted of setting directly.
2375         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
2376         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
2377         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
2378         (build_vms_descriptor): Add extra args to ARRAY_REF.
2379         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
2380         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
2381         New cases.
2382         (build_binary_op): Don't make explicit CONVERT_EXPR.
2383         Add extra rgs to ARRAY_REF.
2385 2004-06-14  Pascal Obry  <obry@gnat.com>
2387         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
2388         Windows.  Fix minor typo.
2390         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
2391         which is now supported on Windows. With this implementation using the
2392         Library Project feature is no different on Windows than on UNIX.
2394 2004-06-14  Vincent Celier  <celier@gnat.com>
2396         * makegpr.adb (Compile_Sources): Nothing to do when there are no
2397         non-Ada sources.
2399         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
2401         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
2402         found, show the project name and the path of the previously parsed
2403         project file.
2405 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
2407         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
2408         array, avoid copying the actual before the call.
2410 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
2412         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
2413         Instead, allocate memory on worst-case alignment assumptions, and then
2414         return an aligned address within the allocated zone.
2416 2004-06-14  Robert Dewar  <dewar@gnat.com>
2418         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
2419         elab entities in predefined units in No_Run_Time_Mode.
2420         (Gen_Adainit_C): Same fix
2421         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
2422         units in No_Run_Time_Mode
2423         (Gen_Elab_Calls_C): Same fix
2425         * symbols-vms-alpha.adb: Minor reformatting
2427         * g-debpoo.ads: Minor reformatting
2429         * lib.adb (In_Same_Extended_Unit): Version working on node id's
2431         * lib.ads (In_Same_Extended_Unit): Version working on node id's
2433         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
2434         working on nodes.
2436         * make.adb: Minor reformatting
2438         * par-ch12.adb: Minor reformatting
2440         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
2442         * prj-strt.adb: Minor reformatting
2444         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
2445         be more general.
2447         * sem_attr.adb: Minor reformatting
2449         * sem_ch7.adb: Minor reformatting
2451         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
2452         for type in the same unit as the object declaration.
2454         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
2455         static string expressions and not just string literals.
2456         Minor reformatting
2457         (Set_Warning): Reset restriction warning flag for restriction pragma
2458         Implement pragma Profile_Warnings
2459         Implement pragma Profile (Restricted)
2460         Give obolescent messages for old restrictions and pragmas
2462         * snames.h, snames.ads, snames.adb: Add new entry for pragma
2463         Profile_Warnings.
2465         * s-rident.ads: Add declarations for restrictions required by profile
2466         Restricted and profile Ravenscar.
2468         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
2470         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
2471         configuration pragmas.
2473 2004-06-11  Vincent Celier  <celier@gnat.com>
2475         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
2476         gnatsym, when symbol policy is Restricted.
2478         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
2479         gnatsym, when symbol policy is Restricted.
2481         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
2482         read the symbol file.
2483         (Finalize): Fail in symbol policy Restricted if a symbol in the original
2484         symbol file is not in the object files. Do not create a new symbol file
2485         when symbol policy is Restricted.
2487         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
2488         in Scng.
2490         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
2491         Restricted.
2492         (Usage): Line for new switch -R
2494         * make.adb (Initialize): When the platform is not VMS, add the
2495         directory where gnatmake is invoked in the front of the path, if
2496         gnatmake is invoked with directory information.  Change the Scan_Args
2497         while loop to a for loop.
2498         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
2499         if Depth is equal or greater than the proposed depth, there is nothing
2500         to do.
2501         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
2502         instead of 0.
2504         * prj.ads: Add new symbol policy Restricted.
2506         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
2507         with the new parameters Check_All_Labels and Case_Location.
2509         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
2510         (Library_Symbol_File needs to be defined).
2512         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
2513         and Case_Location If Check_All_Labels is True, check that all values of
2514         the string type are used, and output warning(s) if they are not.
2516         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
2517         and Case_Location.
2519         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
2521         * gnat_ugn.texi: Update documentation about the library directory in
2522         Library Projects.
2524         * makegpr.adb (Display_Command): In verbose mode, also display the
2525         value of the CPATH env var, when the compiler is gcc.
2526         (Initialize): Change the Scan_Args while loop to a for loop
2527         (Compile_Individual_Sources): Change directory to object directory
2528         before compilations.
2530         * symbols.ads: New symbol policy Restricted.
2532 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
2534         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
2535         is now taken care of internally in the Exception_Propagation package
2536         and does not require clients assistance any more.
2538         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
2539         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
2540         functions. Helpers to maintain a predicate required in the handling of
2541         occurrence transfer between tasks.
2542         This is now handled internally and does not require clients assistance
2543         for the setup/propagate separation anymore.
2544         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
2545         allocation strategy, handle the Setup_And_Not_Propagated predicate and
2546         document.
2548         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
2549         raise_after_setup, now that everything is handled internally within the
2550         setup/propagation engine.
2552 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
2554         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
2555         Add additional conditions for the case of an actual being a simple
2556         name or literal. Improve inlining by preventing the generation
2557         of temporaries with a short lifetime (one use).
2559 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
2561         PR ada/15587
2563         * einfo.ads: Minor comment updates for Has_Completion and
2564         E_Constant list of flags.
2566         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
2567         and constant redeclarations now set the Has_Completion flag of their
2568         defining identifiers.
2570         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
2571         Inspect_Deferred_Constant_Completion.
2572         Used to detect private deferred constants that have not been completed
2573         either by a constant redeclaration or pragma Import. Emits error message
2574         "constant declaration requires initialization expression".
2576         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
2577         completes a deferred constant.
2579 2004-06-11  Geert Bosch  <bosch@gnat.com>
2581         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
2583         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
2584         calculating exponent for scaling denormal numbers.
2585         (Leading_Part): Properly raise Constraint_Error for zero or negative
2586         Adjustment.
2587         (Remainder): Properly raise Constraint_Error for zero divisor.
2589 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
2591         * sem_util.adb: Minor reformatting.
2593         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
2594         dereference when accessing the entry parameter record.
2595         (Check_Array_Type): Always check for possible implicit dereference.
2596         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
2597         Abort if a pointer is still present (denoting that an implicit
2598         dereference was left in the tree by the front-end).
2600         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
2601         dereference when accessing the entry parameter record.
2602         (Check_Array_Type): Always check for possible implicit dereference.
2603         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
2604         Abort if a pointer is still present (denoting that an implicit
2605         dereference was left in the tree by the front-end).
2607 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
2609         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
2610         message, like the compiler itself does. Easier to parse the output.
2612         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
2614         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
2615         be base names, and not includes directories.
2617 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
2619         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
2620         so that dependencies are properly taken into account by make.
2622 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
2624         PR ada/15622
2625         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
2626         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
2628 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
2630         * Makefile.in (install-gnatlib): install target-specific run-time files.
2632         * Make-lang.in: Remove obsolete targets.
2634 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
2636         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
2637         specification, to catch misuses of program unit names.
2639         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
2640         superfluous conversions in an instance.
2642 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
2644         PR ada/15403
2646         * sem_ch12.adb (Save_References): If operator node has been folded to
2647         enumeration literal, associated_node must be discarded.
2649 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
2651         * s-stchop-vxworks.adb: Add required pragma Convention to
2652         Task_Descriptor because it is updated by a C function.
2654 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
2656         PR ada/15568
2658         * Makefile.in: Remove target specific SO_OPT on IRIX
2660 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2662         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
2663         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
2664         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
2665         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
2666         (STMT_STMT, USE_STMT): New statement codes.
2667         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
2668         * ada-tree.h: Reflect above changes.
2669         (struct tree_loop_id): Deleted.
2670         (union lang_tree_node, struct lang_decl, struct lang_type):
2671         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
2672         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
2673         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
2674         (IS_ADA_STMT): New macro.
2675         * decl.c (annotate_decl_with_node): New function.
2676         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
2677         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
2678         Call add_stmt_with_node to do needed assignments.
2679         Add call to update setjmp buffer directly, not via EXPR_STMT.
2680         (maybe_variable): Argment GNAT_NODE deleted.
2681         * gigi.h (maybe_variable): Likewise.
2682         (make_transform, add_stmt_with_node, set_block_for_group): New.
2683         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
2684         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
2685         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
2686         (set_lineno, set_lineno_from_sloc): Likewise.
2687         (record_code_position, insert_code_for): Likewise.
2688         (gnat_poplevel): Now returns void.
2689         (end_subprog_body): Now takes argument.
2690         * misc.c (cgraph.h, tree-inline.h): New includes.
2691         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
2692         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
2693         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
2694         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
2695         (gnat_parse_file): Don't set immediate_size_expand.
2696         Call cgraph functions.
2697         (gnat_expand_expr): Remove most cases.
2698         (record_code_position, insert_code_for): Remove from here.
2699         * trans.c (toplev.h, tree-gimple.h): Now included.
2700         (discard_file_names): Deleted.
2701         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
2702         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
2703         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
2704         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
2705         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
2706         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
2707         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
2708         (set_block_for_group, add_stmt_list): Likewise.
2709         (start_stmt_group): Renamed from start_block_stmt.
2710         (end_stmt_group): Likewise, from end_block_stmt.
2711         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
2712         (gigi): Don't set discard_file_names or call set_lineno.
2713         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
2714         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
2715         Numerous changes throughout to reflect new names and complete
2716         function-at-a-time implementation.
2717         (gnat_expand_stmt): Delete or comment out all cases.
2718         (process_inlined_subprograms): Use add_stmt.
2719         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
2720         call set_lineno; also remove unneeded block handling.
2721         (process_type): Remove unneeded block handling.
2722         (build_unit_elab): Remove calls to deleted functions.
2723         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
2724         (tree-dump.h): Likewise.
2725         (struct ada_binding_level): Add field jmpbuf_decl.
2726         (gnat_define_builtin, gnat_install_builtins): New.
2727         (gnat_gimplify_function, gnat_finalize): Likewise.
2728         (gnat_poplevel): No longer return BLOCK, set it instead.
2729         Remove code dealing with nested functions.
2730         (gnat_init_decl_processing): Also set size_type_node.
2731         Call gnat_install_builtins.
2732         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
2733         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
2734         Remove special-case for "main".
2735         (end_subprog_body): Add arg and rework for tree-ssa.
2736         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
2737         Add case for BOOLEAN_TYPE.
2738         * utils2.c (rtl.h): Now include.
2739         (build_call_raise): Test Debug_Flag_NN directly.
2740         (build_call_alloc_dealloc): Don't use local stack allocation for now.
2741         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
2742         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
2744 2004-06-07  Robert Dewar  <dewar@gnat.com>
2746         * a-direct.ads, einfo.ads: Minor comment updates
2748         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
2749         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
2750         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
2751         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
2752         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
2754         * s-interr-sigaction.adb: Remove unreferenced variable
2755         (Attached_Interrupts).  Minor reformatting.
2756         Avoid use of variable I (replace by J).
2758         * par-ch10.adb: Fix text of one error message
2760         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
2761         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
2762         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
2763         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
2764         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
2765         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
2766         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
2767         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
2768         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
2769         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
2770         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
2771         2005 support.
2773 2004-06-07  Doug Rupp  <rupp@gnat.com>
2775         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
2777         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
2779         * mlib-tgt-vms-ia64.adb: New file.
2781         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
2782         Add mlib-tgt-vms-ia64.adb
2783         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
2784         Move to alpha specific ifeq section.
2785         Add VMS specific versions of symbols.adb
2786         Renaming of 5q vms files.
2788         * 5qsystem.ads renamed to system-vms_64.ads.
2790 2004-06-07  Vincent Celier  <celier@gnat.com>
2792         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
2793         explain that when a time of day corresponding to the non existing hour
2794         on the day switching to DST is specified, Split may return a different
2795         value for Seconds.
2797         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
2798         to GNAT PRETTY.
2800         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
2801         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
2803         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
2804         to False.
2805         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
2806         the linking options.
2807         (Build_Library.Check_Libs): On VMS, if there is a dependency on
2808         g-trasym.ads, set Gtrasymobj_Needed to True.
2810         * prj-attr.adb: Add new package Metrics for gnatmetric
2812         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
2813         canonical case to take into account files with upper case characters on
2814         Windows.
2815         (Ada_Check): Load the reference symbol file name in the name buffer to
2816         check it, not the symbol file name.
2818         * snames.ads, snames.adb: Add standard name Metrics (name of project
2819         file package for gnatmetric).
2821         * vms_conv.ads: Add Metric to Comment_Type
2823         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
2825         * vms_data.ads: Add qualifiers for GNAT METRIC
2827         * makegpr.adb (Link_Executables): Take into account the switches
2828         specified in package Linker of the main project.
2830 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
2832         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
2833         the index of the last element is Units.Last, not Units.Table'Last
2834         (which is usually not a valid index within the actually allocated
2835         storage for the table).
2837         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
2838         determines whether to generate a call to a checked storage pool
2839         Dereference action.
2840         Generate such a call only for a dereference that either comes from
2841         source, or is the result of rewriting a dereference that comes from
2842         source.
2844 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
2846         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
2848 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
2850         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
2851         file level, elaborate the stride for inner dimensions in alignment
2852         units, not bytes.
2854         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
2855         in a comment.
2857 2004-06-07  Javier Miranda  <miranda@gnat.com>
2859         * exp_ch6.adb: Correct wrong modification in previous patch
2861 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
2863         * g-trasym.ads: Corrected comment to properly reflect level of support
2864         on VMS.
2866 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
2868         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
2869         includes case of a variable referenced on the left hand side of an
2870         assignment, therefore remove redundant code. Variables and prefixes of
2871         indexed or selected components are now marked as referenced on left
2872         hand side. Warnings are now properly emitted when variables or prefixes
2873         are assigned but not read.
2875         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
2876         left hand side referenced variables. Private access types do not
2877         produce the warning "variable ... is assigned but never read".
2878         Add also additional checks to left hand side referenced variables.
2879         Aliased, renamed objects and access types do not produce the warning
2880         "variable ... is assigned but never read" since other entities may read
2881         the memory location.
2883 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
2885         * Makefile.in: In the powerpc/vxworks-specific section, restore
2886         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
2887         by mistake).
2889 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
2891         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
2892         predefined operators.
2893         Removes spurious type errors from g-trasym-vms.adb.
2895         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
2896         distinct from the operator appearing in the source, call appropriate
2897         routine to insert conversions when needed, and complete resolution of
2898         node.
2899         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
2900         interpretations for rewritten right operand.
2901         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
2902         the other operand is overloaded and the context is a type conversion.
2904 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2906         * ada-tree.def (BLOCK_STMT): Now has two operands.
2907         (BREAK_STMT): New.
2909         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
2911         * gigi.h: (gnat_poplevel): Now returns a tree.
2913         * trans.c (end_block_stmt): Add arg; all callers changed.
2914         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
2915         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
2916         (add_stmt): Set TREE_TYPE.
2917         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
2918         (gnat_expand_stmt, case BREAK_STMT): New case.
2920         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
2922 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
2924         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
2925         procedure Set_Stack_Size that is not needed.
2927 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
2929         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
2930         used for gnatpp input file and for the files upon which it depends
2932 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
2934         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
2936 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
2938         * gnatvsn.ads: Bump version numbers appropriately.
2939         Add new build type.
2941 2004-06-07  Pascal Obry  <obry@gnat.com>
2943         * gnat_ugn.texi: Improve comments about imported names and link names
2944         on Windows. Add a note about the requirement to use -k gnatdll's option
2945         when working with a DLL which has stripped stdcall symbols (no @nn
2946         suffix).
2948 2004-05-27  Vincent Celier  <celier@gnat.com>
2950         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
2951         COMMENTS_LAYOUT=UNTOUCHED
2953         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
2954         symbols-vms-alpha.adb
2956 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
2958         * sem.ads: Clarify documentation on checks suppression.
2960         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
2962 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
2964         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
2965         the case of multiple derivations.
2966         (Is_Object_Reference): For a selected component, verify that the prefix
2967         is itself an object and not a value.
2969         * sem_ch12.adb (Same_Instantiated_Constant): New name for
2970         Same_Instantiated_Entity.
2971         (Same_Instantiated_Variable): Subsidiary to
2972         Check_Formal_Package_Instance, to recognize actuals for in-out generic
2973         formals that are obtained from a previous formal package.
2974         (Instantiate_Subprogram_Body): Emit proper error when
2975         generating code and the proper body of a stub is missing.
2977         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
2978         has a universal interpretation, do the disambiguation here.
2980         * exp_ch4.adb (Expand_N_Type_Conversion,
2981         Expand_N_Unchecked_Type_Conversion): Special handling when target type
2982         is Address, to avoid typing anomalies when Address is a visible integer
2983         type.
2985         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
2986         to determine whether a subprogram should not be marked Pure, even when
2987         declared in a pure package.
2989 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
2991         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
2993         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
2994         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
2995         Update the documentation about the Ravenscar profile, following the
2996         definition found in AI-249.
2998         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
2999         setting the Profile (Ravenscar). This must be done in addition to
3000         setting the required restrictions.
3002         * rtsfind.ads: Add the set of operations defined in package
3003         Ada.Interrupts.
3005         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
3006         restriction.
3008 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
3010         lang-specs.h: Always require -c or -S and always redirect to /dev/null
3011         if -gnatc or -gnats is passed.
3013 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
3015         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
3016         a significant reference. Warnings are now properly emitted when a
3017         discriminated type is not referenced.
3019         * lib-xref.adb (Generate_Reference): A deferred constant completion,
3020         record representation clause or record type discriminant does not
3021         produce a reference to its corresponding entity. Warnings are now
3022         properly emitted when deferred constants and record types are not
3023         referenced.
3025 2004-05-27  Geert Bosch  <bosch@gnat.com>
3027         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
3028         Fixes ACATS Annex G tests.
3030 2004-05-27  Robert Dewar  <dewar@gnat.com>
3032         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
3033         handling WITH
3035 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
3037         * s-interr.adb (Server_Task): Take into account case of early return
3038         from sigwait under e.g. linux.
3040 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
3042         * gnat_ugn.texi: Add description for the new gnatpp options:
3043          -rnb - replace the original source without creating its backup copy
3044          -c0 - do not format comments
3046 2004-05-24  Geert Bosch  <bosch@gnat.com>
3048         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
3049         with 192 bits of precision, sufficient to reduce a double-extended
3050         arguments X with a maximum relative error of T'Machine_Epsilon, for X
3051         in -2.0**32 .. 2.0**32.
3052         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
3053         reduction by the processor, which only uses a 68-bit approximation of
3054         Pi.
3055         (Tan): Always reduce arguments and compute function either using
3056         the processor's fptan instruction, or by dividing sin and cos as needed.
3058 2004-05-24  Doug Rupp  <rupp@gnat.com>
3060         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
3061         gcc error on 32/64 bit VMS.
3063 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
3065         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
3066         since this is what we get for stack overflows although not documented
3067         as such.
3068         Document the issues which may require adjustments to our signal
3069         handlers.
3071 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
3073         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
3074         enclosing dynamic scope if the instantiation is within a generic unit.
3076 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
3078         * exp_dbug.ads: Fix typo.
3080         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
3081         Rename it to its proper name: system-linux-ia64.ads
3082         (stamp-gnatlib1): Remove extra target specific run time files when
3083         setting up the rts directory.
3085 2004-05-24  Javier Miranda  <miranda@gnat.com>
3087         * einfo.ads, einfo.adb (Limited_Views): Removed.
3088         (Limited_View): New attribute that replaces the previous one. It is
3089         now a bona fide package with the limited-view list through the
3090         first_entity and first_private attributes.
3092         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
3093         limited-private-with clause.
3094         (Install_Limited_Withed_Unit): Install the private declarations of a
3095         limited-private-withed package. Update the installation of the shadow
3096         entities according to the new structure (see Build_Limited_Views)
3097         (Build_Limited_Views): Replace the previous implementation of the
3098         limited view by a package entity that references the first shadow
3099         entity plus the first shadow private entity (required for limited-
3100         private-with clause)
3101         (New_Internal_Shadow_Entity): Code cleanup.
3102         (Remove_Limited_With_Clause): Update the implementation to undo the
3103         new work carried out by Build_Limited_Views.
3104         (Build_Chain): Complete documentation.
3105         Replace Ada0Y by Ada 0Y in comments
3106         Minor reformating
3108         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
3109         types the level of accessibility depends on the enclosing type
3110         declaration.
3112         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
3113         entities. Complete documentation of previous change.
3115 2004-05-24  Robert Dewar  <dewar@gnat.com>
3117         * namet.adb: Minor reformatting
3118         Avoid use of name I (replace by J)
3119         Minor code restructuring
3121         * sem_ch6.adb: Minor reformatting
3123         * lib-writ.adb: Do not set restriction as active if this is a
3124         Restriction_Warning case.
3126         * sem_prag.adb: Reset restriction warning flag if real pragma
3127         restriction encountered.
3129         * s-htable.adb: Minor reformatting
3130         Change rotate count to 3 in Hash (improves hash for small strings)
3132         * 5qsystem.ads: Add comments for type Address (no literals allowed).
3134         * gnat_ugn.texi: Add new section of documentation "Code Generation
3135         Control", which describes the use of -m switches.
3137 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
3139         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
3140         through the DECL_INITIAL for renamed variables.
3142 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
3144         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
3146 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
3148         * exp_dbug.ads: Correct comments concerning handling of overloading,
3149         since we no longer use $ anymore.
3151 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
3153         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
3154         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
3155         with illegal subunits.
3157 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
3159         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
3160         body with front-end inlining enabled, check whether an inline pragma
3161         appears immediately after the body and applies to it.
3163         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
3164         enabled and the pragma appears after the body of the subprogram.
3166 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3168         Part of function-at-a-time conversion
3170         * misc.c (adjust_decl_rtl): Deleted.
3171         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
3172         Define.
3174         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
3175         (add_decl_stmt, add_stmt, block_has_vars): New functions.
3176         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
3178         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
3179         when making a decl.
3180         (gnat_to_gnu_entity): Likewise.
3181         Use add_stmt to update setjmp buffer.
3182         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
3183         flush_addressof.
3184         No longer call adjust_decl_rtl.
3185         (DECL_INIT_BY_ASSIGN_P): New macro.
3186         (DECL_STMT_VAR): Likewise.
3188         * trans.c (gigi): Call start_block_stmt to make the outermost
3189         BLOCK_STMT.
3190         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
3191         Call start_block_stmt and end_block_stmt temporarily.
3192         Use gnat_expand_stmt instead of expand_expr_stmt.
3193         (add_decl_stmt): New function.
3194         (tree_transform): Call it.
3195         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
3196         (end_block_stmt): Set type and NULL_STMT.
3197         (gnat_expand_stmt): Make recursize call instead of calling
3198         expand_expr_stmt.
3199         (gnat_expand_stmt, case DECL_STMT): New case.
3200         (set_lineno_from_sloc): Do nothing if global.
3201         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
3202         (start_block_stmt, add_stmt, end_block_stmt): New functions.
3203         (build_block_stmt): Call them.
3204         (gnat_to_code): Don't expand NULL_STMT.
3205         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
3206         args.
3207         (tree_transform): Likewise.
3208         (tree_transform, case N_Null_Statement): Return NULL_STMT.
3209         (gnat_expand_stmt, case NULL_STMT): New case.
3210         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
3211         IF_STMT_TRUE.
3213         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
3214         TREE_ADDRESSABLE.
3216         * utils.c (create_var_decl): Do not call expand_decl or
3217         expand_decl_init.
3218         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
3219         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
3220         here.
3221         (struct e_stack): Add chain_next to GTY.
3222         (struct binding_level): Deleted.
3223         (struct ada_binding_level): New struct.
3224         (free_block_chain): New.
3225         (global_binding_level, clear_binding_level): Deleted.
3226         (global_bindings_p): Rework to see if no chain.
3227         (kept_level_p, set_block): Deleted.
3228         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
3229         new data structure and work directly on BLOCK node.
3230         (gnat_poplevel): Similarly.
3231         (get_decls): Look at BLOCK_VARS.
3232         (insert_block): Work directly on BLOCK node.
3233         (block_has_var): New function.
3234         (pushdecl): Rework for new binding structures.
3235         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
3236         poplevel.
3237         (build_subprog_body): Likewise.
3238         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
3240         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
3242         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
3243         (DECL_STMT_VAR): Likewise.
3245 2004-05-17  Robert Dewar  <dewar@gnat.com>
3247         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
3248         procedure
3250         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
3251         of restriction synonyums by using
3252         Restrict.Process_Restriction_Synonyms.
3254         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
3256         * s-restri.ads (Tasking_Allowed): Correct missing comment
3258         * s-rident.ads: Add entries for restriction synonyms
3260         * ali.adb: Fix some problems with badly formatted ALI files that can
3261         result in infinite loops.
3263         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
3264         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
3265         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
3266         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
3267         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
3268         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
3269         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
3270         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
3271         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
3272         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
3273         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
3274         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
3275         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
3276         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
3277         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
3278         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
3279         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
3280         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
3281         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
3282         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
3283         to Task_Id (minor cleanup).
3285 2004-05-17  Vincent Celier  <celier@gnat.com>
3287         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
3288         directory separator.
3290         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
3291         project being extended, if Languages is not declared in extending
3292         project.
3294 2004-05-17  Javier Miranda  <miranda@gnat.com>
3296         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
3297         limited view of a visible sibling.
3299 2004-05-14  Robert Dewar  <dewar@gnat.com>
3301         * gnat_ugn.texi: Minor change to -gnatS documentation
3303         * sprint.adb: Remove some instances of Assert (False) and for this
3304         purpose replace them by output of a ??? string.
3306         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
3307         Assert (False).
3309         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
3310         flag processing. This was suppressing required dependencies in
3311         No_Run_Time mode and is not needed since the binder does not generate
3312         references for things in libgnat anyway.
3314         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
3315         warning.
3317 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
3319         * gnat_ugn.texi: Document AIX-specific issue with initialization of
3320         resolver library.
3322         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
3323         action for the case of an actual parameter in an init proc call.
3325 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
3327         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
3328         subtype, check visible entities in base type.
3330         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
3331         actions if the object is a renaming.
3333         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
3334         Check_Formal_Package_Instance, to determine more precisely when the
3335         formal and the actual denote the same entity.
3337 2004-05-14  Javier Miranda  <miranda@gnat.com>
3339         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
3341         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
3342         corresponding to a private_with must be removed from visibility; it
3343         will be made visible later, just before we analyze the private part of
3344         the package.
3345         (Check_Private_Child_Unit): Allow private_with clauses in public
3346         siblings.
3347         (Install_Siblings): Make visible the private entities of private-withed
3348         siblings.
3349         (Install_Withed_Unit): Do not install the private withed unit if we
3350         are compiling a package declaration and the Private_With_OK flag was
3351         not set by the caller. These declarations will be installed later,
3352         just before we analyze the private part of the package.
3354         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
3355         during the evaluation of the expression that initializes the object,
3356         decorate it with the expected type to avoid cascade errors.
3357         Code cleanup.
3359         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
3360         subprogram we have to install the private_with clauses after its
3361         specification has been analyzed (as documented in AI-262.TXT).
3363         * sem_ch8.adb (Has_Private_With): New function. Determines if the
3364         current compilation unit has a private with on a given entity.
3365         (Find_Direct_Name): Detect the Beaujolais problem described in
3366         AI-262.TXT
3368         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
3369         provides the functionality of the function Is_Ancestor that was
3370         previously available in sem_ch10. It has been renamed to avoid
3371         overloading.
3373         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
3375 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3377         * utils.c (build_vms_descriptor): Use SImode pointers.
3379 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
3381         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
3383 2004-05-14  GNAT Script  <nobody@gnat.com>
3385         * Make-lang.in: Makefile automatically updated
3387 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
3389         Renaming of target specific files for clarity
3391         * Makefile.in: Rename GNAT target specific files.
3393         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
3394         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
3395         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
3396         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
3397         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
3398         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
3399         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
3400         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
3401         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
3402         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
3403         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
3404         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
3405         51osinte.adb, 51osinte.ads, 51system.ads,
3406         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
3407         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
3408         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
3409         56tpopsp.adb, 57system.ads, 58system.ads,
3410         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
3411         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
3412         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
3413         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
3414         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
3415         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
3416         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
3417         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
3418         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
3419         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
3420         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
3421         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
3422         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
3423         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
3424         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
3425         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
3426         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
3427         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
3428         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
3429         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
3430         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
3431         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
3432         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
3433         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
3434         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
3435         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
3436         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
3437         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
3438         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
3439         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
3440         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
3441         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
3442         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
3443         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
3444         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
3445         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
3446         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
3447         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
3448         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
3449         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
3451         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
3452         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
3453         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
3454         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
3455         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
3456         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
3457         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
3458         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
3459         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
3460         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
3461         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
3462         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
3463         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
3464         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
3465         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
3466         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
3467         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
3468         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
3469         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
3470         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
3471         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
3472         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
3473         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
3474         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
3475         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
3476         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
3477         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
3478         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
3479         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
3480         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
3481         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
3482         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
3483         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
3484         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
3485         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
3486         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
3487         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
3488         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
3489         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
3490         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
3491         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
3492         s-osinte-vms.ads, s-osinte-vxworks.adb,
3493         s-osinte-vxworks.ads, s-osprim-mingw.adb,
3494         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
3495         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
3496         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
3497         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
3498         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
3499         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
3500         s-stchop-vxworks.adb, s-taprop-dummy.adb,
3501         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
3502         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
3503         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
3504         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3505         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
3506         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
3507         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
3508         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
3509         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
3510         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
3511         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
3512         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
3513         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
3514         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
3515         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
3516         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
3517         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
3518         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
3519         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
3520         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
3521         system-irix-o32.ads, system-linux-x86_64.ads,
3522         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
3523         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
3524         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
3525         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
3526         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
3527         system-vxworks-mips.ads, system-vxworks-ppc.ads,
3528         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
3529         above.
3531 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
3533         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
3535 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
3537         Merge from tree-ssa-20020619-branch.
3539         * config-lang.in (boot_language, build_by_default): Set
3540         to no.
3541         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
3542         (max_size): Add static chain op for call_expr.
3544 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
3546         PR target/15331
3547         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
3549 2004-05-11  Roger Sayle  <roger@eyesopen.com>
3551         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
3552         COND_EXPR.
3554 2004-05-10  Doug Rupp  <rupp@gnat.com>
3556         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
3557         system.aux_dec.
3559         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
3561         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
3563         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
3564         Fixes undefined symbols in IA64 gnatlib.
3566         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
3568         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
3569         Short_Address). This will be moved to system.auxdec.
3571 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
3573         * sem_util.adb: Replace test for presence of a node that is always
3574         present with a call to Discard_Node.
3576         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
3577         Analyze on the library unit node after generation of distribution stub
3578         constructs.  The call was a no-op because Unit_Node has already been
3579         Analyzed, and the tree fragments for the distribution stubs are
3580         analyzed as they are inserted in Exp_Dist.
3581         Update comment regarding to distribution stubs to reflect that we
3582         do not generate stub in separate files anymore.
3584         * einfo.ads: Clarify the fact that a tagged private type has the
3585         E_Record_Type_With_Private Ekind.
3587         * erroutc.adb: Minor reformatting
3589         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
3590         values if line length is increased using -gnatyM (noticed during code
3591         reading).
3593         * eval_fat.adb: Minor reformatting
3594         Put spaces around exponentiation operator
3596 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
3598         PR ada/15005
3599         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
3600         has been rewritten as an explicit dereference, retrieve type of
3601         original node to check for possibly unconstrained record type.
3603 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
3605         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
3606         overriding, use the operation of the parent unconditionally.
3608         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
3609         operation when either operand is a literal, to avoid further
3610         ambiguities.
3612         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
3613         overridden by a previous explicit declaration, mark the previous entity
3614         as overriding.
3616         * sem_disp.adb (Check_Dispatching_Operation): New predicate
3617         Is_Visibly_Controlled, to determine whether a declaration of a
3618         primitive control operation for a derived type overrides an inherited
3619         one. Add warning if the explicit declaration does not override.
3621 2004-05-10  Vincent Celier  <celier@gnat.com>
3623         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
3624         some cases when the sources are no longer present.
3626         * make.adb (Collect_Arguments): Fail if an external source, not part
3627         of any project need to be compiled, when switch -x has not been
3628         specified.
3630         * makeusg.adb: Document new switch -x
3632         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
3633         defaulted to False.
3635         * switch-m.adb (Scan_Make_Switches): New switch -x
3637         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
3638         gnatmake switch -x.
3640         * gnat_ugn.texi: Document new gnatmake switch -x
3642 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
3644         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
3646         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
3647         (process_attributes): Likewise.
3649 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
3651         * s-inmaop.ads: Fix spelling mistake in one of the comments.
3653 2004-05-10  Robert Dewar  <dewar@gnat.com>
3655         * gnat_ugn.texi: Document that for config pragma files, the maximum
3656         line length is always 32767.
3658         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
3659         literals is now allowed.
3661         * gnat-style.texi: Remove statement about splitting long lines before
3662         an operator rather than after, since we do not follow this rule at all.
3663         Clarify rule (really lack of rule) for spaces around exponentiation
3665         * sem_elim.adb: Allow concatenation of string literals as well as a
3666         single string literal for pragma arguments.
3668         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
3670         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
3671         written for append case.
3673         * frontend.adb: Changes to avoid checking max line length in config
3674         pragma files.
3676         * g-os_lib.ads: Minor reformatting
3678         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
3679         wrong in any case. Instead use standard value. Noticed during code
3680         reading.
3682         * opt.ads (Max_Line_Length): New field, used to implement removal of
3683         limitation on length of lines when scanning config pragma files.
3685         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
3686         makeutl.ads, makeutl.adb: Minor reformatting
3688         * scn.adb: Do not check line length while scanning config pragma files
3689         Do not check line length while scanning out license information
3691         * scng.adb: Changes to avoid line length checks while parsing config
3692         pragma files.
3694 2004-05-10  GNAT Script  <nobody@gnat.com>
3696         * Make-lang.in: Makefile automatically updated
3698 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
3700         * osint.adb (Find_Program_Name): Fix handling of VMS version
3701         number.
3703 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
3705         * g-os_lib.ads (Invalid_Time): New constant
3707         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
3708         return OS_Time instead of time_t to match what is imported by Ada.
3709         Now return -1 if the file doesn't exist, instead of a random value
3711 2004-05-05  Robert Dewar  <dewar@gnat.com>
3713         * usage.adb: Add line for -gnatR?s switch
3715         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
3717         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
3718         and for Match (Data_First, Data_last)
3720         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
3721         written when we are dealing with multi-unit files.
3723 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
3725         * Makefile.in: Remove unused targets and variables.
3727 2004-05-05  Vincent Celier  <celier@gnat.com>
3729         * switch-m.adb: New gnatmake switch -eI
3731         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
3732         of new gnatmake switch -eInnn.
3734         * makegpr.adb: Take into account new parameters Index and Src_Index in
3735         Prj.Util.
3737         * clean.adb: Implement support for multi-unit sources, including new
3738         switch -i.
3740         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
3741         Src_Index.
3743         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
3744         (Extract_From_Q): New out parameter Index
3745         (Mark, Is_Marked): Subprograms moved to Makeutl
3746         (Switches_Of): New parameter Source_Index
3747         (Add_Switch): New parameter Index
3748         (Check): New parameter Source_Index
3749         (Collect_Arguments): New parameter Source_Index
3750         (Collect_Arguments_And_Compile): New parameter Source_Index
3751         (Compile): New parameter Source_Index
3752         Put subprograms in alphabetical order
3753         Add support for multi-source sources, including in project files.
3755         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
3756         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
3757         Make.
3759         * makeusg.adb: New gnatmake switch -eInnn
3761         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
3762         Prj.Util.Value_Of.
3764         * opt.ads (Main_Index): New variable, defaulted to 0.
3766         * osint.ads, osinte.adb (Add_File): New parameter Index
3767         (Current_Source_Index): New function
3769         * prj.adb: Take into account new components Index and Src_Index
3771         * prj.ads (String_Element): New component Index
3772         (Variable_Value): New component Index
3773         (Array_Element): New component Src_Index
3775         * prj-attr.adb: Indicate that optional index may be specified for
3776         attributes Main, Executable, Spec, Body and some of Switches.
3778         * prj-attr.ads (Attribute_Kind): New values for optional indexes
3779         (Attribute_Record): New component Optional_Index
3781         * prj-com.ads (File_Name_Data): New component Index
3783         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
3785         * prj-env.adb (Put): Output optional index
3787         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
3788         attributes Spec and Body.
3790         * prj-nmsc.adb: Process optional indexes
3792         * prj-pp.adb: Ouput "at" for optional indexes
3794         * prj-proc.adb: Take into account optional indexes
3796         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
3797         Optional_Index. For string literal,
3798         process optional index when Optional_Index is True.
3799         (Parse_Expresion): New Boolean parameter Optional_Index
3801         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
3802         (Set_Source_Index_Of): New procedure
3804         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
3805         index.
3807         * prj-util.ads (Executable_Of): New parameter Index
3808         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
3809         New parameter Src_Index, defaulted to 0.
3811 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
3813         PR ada/15257
3814         * sem_ch3.adb (Access_Definition): If this is an access parameter
3815         whose designated type is imported through a limited_with clause, do
3816         not add the enclosing subprogram to the list of private dependents of
3817         the type.
3819 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
3821         PR ada/15258
3822         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
3823         a limited_with clause, and the other is its non-limited view.
3825 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
3827         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
3829         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
3830         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
3831         Stand.Boolean_Literals to produce references to entities
3832         Standard_False and Standard_True from compile-time computed boolean
3833         values.
3835         * stand.ads (Boolean_Literals): New variable, provides the entity
3836         values for False and True, for use by the expander.
3838 2004-05-05  Doug Rupp  <rupp@gnat.com>
3840         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
3841         5vinmaop.adb: Unchecked convert Short_Address vice Address
3843         * adaint.c, raise.c: Caste CRTL function return value
3844         to avoid gcc error on 32/64 bit IVMS.
3846         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
3847         target = IA64/VMS.
3849         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
3851         * 5qsystem.ads (Address): Declare as Long_Integer
3852         (Short_Address): Declare as 32 bit subtype of Address
3853         Declare  abstract address operations to avoid gratuitous ambiguities.
3855 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
3857         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
3858         instead of the old Boolean_Entry_Barriers.
3859         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
3861 2004-05-05  GNAT Script  <nobody@gnat.com>
3863         * Make-lang.in: Makefile automatically updated
3865 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
3867         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
3869 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
3871         PR ada/15152
3873         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
3874         alone. Replacing object references by literals is inappropriate in a
3875         so low level context.
3877 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
3879         * a-exexpr.adb: Add comments
3881 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
3883         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
3884         declare the Ancestor_Tags array in Type_Specific_Data with a small size
3885         without risking a bounds check error when accessing one of its
3886         components.
3887         (Type_Specific_Data): Define Ancestor_Tags as a small array.
3888         This prevents us from hitting a limitation during the debug info
3889         generation when using stabs.
3891         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
3892         small array.
3893         This prevents us from hitting a limitation during the debug info
3894         generation when using stabs.
3896 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
3898         lang-specs.h: Remove -gnatz* from specs.
3900 2004-05-03  Vincent Celier  <celier@gnat.com>
3902         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
3904         * Make-lang.in, Makefile.in: Add gprmake
3906 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
3908         * sem_aggr.adb: Fix typo in comment.
3910 2004-05-03  Robert Dewar  <dewar@gnat.com>
3912         * make.adb: Minor reformatting
3914         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
3916         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
3917         so that it works when address is not a private type.
3919         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
3920         properly with rewritten unchecked conversions. This prevents
3921         order-of-elaboration issues that can otherwise arise.
3922         (Minimum_Size): Don't check size of access types under VMS
3924         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
3925         interpretations of integer literals as type System.Address.
3927         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
3928         (Is_Descendent_Of): New function
3930 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
3932         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
3933         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
3934         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
3936         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
3937         of the old Max_Entry_Queue_Depth.
3939         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
3940         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
3941         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
3943         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
3944         New entry for proper handling of Max_Entry_Queue_Depth.
3945         New entry for proper handling of No_Dynamic_Interrupts.
3947         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
3948         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
3949         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
3950         the GNAT specific restriction Max_Entry_Queue_Depth.
3951         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
3952         the GNAT specific restriction No_Dynamic_Interrupts.
3954         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
3955         instead of the old Boolean_Entry_Barriers.
3956         Use the new restriction No_Dynamic_Attachment instead of the old
3957         No_Dynamic_Interrupts.
3959         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
3960         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
3962         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
3963         of the old Max_Entry_Queue_Depth.
3965 2004-05-03  GNAT Script  <nobody@gnat.com>
3967         * Make-lang.in: Makefile automatically updated
3969 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
3971         * checks.adb (Enable_Range_Check): If the prefix of an index component
3972         is an access to an unconstrained array, perform check unconditionally.
3974 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3976         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
3977         Component_Clause.
3979 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
3981         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
3982         alternate stack setting. There was no support for the tasking cases
3983         and the changes eventually caused a number of side-effect failures in
3984         the non-tasking case too.
3986 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
3988         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
3989         -gnats is passed.
3991 2004-04-29  Vincent Celier  <celier@gnat.com>
3993         * make.adb (Gnatmake): Increase max size of argument array for
3994         gnatbind for the potential addition of -F.
3995         If there are Stand-Alone Library projects, invoke gnatbind with -F to
3996         be sure that elaboration flags will be checked.
3998         * switch-c.adb: Correct call to Scan_Pos for -gnateI
4000 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
4002         * sem_warn.adb (Check_References): Move '<access-variable> may be
4003         null' warning out of under Warn_On_No_Value_Assigned.
4005 2004-04-29  Ed Falis  <falis@gnat.com>
4007         * gnat_ugn.texi: Fixed texi error
4009 2004-04-29  Robert Dewar  <dewar@gnat.com>
4011         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
4012         abstract operations if they come from predefined files.
4014         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
4015         Dynamic, not RM).
4017         * s-addope.adb: Correct obvious error in mod function
4019 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
4021         * Makefile.in: Add target pairs for powerpc darwin*
4022         tasking support.
4024         * a-intnam-darwin.ads, s-osinte-darwin.adb,
4025         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
4027 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
4029         * Makefile.in: Add target macro definitions for s390*-linux*.
4030         * system-linux-s390.ads: New file.
4031         * system-linux-s390x.ads: New file.
4033 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
4035         * gnat_ugn.texi: Correct argument to @setfilename.
4037 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
4039         * a-exexpr.adb (Unwind_Word): New data type.
4040         (Unwind_Exception): Use it as type of Private1 and Private2.
4042         * raise.c (db_action_for): Fix debug printf.
4044 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
4046         * a-wtmoio.ads: Formal type must be a modular type, not a signed
4047         integer type.
4049 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4051         * decl.c (gnat_to_gnu_entity, case object): Call
4052         __builtin_update_setjmp_buf.
4054         * gigi.h (update_setjmp_buf): Deleted.
4055         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
4057         * misc.c: (update_setjmp_buf): Deleted.
4059         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
4060         around block of RTL.
4062         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
4064 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
4066         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
4067         subprogram for which no pragma All_Calls_Remote applies, store the
4068         address of the real subprogram in the underlying record type, so local
4069         dereferences do not go through the PCS.
4071 2004-04-26  Robert Dewar  <dewar@gnat.com>
4073         * i-c.ads: Add some type qualifications to avoid ambiguities when
4074         compiling with s-auxdec.ads and a non-private address type.
4076 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
4078         * Makefile.rtl: Fix error in previous check-in:
4079         Add s-addope.o to non tasking object list (rather than tasking object
4080         list).
4082 2004-04-26  Javier Miranda  <miranda@gnat.com>
4084         * sem_aggr.adb: Fix typo in comments
4085         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
4086         Required to check the null-exclusion attribute.
4088         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
4089         case of anonymous access types in record and array components. For a
4090         component definition the level is the same of the enclosing composite
4091         type.
4093         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
4094         that are anonymous access types the level of accessibility depends on
4095         the enclosing type declaration. In order to have this information, set
4096         the scope of the anonymous access type to the enclosing record type
4097         declaration.
4098         (Array_Type_Declaration): In case of components that are anonymous
4099         access types the level of accessibility depends on the enclosing type
4100         declaration. In order to have this information, set the scope of the
4101         anonymous access type to the enclosing array type declaration.
4103         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
4104         access type.
4106         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
4107         renaming of anonymous access-to-constant types allowed if and only if
4108         the renamed object is access-to-constant.
4110         * sem_util.adb (Type_Access_Level): In case of anonymous access types
4111         that are component_definition or discriminants of a nonlimited type,
4112         the level is the same as that of the enclosing component type.
4114 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
4116         * sem_elim.adb: Some minor code reorganization from code reading. Fix
4117         misprint in the function name (File_Name_Match).
4119 2004-04-23  Laurent GUERBY <laurent@guerby.net>
4121         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
4122         install.
4124 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4126         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
4128 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
4130         * adaint.c (__gnat_try_lock): No longer requires that the parent
4131         directory be writable, the directory itself is enough.
4132         (gnat_is_absolute_path): Change profile, so that the call from
4133         GNAT.OS_Lib can be made more efficient.
4135         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
4136         from GNAT.OS_Lib can be made more efficient.
4138         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
4139         one copy of the file name. Found by code reading.
4141 2004-04-23  Vincent Celier  <celier@gnat.com>
4143         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
4144         Correct documentation on gnatmake switches transmitted to the compiler
4146         * ali.ads: Minor comment fix
4148 2004-04-23  Javier Miranda  <miranda@gnat.com>
4150         * sem_ch6.adb: (Confirming Types): Code cleanup
4152         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
4153         subprogram types: E_Anonymous_Access_Subprogram_Type and
4154         E_Anonymous_Access_Protected_Subprogram_Type.
4156 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
4158         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
4159         whether a pragma All_Calls_Remote applies to the subprogram on which
4160         'Access is taken.
4161         No functional change is introduced by this revision; the new parameter
4162         will be used to allow calls to local RCI subprograms to be optimized
4163         to not use the PCS in the case where no pragma All_Calls_Remote applies,
4164         as is already done in the PolyORB implementation of the DSA.
4166         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
4167         whether a pragma All_Calls_Remote applies to the subprogram on which
4168         'Access is taken.
4169         No functional change is introduced by this revision; the new parameter
4170         will be used to allow calls to local RCI subprograms to be optimized
4171         to not use the PCS in the case where no pragma All_Calls_Remote applies,
4172         as is already done in the PolyORB implementation of the DSA.
4174 2004-04-23  Robert Dewar  <dewar@gnat.com>
4176         * Makefile.rtl: Add entry for s-addope.o in run time library list
4177         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
4178         * s-addope.ads, s-addope.adb: New files.
4180         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
4181         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
4182         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
4183         System.Address to be non-private and signed.
4185         * sem_elim.adb: Minor reformatting (fairly extensive)
4186         Some minor code reorganization from code reading
4187         Add a couple of ??? comments
4189 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4191         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
4192         (tree_transform, case N_If_Statement): Remove non-determinism.
4194         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
4196 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
4198         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
4199         Eliminate' section.
4201         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
4202         no longer used as a parameter name for Eliminate pragma).
4204 2004-04-22  Laurent GUERBY <laurent@guerby.net>
4206         PR optimization/14984
4207         PR optimization/14985
4208         * trans.c (gigi): Fix non determinism leading to bootstrap
4209         comparison failures.
4211 2004-04-21  Pascal Obry  <obry@gnat.com>
4213         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
4214         passed to spawnvp() to properly handle program pathname with spaces on
4215         Win32.
4217 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
4219         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
4220         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
4221         unlocked in case of exceptions.
4223 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
4225         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
4226         This function does not exist anymore.
4228 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
4230         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
4232         * link.c: Move variables to the __gnat name space.
4234         * Makefile.in: list link.o explicitly when needed.
4236         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
4238 2004-04-21  Javier Miranda  <miranda@gnat.com>
4240         * einfo.adb (Original_Access_Type): New subprogram
4241         (Set_Original_Access_Type): New subprogram
4242         (Write_Field21_Name): Write the name of the new field
4244         * einfo.ads (Original_Access_Type): New field present in access to
4245         subprogram types.
4246         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
4247         E_Anonymous_Access_Protected_Subprogram_Type.
4249         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
4250         subprogram types.
4252         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
4253         to anonymous access to subprogram types.
4255         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
4256         to subprogram types.
4258         * sem_ch3.adb (Access_Definition): Complete decoration of entities
4259         corresponding to anonymous access to subprogram types.
4260         (Analyze_Component_Declaration): Add new actual to the call to
4261         subprogram replace_anonymous_access_to_protected_subprogram.
4262         (Array_Type_Declaration): Add new actual to the call to subprogram
4263         replace_anonymous_access_to_protected_subprogram.
4264         (Process_Discriminants): Add new actual to the call to subprogram
4265         replace_anonymous_access_to_protected_subprogram.
4266         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
4268         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
4269         formal.
4271         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
4272         access to subprogram types.
4274         * sem_util.adb (Has_Declarations): Addition of package_specification
4275         nodes.
4277 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
4279         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
4280         inlined flags to renamed entity only if in current unit.
4282 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
4284         * s-parint.ads: Add DSA implementation marker.
4286         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
4287         value of System.Partition_Interface.DSA_Implementation to determine
4288         what version of the distributed systems annex is available (no
4289         implementation, GLADE, or PolyORB).
4291 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
4293         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
4295 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4297         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
4298         with new type if alias sets differ.
4299         Fixes ACATS c41103b.
4301 2004-04-21  Vincent Celier  <celier@gnat.com>
4303         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
4304         Add array Lang_Args for the language specific compiling argument
4305         switches.
4307         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
4309 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
4311         * gnat_rm.texi: Update the descripton of the Eliminate pragma
4312         according to the recent changes in the format of the parameters of the
4313         pragma (replacing Homonym_Number with Source_Location).
4315 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
4317         * 5isystem.ads: Removed, unused.
4319         * gnat_rm.texi: Redo 1.13 change.
4321 2004-04-19  Robert Dewar  <dewar@gnat.com>
4323         * s-stoele.ads: Clean up definition of Storage_Offset (the new
4324         definition is cleaner, avoids the kludge of explicit Standard operator
4325         references, and also is consistent with a visible System.Address with
4326         no visible operations.
4328         * s-geveop.adb: Add declarations to avoid assumption of visible
4329         operations on type System.Address (since these might not be available
4330         if Address is a non-private type for which the operations
4331         are made abstract).
4333         * sem_eval.adb: Minor reformatting
4335         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
4336         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
4337         reformatting (new function spec format).
4339         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
4340         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
4341         s-caun64.adb: Add declarations to avoid assumption of visible
4342         operations on type System.Address (since these might not be available
4343         if Address is a non-private type for which the operations are made
4344         abstract).
4346         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
4348         * exp_intr.adb: Minor comment update
4350         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
4352         * 5omastop.adb: Add declarations to avoid assumption of visible
4353         operations on type System.Address (since these might not be available
4354         if Address is a non-private type for which the operations
4355         are made abstract).
4357 2004-04-19  Vincent Celier  <celier@gnat.com>
4359         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
4361         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
4362         defaulted to Ada.
4364         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
4365         defaulted to Ada.
4366         Call Check with Process_Languages.
4367         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
4368         with Process_Languages.
4369         (Recursive_Check): New Boolean parameter Process_Languages. Call
4370         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
4371         Process_Languages.
4373         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
4375         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
4376         parameter Ada_Main, defaulted to True.
4377         Check for Ada specific characteristics only when Ada_Main is True.
4379         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
4381         * prj.adb: (Project_Empty): Add new Project_Data components.
4383         * prj.ads: New types and tables for non Ada languages.
4384         (Project_Data): New components Languages, Impl_Suffixes,
4385         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
4386         Include_Path, Include_Data_Set.
4388         * prj-env.ads, prj-env.adb: Minor reformatting
4390         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
4391         Put subprograms in alphabetical order
4393         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
4394         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
4395         Opt.Follow_Links.
4397         * mlib-prj.adb: Back out modification in last version, as they are
4398         incorrect.
4399         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
4401         * make.adb: (Mains): Moved to package Makeutl
4402         (Linker_Opts): Moved to package Makeutl
4403         (Is_External_Assignment): Moved to package Makeutl
4404         (Test_If_Relative_Path): Moved to package Makeutl
4405         (Gnatmake): Move sorting of linker options to function
4406         Makeutl.Linker_Options_Switches.
4408         * makeutl.ads, makeutl.adb: New files.
4410         * Makefile.in: Add makeutl.o to the object files for gnatmake
4412         * makeusg.adb: Add line for new switch -eL.
4414         * gnatls.adb (Image): New function.
4415         (Output_Unit): If in verbose mode, output the list of restrictions
4416         specified by pragmas Restrictions.
4418         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
4419         Text_IO.
4421         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
4422         needed, to put it in the range 1970 (included) - 2026 (excluded).
4423         (Time_Of): Do not shift Unix_Min_Year (1970).
4424         Shift the date by multiple of 56 years, if needed, to put it in the
4425         range 1970 (included) - 2026 (excluded).
4427         * adaint.h, adaint.c (__gnat_set_executable): New function.
4429 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4431         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
4432         and pop GC context.
4433         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
4434         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
4435         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
4436         (tree_transform, case N_Code_Statement): Likewise.
4437         (gnat_expand_stmt, case LABEL_STMT): Don't look at
4438         LABEL_STMT_FIRST_IN_EH.
4439         (gnat_expand_stmt, case ASM_STMT): New case.
4441         * utils2.c (build_unary_op): Properly set TREE_READONLY of
4442         UNCONSTRAINED_ARRAY_REF.
4444         * utils.c (poplevel): Temporarily push/pop GC context around inline
4445         function expansion.
4447         * decl.c (maybe_variable): Properly set TREE_READONLY of
4448         UNCONSTRAINED_ARRAY_REF.
4449         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
4451         * ada-tree.def: (ASM_STMT): New.
4453         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
4454         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
4455         ASM_STMT_INPUT): New.
4456         (ASM_STMT_CLOBBER): Likewise.
4458 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
4460         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
4461         general rcheck mechanism to raise Program_Error for E.4(18), instead
4462         of a custom raiser in System.Partition_Interface.
4463         Part of general cleanup work before PolyORB integration.
4465         * snames.ads, snames.adb: Add new runtime library entities and names
4466         for PolyORB DSA.
4468         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
4469         exp_dist.
4470         (Build_Subprogram_Id): New subprogram provided by exp_dist
4471         Code reorganisation in preparation for PolyORB integration.
4473         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
4474         exp_dist.
4475         (Build_Subprogram_Id): New subprogram provided by exp_dist
4477         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
4478         actual parameter types for call to dereference of an
4479         access-to-subprogram type.
4481         * rtsfind.ads: Add new runtime library entities and names for PolyORB
4482         DSA.
4484         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
4485         instead, which has the same behaviour here since we never pass it a
4486         NULL pointer.
4488         * link.c (run_path_option, Solaris case): Use -Wl, as for other
4489         platforms.
4491         * Makefile.in: adjust object file lists for gnatlink and gnatmake
4492         to account for new dependency upon Interfaces.C.Strings + link.o
4493         For x86 FreeBSD, use 86numaux.
4495         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
4496         from Mlib.Tgt to Mlib.
4498         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
4499         target-independent.
4501         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
4502         target-specific versions of this subprogram, now implemented as a
4503         target-independent function in Mlib.
4505         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
4506         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
4507         (Linker_Library_Path_Option): Remove target-specific versions of this
4508         subprogram, now implemented as a target-independent function in Mlib.
4510         * atree.adb: (Allocate_Initialize_Node): New subprogram.
4511         Factors out node table slots allocation.
4512         (Fix_Parents): New subprogram.
4513         Encapsulate the pattern of fixing up parent pointers for syntactic
4514         children of a rewritten node.
4515         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
4516         (Rewrite): Use New_Copy when creating saved copy of original node.
4517         (Replace): Use Copy_Node to copy nodes.
4519 2004-04-19  Javier Miranda  <miranda@gnat.com>
4521         * sprint.adb (Sprint_Node_Actual): Give support to the new
4522         Access_To_Subprogram node available in Access_Definition nodes. In
4523         addition, give support to the AI-231 node fields: null-exclusion,
4524         all-present, constant-present.
4526         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
4528         * sinfo.ads, sinfo.adb:
4529         New field Access_To_Subprogram_Definition in Access_Definition nodes
4531         * sem_ch6.adb (Process_Formals): Move here the code that creates and
4532         decorates internal subtype declaration corresponding to the
4533         null-excluding formal. This code was previously in Set_Actual_Subtypes.
4534         In addition, carry out some code cleanup on this code. In case of
4535         access to protected subprogram call
4536         Replace_Anonymous_Access_To_Protected_Subprogram.
4537         (Set_Actual_Subtypes): Code cleanup.
4539         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
4540         Find_Type in case of anonymous access renamings. Add warning in case of
4541         null-excluding attribute used in anonymous access renaming.
4543         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
4544         subprogram
4546         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
4547         subprogram.
4548         (Access_Definition): In case of anonymous access to subprograms call
4549         the corresponding semantic routine to decorate the node.
4550         (Access_Subprogram_Declaration): Addition of some comments indicating
4551         some code that probably should be added here. Detected by comparison
4552         with the access_definition subprogram.
4553         (Analyze_Component_Declaration): In case of access to protected
4554         subprogram call Replace_Anonymous_Access_To_Protected.
4555         (Array_Type_Declaration): In case of access to protected subprogram call
4556         Replace_Anonymous_Access_To_Protected_Subprogram.
4557         (Process_Discriminants): In case of access to protected subprogram call
4558         Replace_Anonymous_Access_To_Protected_Subprogram.
4560         * par.adb (P_Access_Definition): New formal that indicates if the
4561         null-exclusion part was present.
4562         (P_Access_Type_Definition): New formal that indicates if the caller has
4563         already parsed the null-excluding part.
4565         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
4566         (P_Identifier_Declarations): Code cleanup and give support to renamings
4567         of anonymous access to subprogram types.
4568         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
4569         (P_Array_Type_Definition): Give support to AI-254.
4570         (P_Component_Items): Give support to AI-254.
4571         (P_Access_Definition): New formal that indicates if the header was
4572         already parsed by the caller.
4573         (P_Access_Type_Definition): New formal that indicates if the caller has
4574         already parsed the null-excluding part.
4576         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
4577         call to P_Access_Definition.
4579 2004-04-19  Geert Bosch  <bosch@gnat.com>
4581         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
4582         the delicate semantics of floating-point to integer conversion.
4583         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
4585         * eval_fat.adb (Machine_Mantissa): Moved to spec.
4586         (Machine_Radix): New function.
4588         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
4589         conversion checks.
4590         (Machine_Radix): New function also for use in conversion checks.
4592 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
4594         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
4596         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
4597         to decorate the access-to-protected subprogram and the equivalent type.
4599         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
4600         to anonymous access to subprogram types.
4602         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
4603         constant-folding, for legality checks in contexts that require an RM
4604         static expression.
4606         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
4607         temporary but stack checking is not enabled, increment serial number
4608         to so that symbol generation is consistent with and without stack
4609         checking.
4611         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
4612         independent on whether stack checking is enabled, caller must check
4613         the corresponding flag.
4615         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
4616         range checks.
4617         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
4618         parent if it has discriminants.
4619         (Build_Derived_Private_Type): Constructed full view does
4620         not come from source.
4621         (Process_Discriminants): Default discriminants on a tagged type are
4622         legal if this is the internal completion of a private untagged
4623         derivation.
4625         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
4626         no constraint checks, because it corresponds to an existing object.
4628         * sem_prag.adb (Process_Convention): Pragma applies
4629         only to subprograms in the same declarative part, i.e. the same unit,
4630         not the same scope.
4632         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
4633         ignore type mismatch on a numeric conversion if expression comes from
4634         expansion.
4636 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
4638         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
4639         Homonym_Number parameter, add processing for Source_Location parameter
4640         corresponding.
4641         (Check_Eliminated): Remove the check for homonym numbers, add the check
4642         for source location traces.
4644         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
4645         with Arg_Source_Location corresponding to the changes in the format of
4646         the pragma.
4648         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
4649         Eliminate pragma corresponding to the changes in the format of the
4650         pragma: Homonym_Number is replaced with Source_Location, two ways of
4651         distinguishing homonyms are mutially-exclusive.
4653 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
4655         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
4657         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
4658         No_Dollar_In_Label, no longer necessary, as it is always True.
4659         (Strip_Suffixes): Likewise.
4661 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
4663         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
4664         modulus for compatibility with size clause on targets with 16-bit
4665         Integer.
4667         * layout.adb (Discrimify): In the case of private types, set Vtyp to
4668         full type to fix type mismatches on calls to size functions for
4669         discriminant-dependent array components.
4671 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
4673         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
4674         lib.
4676 2004-04-19  Pascal Obry  <obry@gnat.com>
4678         * mdll-utl.adb (Locate): New version is idempotent.
4680 2004-04-17  Laurent Guerby <laurent@guerby.net>
4682         PR ada/14988 (partial)
4683         * impunit.adb: Fix typo.
4685 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
4687         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
4688         and install-rts-cert targets.  Remove all gnatlib and gnattools
4689         targets and all other rts-* targets (moved to libada).  Remove (now)
4690         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
4691         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
4693 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4695         * trans.c (tree_transform): Shortcut returning error_mark_node for
4696         statements in annotate_only_mode.
4697         (tree_transform, case N_Label, case N_Return_Statement,
4698         N_Goto_Statement): Make statement tree instead of generating code.
4699         (tree_transform, case N_Assignment_Statement): No longer check
4700         type_annotate_only.
4701         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
4702         RETURN_STMT): New.
4703         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
4704         New fcns.
4705         (gnat_to_gnu): Collect any RTL generated and deal with it.
4706         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
4707         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
4708         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
4710         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
4712         * ada-tree.def (EXPR_STMT): Fix typo in name.
4713         (BLOCK_STMT, IF_STMT): New nodes.
4715         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
4716         LABEL_STMT_FIRST_IN_EH): New macros.
4717         (RETURN_STMT_EXPR): Likewise.
4719         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
4720         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
4722 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
4724         * atree.ads: Correct documentation on extended nodes.
4726         * link.c: Set run_path_option for FreeBSD.
4728 2004-04-08  Vincent Celier  <celier@gnat.com>
4730         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
4731         one of the ALI file, do not link with DEC lib.
4733         * par.adb Remove the last two characters ("%s" or "%b") when checking
4734         if a language defined unit may be recompiled.
4736 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
4738         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
4739         removal of abstract operation leaves no possible interpretation for
4740         expression.
4742         * sem_eval.adb (Eval_Qualified_Expression): Use
4743         Set_Raises_Constraint_Error on node when needed, so that it does not
4744         get optimized away by subsequent optimizations.
4746         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
4747         operands even when they are not wrapped in a type conversion.
4749 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
4751         * sem_prag.adb (Set_Exported): Warn about making static as result of
4752         export only when the export is coming from source. This may be not
4753         be true e.g. on VMS where we expand export pragmas for exception codes
4754         together with imported or exported exceptions, and we don't want the
4755         user to be warned about something he didn't write.
4757 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
4759         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
4760         duplication between normal entities and those declared as renamings.
4761         No functional change.
4763         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
4764         inline functions returning an unconstrained result.
4766 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
4768         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
4769         conform to what other front-ends do.
4771 2004-04-08  Doug Rupp  <rupp@gnat.com>
4773         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
4774         libraries.
4776 2004-04-06  Pascal Obry  <obry@gnat.com>
4778         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
4780         * osint.adb (Program_Name): Do not look past a directory separator.
4782 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
4784         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
4786         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
4787         requirement for preserving a copy of the original assignment node.
4789         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
4791 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
4793         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
4794         when supported.
4796 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
4798         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
4799         operator calls in functional notation, and apply
4800         Universal_Interpretation to operands, not to their type.
4802 2004-04-06  Robert Dewar  <dewar@gnat.com>
4804         * 5wdirval.adb: Minor reformatting
4806 2004-04-06  Ed Falis  <falis@gnat.com>
4808         * gnat_rm.texi: Improve a reference to the GCC manual
4810 2004-04-05  Vincent Celier  <celier@gnat.com>
4812         * adaint.h, adaint.c: Add function __gnat_named_file_length
4814         * impunit.adb: Add Ada.Directories to the list
4816         * Makefile.in: Add VMS and Windows versions of
4817         Ada.Directories.Validity package body.
4819         * Makefile.rtl: Add a-direct and a-dirval
4821         * mlib-tgt.ads: Minor comment update.
4823         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
4824         a-direct.ads, a-direct.adb: New files.
4826 2004-04-05  Vincent Celier  <celier@gnat.com>
4828         PR ada/13620
4829         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
4830         just to the compiler.
4832 2004-04-05  Robert Dewar  <dewar@gnat.com>
4834         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
4835         returned string is 1.
4837         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
4839         * eval_fat.ads: Minor reformatting
4841         * g-curexc.ads: Document that lower bound of returned string values
4842         is always one.
4844         * gnatlink.adb: Add ??? comment for previous change
4845         (need to document why this is VMS specific)
4847         * s-stoele.ads: Minor reformatting
4849         * tbuild.ads: Minor reformatting throughout (new function specs)
4851         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
4852         after WITH.
4854         * scng.adb: Minor reformatting
4856 2004-04-05  Geert Bosch  <bosch@gnat.com>
4858         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
4859         (Leading_Part): Still perform truncation to machine number if the
4860         specified radix_digits is greater or equal to machine_mantissa.
4862 2004-04-05  Javier Miranda  <miranda@gnat.com>
4864         * par-ch3.adb: Complete documentation of previous change
4865         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
4866         (aliased must appear before constant).
4868         * par-ch4.adb: Complete documentation of previous change.
4870         * par-ch6.adb: Complete documentation of previous change.
4872         * sinfo.ads: Fix typo in commment.
4874 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
4876         * sem_ch3.adb (Inherit_Components): If derived type is private and has
4877         stored discriminants, use its discriminants to constrain parent type,
4878         as is done for non-private derived record types.
4880         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
4881         Ada 2005 AI-310: an abstract non-dispatching operation is not a
4882         candidate interpretation in an overloaded call.
4884         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
4885         expression is Null and target type is not an access type (e.g. a
4886         non-private address type).
4888 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
4890         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
4891         statement whose right-hand side is an inlined call, save a copy of the
4892         original assignment subtree to preserve enough consistency for
4893         Analyze_Assignment to proceed.
4895         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
4896         complete assignment subtree which is now unnecessary, as the expansion
4897         of inlined call has been improved to preserve a consistent assignment
4898         tree.  Note_Possible_Modification must be called only
4899         after checks have been applied, or else unnecessary checks will
4900         be generated.
4902         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
4903         of explicit dereferences that do not Come_From_Source:
4904          - be selective on cases where we must go back to the dereferenced
4905            pointer (an assignment to an implicit dereference must not be
4906            recorded as modifying the pointer);
4907          - do not rely on Original_Node being present (Analyze_Assignment
4908            calls Note_Possible_Modification on a copied tree).
4910         * sem_warn.adb (Check_References): When an unset reference to a pointer
4911         that is never assigned is encountered, prefer '<pointer> may be null'
4912         warning over '<pointer> is never assigned a value'.
4914 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
4916         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
4917         the ABI.
4919 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
4921         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
4922         libexc. We currently don't reference anything in this library and
4923         linking it in triggers linker warnings we don't want to see.
4925         * init.c: Update comments.
4927 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4929         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
4930         * utils.c (create_field_decl): Likewise.
4931         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
4933 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
4935         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
4936         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
4937         Add info directory entry and category.
4939 2004-04-02  Jan Hubicka  <jh@suse.cz>
4941         * utils.c: Include function.h
4942         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
4944 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
4946         PR ada/14150
4947         * Make-lang.in: Clean up generation of documentation
4949         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
4951         * xgnatug.adb: Removed, replaced by xgnatugn.adb
4953         * xgnatugn.adb: Replaces xgnatug.adb
4955         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
4957         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
4959         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
4960         gnat_ug_wnt.texi: Removed.
4962 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
4964         * utils2.c: Update copyright notice.
4966 2004-04-01  Robert Dewar  <dewar@gnat.com>
4968         * checks.adb: Minor reformatting throughout
4969         Note that prev checkin added RM reference to alignment warning
4971 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
4973         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
4974         non-static when building aggregate for bit-packed array.
4976         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
4977         function call that is itself the actual in a procedure call, build
4978         temporary for it.
4980         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
4981         a string literal, create a temporary for it, constant folding only
4982         handles scalars here.
4984 2004-04-01  Vincent Celier  <celier@gnat.com>
4986         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
4987         Error_Msg_SP): New empty procedures to instantiate the Scanner.
4988         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
4989         tokens.
4990         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
4991         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
4992         and get the checksum.
4994         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
4995         already in the Q.
4996         Increase the Marking_Label at the end of the Multiple_Main_Loop,
4997         instead of at the beginning.
4999         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
5000         directly.
5001         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
5002         on VMS.
5004         * osint.ads (Multi_Unit_Index_Character): New Character global variable
5006         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
5007         not '~' directly.
5009         * par.adb: Remove test on file name to detect language defined units.
5010         Add test on unit name, after parsing, to detect language defined units
5011         that are not compiled with -gnatg (except System.RPC and its children)
5013         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
5014         following units without style checking.
5016         * switch-c.adb: Change -gnatC to -gnateI
5018         * usage.adb: Document new switch -gnateInnn
5020         * scng.adb (Accumulate_Token_Checksum): New procedure
5021         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
5022         word or literal number.
5023         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
5024         numbers.
5026 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
5028         * a-tasatt.adb,
5029         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
5030         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
5031         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
5032         5vtpopde.adb: Add missing 'constant' keywords.
5034 2004-04-01  Javier Miranda  <miranda@gnat.com>
5036         * par-ch4.adb: (P_Allocator): Code cleanup
5038         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
5039         attribute.
5041         * sinfo.ads: Complete documentation of previous change
5043 2004-04-01  Pascal Obry  <obry@gnat.com>
5045         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
5046         only on VMS.  This special handling was done because an old GNU/ld bug
5047         on Windows which has been fixed.
5049 2004-04-01  GNAT Script  <nobody@gnat.com>
5051         * Make-lang.in: Makefile automatically updated
5053 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5055         * decl.c (gnat_to_gnu_entity, make_type_from_size):
5056         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
5057         * trans.c (tree_transform, convert_with_check): Likewise.
5058         * utils.c (gnat_signed_or_unsigned_type): Likewise.
5059         (build_vms_descriptor, unchecked_convert): Likewise.
5060         * utils2.c (nonbinary_modular_operation): Likewise.
5062 2004-03-29  Javier Miranda  <miranda@gnat.com>
5064         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
5065         (Install_Null_Excluding_Check): Local subprogram that determines whether
5066         an access node requires a runtime access check and if so inserts the
5067         appropriate run-time check.
5068         (Apply_Access_Check): Call Install_Null_Excluding check if required
5069         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
5071         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
5073         * einfo.ads: Fix typo in comment
5075         * exp_ch3.adb (Build_Assignment): Generate conversion to the
5076         null-excluding type to force the corresponding run-time check.
5077         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
5078         type to force the corresponding run-time check.
5080         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
5081         the null-excluding type to force the corresponding run-time check.
5083         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
5084         case of access types unless they have the null-excluding attribute.
5086         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
5087         part.
5089         * exp_util.ads: Fix typo in comment
5091         * par.adb (P_Null_Exclusion): New subprogram
5092         (P_Subtype_Indication): New formal that indicates if the null-excluding
5093         part has been scanned-out and it was present
5095         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
5097         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
5098         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
5099         type to force the corresponding run-time check
5100         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
5101         components
5102         (Resolve_Array_Aggregate): Carry out some static checks
5103         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
5105         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
5106         attribute must be set only if specified by means of the null-excluding
5107         part. In addition, we must also propagate the access-constant attribute
5108         if present.
5109         (Access_Subprogram_Declaration, Access_Type_Declaration,
5110         Analyze_Component_Declaration, Analyze_Object_Declaration,
5111         Array_Type_Declaration, Process_Discriminants,
5112         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
5113         and carry out some static checks.
5114         (Build_Derived_Access_Type): Set the null-excluding attribute
5115         (Derived_Type_Declaration, Process_Subtype): Carry out some static
5116         checks.
5118         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
5120         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
5122         * sem_ch6.adb (Process_Formals): Carry out some static checks.
5123         (Set_Actual_Subtypes): Generate null-excluding subtype if the
5124         null-excluding part was present; it is not required to be done here in
5125         case of anonymous access types.
5126         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
5127         value.
5129         * sem_res.adb (Resolve_Actuals): Carry out some static check
5130         (Resolve_Null): Allow null in anonymous access
5132         * sinfo.adb: New subprogram Null_Exclusion_Present
5133         All_Present and Constant_Present available on access_definition nodes
5135         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
5136         object_declaration, derived_type_definition, component_definition,
5137         discriminant_specification, access_to_object_definition,
5138         access_function_definition, allocator, access_procedure_definition,
5139         access_definition, parameter_specification, All_Present and
5140         Constant_Present flags available on access_definition nodes.
5142 2004-03-29  Robert Dewar  <dewar@gnat.com>
5144         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
5145         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
5146         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
5147         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
5148         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
5149         sem_prag.adb: Updates to handle multiple units/file
5151         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
5153         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
5154         sem_util.adb: Minor reformatting
5156         * sem_ch12.adb: Add comment for previous change
5158 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
5160         * osint.adb (Executable_Prefix): Set Exec_Name to the current
5161         executable name when not initialized. Otherwise, use its current value.
5163         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
5164         initialize it to another executable name than the current one. This
5165         allows to configure paths for an executable name (gnatmake) different
5166         from the current one (gnatdist).
5168 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
5170         * exp_ch6.adb (Expand_Call): A call to a function declared in the
5171         current unit cannot be inlined if it appears in the body of a withed
5172         unit, to avoid order of elaboration problems in gigi.
5174         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
5175         information for protected (wrapper) operation as well, to simplify gdb
5176         use.
5178         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
5179         protected body, indicate that the entity for the generated spec comes
5180         from source, to ensure that references are properly generated for it.
5181         (Build_Body_To_Inline): Do not inline a function that returns a
5182         controlled type.
5184         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
5185         apply convention to homonyms that are declared explicitly.
5187         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
5188         that renames an equality operator and the operands are overloaded,
5189         resolve them with the declared formal types, before rewriting as an
5190         operator.
5192 2004-03-29  GNAT Script  <nobody@gnat.com>
5194         * Make-lang.in: Makefile automatically updated
5196 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
5198         * memtrack.adb: Log realloc calls, which are treated as free followed
5199         by alloc.
5201 2004-03-25  Vincent Celier  <celier@gnat.com>
5203         * prj-makr.adb (Process_Directories): Detect when a file contains
5204         several units. Do not include such files in the config pragmas or
5205         in the naming scheme.
5207         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
5208         Resolve links only when not in Trusted_Mode.
5209         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
5210         Do not resolve links for the display names.
5212         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
5213         resolve links when computing the display names.
5215 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
5217         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
5218         attribute reference does not denote a subtype, it can be any
5219         expression that has a classwide type, potentially after an implicit
5220         dereference.  In particular, the prefix can be a view conversion for
5221         a classwide type (for which Is_Object_Reference holds), but it can
5222         also be a value conversion for an access-to-classwide type. In the
5223         latter case, there is an implicit dereference, and the original node
5224         for the prefix does not verify Is_Object_Reference.
5226         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
5227         conversion of a discriminant-dependent component of a mutable object
5228         is one itself.
5230 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
5232         * freeze.adb (Freeze_Entity): When an inherited subprogram is
5233         inherited, has convention C, and has unconstrained array parameters,
5234         place the corresponding warning on the derived type declaration rather
5235         than the original subprogram.
5237         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
5238         indication on renaming declaration, if formal has a box and actual
5239         is absent.
5241         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
5242         determine whether to generate an implicit or explicit reference to
5243         the renamed entity.
5245         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
5246         subprogram renaming comes from a defaulted formal subprogram in an
5247         instance.
5249 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
5251         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
5252         value expressions to ensure that calls within a component definition
5253         will be checked (since those are evaluated during the record type's
5254         elaboration).
5256 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
5258         * s-tpobop.adb: Code clean up:
5259         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
5260         code.
5261         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
5263 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
5265         * Makefile.in: Clean up in the ravenscar run time.
5267 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5269         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
5270         of No_Strict_Aliasing to build_pointer_type_for_mode.
5271         * utils.c (update_pointer_to): Walk pointer and ref chains.
5273 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
5275         * ali.ads: Fix Comment about Dynamic_Elab.
5277         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
5278         Has_RACW, Is_Generic, etc.)
5279         (Output_Object, Gnatls): Take into account ALI files not attached to
5280         an object.
5282 2004-03-22  Vincent Celier  <celier@gnat.com>
5284         * gprep.adb: Change all String_Access to Name_Id
5285         (Is_ASCII_Letter): new function
5286         (Double_File_Name_Buffer): New procedure
5287         (Preprocess_Infile_Name): New procedure
5288         (Process_Files): New procedure
5289         (Gnatprep): Check if output and input are existing directories.
5290         Call Process_Files to do the real job.
5292 2004-03-22  Robert Dewar  <dewar@gnat.com>
5294         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
5295         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
5297 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
5299         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
5300         case when the source contains only comments.
5302 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
5304         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
5305         declaration for a child subprogram body that acts as a spec, indicate
5306         that the entity in the declaration needs debugging information.
5308         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
5309         full view if the subtype is created for a constrained record component;
5310         gigi has enough information to construct the record, and there is no
5311         place in the tree for the declaration.
5313         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
5314         serial number for the dummy body that is built for analysis, to avoid
5315         inconsistencies in the generation of internal names when compiling
5316         with -gnatN.
5318 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
5320         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
5321         object.
5323 2004-03-22  GNAT Script  <nobody@gnat.com>
5325         * Make-lang.in: Makefile automatically updated
5327 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5329         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
5330         * trans.c (tree_transform, emit_index_check): Likewise.
5331         * utils.c (build_template): Likewise.
5332         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
5333         (maybe_unconstrained_array, unchecked_convert): Likewise.
5334         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
5335         (build_unary_op): Likewise.
5336         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
5337         (fill_vms_descriptor): Likewise.
5338         (build_call_alloc_dealloc): Likewise.
5339         ALIGN is unsigned.
5340         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
5342 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
5344         PR other/14630
5345         * gnat_ug.texi: Add info directory category and entry.
5346         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
5347         gnat_ug_wnt.texi: Regenerate.
5349 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
5351         * ada-tree.h: Update copyright notice.
5352         Minor reformatting.
5354 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
5356         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
5357         as regular exception objects and not as mere integers representing the
5358         condition code.  The latter approach required some dynamics to mask off
5359         severity bits, which did not fit well into the GCC table based model.
5360         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
5361         exception data objects. We don't it and it would conflict with the other
5362         external symbol we have to generate for such exceptions.
5364         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
5365         the special code for VMS exceptions, since these are now represented
5366         as regular exceptions objects.
5368 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5370         * decl.c (debug_no_type_hash): Remove.
5371         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
5372         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
5374 2004-03-19  Laurent Guerby <laurent@guerby.net>
5376         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
5377         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
5379 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5381         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
5382         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
5383         (TYPE_RM_SIZE_INT): Directly use type.values.
5384         (TREE_LOOP_ID): Clean up check.
5385         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
5386         TYPE_VALUES, not TYPE_FIELDS.
5387         * trans.c (convert_with_check): Delay access of bounds of basetype
5388         until sure is numeric.
5390 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
5392         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
5394         Code clean up:
5395         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
5396         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
5397         Specific.Set instead of direct call to e.g pthread_setspecific.
5399 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
5401         * adaint.c: Update comments.
5403         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
5404         GNATLIB_SHARED for FreeBSD.
5406 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
5408         * init.c [VxWorks]: Do not fix the stack size for the environment task.
5409         When needed (stack checking) the stack size is retrieved
5410         from the VxWorks kernel.
5412         * Makefile.in: Flag -nostdinc is required when building the run time
5413         for avoiding looking for files in the base compiler.
5414         Add the VxWorks specific version of the package body for
5415         System.Stack_checking.Operations (5zstchop.adb).
5417         * Make-lang.in: Add the object file for
5418         System.Stack_Checking.Operations.
5420         * Makefile.rtl: Add object file for the package
5421         System.Stack_Checking.Operations.
5423         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
5425         * s-stache.ads, s-stache.adb: Move the operations related to stack
5426         checking from this package to package System.Stack_Checking.Operations.
5427         This way, stack checking operations are only linked in the final
5428         executable when using the -fstack-check flag.
5430 2004-03-18  Doug Rupp  <rupp@gnat.com>
5432         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
5433         Reorganize ifeq's.
5435         * 5qsystem.ads, 5xcrtl.ads: New files.
5437 2004-03-18  Vincent Celier  <celier@gnat.com>
5439         * prj.adb (Reset): Reset hash table Files_Htable
5441         * prj-env.adb (Source_Paths, Object_Paths): New tables.
5442         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
5443         the procedures Add_To_Path_File.
5444         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
5445         making sure that each directory is present only once and, for object
5446         dirs, when a directory already present is added, the duplicate is
5447         removed and the directory is always put as the last in the table.
5448         Write the path files at the end of these accumulations.
5450         * prj-nmsc.adb (Record_Source): Add source file name in hash table
5451         Files_Htable for all sources.
5453         * prj-proc.adb (Process): Remove restrictions between not directly
5454         related extending projects.
5456 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
5458         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
5459         (Find_Sources): Minor speed optimization.
5461         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
5462         parameter Trusted_Mode.
5464 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
5466         * scn.adb (Determine_License): Take into account a degenerated case
5467         when the source contains only comments.
5469 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
5471         * sem_warn.adb (Check_References): For a warning on a selected
5472         component that does not come from source, locate an uninitialized
5473         component of the record type to produce a more precise error message.
5475 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
5477         * 3zsoccon.ads: Fix multicast options.
5479         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
5480         in the spec.
5482 2004-03-15  Robert Dewar  <dewar@gnat.com>
5484         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
5485         pragma used for a private type.
5487         * lib-xref.adb (Generate_Reference): Do not generate warning if
5488         reference is in a different unit from the pragma Unreferenced.
5490         * 5vtpopde.adb: Minor reformatting
5491         Fix casing of To_Task_ID
5493         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
5494         flag if we have an unchecked conversion to an access type in the same
5495         unit.
5497 2004-03-15  Geert Bosch  <bosch@gnat.com>
5499         * a-ngcoty.adb (Modulus): In alternate formula for large real or
5500         imaginary parts, use Double precision throughout.
5502         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
5503         we want to be able to compile run-time with -gnata for testing, but
5504         this may also be instantiated in user code that is compiled with -gnata.
5506 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
5508         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
5509         codes. Having a separate type for this is useful to enforce consistency
5510         throughout the various run-time units.
5511         (Exception_Data): Use Exception_Code for Import_Code.
5513         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
5514         Natural and Integer in various places.
5515         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
5516         with the severity bits masked off.
5517         (Register_VMS_Exception): Handle the additional exception data pointer
5518         argument.
5520         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
5521         component, now reflected by an exported accessor.
5522         (is_handled_by): New routine to compute whether the propagated
5523         occurrence matches some handler choice specification. Extracted out of
5524         get_action_description_for, and expanded to take care of the VMS
5525         specifities.
5526         (get_action_description_for): Use is_handled_by instead of an explicit
5527         complex condition to decide if the current choice at hand catches the
5528         propagated occurrence.
5530         * raise.h (Exception_Code): New type for C.
5532         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
5533         System.Standard_Library.Exception_Code, to allow references from the
5534         pragma import/export expander.
5536         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
5537         New accessors to allow easy access to GNAT exception data
5538         characteristics.
5539         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
5540         redundant Handled_By_Others component, helper for the personality
5541         routine which will now be able to call the appropriate exception data
5542         accessor instead.
5544         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
5545         component of Standard_Exception_Type to be the closest possible to
5546         Exception_Code in System.Standard_Library, that we cannot get at this
5547         point. Expand a ??? comment to notify that this type node should
5548         probably be rewritten later on.
5550         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
5551         registration call to include a pointer to the exception object in the
5552         arguments.
5554         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
5555         instead of int and explicit bitmasks.
5557 2004-03-15  Vincent Celier  <celier@gnat.com>
5559         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
5560         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
5562         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
5563         longer needed now that it is in the spec of
5564         System.Tasking.Task_Attributes.
5566         * adaint.h, adaint.c: (__gnat_create_output_file): New function
5568         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
5570         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
5572         * make.adb (Gnatmake): Do not check the executable suffix; it is being
5573         taken care of in Scan_Make_Arg.
5574         (Scan_Make_Arg): Add the executable suffix only if the argument
5575         following -o, in canonical case, does not end with the executable
5576         suffix.  When in verbose mode and executable file name does not end
5577         with executable suffix, output the executable name, in canonical case.
5579         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
5580         to avoid warnings when instantiating Ada.Task_Attributes.
5581         Minor reformating.
5583         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
5584         in the correct order.
5586         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
5587         redirect standard output and error to a file for the invocation of the
5588         compiler, then read the file.
5590         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
5591         directory, instead of the Value.
5592         (Find_Source_Dirs): Remove useless code & comments.
5594 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
5596         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
5597         tagged type is inherited, and the parent operation is not frozen yet,
5598         force generation of a freeze node for the inherited operation, so the
5599         corresponding dispatch entry is properly initialized.
5600         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
5601         when looking for user-defined equality operation.
5603         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
5604         boolean when locating primitive equality of tagged component.
5606         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
5607         bit-aligned field and the right-hand side a string literal, introduce
5608         a temporary before expanding assignment into a loop.
5610         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
5611         priority in full, to ensure that any expanded subepxressions of it are
5612         elaborated in the scope of the init_proc.
5614         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
5615         after object declaration, skipping over code that may have been
5616         generated for validity checks.
5618         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
5619         discriminants, ignore the known discriminants of its full view, if
5620         any, to check legality.
5622         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
5623         component if type has unknown discriminants.
5624         (Analyze_Private_Extension_Declaration): Discriminant constraint is
5625         null if type has unknown discriminants.
5627         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
5628         for end label when present.
5630         * s-fileio.adb (Open): When called with a C_Stream, use given name for
5631         temporary file, rather than an empty string.
5633 2004-03-15  Ed Falis  <falis@gnat.com>
5635         * s-thread.adb: Removed, no longer used.
5637 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5639         * decl.c (target.h): Now include.
5640         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
5641         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
5642         (validate_size): For POINTER_TYPE, get smallest size permitted on
5643         machine.
5645         * fe.h: Sort Einfo decls and add Set_Mechanism.
5647         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
5648         (ada/decl.o): Depends on target.h.
5650         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
5651         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
5653 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
5655         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
5657         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
5658         Insert_Dereference_Action when rewriting an implicit dereference into
5659         an explicit one, this will be taken care of during expansion of the
5660         explicit dereference.
5661         (Expand_N_Slice): Same. Always do the rewriting, even for the case
5662         of non-packed slices, since the dereference action generated by
5663         expansion of the explicit dereference is needed in any case.
5664         (Expand_N_Selected_Component): When rewriting an implicit dereference,
5665         analyze and resolve the rewritten explicit dereference so it is seen
5666         by the expander.
5667         (Insert_Dereference_Action): This procedure is now called only for the
5668         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
5669         dereferences that do not come from source (including explicit
5670         dereferences resulting from rewriting implicit ones), but do not
5671         recursively insert a check for the dereference nodes contained within
5672         the check.
5673         (Insert_Dereference_Action): Clarify and correct comment.
5675 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
5677         PR ada/14131
5678         Move language detection to the top level.
5679         * config-lang.in: Build by default.
5681 2004-03-05  Robert Dewar  <dewar@gnat.com>
5683         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
5685         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
5686         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
5687         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
5688         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
5689         unchecked conversion to spec to avoid warnings.
5691         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
5692         to Task_ID
5694         * 7stpopsp.adb: Correct casing in To_Task_ID call
5696         * a-strsea.ads, a-strsea.adb: Minor reformatting
5698         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
5700         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
5701         Adjust Max_Msg_Length to be clearly large enough.
5703         * fe.h: Define In_Same_Source_Unit
5705         * osint.adb: Add pragma Warnings Off to suppress warnings
5706         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
5707         aliasing warnings.
5709         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
5711         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
5713         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
5715         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
5717         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
5719         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
5720         node. We now do generate them for gcc back end.
5722         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
5723         warning.
5725         * sinput-c.adb: Fix bad name in header.
5726         Add pragma Warnings Off to suppress aliasing warning.
5728         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
5730         * snames.h, snames.ads, snames.adb: Add entry for pragma
5731         No_Strict_Aliasing.
5733 2004-03-05  Vincent Celier  <celier@gnat.com>
5735         * prj-com.ads: Add hash table Files_Htable to check when a file name
5736         is already a source of another project.
5738         * prj-nmsc.adb (Record_Source): Before recording a new source, check
5739         if its file name is not already a source of another project. Report an
5740         error if it is.
5742         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
5743         source file name, call gnatpp with all the sources of the main project.
5745         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
5746         of file names.
5748         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
5749         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
5750         /RUNTIME_SYSTEM=, converted to --RTS=
5751         /NOTABS, converted to -notabs
5753 2004-03-05  Pascal Obry  <obry@gnat.com>
5755         * make.adb: Minor reformatting.
5757 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
5759         Part of implemention of AI-262.
5760         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
5762         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
5763         procedure.
5765         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
5766         when component type is a partially constrained class-wide subtype.
5767         (Constrain_Discriminated_Type): If parent type has unknown
5768         discriminants, a constraint is illegal, even if full view has
5769         discriminants.
5770         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
5771         with unknown discriminants whose full view is a discriminated record.
5773         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
5774         flag, to handle properly derivations of tagged types with unknown
5775         discriminants.
5776         (Analyze_Package_Spec, Analyze_Package_Body): Install
5777         Private_With_Clauses before analyzing private part or body.
5779         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
5780         Has_Discriminants can be true for a given type (documentation).
5782 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
5784         * s-restri.ads: Fix license (GPL->GMGPL).
5786         * s-tassta.adb: Minor reformatting.
5788         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
5789         by calls to Exit_One_ATC_Level, since additional clean up is performed
5790         by this function.
5792         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
5793         by calls to Exit_One_ATC_Level, since additional clean up is performed
5794         by this function.
5796 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5798         * trans.c: Reflect GCC changes to fix bootstrap problem.
5799         Add warning for suspicious aliasing unchecked conversion.
5801 2004-03-05  GNAT Script  <nobody@gnat.com>
5803         * Make-lang.in: Makefile automatically updated
5805 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
5807         * ali.adb (Read_Instantiation_Instance): Do not modify the
5808         current_file_num when reading information about instantiations, since
5809         this corrupts files in later references.
5811 2004-03-02  Vincent Celier  <celier@gnat.com>
5813         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
5814         before checking if it is read-only.
5816         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
5817         of SRC_DIRS and eliminate duplicates.
5819         * gprcmd.adb: Replace command "path" with command "path_sep" to return
5820         the path separator.
5821         (Usage): Document path_sep
5823         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
5824         C++ compiler. No need for a script.
5825         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
5826         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
5827         subst.
5829         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
5830         where there are Ada sources.
5831         (Set_Ada_Paths): Only add to the include path the source dirs of project
5832         with Ada sources.
5833         (Add_To_Path): Add the Display_Values of the directories, not their
5834         Values.
5836         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
5837         data.
5839         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
5840         is not No_Name.
5841         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
5842         Value is canonicalized.
5843         (Language_Independent_Check): Do not copy Value to Display_Value when
5844         canonicalizing Value.
5846         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
5847         path to find limited with cycles.
5848         (Parse_Single_Project): Use canonical cased path to find the end of a
5849         with cycle.
5851 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
5853         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
5854         and not a child unit.
5856         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
5857         appear in a with_clause.
5859         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
5860         only happen in type_annotate mode, do not try to elaborate it.
5862         * exp_util.adb (Force_Evaluation): If expression is a selected
5863         component on the left of an assignment, use a renaming rather than a
5864         temporary to remove side effects.
5866         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
5867         inlined instance body, which is analyzed before the end of the
5868         enclosing scope.
5870 2004-03-02  Robert Dewar  <dewar@gnat.com>
5872         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
5873         sem_ch4.adb: Use new feature for substitution of keywords in VMS
5875         * errout.ads, errout.adb: Implement new circuit for substitution of
5876         keywords in VMS.
5878         * sem_case.adb (Analyze_Choices): Place message properly when case is
5879         a subtype reference rather than an explicit range.
5881         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
5883 2004-03-02  Doug Rupp  <rupp@gnat.com>
5885         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
5887 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
5889         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
5891 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5893         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
5894         BLKmode bitfield.
5896 2004-02-25  Robert Dewar  <dewar@gnat.com>
5898         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
5899         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
5900         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
5901         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
5902         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
5903         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
5904         the defining instance of the type to avoid aliasing problems.
5905         Fix copyright header.  Fix bad comments in package header.
5907         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
5909 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
5911         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
5912         rewritten as references when aliased through an address clause.
5914         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
5915         whether call can be interpreted as an indirect call to the result of a
5916         parameterless function call returning an access subprogram.
5918 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
5920         Code clean up:
5921         * exp_ch7.adb (Make_Clean): Remove generation of calls to
5922         Unlock[_Entries], since this is now done by Service_Entries directly.
5924         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
5926         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
5927         Requeue_Call for better code readability. Change spec and update calls:
5928         PO_Service_Entries now unlock the PO on exit.
5929         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
5930         PO_Service_Entries.
5932         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
5934         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
5936 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
5938         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
5939         protected subprogram call and analyzing the result of such expanding
5940         in case when the called protected subprogram is eliminated.
5942         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
5943         names.
5945 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
5947         * Makefile.in: Clean ups.
5949 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
5951         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
5952         protected operations if original subprogram is flagged as eliminated.
5953         (Expand_N_Subprogram_Body): For a protected operation, create
5954         discriminals for next operation before checking whether the operation
5955         is eliminated.
5957         * exp_ch9.adb (Expand_N_Protected_Body,
5958         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
5959         for internal protected operations if the original subprogram is
5960         eliminated.
5962         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
5963         declared in a single protected object.
5965 2004-02-23  Vincent Celier  <celier@gnat.com>
5967         * prj-attr.adb: Make attribute Builder'Executable an associative array,
5968         case insensitive if file names are case insensitive, instead of a
5969         standard associative array.
5971         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
5972         them as case insensitive on platforms where the file names are case
5973         sensitive.
5975         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
5976         project file has already been parsed that canonical path are compared.
5978 2004-02-23  Robert Dewar  <dewar@gnat.com>
5980         * sinput-c.ads: Correct bad unit title in header
5982         * freeze.adb: Minor reformatting
5984 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5986         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
5987         nonaddressable COMPONENT_REF that is removing padding that we are
5988         taking the address of, take the address of the padded record instead
5989         if item is variable size.
5991 2004-02-20  Robert Dewar  <dewar@gnat.com>
5993         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
5995 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
5997         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
5998         itype references for the constrained designated type of a component
5999         whose base type is already frozen.
6001 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
6003         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
6004         avoid GCC warnings.
6006 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
6008         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
6009         identifier for a phantom package that rewrites the formal package
6010         declaration with a box. The Add semantic decorations for the defining
6011         identifier from the original node (that represents the formal package).
6013 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
6015         * Make-lang.in (ada/stamp-sdefault): Use the top level
6016         move-if-change.
6018 2004-02-19  Richard Henderson  <rth@redhat.com>
6020         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
6022 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
6024         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
6025         Scan_ALI can be used for multiple ALI files without reinitializing
6026         between calls.
6028 2004-02-18  Robert Dewar  <dewar@gnat.com>
6030         * debug.adb: Minor reformatting.
6032 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6034         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
6035         to zero if there is an address clause.
6037 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
6039         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
6041 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
6043         * layout.adb (Layout_Component_List): Revise generation of call to
6044         discriminant-checking function to pass selections of all of the type's
6045         discriminants rather than just the variant-controlling discriminant.
6047 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
6049         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
6050         fail in the current setup and triggers spurious system error messages.
6051         Pretend it occurred and failed instead.
6053 2004-02-18  Vincent Celier  <celier@gnat.com>
6055         * bld.adb: Mark FLDFLAGS as saved
6056         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
6057         it is not the root project.  Put each directory to be
6058         extended between double quotes to prevent it to be expanded on Windows.
6059         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
6060         the project file. Set them back to their initial values if they have not
6061         been set in the project file.
6063         * gprcmd.adb: (Gprdebug, Debug): New global variables
6064         (Display_Command): New procedure
6065         (Usage): Document new command "linkopts"
6066         Call Display_Command when env var GPRDEBUG has the value "TRUE"
6067         Implement new command "linkopts"
6068         Remove quotes that may be around arguments for "extend"
6069         Always call Normalize_Pathname with arguments formatted for the platform
6071         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
6072         Change @echo to @$(display) in target clean to be able to clean silently
6074         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
6076         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
6077         canonical case.
6079         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
6080         = Extending_All when current project is an extending all project.
6082         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
6083         set to True only for LINK command, after Unix switch -o.
6084         (Process_Arguments): Set Output_File_Expected to True for LINK command
6085         after Unix switch -o. When Output_File_Expected is True, never add an
6086         extension to a file name.
6088         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
6089         option file name, only to the --for-linker= switch.
6090         (Option_File_Name): If option file name do not end with ".opt", append
6091         "/OPTIONS".
6093 2004-02-18  GNAT Script  <nobody@gnat.com>
6095         * Make-lang.in: Makefile automatically updated
6097 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
6099         * Make-lang.in (stamp-sdefault): Do not depend on
6100         move-if-change.
6102 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
6104         * config-lang.in: Disable Ada by default until probe logic for
6105         a bootstrap Ada compiler can be moved to the top level configure
6106         script.
6108 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
6110         * decl.c (components_to_record): Don't claim that the internal fields
6111         we make to hold the variant parts are semantically addressable, because
6112         they are not.
6114         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
6115         adjust the comment describing the modular type form when we can use it.
6116         (Install_PAT): Account for the Esiz renaming.
6118         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
6119         sc_onstack context indication before raising the exception to which
6120         the signal is mapped. Allows better handling of later signals possibly
6121         triggered by the resumed user code if the exception is handled.
6123 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
6125         * 5zinit.adb: Removed, no longer used.
6127 2004-02-12  Robert Dewar  <dewar@gnat.com>
6129         * ali.adb: Remove separating space between parameters on R line. Makes
6130         format consistent with format used by the binder for Set_Globals call.
6132         * atree.ads, atree.adb: Minor reformatting (new function header format)
6134         * bindgen.adb: Add Run-Time Globals documentation section containing
6135         detailed documentation of the globals passed from the binder file to
6136         the run time.
6138         * gnatls.adb: Minor reformatting
6140         * init.c (__gnat_set_globals): Add note pointing to documentation in
6141         bindgen.
6143         * lib-writ.ads, lib-writ.adb: Remove separating space between
6144         parameters on R line.
6145         Makes format consistent with format used by the binder for Set_Globals
6146         call.
6148         * osint.ads: Add 2004 to copyright notice
6149         Minor reformatting
6151         * snames.ads: Correct capitalization of FIFO_Within_Priorities
6152         Noticed during code reading, documentation issue only
6154         * usage.adb: Remove junk line for obsolete C switch
6155         Noticed during code reading
6157 2004-02-12  Vincent Celier  <celier@gnat.com>
6159         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
6160         extend for each directory, so that multiple /** directories are
6161         extended individually.
6162         (Recursive_Process): Set the default for LANGUAGES to ada
6164         * gprcmd.adb: Define new command "ignore", to do nothing.
6165         Implement new comment "path".
6167         * Makefile.generic: Suppress output when SILENT is set
6168         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
6169         used, so that the correct compiler is invoked.
6170         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
6171         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
6173 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
6175         * Makefile.in: Clean ups and remove obsolete targets.
6177 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
6179         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
6180         predicate declared in exp_util.
6182         * exp_util.adb: Add comments.
6184         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
6185         visibility before compiling context of the subunit.
6187         * sem_res.adb (Check_Parameterless_Call): If the context expects a
6188         value but the name is a procedure, do not attempt to analyze as a call,
6189         in order to obtain more telling diagnostics.
6191         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
6192         'Access on parameterless function calls.
6193         (Normalize_Actuals): For a parameterless function call with missing
6194         actuals, defer diagnostic until resolution of enclosing call.
6196         * sem_util.adb (Wrong_Type): If the context type is an access to
6197         subprogram and the expression is a procedure name, suggest a missing
6198         'attribute.
6200 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
6201             Nathanael Nerode  <neroden@gcc.gnu.org>
6203         PR ada/6637, PR ada/5911
6204         Merge with libada-branch:
6205         * config-lang.in: Build libada only when ada is built.
6207 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
6209         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
6210         for a tagged type, verify that both formals have the same type.
6212         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
6213         temporary when the formal is an in-parameter and the actual a possibly
6214         unaligned slice.
6216         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
6217         when expansion is disabled, to ensure proper name capture with
6218         overloaded literals.  Condition can be of any boolean type, resolve
6219         accordingly.
6221         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
6222         renaming is for a formal subprogram with a default operator name, and
6223         there is a usable operator that is visible at the point of
6224         instantiation.
6226 2004-02-09  Robert Dewar  <dewar@gnat.com>
6228         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
6229         rewrite to ignore errors in ali files, intended to allow tools downward
6230         compatibility with new versions of ali files.
6232         * ali.ads: Add new parameter Ignore_Errors
6234         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
6235         duplicating the error message giving the file with restrictions.
6237         * debug.adb: Add debug flag I for gnatbind
6239         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
6240         operators for the case where the operator is a defining operator.
6242         * exp_ch3.adb: Minor reformatting (new function spec format).
6244         * exp_ch4.adb: Add comment for previous change, and make minor
6245         adjustment to loop to always check for improper loop termination.
6246         Minor reformatting throughout (new function spec format).
6248         * gnatbind.adb: Implement -di debug flag for gnatbind
6250         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
6252         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
6254         * lib-load.adb: Fix bad assertion.
6255         Found by testing and code reading.
6256         Minor reformatting.
6258         * lib-load.ads: Minor reformatting.
6260         * lib-writ.adb: There is only one R line now.
6262         * lib-writ.ads: Add documentation on making downward compatible changes
6263         to ali files so old tools work with new ali files.
6264         There is only one R line now.
6265         Add documentation on format incompatibilities (with special GPS note)
6267         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
6269         * par-load.adb: Minor reformatting
6271         * sem_ch8.adb: Fix to error message from last update
6272         Minor reformatting and restructuring of code from last update
6274         * par-prag.adb, snames.adb, snames.ads, snames.h,
6275         sem_prag.adb: Implement pragma Profile.
6277         * stylesw.adb: Implement -gnatyN switch to turn off all style check
6278         options.
6280         * usage.adb: Add line for -gnatyN switch
6282         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
6284 2004-02-09  Albert Lee  <lee@gnat.com>
6286         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
6288 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
6290         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
6291         slices.
6293         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
6294         is nested in an instance that is not frozen yet, to avoid
6295         order-of-elaboration problems in gigi.
6297         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
6298         body the attribute is legal.
6300 2004-02-09  Robert Dewar  <dewar@gnat.com>
6302         * s-rident.ads: Minor comment correction
6304         * targparm.adb: Remove dependence on uintp completely. There was
6305         always a bug in Make in that it called Targparm before initializing
6306         the Uint package. The old code appeared to get away with this, but
6307         the new code did not! This caused an assertion error in gnatmake.
6309         * targparm.ads: Fix bad comment, restriction pragmas with parameters
6310         are indeed fully supported.
6312 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
6314         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
6316 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6318         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
6319         with targetm.calls.promote_prototypes.
6321 2004-02-04  Robert Dewar  <dewar@gnat.com>
6323         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
6324         ali.ads, gprcmd.adb: Minor reformatting
6326         * bindgen.adb: Output restrictions string for new style restrictions
6327         handling
6329         * impunit.adb: Add s-rident.ads (System.Rident) and
6330         s-restri (System.Restrictions)
6332         * lib-writ.adb: Fix bug in writing restrictions string (last few
6333         entries wrong)
6335         * s-restri.ads, s-restri.adb: Change name Restrictions to
6336         Run_Time_Restrictions to avoid conflict with package name.
6337         Add circuit to read and acquire run time restrictions.
6339 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
6341         * restrict.ads, restrict.adb: Use the new restriction
6342         No_Task_Attributes_Package instead of the old No_Task_Attributes.
6344         * sem_prag.adb: No_Task_Attributes is a synonym of
6345         No_Task_Attributes_Package.
6347         * snames.ads, snames.adb: New entry for proper handling of
6348         No_Task_Attributes.
6350         * s-rident.ads: Adding restriction No_Task_Attributes_Package
6351         (AI-00249) that supersedes the GNAT specific restriction
6352         No_Task_Attributes.
6354 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
6356         * sem_prag.adb:
6357         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
6358          body, an identifier may be wrapped in an unchecked conversion.
6360 2004-02-04  Vincent Celier  <celier@gnat.com>
6362         * lib-writ.ads: Comment update for the W lines
6364         * bld.adb: (Expression): An empty string list is static
6366         * fname-uf.adb: Minor comment update
6368         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
6370         * gnatbind.adb: Initialize Cumulative_Restrictions with the
6371         restrictions on the target.
6373 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
6375         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
6376         gen_rtx.
6378 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
6380         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
6382 2004-02-02  Vincent Celier  <celier@gnat.com>
6384         * gprcmd.adb (Check_Args): If condition is false, print the invoked
6385         comment before the usage.
6386         Gprcmd: Fail when command is not recognized.
6387         (Usage): Document command "prefix"
6389         * g-md5.adb (Digest): Process last block.
6390         (Update): Do not process last block. Store remaining characters and
6391         length in Context.
6393         * g-md5.ads (Update): Document that several call to update are
6394         equivalent to one call with the concatenated string.
6395         (Context): Add fields to allow new Update behaviour.
6397         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
6398         defaulted to False.
6399         When May_Fail is True and no existing file can be found, return No_File.
6401         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
6402         functions.
6404         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
6405         spec file name instead on the W line.
6407 2004-02-02  Robert Dewar  <dewar@gnat.com>
6409         * ali.adb: Read and acquire info from new format restrictions lines
6411         * bcheck.adb: Add circuits for checking restrictions with parameters
6413         * bindgen.adb: Output dummy restrictions data
6414         To be changed later
6416         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
6417         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
6418         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
6419         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
6420         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
6422         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
6423         the warning message on access to possibly uninitialized variable S)
6424         Minor changes for new restrictions handling.
6426         * gnatbind.adb: Minor reformatting
6427         Minor changes for new restrictions handling
6428         Move circuit for -r processing here from bcheck (cleaner)
6430         * gnatcmd.adb, gnatlink.adb: Minor reformatting
6432         * lib-writ.adb: Output new format restrictions lines
6434         * lib-writ.ads: Document new R format lines for new restrictions
6435         handling.
6437         * s-restri.ads/adb: New files
6439         * Makefile.rtl: Add entry for s-restri.ads/adb
6441         * par-ch3.adb: Fix bad error messages starting with upper case letter
6442         Minor reformatting
6444         * restrict.adb: Major rewrite throughout for new restrictions handling
6445         Major point is to handle restrictions with parameters
6447         * restrict.ads: Major changes in interface to handle restrictions with
6448         parameters. Also generally simplifies setting of restrictions.
6450         * snames.ads/adb: New entry for proper handling of No_Requeue
6452         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
6453         restriction counting.
6454         Other minor changes for new restrictions handling
6456         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
6457         Restriction_Warnings now allows full parameter notation
6458         Major rewrite of Restrictions for new restrictions handling
6460 2004-02-02  Javier Miranda  <miranda@gnat.com>
6462         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
6463         syntax rule for object renaming declarations.
6464         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
6465         component definitions.
6467         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
6468         components.
6469         (Array_Type_Declaration): Give support to access components. In addition
6470         it was also modified to reflect the name of the object in anonymous
6471         array types. The old code did not take into account that it is possible
6472         to have an unconstrained anonymous array with an initial value.
6473         (Check_Or_Process_Discriminants): Allow access discriminant in
6474         non-limited types.
6475         (Process_Discriminants): Allow access discriminant in non-limited types
6476         Initialize the new Access_Definition field in N_Object_Renaming_Decl
6477         node.  Change Ada0Y to Ada 0Y in comments
6479         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
6480         equality operators.
6481         Change Ada0Y to Ada 0Y in comments
6483         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
6484         renamings Change Ada0Y to Ada 0Y in comments
6486         * sem_type.adb (Find_Unique_Type): Give support to the equality
6487         operators for universal access types
6488         Change Ada0Y to Ada 0Y in comments
6490         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
6492         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
6493         field.
6494         (N_Object_Renaming_Declaration): Addition of Access_Definition field
6495         Change Ada0Y to Ada 0Y in comments
6497         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
6498         component definition and object renaming nodes
6499         Change Ada0Y to Ada 0Y in comments
6501 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
6503         * restrict.adb: Use the new restriction identifier
6504         No_Requeue_Statements instead of the old No_Requeue for defining the
6505         restricted profile.
6507         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
6508         No_Requeue_Statements.
6510         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
6511         that supersedes the GNAT specific restriction No_Requeue. The later is
6512         kept for backward compatibility.
6514 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
6516         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
6517         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
6518         pragma and fix incorrect ones.
6520         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
6521         warning if the pragma is redundant.
6523 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
6525         * 5staprop.adb: Add missing 'constant' keywords.
6527         * Makefile.in: use consistent value for SYMLIB on
6528         platforms where libaddr2line is supported.
6530 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6532         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
6533         annotating types.
6535 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
6537         * init.c (__gnat_install_handler): Setup an alternate stack for signal
6538         handlers in the environment thread. This allows proper propagation of
6539         an exception on stack overflows in this thread even when the builtin
6540         ABI stack-checking scheme is used without support for a stack reserve
6541         region.
6543         * utils.c (create_field_decl): Augment the head comment about bitfield
6544         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
6545         here, because the former is not accurate enough at this point.
6546         Let finish_record_type decide instead.
6547         Don't make a bitfield if the field is to be addressable.
6548         Always set a size for the field if the record is packed, to ensure the
6549         checks for bitfield creation are triggered.
6550         (finish_record_type): During last pass over the fields, clear
6551         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
6552         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
6553         from DECL_BIT_FIELD.
6555 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
6557         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
6558         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
6559         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
6561 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6563         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
6565         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
6566         (ZCX_By_Default): Likewise.
6567         (Front_End_ZCX_Support): Likewise.
6569         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
6570         (Initialize_Lock): Mark Level unreferenced.
6571         (Sleep): Mark Reason unreferenced.
6572         (Timed_Sleep): Likewise.
6573         (Wakeup): Likewise.
6574         (Exit_Task): Use Result.
6575         (Check_No_Locks): Mark Self_ID unreferenced.
6577         * 5gtasinf.adb (New_Sproc): Make Attr constant.
6578         (Bound_Thread_Attributes): Make Sproc constant.
6579         (New_Bound_Thread_Attributes): Likewise.
6581 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
6583         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
6584         one-dimensional array an slice assignments, when component type is
6585         controlled.
6587         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
6588         component type is controlled, and control_actions are in effect, use
6589         TSS procedure rather than generating inline code.
6591         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
6592         arrays with controlled components.
6594 2004-01-26  Vincent Celier  <celier@gnat.com>
6596         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
6597         command line for the non VMS case.
6599         * gnatlink.adb (Process_Binder_File): When building object file, if
6600         GNU linker is used, put all object paths between quotes, to prevent ld
6601         error when there are unusual characters (such as '!') in the paths.
6603         * Makefile.generic: When there are sources in Ada and the main is in
6604         C/C++, invoke gnatmake with -B, instead of -z.
6606         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
6607         from VMS_Conversion.
6608         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
6609         specification of argument file on the command line.
6611 2004-01-26  Bernard Banner  <banner@gnat.com>
6613         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
6615 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
6617         * snames.adb: Update copyright notice.
6618         Add info on slice assignment for controlled arrays.
6620 2004-01-23  Robert Dewar  <dewar@gnat.com>
6622         * exp_aggr.adb: Minor reformatting
6624         * exp_ch9.adb: Minor code clean up
6625         Minor reformatting
6626         Fix bad character in comment
6628         PR ada/13471
6629         * targparm.adb (Get_Target_Parameters): Give clean abort error on
6630         unexpected end of file, along with more detailed message.
6632 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6634         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
6635         PAT.
6637         * decl.c (copy_alias_set): New function.
6638         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
6640 2004-01-23  Doug Rupp  <rupp@gnat.com>
6642         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
6643         lib$${file} in case subsequent character is not a separator.
6645 2004-01-23  Vincent Celier  <celier@gnat.com>
6647         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
6648         when the GCC version is at least 3.
6650         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
6651         Remove all "Opt.", to prepare for opt split
6653         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
6654         Extends_All. Set to True when the project parsed is an extending all
6655         project. Fails for importing an extending all project only when the
6656         imported project is an extending all project.
6657         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
6658         depending on the value of Extends_All returned.
6660         * prj-proc.adb (Process): Check that no project shares its object
6661         directory with a project that extends it, directly or indirectly,
6662         including a virtual project.
6663         Check that no project extended by another project shares its object
6664         directory with another also extended project.
6666         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
6667         Kind = N_With_Clause
6669         * prj-tree.ads: Minor reformatting
6670         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
6672 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
6674         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
6675         applies to a type with an incomplete view, use full view in Name of
6676         clause, for consistency with uses of Get_Attribute_Definition_Clause.
6678 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
6680         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
6681         SCHED_RR, since other values are not supported by this policy.
6682         (Initialize): Move initialization of mutex attribute to package
6683         elaboration, to prevent early access to this variable.
6685         * Makefile.in: Remove mention of Makefile.adalib, unused.
6687         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
6688         1ssecsta.ads: Removed, unused.
6690 2004-01-21  Javier Miranda  <miranda@gnat.com>
6692         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
6693         entity if already built in the current scope.
6695         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
6696         reminder in internal scopes. Required for nested limited aggregates.
6698 2004-01-21  Doug Rupp  <rupp@gnat.com>
6700         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
6701         VMS. Replace all occurences of libgnat- and libgnarl- with
6702         libgnat$(hyphen) and libgnarl$(hyphen).
6703         Fixed shared library build problem on VMS.
6705 2004-01-21  Robert Dewar  <dewar@gnat.com>
6707         * mlib-prj.adb: Minor reformatting
6709 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
6711         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
6712         'constant' keywords for declaration of pointers that are not modified.
6714         * exp_pakd.adb: Fix English in comment.
6716 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
6718         PR ada/10889
6719         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
6720         copy all attributes of the parent, including the foreign language
6721         convention.
6723 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
6725         PR ada/10565
6726         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
6727         for 'delay until' statement.
6729 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
6731         * Make-lang.in: Replace $(docdir) with doc.
6732         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
6733         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
6734         to use consistent MAKEINFO rule.
6735         (ada.man, ada.srcman): Dummy entry.
6736         (ADA_INFOFILES): Define.
6737         (ada.info, ada.srcinfo): New rules.
6739 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
6741         * utils.c: Update copyright notice, missed in previous change.
6743 2004-01-19  Vincent Celier  <celier@gnat.com>
6745         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
6746         args if Bind is True. Set First_ALI, if not already done.
6747         (Build_Library): For Stand Alone Libraries, extract from one ALI file
6748         an eventual --RTS switch, for gnatbind, and all backend switches +
6749         --RTS, for linking.
6751 2004-01-19  Robert Dewar  <dewar@gnat.com>
6753         * sem_attr.adb, memtrack.adb: Minor reformatting
6755 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
6757         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
6758         that rename enumeration literals. This is properly done in sem_eval.
6760         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
6761         to functions that rename enumeration literals.
6763         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
6764         functions that rename enumeration literals.
6766 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
6768         * Make-lang.in (utils.o): Depend on target.h.
6769         * utils.c: Include target.h.
6770         (process_attributes): Use targetm.have_named_sections instead
6771         of ASM_OUTPUT_SECTION_NAME.
6773 2004-01-16  Andreas Jaeger  <aj@suse.de>
6775         * Makefile.in: Add $(DESTDIR).
6777 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
6779         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
6780         also when not defining if a Size clause applies. That information is
6781         not to be ignored.
6783 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
6785         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
6786         symbolic links for the shared gnat run time when needed.
6788 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
6790         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
6791         for writing, and terminate with an error message if not.
6793 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
6795         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
6796         warning on an access to subprogram in an instance, when the target
6797         type is declared in the same generic unit.
6798         (Eval_Attribute): If 'access is known to fail accessibility check,
6799         rewrite as a raise statement.
6801 2004-01-15  GNAT Script  <nobody@gnat.com>
6803         * Make-lang.in: Makefile automatically updated
6805 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
6807         * Make-lang.in (ada.srcextra): Dummy entry.
6809 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
6811         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
6813 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
6815         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
6816         components that are initialized with aggregates.
6818 2004-01-13  Vincent Celier  <celier@gnat.com>
6820         * gnatlink.adb (Process_Binder_File): To find directory of shared
6821         libgcc, if "gcc-lib" is not a subdirectory, look for the last
6822         subdirectory "lib" in the path of the shared libgnat or libgnarl.
6824         * make.adb (Gnatmake): If GCC version is at least 3, link with
6825         -shared-libgcc, when there is at least one shared library project.
6827         * opt.ads (GCC_Version): New integer constant.
6829         * adaint.c (get_gcc_version): New function.
6831 2004-01-13  Robert Dewar  <dewar@gnat.com>
6833         * sem_dist.adb, sem_res.adb, sem_util.adb,
6834         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
6835         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
6837 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
6839         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
6840         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
6841         declarations.
6843 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
6845         * misc.c: Remove trailing spaces.
6846         Update copyright notice missed in previous change.
6848         PR ada/13572
6849         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
6850         prefix/share/make
6852         * Makefile.generic: Update copyright.
6853         Add license notice.
6855         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
6856         of prefix/share/make.
6858         * Makefile.prolog: Update copyright.
6859         Add license notice.
6861 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
6863         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
6864         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
6865         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
6866         instead of String.
6868         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
6869         signature.
6871 2004-01-12  Javier Miranda  <miranda@gnat.com>
6873         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
6874         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
6875         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
6876         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
6877         Component_Definition node.
6879 2004-01-12  Ed Falis  <falis@gnat.com>
6881         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
6883 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
6885         * link.c: Change default libgnat kind to STATIC for FreeBSD.
6887 2004-01-12  Bernard Banner  <banner@gnat.com>
6889         * Makefile.in: map 86numaux to a-numaux for x86_64
6891 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
6893         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
6894         generated to rename a generic actual, go to the actual itself, the
6895         subtype is not a user-visible entity.
6897         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
6898         part is a private subtype, reset the visibility of its full view, if
6899         any, to be consistent.
6901         PR ada/13417
6902         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
6903         to use a generic package G as a formal package for another generic
6904         declared within G.
6906 2004-01-12  Robert Dewar  <dewar@gnat.com>
6908         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
6910         * usage.adb: Remove mention of obsolete -gnatwb switch
6911         Noticed during code reading
6913 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
6915         * 1ssecsta.adb: Minor changes for -gnatwa warnings
6917 2004-01-12  GNAT Script  <nobody@gnat.com>
6919         * Make-lang.in: Makefile automatically updated
6921 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
6923         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
6925 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6927         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
6929 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
6931         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
6932         Update comment and copyright date.
6933         * stamp-xgnatug: Delete.
6935 2004-01-05  Robert Dewar  <dewar@gnat.com>
6937         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
6938         be modified by the binder generated main program if the -D switch is
6939         used.
6941         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
6942         imported functions (since now we expect this to be done for imported
6943         functions)
6945         * 5vtaprop.adb: Add several ??? for sections requiring more comments
6946         Minor reformatting throughout
6948         * 5zinit.adb: Minor reformatting
6949         Add 2004 to copyright date
6950         Minor changes to avoid -gnatwa warnings
6951         Correct some instances of using OR instead of OR ELSE (noted while
6952         doing reformatting)
6954         * sprint.adb: Minor updates to avoid -gnatwa warnings
6956         * s-secsta.ads, s-secsta.adb:
6957         (SS_Get_Max): New function to obtain high water mark for ss stack
6958         Default_Secondary_Stack is not a constant since it may be modified by
6959         the binder generated main program if the -D switch is used.
6961         * switch-b.adb: New -Dnnn switch for binder
6963         * switch-c.adb:
6964         Make -gnatg imply all warnings currently in -gnatwa
6966         * vms_conv.adb: Minor reformatting
6967         Add 2004 to copyright notice
6968         Add 2004 to printed copyright notice
6970         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
6971         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
6972         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
6973         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
6974         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
6975         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
6976         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
6977         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
6978         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
6979         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
6980         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
6981         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
6982         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
6983         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
6984         checks.adb, clean.adb, cstand.adb, einfo.ads,
6985         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
6986         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
6987         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
6988         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
6989         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
6990         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
6991         Minor reformatting and code clean ups.
6992         Minor changes to prevent -gnatwa warnings
6994         * ali.adb: Minor reformatting and cleanup of code
6995         Acquire new SS indication of secondary stack use from ali files
6997         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
6998         (since now we expect this to be done for imported functions)
7000         * bindgen.adb: Generate call to modify default secondary stack size if
7001         -Dnnn switch given
7003         * bindusg.adb: Add line for new -D switch
7005         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
7006         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
7007         Add circuitry for both records and arrays to avoid gigi
7008         processing if the type involved has non-bit-aligned components
7010         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
7011         N_String_Literal node always references an E_String_Literal_Subtype
7012         entity. This may not be true in the future.
7013         (Possible_Bit_Aligned_Component): Move processing of
7014         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
7016         * exp_ch6.adb (Expand_Thread_Body): Pick up
7017         Default_Secondary_Stack_Size as variable so that we get value modified
7018         by possible -Dnnn binder parameter.
7020         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
7021         (Type_May_Have_Bit_Aligned_Components): New function.
7023         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
7024         (Type_May_Have_Bit_Aligned_Components): New function.
7026         * fe.h: (Set_Identifier_Casing): Fix prototype.
7027         Add declaration for Sem_Elim.Eliminate_Error_Msg.
7028         Minor reformatting.
7030         * freeze.adb (Freeze_Entity): Add RM reference to error message about
7031         importing constant atomic/volatile objects.
7032         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
7033         unless explicit Pure_Function pragma given, to avoid insidious bug of
7034         call to non-pure imported function getting eliminated.
7036         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
7037         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
7038         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
7039         Add 2004 to printed copyright notice
7041         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
7042         stack used.
7044         * Makefile.rtl: Add entry for g-sestin.o
7045         g-sestin.ads: New file.
7047         * mdll.adb: Minor changes to avoid -gnatwa warnings
7049         * mlib-tgt.adb: Minor reformatting
7051         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
7052         New switch Sec_Stack_Used (GNAT, GNATBIND)
7053         Make Default_Secondary_Stack_Size a variable instead of a constant,
7054         so that it can be modified by the new -Dnnn bind switch.
7056         * rtsfind.adb (Load_Fail): Give full error message in configurable
7057         run-time mode if all_errors mode is set. This was not done in the case
7058         of a file not found, which was an oversight.
7059         Note if secondary stack unit is used by compiler.
7061         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
7062         ineffective elaborate all pragmas on non-visible packages (this
7063         happened when a renamed subprogram was called). Now the elaborate all
7064         always goes on the package containing the renaming rather than the one
7065         containing the renamed subprogram.
7067         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
7068         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
7070         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
7071         has an Etype that references an E_String_Literal.
7072         (Eval_String_Literal): Avoid assumption that N_String_Literal node
7073         always references an E_String_Literal_Subtype entity. This may not
7074         be true in the future.
7076         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
7077         pragma location.
7079         * sem_res.adb (Resolve): Specialize msg for function name used in proc
7080         call.
7082 2004-01-05  Ed Falis  <falis@gnat.com>
7084         * g-debuti.adb: Replaced direct boolean operator with short-circuit
7085         form.
7087 2004-01-05  Vincent Celier  <celier@gnat.com>
7089         * bld.adb: Minor comment updates
7090         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
7091         of Item_Name).
7093         * make.adb (Gnatmake): Special process for files to compile/check when
7094         -B is specified. Fail when there are only foreign mains in attribute
7095         Main of the project file and -B is not specified. Do not skip bind/link
7096         steps when -B is specified.
7098         * makeusg.adb: Document new switch -B
7100         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
7102         * switch-m.adb: (Scan_Make_Switches): Process -B switch
7104         * vms_data.ads: Add new GNAT PRETTY qualifier
7105         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
7107 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7109         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
7110         case.
7112         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
7113         Set_Identifier_Casing.
7115         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
7116         has size that overflows.
7118 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
7120         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
7121         -gnatwa warning on static condition.
7123 2004-01-05  Doug Rupp  <rupp@gnat.com>
7125         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
7127 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
7129         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
7130         all attributes, including read-only attribute.
7132 2004-01-05  Pascal Obry  <obry@gnat.com>
7134         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
7135         library naming scheme.
7137         * mlib-prj.adb (Build_Library): Generate different names for the static
7138         or dynamic version of the GNAT runtime. This is needed to support the
7139         new shared library naming scheme.
7140         (Process_Binder_File): Add detection of shared library in binder file
7141         based on the new naming scheme.
7143         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
7144         scheme for the shared runtime libraries.
7146         * Makefile.in:
7147         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
7148         scheme.
7149         (install-gnatlib): Do not create symlinks for shared libraries.
7150         (gnatlib-shared-default): Idem.
7151         (gnatlib-shared-dual-win32): New target. Not used for now as the
7152         auto-import feature does not support arrays/records.
7153         (gnatlib-shared-win32): Do not create copy for the shared libraries.
7154         (gnatlib-shared-vms): Fix shared runtime libraries names.
7156         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
7157         dependent runtime shared library name.
7159 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
7161         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
7162         than the object.
7164 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
7166         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
7167         protected objects when allocator has a subtype indication, not a
7168         qualified expression. Note that qualified expressions may have to be
7169         checked when limited aggregates are implemented.
7171         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
7172         pure, emit warning.
7173         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
7174         subprogram is imported, remove warning.
7176 2004-01-05  Geert Bosch  <bosch@gnat.com>
7178         * s-poosiz.adb: Update copyright notice.
7179         (Allocate): Use Task_Lock to protect against concurrent access.
7180         (Deallocate): Likewise.
7182 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
7184         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
7185         comment.
7187 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
7189         * gnat_ug.texi: Force a CVS commit by updating copyright.
7190         * gnat_ug_vxw.texi: Regenerate.
7191         * gnat_ug_wnt.texi: Regenerate.
7192         * gnat_ug_vms.texi: Regenerate.
7193         * gnat_ug_unx.texi: Regenerate.
7195 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
7197         * trans.c: Remove uses of "register" specifier in
7198         declarations of local variables.
7200 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
7202         * stamp-xgnatug: New stamp file.
7203         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
7204         (ada/doctools/xgnatug): Add $(build_exeext).
7205         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
7206         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
7208 2003-12-17  Ed Falis  <falis@gnat.com>
7210         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
7211         eliminate warning.
7213         * a-exextr.adb: Add context clause for
7214         Ada.Exceptions.Last_Chance_Handler.
7216 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
7218         * cstand.adb (Create_Standard): Change the way how the declaration of
7219         the Duration type is created (making it the same way as it is for all
7220         the other standard types).
7222 2003-12-17  Robert Dewar  <dewar@gnat.com>
7224         * s-crtl.ads: Fix header format
7225         Change Pure to Preelaborate
7227 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
7229         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
7230         the expression type only if it is declared in the current unit.
7232         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
7233         are universal and already analyzed, as can occur in constrained
7234         subcomponents that depend on discriminants, when one constraint is a
7235         subtype mark.
7237         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
7238         type Any_Fixed is legal as the argument of a conversion, if only one
7239         fixed-point type is in context.
7241 2003-12-17  GNAT Script  <nobody@gnat.com>
7243         * Make-lang.in: Makefile automatically updated
7245 2003-12-15  Robert Dewar  <dewar@gnat.com>
7247         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
7248         sec stack size.
7250 2003-12-15  Vincent Celier  <celier@gnat.com>
7252         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
7253         (Gnatchop): Do not set failure status when reporting the number of
7254         warnings.
7256 2003-12-15  Doug Rupp  <rupp@gnat.com>
7258         * s-ctrl.ads: New file.
7260         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
7262         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
7263         (GNATBIND_OBJS): Add ada/s-crtl.o.
7265         * Makefile.in [VMS]: Clean up ifeq rules.
7267         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
7268         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
7269         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
7270         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
7271         s-tasdeb.adb: Update copyright.
7272         Import System.CRTL.
7273         Make minor modifications to use System.CRTL declared functions instead
7274         of importing locally.
7276 2003-12-15  GNAT Script  <nobody@gnat.com>
7278         * Make-lang.in: Makefile automatically updated
7280 2003-12-11  Ed Falis  <falis@gnat.com>
7282         * 5zinit.adb: Clean up.
7284         * 5zintman.adb (Notify_Exception): replaced case statement with a call
7285         to __gnat_map_signal, imported from init.c to support
7286         signal -> exception mappings that depend on the vxWorks version.
7288         * init.c:
7289         Created and exported __gnat_map_signal to support signal -> exception
7290         mapping that is dependent on the VxWorks version.
7291         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
7293 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
7295         * 5wosinte.ads: Link with -mthreads switch.
7297 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
7299         * init.c (__gnat_install_handler [NetBSD]): Set
7300         __gnat_handler_installed, as done on all other platforms.
7301         Remove duplicated code.
7303 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
7305         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
7307 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
7309         * sinfo.ads: Fix inconsistent example code in comment.
7311 2003-12-11  Robert Dewar  <dewar@gnat.com>
7313         * a-tiinau.adb: Add a couple of comments
7315         * sem_ch3.adb: Minor reformatting
7317         * sem_prag.adb:
7318         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
7319         Minor reformatting throughout
7321 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
7323         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
7324         bounds of a loop, create a separate block in order to generate proper
7325         cleanup actions to prevent memory leaks.
7327         * sem_res.adb (Resolve_Call): After a call to
7328         Establish_Transient_Scope, the call may be rewritten and relocated, in
7329         which case no further processing is needed.
7331         * sem_util.adb: (Wrong_Type): Refine previous fix.
7332          Fixes ACATS regressions.
7334         PR ada/13353
7336         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
7337         be inlined.
7339 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
7341         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
7342         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
7343         obsolete files.
7345         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
7346         (rts-zfp): Ditto.
7348 2003-12-08  Robert Dewar  <dewar@gnat.com>
7350         * 7sintman.adb: Minor reformatting
7352         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
7353         standard linker options to get standard libraries linked. We now plan
7354         to provide dummy versions of these libraries to match the appropriate
7355         configurable run-time (e.g. if a library is not needed at all, provide
7356         a dummy empty library).
7358         * targparm.ads: Configurable_Run_Time mode no longer affects linker
7359         options (-L parameters and standard libraries). What we plan to do is
7360         to provide dummy libraries where the libraries are not required.
7362         * gnatbind.adb: Minor comment improvement
7364 2003-12-08  Javier Miranda  <miranda@gnat.com>
7366         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
7367         aggregate in the parent. Otherwise constants with limited aggregates
7368         are not supported. Add new formal to pass the component type (Ctype).
7369         It is required to call the corresponding IP subprogram in case of
7370         default initialized components.
7371         (Gen_Assign): In case of default-initialized component, generate a
7372         call to the IP subprogram associated with the component.
7373         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
7374         of aggregate with default initialized components.
7375         (Has_Default_Init_Comps): Improve implementation to recursively check
7376         all the present expressions.
7378         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
7379         to indicate that the initialization call corresponds to a
7380         default-initialized component of an aggregate.
7381         In case of default initialized aggregate with tasks this parameter is
7382         used to generate a null string (this is just a workaround that must be
7383         improved later). In case of discriminants, this parameter is used to
7384         generate a selected component node that gives access to the discriminant
7385         value.
7387         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
7388         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
7389         allocated aggregates with default-initialized components.
7391         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
7392         the box notation is used in positional aggregates.
7394 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
7396         * lib.ads: Fix typo in comment
7398 2003-12-08  Vincent Celier  <celier@gnat.com>
7400         * prj.adb (Project_Empty): New component Unkept_Comments
7401         (Scan): Remove procedure; moved to Prj.Err.
7403         * prj.ads (Project_Data): New Boolean component Unkept_Comments
7404         (Scan): Remove procedure; moved to Prj.Err.
7406         * prj-dect.adb: Manage comments for the different declarations.
7408         * prj-part.adb (With_Record): New component Node
7409         (Parse): New Boolean parameter Store_Comments, defaulted to False.
7410         Set the scanner to return ends of line and comments as tokens, if
7411         Store_Comments is True.
7412         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
7413         comments are associated with these nodes. Store the node IDs in the
7414         With_Records.
7415         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
7416         With_Records.
7417         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
7418         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
7419         current project. Call Tree.Restore afterwards. Set the various nodes
7420         for comment storage (Next_End, End_Of_Line, Previous_Line,
7421         Previous_End).
7423         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
7424         defaulted to False.
7426         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
7427         to False. When Truncated is True, truncate the string, never go to the
7428         next line.
7429         (Write_End_Of_Line_Comment): New procedure
7430         (Print): Process comments for nodes N_With_Clause,
7431         N_Package_Declaration, N_String_Type_Declaration,
7432         N_Attribute_Declaration, N_Typed_Variable_Declaration,
7433         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
7434         Process nodes N_Comment.
7436         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
7437         without comments and there are some comments, set the flag
7438         Unkept_Comments to True.
7439         (Scan): If there are comments, set the flag Unkept_Comments to True and
7440         clear the comments.
7441         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
7442         (Next_End_Nodes: New table
7443         (Comment_Zones_Of): New function
7444         (Scan): New procedure; moved from Prj. Accumulate comments in the
7445         Comments table and set end of line comments, comments after, after end
7446         and before end.
7447         (Add_Comments): New procedure
7448         (Save, Restore, Seset_State): New procedures
7449         (There_Are_Unkept_Comments): New function
7450         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
7451         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
7452         procedures.
7453         (First_Comment_After, First_Comment_After_End): New functions
7454         (First_Comment_Before, First_Comment_Before_End): New functions
7455         (Next_Comment): New function
7456         (End_Of_Line_Comment, Follows_Empty_Line,
7457         Is_Followed_By_Empty_Line): New functions
7458         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
7459         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
7460         (Set_Next_Comment): New procedure
7461         (Default_Project_Node): Associate comment before if the node can store
7462         comments.
7464         * scans.ads (Token_Type): New enumeration value Tok_Comment
7465         (Comment_Id): New global variable
7467         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
7468         defaulted to False.
7469         (Scan): Store position of start of comment. If comments are tokens, set
7470         Comment_Id and set Token to Tok_Comment when scanning a comment.
7471         (Set_Comment_As_Token): New procedure
7473         * sinput-p.adb: Update Copyright notice
7474         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
7475         that no longer exists.
7477 2003-12-08  Javier Miranda  <miranda@gnat.com>
7479         * sem_aggr.adb: Add dependence on Exp_Tss package
7480         Correct typo in comment
7481         (Resolve_Aggregate): In case of array aggregates set the estimated
7482         type of the aggregate before calling resolve. This is needed to know
7483         the name of the corresponding IP in case of limited array aggregates.
7484         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
7485         in case of default initialized array components.
7487         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
7488         types. Required to give support to limited aggregates in generic
7489         formals.
7491 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
7493         * sem_ch3.adb (Check_Initialization): For legality purposes, an
7494         inlined body functions like an instantiation.
7495         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
7496         until bounds are analyzed, to diagnose premature use of type.
7498         * sem_util.adb (Wrong_Type): Improve error message when the type of
7499         the expression is used prematurely.
7501 2003-12-08  GNAT Script  <nobody@gnat.com>
7503         * Make-lang.in: Makefile automatically updated
7505 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
7507         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
7508         they are automatically generated by Make-lang.in and cause nothing but
7509         maintenance troubles.
7511 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
7513         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
7514         version of this unit).
7516 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
7518         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
7519         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
7520         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
7521         the body of System.Interrupt_Management common to several targets.
7522         Update copyright notice when appropriate.
7524         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
7525         constant.
7527         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
7528         to ensure that the kernel fills in the interrupted context structure
7529         before calling a signal handler, which is necessary to be able to
7530         unwind past it. Update the copyright notice.
7532 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
7534         * a-elchha.ads: New file.
7536         * a-elchha.adb: New default last chance handler. Contents taken from
7537         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
7539         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
7540         is moved to a-elchha.adb to provide a target-independent default last
7541         chance handler.
7543         * Makefile.rtl: Add a-elchha.o
7545         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
7547 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
7549         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
7550         declared in an instance, do not inline the call if the instance is not
7551         frozen yet, to prevent order of elaboration problems.
7553         * sem_prag.adb: Add comments for previous fix.
7555 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
7557         * g-table.adb: Use the right variable in Set_Item.
7558         Update copyright notice.
7560 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
7562         * Makefile.in: Remove unused rules.
7564 2003-12-05  Vincent Celier  <celier@gnat.com>
7566         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
7567         -nostdlib. Not needed here after all.
7569 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
7571         PR ada/11724
7573         * adaint.h, adaint.c, g-os_lib.ads:
7574         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
7575         on some platforms (including FreeBSD), it is a 64 bit value.
7576         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
7578 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
7580         * gnatvsn.ads (Library_Version): Now contain only the relevant
7581         version info.
7582         (Verbose_Library_Version): New constant.
7584         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
7585         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
7586         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
7588         * gnatlbr.adb: Clean up: replace Library_Version by
7589         Verbose_Library_Version.
7591         * make.adb, lib-writ.adb, exp_attr.adb:
7592         Clean up: replace Library_Version by Verbose_Library_Version.
7594         * 5lintman.adb: Removed.
7596         * Makefile.in:
7597         Update and simplify computation of LIBRARY_VERSION.
7598         Fix computation of GSMATCH_VERSION.
7599         5lintman.adb is no longer used: replaced by 7sintman.adb.
7601 2003-12-03  Robert Dewar  <dewar@gnat.com>
7603         * exp_ch5.adb:
7604         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
7605         name. Modified to consider small non-bit-packed arrays as troublesome
7606         and in need of component-by-component assigment expansion.
7608 2003-12-03  Vincent Celier  <celier@gnat.com>
7610         * lang-specs.h: Process nostdlib as nostdinc
7612         * back_end.adb: Update Copyright notice
7613         (Scan_Compiler_Arguments): Process -nostdlib directly.
7615 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
7617         * Makefile.in:
7618         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
7619         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
7620         included in HIE_NONE_TARGET_PAIRS.
7622 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
7624         * sem_attr.adb:
7625         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
7626         is legal in an instance, because legality is cheched in the template.
7628         * sem_prag.adb:
7629         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
7630         appplied to an unchecked conversion of a formal parameter.
7632         * sem_warn.adb:
7633         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
7634         variables.
7636 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
7638         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
7639         routines. The second one is new functionality to deal with backtracing
7640         through signal handlers.
7641         (unwind): Split into the two separate subroutines above.
7642         Update the documentation, and deal properly with sizeof (REG) different
7643         from sizeof (void*).
7645 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
7647         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
7648         so that the debugger can reliably access the value of the parameter,
7649         and therefore is able to display the exception name when an exception
7650         breakpoint is reached.
7652 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
7654         * fmap.adb: Fix typo in warning message.
7656         * g-socket.ads, g-socket.adb: Make Free a visible instance of
7657         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
7659 2003-12-01  Vincent Celier  <celier@gnat.com>
7661         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
7662         ther is no Afile.
7663         (Build_Library): Get the switches only if Default_Switches is declared
7664         in package Binder.
7666 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
7668         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
7669         actuals that are indexed components, reanalyze actual to ensure that
7670         packed array references are properly expanded.
7672         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
7673         attempted assignment to a discriminant.
7675 2003-12-01  Robert Dewar  <dewar@gnat.com>
7677         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
7678         reformatting.
7680         * switch-c.adb: Minor reformatting of comments
7682 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
7684         * Makefile.in: Clean ups.
7686 2003-12-01  GNAT Script  <nobody@gnat.com>
7688         * Make-lang.in: Makefile automatically updated
7690 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
7692         * 5wsystem.ads: Disable zero cost exception, not ready yet.
7694 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
7696         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
7697         to force serialization.
7699 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
7701         * g-socket.ads, g-socket.adb:
7702         Clarify documentation of function Stream. Introduce a Free procedure
7703         to release the returned Stream once it becomes unused.
7705         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
7707 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
7709         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
7710         since NT 4 cannot handle timeout values that are too large,
7711         e.g. DWORD'Last - 1.
7713 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
7715         * exp_ch4.adb:
7716         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
7717         in procedure calls and whose expansion must be deferred.
7719         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
7720         is in exp_ch4.
7722         * sem_ch3.adb:
7723         (Build_Derived_Array_Type): Create operator for unconstrained type
7724         if ancestor is unconstrained.
7726 2003-11-26  Vincent Celier  <celier@gnat.com>
7728         * make.adb (Project_Object_Directory): New global variable
7729         (Change_To_Object_Directory): New procedure
7730         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
7731         of Change_Dir directly. Do not change working directory to object
7732         directory of main project after each compilation.
7733         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
7734         directly.
7735         Change to object directory of main project before binding step.
7736         (Initialize): Initialize Project_Object_Directory to No_Project
7738         * mlib-prj.adb:
7739         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
7740         binding a Stand-Alone Library.
7742         * output.adb: Update Copyright notice
7743         (Write_Char): Output buffer when full
7745 2003-11-26  Robert Dewar  <dewar@gnat.com>
7747         * sem_ch13.adb: (Check_Size): Reset size if size is too small
7749         * sem_ch13.ads:
7750         (Check_Size): Fix documentation to include bit-packed array case
7752         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
7754         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
7756         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
7758 2003-11-24  Arnaud Charlet <charlet@act-europe.fr>
7760         PR ada/13142
7761         * utils.c (init_gigi_decls): Change name of built-in setjmp to
7762         __builtin_setjmp, since this is apparently needed by recent
7763         non Ada changes.
7765 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7767         * adadecode.c: Only include ctype.h if not IN_GCC.
7768         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
7770 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
7772         * Makefile.in:
7773         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
7774         signals and interrupts.
7776         * 5zintman.ads: New File.
7778         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
7779         add exception signals to the set of unmasked signals.
7781         * 5ztaprop.adb:
7782         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
7783         between signals and interrupts.
7784         Add to Unblocked_Signal_Mask the set of signals that are in
7785         Keep_Unmasked.
7787         * 7sinmaop.adb:
7788         Adding a check to see whether the Interrupt_ID we want to unmask is in
7789         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
7790         reason is that the index type of the Keep_Unmasked array is not always
7791         Interrupt_ID; it may be a subtype of Interrupt_ID.
7793 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
7795         * exp_util.adb:
7796         (Remove_Side_Effects): Condition constantness of object created for a
7797          an unchecked type conversion on the constantness of the expression
7798          to ensure the correct value for 'Constrained when passing components
7799          of view-converted class-wide objects.
7801 2003-11-24  Robert Dewar  <dewar@gnat.com>
7803         * par-load.adb (Load): Improve handling of misspelled and missing units
7804         Removes several cases of compilation abandoned messages
7806         * lib.adb: (Remove_Unit): New procedure
7808         * lib.ads: (Remove_Unit): New procedure
7810         * lib-load.adb: Minor reformatting
7812 2003-11-24  Vincent Celier  <celier@gnat.com>
7814         * make.adb:
7815         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
7816         (Marking_Label): Label to mark processed source files. Incremented for
7817         each executable.
7818         (Gnatmake): Increase Marking_Labet for each executable
7819         (Is_Marked): Compare against marking label
7820         (Mark): Mark with marking label
7822 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
7824         * s-thread.ads:
7825         Move the declaration of the TSD for System.Threads to System.Soft_Links.
7826         Add some comments.
7828         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
7829         (rts-cert): build a single relocatable object for the run-time lib.
7830         Fix perms.
7832 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
7834         * Make-lang.in:
7835         Use gnatls rather than gcc to obtain the location of GNAT RTL for
7836         crosstools build.
7838 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
7840         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
7841         can not use it as before (that is, as a variable) when dumping it into
7842         the tree file. Add a local variable to store the result of this
7843         function and to be used as the string to be written into the tree.
7845         * scn.adb (Initialize_Scanner): Add comments explaining the recent
7846         changes.
7848         * sinput.adb (Source_First, Source_Last): In case of
7849         Internal_Source_File, replace returning attributes of
7850         Internal_Source_Ptr (which is wrong) with returning attributes of
7851         Internal_Source.
7853 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
7855         * sem_ch3.adb:
7856         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
7857         used for implicit concatenation operators.
7858         Code cleanup.
7860         * sem_elab.adb:
7861         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
7862         task bodies that are in the scope of a Suppress pragma.
7863         (Check_A Call): Use the flag to prevent spurious elaboration checks.
7865         * sinfo.ads, sinfo.adb:
7866         New flag No_Elaboration_Check on function/procedure calls, to properly
7867         suppress checks on calls in task bodies that are within a local suppress
7868         pragma.
7870         * exp_ch4.adb:
7871         (Expand_Concatenate_Other): Use the proper integer type for the
7872         expression for the upper bound, to avoid universal_integer computations
7873         when possible.
7875 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
7877         * .cvsignore: Delete.
7879 2003-11-21  Andreas Schwab  <schwab@suse.de>
7881         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
7883 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
7885         * 5wsystem.ads: Enable zero cost exception.
7887 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
7889         * 5ztiitho.adb: Remove an unreferenced variable.
7891 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
7893         * adaint.c: For FreeBSD, use mkstemp.
7895 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
7897         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
7899 2003-11-21  Robert Dewar  <dewar@gnat.com>
7901         * bld.adb: Remove useless USE of gnatvsn
7903         * gnatchop.adb: Minor reformatting
7904         Clean up version handling to be more consistent
7906         * gnatxref.adb: Minor reformatting
7908         * gprcmd.adb: Minor reformatting
7909         Fix output of copyright to be more consistent with other tools
7911 2003-11-21  Vincent Celier  <celier@gnat.com>
7913         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
7915 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
7917         * atree.adb (Initialize): Add initializations for global variables
7918         used in New_Copy_Tree.
7920         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
7921         Internal_Source_File as the actual).
7922         Put the set of statements creating Any_Character before the set of
7923         statements creating Any_Array to have Any_Character fully initialized
7924         when it is used in creating Any_Array.
7926         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
7927         not call Scan in case if the actual is Internal_Source_File
7928         Add 2003 to copyright note.
7930         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
7931         processing Internal_Source_File.
7933         * types.ads: Add the constant Internal_Source_File representing the
7934         source buffer for artificial source-code-like strings created within
7935         the compiler (the definition of Source_File_Index is changed).
7937 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
7939         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
7940         56system.ads: New file, FreeBSD version.
7942 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
7944         * Make-lang.in (ada.extraclean): Delete.
7946 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
7948         * gnatmem.adb: Clean up verbose output.
7950         * gprcmd.adb: Change copyright to FSF.
7952 2003-11-19  Vincent Celier  <celier@gnat.com>
7954         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
7955         and Version (ignored).
7957         * symbols.ads: (Policy): New type
7958         (Initialize): New parameter Reference, Symbol_Policy and
7959         Library_Version.
7960         Remove parameter Force.
7961         Minor reformatting.
7963         * snames.ads, snames.adbadb: New standard names
7964         Library_Reference_Symbol_File and Library_Symbol_Policy
7966         * mlib-prj.adb:
7967         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
7968         project.
7970         * mlib-tgt.adb:
7971         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
7973         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
7975         * prj.adb: (Project_Empty): New component Symbol_Data
7977         * prj.ads: (Policy, Symbol_Record): New types
7978         (Project_Data): New component Symbol_Data
7980         * prj-attr.adb:
7981         New attributes Library_Symbol_File, Library_Symbol_Policy and
7982         Library_Reference_Symbol_File.
7984         * prj-nmsc.adb:
7985         (Ada_Check): When project is a Stand-Alone library project, process
7986         attribute Library_Symbol_File, Library_Symbol_Policy and
7987         Library_Reference_Symbol_File.
7989         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
7990         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
7991         5sml-tgt.adb (Build_Dynamic_Library): New parameter
7992         Symbol_Data (ignored).
7994         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
7995         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
7996         functions Option_File_Name and Version_String. Set new options of
7997         gnatsym related to symbol file, symbol policy and reference symbol
7998         file.
8000         * 5vsymbol.adb:
8001         Extensive modifications to take into account the reference symbol file,
8002         the symbol policy, the library version and to put in the symbol file the
8003         minor and major IDs.
8005         * bld.adb (Process_Declarative_Items): Put second argument of
8006         gprcmd to_absolute between single quotes, to avoid problems with
8007         Windows.
8009         * bld-io.adb: Update Copyright notice.
8010         (Flush): Remove last character of a line, if it is a back slash, to
8011         avoid make problems.
8013         * gnatsym.adb:
8014         Implement new scheme with reference symbol file and symbol policy.
8016         * g-os_lib.ads: (Is_Directory): Clarify comment
8018 2003-11-19  Robert Dewar  <dewar@gnat.com>
8020         * atree.adb: Move New_Copy_Tree global variables to head of package
8022         * errout.adb: Minor reformatting
8024 2003-11-19  Javier Miranda  <miranda@gnat.com>
8026         * sem_ch4.adb: (Diagnose_Call): Improve error message.
8027         Add reference to Ada0Y (AI-50217)
8029         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
8030         sem_util.adb: Add reference to AI-50217
8032         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
8034         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
8036         * sem_aggr.adb: Complete documentation of AI-287 changes
8038         * par-ch4.adb: Document previous changes.
8040         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
8041         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
8042         Ada0Y (AI-50217)
8044         * exp_aggr.adb: Add references to AI-287 in previous changes
8046 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
8048         * exp_ch6.adb:
8049         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
8050         in the rewriting is the result of an inlined call.
8052         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
8053         parameter is a type conversion, use original node to construct the
8054         post-call assignment, because expression may have been rewritten, e.g.
8055         if it is a packed array.
8057         * sem_attr.adb:
8058         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
8059         body, just as it is in an instance.
8060         Categorization routines
8062         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
8063         Instantiate_Object): Set proper sloc reference for message on missing
8064         actual.
8066 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
8068         * Makefile.in: Add FreeBSD libgnat pairs.
8070         * usage.adb: Fix typo in usage message.
8072 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
8074         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
8075         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
8076         pragma Thread_Body.
8077         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
8079         * s-thread.adb: This file is now a dummy implementation of
8080         System.Thread.
8082 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
8084         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
8086 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
8088         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
8089         instanciation references in the parent type description.
8091 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8093         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
8095         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
8096         TYPE_PRECISION directly from esize.
8098 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
8100         * cstreams.c:
8101         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
8103         * init.c: Initialization routines for FreeBSD
8105         * link.c: Link info for FreeBSD
8107         * sysdep.c: Add the case of FreeBSD
8109 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
8111         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
8112         already called in System.Threads.
8114         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
8115         environment task, as it has been moved to System.Threads.Initialization.
8117 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
8119         * adaint.c (__gnatlib_install_locks): Only reference
8120         __gnat_install_locks on VMS, since other platforms can avoid using
8121         --enable-threads=gnat
8123 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8125         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
8127         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
8128         TYPE_PACKED_ARRAY_TYPE_P.
8129         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
8131         Part of PR ada/12806
8132         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
8133         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
8135 2003-11-17  Vincent Celier  <celier@gnat.com>
8137         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
8138         to False.
8139         Do not set exit status to Failure when Warning is True.
8140         (Gnatchop): Make errors "no compilation units found" and
8141         "no source files written" warnings only.
8143         * make.adb (Gnatmake): When using a project file, set
8144         Look_In_Primary_Dir to False.
8145         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
8146         and Local_Configuration_Pragmas in the project where they are declared
8147         not an extending project which might have inherited them.
8149         * osint.adb (Locate_File): If Name is already an absolute path, do not
8150         look for a directory.
8152         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
8153         -gnats (Check_Syntax) is used, issue only a warning, not an error.
8155         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
8156         in objects of type Variable_Value.
8158         * prj.ads: (Variable_Value): New component Project
8160         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
8161         is in a project extended by Project.
8163         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
8164         Project of Variable_Values to this new parameter value.
8165         (Expression): Set component Project of Variable_Values.
8166         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
8167         Set the component Project in array elements.
8169 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
8171         * errout.adb: (Initialize): Add initialization for error nodes.
8173         * sem_ch12.adb (Initialize): Add missing initializations for
8174         Exchanged_Views and Hidden_Entities.
8176 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
8178         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
8179         already instantiated tree for use in subsequent inlining.
8180         (Analyze_Associations, Instantiate_Formal_Subprogram,
8181         Instantiate_Object): improve error message for mismatch in
8182         instantiations.
8184         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
8185         instantiations of subprograms declared in instances.
8187 2003-11-17  Javier Miranda  <miranda@gnat.com>
8189         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
8190         executed only under the Extensions_Allowed flag.
8192 2003-11-17  Robert Dewar  <dewar@gnat.com>
8194         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
8195         zeroes suppressed.
8196         (Address_Image): Fix bug of returning 0x instead of 0x0
8197         Minor reformatting (function specs).
8199         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
8200         (missed case of 33-63)
8202         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
8204         * s-thread.adb: Add comments for pragma Restriction
8206         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
8207         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
8209 2003-11-17  Ed Falis  <falis@gnat.com>
8211         * s-thread.adb: Added No_Tasking restriction for this implementation.
8213 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
8215         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
8216         instanciation references in the parent type description.
8218 2003-11-17  GNAT Script  <nobody@gnat.com>
8220         * Make-lang.in: Makefile automatically updated
8222 2003-11-16  Jason Merrill  <jason@redhat.com>
8224         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
8225         and TAGS files that include them for each front end.
8227 2003-11-14  Andreas Jaeger  <aj@suse.de>
8229         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
8230         is the canonical version.
8231         * misc.c (gnat_handle_option): Likewise.
8233         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
8235         * 5nsystem.ads: New file for x86_64-linux-gnu.
8237 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
8239         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
8241         * comperr.adb: Fix logic in previous change.
8243 2003-11-13  Vincent Celier  <celier@gnat.com>
8245         * 5bml-tgt.adb (Build_Dynamic_Library): Use
8246         Osint.Include_Dir_Default_Prefix instead of
8247         Sdefault.Include_Dir_Default_Name.
8249         * gnatlbr.adb: Update Copyright notice
8250         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
8251         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
8252         instead of Sdefault.Object_Dir_Default_Name
8254         * gnatlink.adb:
8255         (Process_Binder_File): Never suppress the option following -Xlinker
8257         * mdll-utl.adb:
8258         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
8259         Sdefault.Object_Dir_Default_Name.
8261         * osint.ads, osint.adb:
8262         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
8263         Minor reformatting.
8265         * vms_conv.ads: Minor reformating
8266         Remove GNAT STANDARD and GNAT PSTA
8268         * vms_conv.adb:
8269         Allow GNAT MAKE to have several files on the command line.
8270         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
8271         Sdefault.Object_Dir_Default_Name.
8272         Minor Reformating
8273         Remove data for GNAT STANDARD
8275         * vms_data.ads:
8276         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
8277         Remove data for GNAT STANDARD
8278         Remove options and documentation for -gnatwb/-gnatwB: these warning
8279         options no longer exist.
8281 2003-11-13  Ed Falis  <falis@gnat.com>
8283         * 5zthrini.adb: (Init_RTS): Made visible
8285         * 5zthrini.adb:
8286         (Register): Removed unnecessary call to taskVarGet that checked whether
8287          an ATSD was already set as a task var for the argument thread.
8289         * s-thread.adb:
8290         Updated comment to reflect that this is a VxWorks version
8291         Added context clause for System.Threads.Initialization
8292         Added call to System.Threads.Initialization.Init_RTS
8294 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
8296         * 5zthrini.adb:
8297         (Init_RTS): New procedure, for the initialization of the run-time lib.
8299         * s-thread.adb:
8300         Remove dependancy on System.Init, so that this file can be used in the
8301         AE653 sequential run-time lib.
8303 2003-11-13  Robert Dewar  <dewar@gnat.com>
8305         * bindgen.adb: Minor reformatting
8307 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
8309         * checks.adb:
8310         (Apply_Discriminant_Check): Do no apply check if target type is derived
8311         from source type with no applicable constraint.
8313         * lib-writ.adb:
8314         (Ensure_System_Dependency): Do not apply the style checks that may have
8315         been specified for the main unit.
8317         * sem_ch8.adb:
8318         (Find_Selected_Component): Further improvement in error message, with
8319         RM reference.
8321         * sem_res.adb:
8322         (Resolve): Handle properly the case of an illegal overloaded protected
8323         procedure.
8325 2003-11-13  Javier Miranda  <miranda@gnat.com>
8327         * exp_aggr.adb:
8328         (Has_Default_Init_Comps): New function to check the presence of
8329         default initialization in an aggregate.
8330         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
8331         extension aggregate of a limited record. In addition, a new formal
8332         was added to do not initialize the record controller (if any) during
8333         this recursive expansion of ancestors.
8334         (Init_Controller): Add support for limited record components.
8335         (Expand_Record_Aggregate): In case of default initialized components
8336         convert the aggregate into a set of assignments.
8338         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
8339         describing the new syntax.
8340         Nothing else needed to be done because this subprogram delegates part of
8341         its work to P_Precord_Or_Array_Component_Association.
8342         (P_Record_Or_Array_Component_Association): Give support to the new
8343         syntax for default initialization of components.
8345         * sem_aggr.adb:
8346         (Resolve_Aggregate): Relax the strictness of the frontend in case of
8347         limited aggregates.
8348         (Resolve_Record_Aggregate): Give support to default initialized
8349         components.
8350         (Get_Value): In case of default initialized components, duplicate
8351         the corresponding default expression (from the record type
8352         declaration). In case of default initialization in the *others*
8353         choice, do not check that all components have the same type.
8354         (Resolve_Extension_Aggregate): Give support to limited extension
8355         aggregates.
8357         * sem_ch3.adb:
8358         (Check_Initialization): Relax the strictness of the front-end in case
8359         of aggregate and extension aggregates. This test is now done in
8360         Get_Value in a per-component manner.
8362         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
8363         expression corresponds to a limited aggregate. This test is now done
8364         in Get_Value.
8366         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
8367         Box_Present flag.
8369         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
8370         present in an N_Component_Association node
8372 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
8374         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
8375         type-conformant entry only if they are homographs.
8377 2003-11-13  GNAT Script  <nobody@gnat.com>
8379         * Make-lang.in: Makefile automatically updated
8381 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8383         * adadecode.c: Use <> form of include for ctype.h.
8384         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
8386 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8388         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
8389         Works around PR middle-end/6552.
8391 2003-11-10  Ed Falis  <falis@gnat.com>
8393         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
8395         * 5zinit.adb: (Install_Handler): Moved back to spec
8396         (Install_Signal_Handlers): Deleted
8398         * 5zthrini.adb: Added context clause for System.Storage_Elements
8399         (Register): Only handles creation of taskVar; initialization moved to
8400         Thread_Body_Enter.
8401         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
8402         Added declaration of environment task secondary stack and
8403         initialization.
8405         * s-thread.adb: Implement bodies for thread body processing
8407         * s-thread.ads:
8408         Added comment identifying supported targets for pragma Thread_Body.
8410 2003-11-10  Pascal Obry  <obry@gnat.com>
8412         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
8413         GNAT_MAX_PATH_LEN.
8415         * s-fileio.adb:
8416         (Open): Properly check for string length before copying into the buffer.
8417         Raises Name_Error if buffer is too small. Note that this was a potential
8418         buffer overflow.
8420 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
8422         * bindgen.adb, comperr.adb: Code clean ups.
8423         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
8425 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
8427         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
8429 2003-11-10  Vincent Celier  <celier@gnat.com>
8431         * gprcmd.adb:
8432         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
8433         installation.
8435         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
8437         * prj.adb: (Project_Empty): Add new boolean component Virtual
8439         * prj.ads: (Virtual_Prefix): New constant string
8440         (Project_Data): New boolean component Virtual
8442         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
8443         a library project is extended by a virtual extending project.
8445         * prj-part.adb:
8446         Modifications throughout to implement extending-all project, including:
8447         (Virtual_Hash, Processed_Hash): New hash tables
8448         (Create_Virtual_Extending_Project): New procedure
8449         (Look_For_Virtual_Projects_For): New procedure
8451         * prj-proc.adb:
8452         (Process): After checking the projects, if main project is an
8453         extending-all project, set the object directory of all virtual extending
8454         project to the object directory of the main project.
8455         Adjust error message when a virtual extending project has the same
8456         object directory as an project being extended.
8457         (Recursive_Process): If name starts with the virtual prefix, set Virtual
8458         to True in the project data.
8460         * prj-tree.adb:
8461         (Default_Project_Node): Add new boolean component Extending_All
8462         (Is_Extending_All): New function
8463         (Set_Is_Extending_All): New procedure
8465         * prj-tree.ads: (Is_Extending_All): New function
8466         (Set_Is_Extending_All): New procedure
8467         (Project_Node_Record): New boolean component Extending_All
8469         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
8471         * vms_data.ads:
8472         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
8474         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
8475         "gprcmd prefix" to define it.
8477 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
8479         * einfo.ads: Fix a typo and remove an extraneous word in comments.
8481         * lib-load.adb:
8482         (Create_Dummy_Package_Unit): Set the scope of the entity for the
8483         created dummy package to Standard_Standard, not to itself, to
8484         defend other parts of the front-end against encoutering a cycle in
8485         the scope chain.
8487         * sem_ch10.adb:
8488         (Analyze_With_Clause): When setting the entities for the successive
8489         N_Expanded_Names that constitute the name of a child unit, do not
8490         attempt to go further than Standard_Standard in the chain of scopes.
8491         This case arises from the placeholder units created by
8492         Create_Dummy_Package_Unit in the case of a with_clause for a
8493         nonexistent child unit.
8495 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
8497         * exp_ch6.adb:
8498         (Expand_Thread_Body): Place subprogram on scope stack, so that new
8499         declarations are given the proper scope.
8501         * sem_ch13.adb:
8502         (Check_Expr_Constants): Reject an expression that contains a constant
8503         created during expansion, and that appears after the object to which
8504         the address clause applies.
8506         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
8507         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
8508         that uses 'Range of a function call with controlled components, so
8509         that the function result can be finalized before starting the loop.
8511         * sem_ch8.adb:
8512         (Find_Selected_Component): Improve error message when prefix is
8513         an implicit dereference of an incomplete type.
8515 2003-11-10  Robert Dewar  <dewar@gnat.com>
8517         * opt.ads: New Print_Standard flag for -gnatS switch
8519         * sem_ch13.adb: Remove some additional checks for unaligned arrays
8521         * cstand.adb (Create_Standard): Print out package standard if -gnatS
8522         switch set
8524         * debug.adb: Update doc for -gnatds to discuss relationship with new
8525         -gnatS flag
8527         * sinfo.adb: Add new field Entity_Or_Associated_Node
8529         * sinfo.ads: Add new field Entity_Or_Associated_Node
8530         Update documentation for Associated_Node and Entity fields to clarify
8531         relationship and usage.
8533         * sprint.adb:
8534         (Write_Id): Properly process Associated_Node field in generic template
8536         * switch-c.adb:
8537         Recognize new -gnatS switch for printing package Standard
8538         This replaces gnatpsta
8540         * usage.adb:
8541         Add line for  new -gnatS switch for printing package Standard
8542         This replaces gnatpsta
8544 2003-11-10  Andreas Jaeger  <aj@suse.de>
8546         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
8547         integer.
8549 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
8551         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
8552         by gnat1.
8554 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
8556         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
8557         no longer needed.
8559         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
8561         * sysdep.c: Add handling of cygwin.
8563 2003-11-10  GNAT Script  <nobody@gnat.com>
8565         * Make-lang.in: Makefile automatically updated
8567 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
8569         PR 12950
8570         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
8571         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
8572         Replace GNAT_ROOT by GCC_ROOT.
8574         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
8576 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
8578         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
8579         and update for changed meaning of GET_MODE_BITSIZE.
8581 2003-11-04  Doug Rupp  <rupp@gnat.com>
8583         * sysdep.c: Problem discovered during IA64 VMS port.
8584         [VMS] #include <unixio.h> to get proper prototypes.
8586         * adaint.c:
8587         Issues discovered/problems fixed during IA64 VMS port.
8588         [VMS] #define _POSIX_EXIT for proper semantics.
8589         [VMS] #include <unixio.h> for proper prototypes.
8590         [VMS] (fork): #define IA64 version.
8591         (__gnat_os_exit): Remove unnecessary VMS specific code.
8593 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8595         Part of PR ada/12806
8597         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
8598         tree, not integer.
8600         * decl.c:
8601         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
8602         not integer.
8604         * targtyps.c, decl.c, misc.c,
8605         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
8606         routines to work around change in FP sizing semantics in GCC.
8608         * utils.c:
8609         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
8611         * gigi.h: (enumerate_modes): New function.
8613         * Make-lang.in: (ada/misc.o): Add real.h.
8615         * misc.c: (enumerate_modes): New function.
8617 2003-11-04  Robert Dewar  <dewar@gnat.com>
8619         * 3vtrasym.adb: Minor reformatting
8620         Use terminology encoded/decoded name, rather than C++ specific notion
8621         of mangling (this is the terminology used throughout GNAT).
8623         * einfo.h: Regenerated
8625         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
8627         * exp_ch6.adb:
8628         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
8630         * par-prag.adb: Add dummy entry for Thread_Body pragma
8632         * rtsfind.ads:
8633         Add entries for System.Threads entities for thread body processing
8635         * sem_attr.adb:
8636         (Analyze_Pragma, Access attributes): Check these are not applied to a
8637         thread body, since this is not permitted
8639         * sem_prag.adb: Add processing for Thread_Body pragma.
8640         Minor comment fix.
8642         * sem_res.adb:
8643         (Resolve_Call): Check for incorrect attempt to call a thread body
8644          procedure with a direct call.
8646         * snames.ads, snames.adb: Add entry for Thread_Body pragma
8647         Add names associated with thread body expansion
8649         * snames.h: Add entry for Thread_Body pragma
8651         * s-thread.adb: Add entries for thread body processing
8652         These are dummy bodies so far
8654         * s-thread.ads: Add documentation on thread body handling.
8655         Add entries for thread body processing.
8657 2003-11-04  Javier Miranda  <miranda@gnat.com>
8659         * sem_ch10.adb:
8660         (Build_Limited_Views): Return after posting an error in case of limited
8661         with_clause on subprograms, generics, instances or generic renamings
8662         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
8663         on subprograms, generics, instances or generic renamings
8665 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
8667         * raise.c (setup_to_install): Correct mistake in last revision; two
8668         arguments out of order.
8670         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
8671         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
8672         notice, missed in previous change.
8673         Remove trailing blanks and other style errors introduced in previous
8674         change.
8676 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
8678         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
8679         rid of the wrapper for a LJM type, ensuring we don't do that if the
8680         field is addressable.  This avoids potential low level type view
8681         mismatches later on, for instance in a by-reference argument passing
8682         process.
8684 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8686         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
8687         aligned at byte boundary.
8689 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
8691         * decl.c (components_to_record): Do not delete the empty variants from
8692         the end of the union type.
8694 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
8696         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
8697         operation for a derived type, an explicit declaration may use a local
8698         subtype of Boolean.
8700 2003-11-04  Vincent Celier  <celier@gnat.com>
8702         * make.adb (Gnatmake): Allow main sources on the command line with a
8703         library project when it is only for compilation (no binding or
8704         linking).
8706 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8708         * Makefile.in: Remove many duplicate variables.
8710 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
8712         * Make-lang.in (dvi): Move targets to $(docobjdir).
8713         (gnat_ug_vms.dvi): Simplify rule and adjust target.
8714         (gnat_ug_wnt.dvi): Likewise.
8715         (gnat_ug_unx.dvi): Likewise.
8716         (gnat_ug_vxw.dvi): Likewise.
8717         (gnat_rm.dvi): Likewise.
8718         (gnat-style.dvi): Likewise.
8720 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
8722         * gigi.h: Missed commit from update for C90.
8724 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
8726         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
8728 2003-10-31  Andreas Schwab  <schwab@suse.de>
8730         * raise.c (get_action_description_for): Fix typo in last change.
8732 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
8734         PR ada/12761
8735         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
8736         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
8738 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
8740         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
8741         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
8742         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
8743         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
8744         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
8746 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
8748         * 3vtrasym.adb:
8749         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
8750         numbers when symbol name is too long.
8752 2003-10-30  Ed Falis  <falis@gnat.com>
8754         * g-signal.ads, g-signal.adb: New files
8756         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
8758         * Makefile.rtl: Introduce GNAT.Signals
8760 2003-10-30  Robert Dewar  <dewar@gnat.com>
8762         * freeze.adb: Minor reformatting
8764         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
8766         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
8767         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
8768         New handling of Id_Check parameter to improve recognition of keywords
8769         used as identifiers.
8770         Update copyright notice to include 2003
8772 2003-10-29  Robert Dewar  <dewar@gnat.com>
8774         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
8775         sem_ch10.adb: Minor reformatting
8777         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
8778         (Expand_Assign_Record): Test right hand side for bit unaligned as well
8780 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
8782         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
8783         Support for TBK$SYMBOLIZE-based symbolic traceback.
8785 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
8787         * exp_disp.adb:
8788         Revert previous change, that did not work well when pragma No_Run_Time
8789         was used in conjunction with a run-time other than ZFP.
8791 2003-10-29  Vincent Celier  <celier@gnat.com>
8793         * make.adb:
8794         (Gnatmake): When there are no Ada mains in attribute Main, disable the
8795          bind and link steps only is switch -z is not used.
8797 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
8799         * Makefile.generic: Remove duplicated setting of CC.
8801         * Makefile.prolog: Set CC to gcc by default, to override make's
8802         default (cc).
8804         * einfo.h: Regenerated.
8806 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
8808         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
8809         current body, after compiling subunit.
8811         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
8812         when in deleted code, because gigi needs properly ordered freeze
8813         actions to annotate types.
8815         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
8816         prevent the premature freezing of record type that contains
8817         subcomponents with a private type that does not yet have a completion.
8819 2003-10-29  Javier Miranda  <miranda@gnat.com>
8821         * sem_ch12.adb:
8822         (Analyze_Package_Instantiation): Check that instances can not be used in
8823         limited with_clauses.
8825         * sem_ch8.adb:
8826         (Analyze_Package_Renaming): Check that limited withed packages cannot
8827         be renamed. Improve text on error messages related to limited
8828         with_clauses.
8830         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
8832         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
8833         Update copyright notice.
8835         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
8836         (Install_Limited_Context_Clauses): New subprogram that isolates all the
8837         checks required for limited context_clauses and installs the limited
8838         view.
8839         (Install_Limited_Withed_Unit): Complete its documentation.
8840         (Analyze_Context): Check that limited with_clauses are only allowed in
8841         package specs.
8842         (Install_Context): Call Install_Limited_Context_Clauses after the
8843         parents have been installed.
8844         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
8845         package as 'From_With_Type'; this mark indicates that the limited view
8846         is installed. Used to check bad usages of limited with_clauses.
8847         (Build_Limited_Views): Do not add shadow entities to the scope's list
8848         of entities. Do not add real entities to the Non_Limited_Views chain.
8849         Improve error notification.
8850         (Remove_Context_Clauses): Remove context clauses in two phases:
8851         limited views first and regular views later (to maintain the
8852         stack model).
8853         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
8854         its visible entities.
8856 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
8858         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
8859         with any type that Is_Fixed_Point_Type.
8861         * sinfo.ads: Fix documentation for Associated_Node attribute.
8863 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
8865         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
8866         both '-gnatc' and '-gnatt' are specified.
8868         * atree.adb (Initialize): Add initialization for Node_Count (set to
8869         zero).
8871 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8873         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
8874         do not consider as Pure.
8876         Part of implementation of function-at-a-time:
8878         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
8879         (tree_transform): Add new argument to build_component_ref.
8880         (tree_transform, case N_Assignment_Statement): Make and return an
8881         EXPR_STMT.
8882         (tree_transform): If result IS_STMT, set flags and return it.
8883         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
8885         * utils2.c (build_simple_component_ref, build_component_ref): Add new
8886         arg, NO_FOLD_P.
8887         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
8888         (build_allocator): Likewise.
8890         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
8891         Add new arg to build_component_ref.
8892         (maybe_unconstrained_array, unchecked_convert): Likewise.
8894         * ada-tree.def (EXPR_STMT): New code.
8896         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
8898         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
8899         build_component_ref calls.
8901         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
8903         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
8904         (build_component_ref): Add new argument, NO_FOLD_P.
8906 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
8908         * Makefile.generic: Add missing substitution on object_deps handling.
8910         PR ada/5909:
8911         * Make-lang.in (check-ada): Enable ACATS test suite.
8913 2003-10-27  Robert Dewar  <dewar@gnat.com>
8915         * exp_ch3.adb:
8916         (Freeze_Array_Type): We do not need an initialization routine for types
8917         derived from String or Wide_String. They should be treated the same
8918         as String and Wide_String themselves. This caused problems with the
8919         use of Initialize_Scalars.
8921         * exp_ch5.adb:
8922         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
8923         composites. This allows use of component clauses that are not byte
8924         aligned.
8926         * sem_prag.adb:
8927         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
8928         is an attempt to pack an array of atomic objects.
8930         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
8932 2003-10-27  Pascal Obry  <obry@gnat.com>
8934         * g-dirope.adb:
8935         (Basename): Check for drive letters in a pathname only on DOS based OS.
8937 2003-10-27  Vincent Celier  <celier@gnat.com>
8939         * make.adb:
8940         (Gnatmake): When unable to change dir to the object dir, display the
8941         content of the parent dir of the obj dir, to try to understand why this
8942         happens.
8944 2003-10-27  GNAT Script  <nobody@gnat.com>
8946         * Make-lang.in: Makefile automatically updated
8948 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
8950         * sem_ch12.adb:
8951         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
8952         should not be done in Save/Restore_Scope_Stack, because it is performed
8953         locally.
8955         * sem_ch8.adb:
8956         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
8957         whether use clauses should be removed/restored.
8959         * sem_ch8.ads:
8960         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
8961         whether use clauses should be removed/restored.
8963 2003-10-26  Andreas Jaeger  <aj@suse.de>
8965         * Makefile.in: Remove duplicated lines.
8967 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
8969         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
8970         minimize the differences with ACT tree.
8972         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
8973         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
8974         Gnatvsn.Gnat_Static_Version_String to reduce differences between
8975         ACT and FSF trees.
8977 2003-10-24  Pascal Obry  <obry@gnat.com>
8979         * adadecode.c (ostrcpy): New function.
8980         (__gnat_decode): Use ostrcpy of strcpy.
8981         (has_prefix): Set first parameter a const.
8982         (has_suffix): Set first parameter a const.
8983         Update copyright notice. Fix source name in header.
8984         Removes a trailing space.
8985         PR ada/12014.
8987 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
8989         * exp_disp.adb:
8990         Remove the test against being in No_Run_Time_Mode before generating a
8991         call to Register_Tag. It is redundant with the test against the
8992         availability of the function Register_Tag.
8994 2003-10-24  Vincent Celier  <celier@gnat.com>
8996         * g-catiio.adb: (Month_Name): Correct spelling of February
8998         * make.adb: (Mains): New package
8999         (Initialize): Call Mains.Delete
9000         (Gnatmake): Check that each main on the command line is a source of a
9001         project file and, if there are several mains, each of them is a source
9002         of the same project file.
9003         (Gnatmake): When a foreign language is specified in attribute Languages,
9004         no main is specified on the command line and attribute Mains is not
9005         empty, only build the Ada main. If there is no Ada main, just compile
9006         the Ada sources and their closure.
9007         (Gnatmake): If a main is specified on the command line with directory
9008         information, check that the source exists and, if it does, that the path
9009         is the actual path of a source of a project.
9011         * prj-env.adb:
9012         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
9013         Full_Path is True, return the full path instead of the simple file name.
9014         (Project_Of): New function
9016         * prj-env.ads:
9017         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
9018         defaulted to False.
9019         (Project_Of): New function
9021 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
9023         * Makefile.generic:
9024         Ensure objects of main project are always checked and rebuilt if needed.
9025         Set CC to gcc by default.
9026         Prepare new handling of link by creating a global archive (not activated
9027         yet).
9029         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
9030         stringt.h: Update copyright notice. Remove trailing blanks.
9031         Fix source name in header.
9033 2003-10-24  Robert Dewar  <dewar@gnat.com>
9035         * sem_ch12.adb: Minor reformatting
9037         * sem_ch3.adb:
9038         Minor reformatting (including new function return style throughout)
9040         * sem_ch3.ads:
9041         Minor reformatting (including new function return style throughout)
9043 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
9045         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
9046         stringt.h: Update copyright notice. Remove trailing blanks.
9047         Fix source name in header.
9049 2003-10-24  GNAT Script  <nobody@gnat.com>
9051         * Make-lang.in: Makefile automatically updated
9053 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
9055         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
9056         stringt.h: Convert to ISO C90 declarations and definitions.
9058 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
9060         PR ada/11978:
9061         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
9062         External_Tag attribute definition clauses.
9064 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
9066         PR ada/7613:
9067         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
9068         child unit, generate a fully qualified name to avoid spurious errors
9069         when the context contains renamings of different child units with
9070         the same simple name.
9072         * exp_dbug.ads: Add documentation on name qualification for renamings
9073         of child units.
9075 2003-10-23  Robert Dewar  <dewar@gnat.com>
9077         * g-regpat.ads, g-regpat.adb: Minor reformatting
9079 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
9081         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
9083 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9085         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
9086         Machine call.
9088         * urealp.h: (Machine): Update to proper definition.
9090 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
9092         * init.c, adaint.c: Minor reformatting.
9094 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
9096         * adaint.c (w32_epoch_offset): Define static const at file level.
9097         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
9098         rather than t_create, t_access in call to GetFileTime. Use union
9099         to convert between FILETIME and  unsigned long long.
9100         (__gnat_file_time_name): Test for invalid file handle.
9101         (__gnat_set_filetime_name): Support win32 targets using
9102         w32api SetFileTime.
9104 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
9106         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
9108         * ctrl_c.c (__gnat_int_handler): Remove declaration.
9110         * decl.c (creat_concat_name):  Const-ify prefix.
9112         * adaint.c: Include ctype.h if __MINGW32__.
9113         (__gnat_readlink): Mark arguments as possibly unused.
9114         (__gnat_symlink): Likewise.
9115         (__gnat_is_symbolic_link): Likewise.
9116         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
9117         declaration
9118         (__gnat_file_time_name): Don't declare struct stat statbuf when
9119         not needed.
9120         (__gnat_is_absolute_path): Add parenthesis around condition of
9121         'if' statement to avoid warning.
9122         (__gnat_plist_init): Specify void as parameter.
9123         (plist_enter): Likewise.
9124         (plist_leave): Likewise.
9125         (remove_handle): Make static. Initialize prev.
9127 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
9129         * Makefile.in: Disable build of gnatpsta. PR ada/10110.
9130         * cstreams.c (__gnat_full_name): Minor improvements and clean up
9131         of previous change.
9133 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9135         * tracebak.c (MAX): Avoid redefinition warning.
9137         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
9138         Change msg to const char *.
9139         (__gnat_install_handler): Remove ss, unused.
9140         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
9141         to const char *.
9142         * cstreams.c (__gnat_full_name): Declare p only when used.
9143         (__gnat_full_name) [sgi] Return buffer.
9145 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
9147         * mingw32.h: New file.
9148         * gnat_wrapper.adb: New file.
9150 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
9152         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
9153         string match a pre compiled regular expression (the corresponding
9154         version of the function working on a raw regular expression)
9155         Fix typos in various comments
9156         Update copyright notice in spec
9158 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
9160         * exp_ch3.adb:
9161         (Component_Needs_Simple_Initialization): Return False when the type is a
9162         packed bit array. Revise spec comments to document this case.
9164         * exp_prag.adb:
9165         (Expand_Pragma_Import): Set any expression on the imported object to
9166         empty to avoid initializing imported objects (in particular this
9167         covers the case of zero-initialization of bit arrays).
9168         Update copyright notice.
9170 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
9172         * sem_ch12.adb:
9173         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
9174         a subunit is missing.
9175         (Instantiate_Subprogram_Body): If body of function is missing, set type
9176         of return expression explicitly in dummy body, to prevent cascaded
9177         errors when a subunit is missing.
9178         Fixes PR 5677.
9180         * sem_ch3.adb:
9181         (Access_Subprogram_Declaration): Verify that return type is valid.
9182         Fixes PR 8693.
9184         * sem_elab.adb:
9185         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
9186         generic.
9187         Fixes PR 12318.
9189         * sem_util.adb:
9190         (Corresponding_Discriminant): If the scope of the discriminant is a
9191         private type without discriminant, use its full view.
9192         Fixes PR 8247.
9194 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
9196         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
9197         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
9198         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
9199         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
9200         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
9201         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
9202         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
9203         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
9204         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
9205         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
9206         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
9207         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
9208         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
9209         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
9210         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
9211         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
9212         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
9213         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
9214         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
9215         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
9216         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
9217         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
9218         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
9219         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
9220         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
9221         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
9222         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
9223         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
9224         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
9225         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
9226         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
9227         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
9228         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
9229         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
9230         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
9231         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
9232         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
9233         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
9234         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
9235         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
9236         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
9237         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
9238         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
9239         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
9240         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
9241         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
9242         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
9243         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
9244         vms_conv.ads, vms_conv.adb, vms_data.ads,
9245         vxaddr2line.adb: Files added. Merge with ACT tree.
9247         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
9248         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
9249         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
9250         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
9251         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
9252         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
9253         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
9254         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
9255         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
9256         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
9258         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
9259         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
9260         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
9261         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
9262         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
9263         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
9264         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
9265         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
9266         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
9267         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
9268         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
9269         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
9270         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
9271         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
9272         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
9273         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
9274         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
9275         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
9276         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
9277         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
9278         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
9279         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
9280         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
9281         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
9282         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
9283         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
9284         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
9285         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
9286         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
9287         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
9288         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
9289         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
9290         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
9291         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
9292         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
9293         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
9294         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
9295         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
9296         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
9297         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
9298         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
9299         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
9300         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
9301         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
9302         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
9303         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
9304         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
9305         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
9306         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
9307         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
9308         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
9309         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
9310         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
9311         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
9312         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
9313         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
9314         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
9315         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
9316         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
9317         checks.adb, checks.ads, cio.c, comperr.adb,
9318         comperr.ads, csets.adb, cstand.adb, cstreams.c,
9319         debug_a.adb, debug_a.ads, debug.adb, decl.c,
9320         einfo.adb, einfo.ads, errout.adb, errout.ads,
9321         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
9322         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
9323         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
9324         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
9325         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
9326         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
9327         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
9328         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
9329         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
9330         fe.h, fmap.adb, fmap.ads, fname.adb,
9331         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
9332         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
9333         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
9334         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
9335         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
9336         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
9337         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
9338         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
9339         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
9340         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
9341         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
9342         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
9343         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
9344         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
9345         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
9346         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
9347         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
9348         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
9349         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
9350         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
9351         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
9352         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
9353         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
9354         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
9355         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
9356         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
9357         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
9358         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
9359         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
9360         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
9361         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
9362         layout.adb, lib.adb, lib.ads, lib-list.adb,
9363         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
9364         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
9365         link.c, live.adb, make.adb, make.ads,
9366         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
9367         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
9368         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
9369         misc.c, mkdir.c, mlib.adb, mlib.ads,
9370         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
9371         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
9372         namet.adb, namet.ads, namet.h, nlists.ads,
9373         nlists.h, nmake.adt, opt.adb, opt.ads,
9374         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
9375         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
9376         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
9377         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
9378         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
9379         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
9380         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
9381         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
9382         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
9383         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
9384         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
9385         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
9386         prj-util.adb, prj-util.ads, raise.c, raise.h,
9387         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
9388         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
9389         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
9390         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
9391         scans.ads, scn.adb, scn.ads, s-crc32.adb,
9392         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
9393         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
9394         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
9395         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
9396         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
9397         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9398         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
9399         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
9400         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
9401         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
9402         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
9403         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
9404         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
9405         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
9406         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
9407         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
9408         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
9409         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
9410         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
9411         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
9412         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
9413         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
9414         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
9415         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
9416         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
9417         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
9418         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
9419         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
9420         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
9421         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
9422         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
9423         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
9424         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
9425         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
9426         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
9427         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
9428         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
9429         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
9430         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
9431         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
9432         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
9433         stringt.adb, stringt.ads, stringt.h, style.ads,
9434         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
9435         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
9436         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
9437         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
9438         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
9439         table.adb, table.ads, targparm.adb, targparm.ads,
9440         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
9441         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
9442         ttypes.ads, types.ads, types.h, uintp.adb,
9443         uintp.ads, uintp.h, uname.adb, urealp.adb,
9444         urealp.ads, urealp.h, usage.adb, utils2.c,
9445         utils.c, validsw.adb, validsw.ads, widechar.adb,
9446         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
9447         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
9448         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
9449         gnatvsn.ads: Merge with ACT tree.
9451         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
9453 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
9455         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
9456         (gnat_ug_vmx.info): Likewise.
9457         (gnat_ug_vxw.info): Likewise.
9458         (gnat_ug_wnt.info): Likewise.
9459         (gnat_rm.info): Likewise.
9460         (gnat-style.info): Likewise.
9462         * Make-lang.in (ada.install-info): Remove target.
9463         (info): New target.
9464         (install-info): Likewise.
9465         (gnat_ug_unx.info): Simplify rule.
9466         (gnat_ug_vmx.info): Likewise.
9467         (gnat_ug_vxw.info): Likewise.
9468         (gnat_ug_wnt.info): Likewise.
9469         (gnat_rm.info): Likewise.
9470         (gnat-style.info): Likewise.
9472 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
9474         * Make-lang.in: Replace uses of $(target_alias) with
9475         $(target_noncanonical).
9476         * ada/Makefile.in: Remove unused mention of $(target_alias).
9478 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
9480         * Make-lang.in (ada.info): Replace with ...
9481         (info): ... this.
9482         (ada.dvi): Replace with ...
9483         (dvi): ... this.
9485 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
9487         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
9488         initialize dconstp5 and dconstmp5.
9490 2003-09-28  Richard Henderson  <rth@redhat.com>
9492         * trans.c (tree_transform): Update call to expand_asm_operands.
9494 2003-09-21  Richard Henderson  <rth@redhat.com>
9496         * trans.c, utils.c: Revert.
9498 2003-09-21  Richard Henderson  <rth@redhat.com>
9500         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
9501         change to const.
9503 2003-09-04  Michael Matz  <matz@suse.de>
9505         * misc.c: Include "target.h".
9506         * Make-lang.in (misc.o): Add dependency on target.h.
9508 2003-09-03  DJ Delorie  <dj@redhat.com>
9510         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
9511         hook.
9513 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
9515         * Makefile.in: Update substitutions to match changes to
9516         configure.  Use include directives instead of @-insertions
9517         to read in host and target fragments.  Add a rule to
9518         regenerate ada/Makefile.
9520 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
9522         * lang-options.h: Remove.
9523         * lang.opt: Add help text.
9525 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
9527         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
9528         calls.
9530 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
9532         * misc.c (gnat_handle_option): Don't handle filenames.
9534 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
9536         * Make-lang.in: Replace PWD with PWD_COMMAND.
9537         * Makefile.adalib: Likewise.
9538         * Makefile.in: Likewise.
9540 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
9542         * misc.c (gnat_argv): Revert last change.
9543         (gnat_handle_option, gnat_init_options): Copy arguments.
9545 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
9547         * misc.c (gnat_argv): Make const.
9549 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
9551         * misc.c (save_argc, save_argv): Keep non-static!
9553 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
9555         * misc.c (save_argc, save_argv): Make static.
9556         (gnat_init_options): New prototype.
9557         (gnat_init_options): Update.
9559 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
9561         * gnat_ug.texi: Remove unlikely characters from @vars.
9562         * gnat_ug_vms.texi: Regenerate.
9564 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
9566         * misc.c (record_code_position): Adjust emit_note call.
9568 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
9570         * misc.c (gnat_handle_option): Don't check for missing arguments.
9572 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
9574         * utils.c (end_subprog_body): Adjust expand_function_end call.
9576 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
9578         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
9579         Bind_Main_Program.
9581 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
9583         * lang.opt: Declare Ada.
9584         * misc.c (gnat_init_options): Update.
9586 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
9588         * utils.c (begin_subprog_body): Adjust init_function_start call.
9590 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
9592         * Make-lang.in: Update to use options.c and options.h.
9593         * misc.c: Include options.h not aoptions.h.
9594         (gnat_handle_option): Abort on unrecognized switch.
9595         (gnat_init_options): Request Ada switches.
9597 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
9599         * lang.opt: Add -Wall.
9600         * misc.c (gnat_handle_option): Handle it.
9602 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
9604         * misc.c (gnat_handle_option): Fix warnings.
9606 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
9608         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
9610 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
9612         * Make-lang.in: Update to handle command-line options.
9613         * lang.opt: New file.
9614         * misc.c: Include aoptions.h.
9615         (cl_options_count, cl_options): Remove.
9616         (gnat_handle_option): New.
9617         (gnat_decode_option): Remove.
9618         (LANG_HOOKS_DECODE_OPTION): Remove.
9619         (LANG_HOOKS_HANDLE_OPTION): Override.
9621 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
9623         * init.c, misc.c, trans.c, utils.c: Remove dead code.
9625 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
9627         * Makefile.in: Replace "host_canonical" with "host" for autoconf
9628         substitution.
9630 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
9632         * Make-lang.in: Update.
9633         * misc.c: Include opts.h. Define cl_options_count and cl_options.
9635 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
9637         * misc.c (gnat_init_options): Update.
9639 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
9641         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
9642         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
9643         __attribute__ ((__unused__)).
9645 2003-06-05  Jan Hubicka  <jh@suse.cz>
9647         * Make-lang.in:  Add support for stageprofile and stagefeedback
9649 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
9651         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
9652         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
9654 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
9656         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
9657         Remove non-VMS directive.
9658         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
9659         alternatives.
9660         (Examples of gnatls Usage): Remove VMS alternative.
9662 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
9664         PR ada/9953:
9665         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
9666         and turn ZCX_By_Default back to False since the underlying support
9667         is not quite there yet.
9669 2003-06-01  Andreas Jaeger  <aj@suse.de>
9671         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
9672         and ROUND_TYPE_SIZE_UNIT.
9674 2003-05-22   Geert Bosch <bosch@gnat.com>
9676         * gnat_rm.texi : Remove reference to Ada Core Technologies.
9678 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
9680         * trans.c (tree_transform): Use location_t and input_location
9681         directly.
9682         (build_unit_elab): Likewise.
9683         * utils.c (create_label_decl): Likewise.
9685 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
9687         * trans.c (tree_transform, build_unit_elab,
9688         set_lineno): Rename lineno to input_line.
9689         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
9690         end_subprog_body): Likewise.
9691         * utils2.c (build_call_raise): Likewise.
9693 2003-05-01  Laurent Guerby <guerby@acm.org>
9695         PR ada/10546
9696         * 5iosinte.ads: Increase pthread_cond_t size to match recent
9697         LinuxThread and NPTL version, merge from ACT.
9699 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
9701         * utils.c (convert): No need to clear TREE_CST_RTL.
9703 2003-04-23   Geert Bosch <bosch@gnat.com>
9705         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
9706         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
9707         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
9708         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
9709         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
9710         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
9711         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
9712         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
9713         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
9714         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
9715         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
9716         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
9717         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
9718         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
9719         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
9720         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
9721         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
9722         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
9723         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
9724         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
9725         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
9726         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
9727         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
9728         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
9729         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
9730         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
9731         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
9732         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
9733         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
9734         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
9735         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
9736         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
9737         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
9738         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
9739         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
9740         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
9741         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
9742         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
9743         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
9744         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
9745         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
9746         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
9747         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
9748         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
9749         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
9750         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
9751         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
9752         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
9753         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
9754         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
9755         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
9756         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
9757         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
9758         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
9759         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
9760         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
9761         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
9762         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
9763         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
9764         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
9765         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
9766         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
9767         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
9768         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
9769         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
9770         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
9771         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
9772         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
9773         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
9774         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
9775         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
9776         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
9777         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
9778         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
9779         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
9780         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
9781         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
9782         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
9783         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
9784         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
9785         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
9786         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
9787         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
9788         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
9789         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
9790         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
9791         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
9792         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
9793         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
9794         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
9795         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
9796         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
9797         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
9798         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
9799         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
9800         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
9801         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
9802         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
9803         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
9804         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
9805         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
9806         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
9807         ali.adb, ali.ads, alloc.ads, argv.c,
9808         atree.adb, atree.ads, atree.h, aux-io.c,
9809         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
9810         binde.adb, binde.ads, binderr.adb, binderr.ads,
9811         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
9812         butil.adb, butil.ads, cal.c, calendar.ads,
9813         casing.adb, casing.ads, ceinfo.adb, checks.adb,
9814         checks.ads, cio.c, comperr.adb, comperr.ads,
9815         config-lang.in, csets.adb, csets.ads, csinfo.adb,
9816         cstand.adb, cstand.ads, cuintp.c, debug.adb,
9817         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
9818         dec-io.ads, dec.ads, deftarg.c, directio.ads,
9819         einfo.adb, einfo.ads, elists.adb, elists.ads,
9820         elists.h, errno.c, errout.adb, errout.ads,
9821         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
9822         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
9823         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
9824         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
9825         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
9826         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
9827         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
9828         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
9829         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
9830         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
9831         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
9832         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
9833         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
9834         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
9835         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
9836         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
9837         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
9838         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
9839         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
9840         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
9841         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
9842         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
9843         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
9844         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
9845         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
9846         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
9847         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
9848         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
9849         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
9850         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
9851         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
9852         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
9853         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
9854         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
9855         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
9856         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
9857         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
9858         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
9859         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
9860         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
9861         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
9862         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
9863         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
9864         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
9865         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
9866         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
9867         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
9868         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
9869         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
9870         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
9871         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
9872         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
9873         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
9874         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
9875         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
9876         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
9877         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
9878         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
9879         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
9880         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
9881         lib.adb, lib.ads, live.adb, live.ads,
9882         machcode.ads, make.adb, make.ads, makeusg.adb,
9883         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
9884         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
9885         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
9886         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
9887         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
9888         mlib.ads, namet.adb, namet.ads, nlists.adb,
9889         nlists.ads, opt.adb, opt.ads, osint-b.adb,
9890         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
9891         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
9892         osint.ads, output.adb, output.ads, par-ch10.adb,
9893         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
9894         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
9895         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
9896         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
9897         par-tchk.adb, par-util.adb, par.adb, par.ads,
9898         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
9899         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
9900         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
9901         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
9902         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
9903         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
9904         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
9905         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
9906         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
9907         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
9908         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
9909         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
9910         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
9911         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
9912         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
9913         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
9914         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
9915         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
9916         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
9917         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
9918         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
9919         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
9920         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
9921         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
9922         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
9923         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
9924         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
9925         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
9926         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
9927         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
9928         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
9929         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
9930         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
9931         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
9932         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
9933         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
9934         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
9935         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
9936         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
9937         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
9938         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
9939         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
9940         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
9941         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
9942         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
9943         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
9944         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
9945         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
9946         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
9947         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
9948         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
9949         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
9950         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
9951         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
9952         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
9953         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
9954         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
9955         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
9956         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
9957         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
9958         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
9959         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
9960         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
9961         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
9962         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
9963         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
9964         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
9965         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
9966         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
9967         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
9968         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
9969         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
9970         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
9971         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
9972         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
9973         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
9974         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
9975         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
9976         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
9977         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
9978         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
9979         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
9980         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
9981         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
9982         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
9983         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
9984         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
9985         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
9986         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
9987         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
9988         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
9989         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
9990         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
9991         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
9992         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
9993         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
9994         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
9995         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
9996         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
9997         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
9998         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
9999         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
10000         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
10001         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
10002         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
10003         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
10004         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
10005         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
10006         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
10007         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
10008         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10009         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
10010         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
10011         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
10012         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
10013         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
10014         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
10015         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
10016         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
10017         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
10018         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
10019         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
10020         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
10021         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
10022         snames.ads, sprint.adb, sprint.ads, stand.adb,
10023         stand.ads, stringt.adb, stringt.ads, style.adb,
10024         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
10025         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
10026         switch-m.ads, switch.adb, switch.ads, system.ads,
10027         table.adb, table.ads, targparm.adb, targparm.ads,
10028         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
10029         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
10030         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
10031         ttypef.ads, ttypes.ads, types.adb, types.ads,
10032         uintp.adb, uintp.ads, uname.adb, uname.ads,
10033         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
10034         usage.adb, usage.ads, validsw.adb, validsw.ads,
10035         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
10036         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
10037         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
10038         formatting and other trivial changes from ACT.
10040 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
10042         * gigi.h, utils2.c (build_constructor):
10043         Rename gnat_build_constructor. Use build_constructor.
10044         * decl.c (gnat_to_gnu_entity)
10045         * trans.c (tree_transform, pos_to_constructor, extract_values)
10046         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
10047         (unchecked_convert)
10048         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
10049         (fill_vms_descriptor):
10050         Update to match.
10052 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
10054         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
10055         * misc.c (gnat_tree_size): New function.
10056         (LANG_HOOKS_TREE_SIZE): Override.
10058 2003-04-03  Jason Merrill  <jason@redhat.com>
10060         * misc.c (gnat_adjust_rli): #if 0.
10062 2003-03-31   Geert Bosch <bosch@gnat.com>
10064         PR ada/10020
10065         * link.c : Fix misspelled "const" keyword
10067 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
10069         PR c++/7086
10070         * utils2.c: Adjust calls to put_var_into_stack.
10072 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
10074         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
10076 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
10078         * misc.c (gnat_init): Update for new prototype.
10080 2003-03-05  Olivier Hainque  <hainque@gnat.com>
10082         ada/9961
10083         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
10084         warning, and fix return type for the IN_RTS && !SJLJ case.
10086 2003-03-04  Tom Tromey  <tromey@redhat.com>
10088         * Make-lang.in (ada.tags): New target.
10090 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
10092         ada/9911
10093         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
10094         wrapper, which name remains constant whatever underlying GCC
10095         scheme.
10097         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
10098         the stable interface needed for a-except.
10100 2003-03-02  Andreas Jaeger  <aj@suse.de>
10102         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10103         gnat_ug_wnt.texi: Regenerate.
10105 2003-03-02  Laurent Guerby <guerby@acm.org>
10107         * Makefile.in (install-gnatlib): Match previous change there
10108         so it works.
10110 2003-02-28  Andreas Schwab  <schwab@suse.de>
10112         * Make-lang.in (install-gnatlib): Change to ada directory before
10113         running make instead of using ada/Makefile directly.
10115 2003-02-18  Ben Elliston  <bje@redhat.com>
10117         Part of fix for PR ada/9406
10118         * gnat_ug.texi (Binder output file): Grammar fix.
10120 2003-02-18  Ben Elliston  <bje@redhat.com>
10122         PR other/7350
10123         * 5qtaprop.adb (Sleep): Fix typo in comment.
10125 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
10127         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
10128         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10129         gnat_ug_wnt.texi: Regenerate.
10131 2003-02-03  Christian Cornelssen <ccorn@cs.tu-berlin.de>
10133         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
10134         be created if necessary.
10135         (ada.install-common): Let $(DESTDIR)$(bindir) be created
10136         if necessary.  Remove erroneous and redundant gnatchop
10137         installation commands.  Test for gnatdll before attempting
10138         to install it.
10139         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
10140         and gnatdll from all plausible locations.
10142 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
10144         * utils2.c (build_unary_op): Don't check flag_volatile.
10145         * gnat_ug.texi: Remove -fvolatile from example.
10146         * gnat_ug_vxw.texi: Likewise.
10148 2003-01-29  Laurent Guerby <guerby@acm.org>
10150         PR ada/8344
10151         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
10152         * Makefile.in: match previous change.
10153         * Make-lang.in: match previous change.
10155 2003-01-29      Joel Sherrill <joel@OARcorp.com>
10157         * 5rosinte.ads: Add SIGXCPU.
10158         * 5rtpopsp.adb: New file.
10159         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
10160         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
10161         specific file 5rtpopsp.adb.
10162         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
10163         is likely needed for all newlib targets.
10164         * init.c: Add RTEMS specific version of __gnat_initialize().
10166 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10168         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
10170 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10172         * init.c (__gnat_error_handler): Make msg const.
10174         * gmem.c (convert_addresses): Move declaration ...
10175         * adaint.h: ... here.
10176         * adaint.c (convert_addresses): Adapt addrs type to match
10177         prototype.
10179         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
10181 2003-01-24  Andreas Schwab  <schwab@suse.de>
10183         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
10184         size_t to avoid warning.
10186 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
10188         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
10190 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
10192         * gnat_rm.texi: Remove RCS version number.
10194         * ada-tree.h (union lang_tree_node): Add chain_next option.
10196 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
10198         * Make-lang.in (ada.install-info, ada.install-common,
10199         ada.uninstall): Prepend $(DESTDIR) to the destination
10200         directory in all (un)installation commands.
10201         * Makefile.in (install-gnatlib, install-rts): Ditto.
10203 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
10205         * gnat_rm.texi, gnat_ug.texi: Use @copying.
10206         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10207         gnat_ug_wnt.texi: Regenerate.
10209 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
10211         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
10212         only.
10213         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
10214         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
10215         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
10216         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
10217         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
10218         $(srcdir)/doc/include/gcc-common.texi.
10220 2002-12-15   Geert Bosch <bosch@gnat.com>
10222         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
10224 2002-12-14   Geert Bosch <bosch@gnat.com>
10226         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
10227         case of a body created for a Renaming_As_Body, on which
10228         conformance checks are not performed. Fixes PR ada/5690.
10230 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
10232         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
10233         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
10234         not already included.
10235         * Make-lang.in: Update dependencies.
10237 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
10238         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
10239         solution to buffer overflow bug on GNU/Linux.
10241 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
10242         Closes PR ada/5856 and PR ada/6919 !
10243         * bindgen.adb: Remove all references to Public_Version.
10244         * comperr.adb: Remove all references to Public_Version and
10245         GNATPRO_Version; correct bug reporting instructions.
10246         * comperr.ads: Change to match bug box.
10247         * gnatvsn.ads: Remove all references to Public version and
10248         GNATPRO version.
10250 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
10251         PR ada/6919
10252         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
10253         GNU/Linux.
10255         PR ada/6558
10256         * config-lang.in: Remove diff_excludes.
10258 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
10259         PR ada/8358
10260         * trans.c (gnu_pending_elaboration_lists): New GC root.
10261         (build_unit_elab): Use..
10263 2002-10-30   Geert Bosch <bosch@gnat.com>
10264         PR ada/6558
10265         * misc.c : Include optabs.h
10267         * Make-lang.in (misc.o): Add dependency on optabs.h
10269 2002-10-29   Geert Bosch <bosch@gnat.com>
10270         PR ada/6558
10271         * Make-lang.in (gnatbind): Depend on CONFIG_H
10273 2002-10-29  Geert bosch  <bosch@gnat.com>
10274         PR ada/6558
10275         * misc.c: Unrevert misc.c (1.13)
10277 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
10279         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
10280         maintainership comments.
10282 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
10283         PR ada/5904
10284         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
10285         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
10286         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
10287         7staprop.adb: Correct statements in comments about
10288         maintainership of GNAT.
10290         PR ada/5904
10291         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
10292         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
10293         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
10294         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
10295         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
10296         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
10297         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
10298         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
10299         comments about maintainership of GNAT.
10301         PR ada/6919 (forward port of patch for PR ada/5904)
10302         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
10303         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
10304         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
10305         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
10306         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
10307         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
10308         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
10309         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
10310         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
10311         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
10312         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
10313         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
10314         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
10315         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
10316         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
10317         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
10318         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
10319         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
10320         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
10321         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
10322         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
10323         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
10324         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
10325         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
10326         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
10327         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
10328         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
10329         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
10330         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
10331         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
10332         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
10333         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
10334         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
10335         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
10336         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
10337         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
10338         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
10339         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
10340         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
10341         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
10342         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
10343         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
10344         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
10345         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
10346         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
10347         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
10348         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
10349         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
10350         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
10351         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
10352         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
10353         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
10354         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
10355         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
10356         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
10357         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
10358         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
10359         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
10360         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
10361         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
10362         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
10363         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
10364         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
10365         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
10366         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
10367         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
10368         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
10369         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
10370         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
10371         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
10372         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
10373         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
10374         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
10375         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
10376         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
10377         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
10378         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
10379         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
10380         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
10381         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
10382         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
10383         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
10384         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
10385         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
10386         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
10387         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
10388         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
10389         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
10390         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
10391         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
10392         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
10393         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
10394         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
10395         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
10396         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
10397         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
10398         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
10399         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
10400         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
10401         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
10402         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
10403         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
10404         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
10405         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
10406         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
10407         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
10408         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
10409         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
10410         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
10411         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
10412         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
10413         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
10414         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
10415         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
10416         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
10417         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
10418         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
10419         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
10420         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
10421         par-endh.adb par-labl.adb par-load.adb par-prag.adb
10422         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
10423         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
10424         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
10425         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
10426         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
10427         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
10428         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
10429         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
10430         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
10431         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
10432         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
10433         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
10434         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
10435         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
10436         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
10437         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
10438         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
10439         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
10440         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
10441         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
10442         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
10443         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
10444         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
10445         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
10446         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
10447         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
10448         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
10449         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
10450         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
10451         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
10452         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
10453         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
10454         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
10455         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
10456         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
10457         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
10458         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
10459         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
10460         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
10461         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
10462         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
10463         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
10464         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
10465         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
10466         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
10467         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
10468         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
10469         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
10470         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
10471         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
10472         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
10473         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
10474         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
10475         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
10476         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
10477         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
10478         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
10479         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
10480         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
10481         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
10482         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
10483         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
10484         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
10485         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
10486         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
10487         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
10488         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
10489         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
10490         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
10491         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
10492         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
10493         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
10494         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
10495         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
10496         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
10497         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
10498         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
10499         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
10500         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
10501         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
10502         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
10503         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
10504         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
10505         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
10506         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
10507         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
10508         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
10509         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
10510         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
10511         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
10512         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
10513         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
10514         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
10515         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
10516         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
10517         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
10518         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
10519         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
10520         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
10521         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
10522         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
10523         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
10524         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
10525         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
10526         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
10527         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
10528         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
10529         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
10530         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
10531         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
10532         stringt.ads stringt.h style.adb style.ads stylesw.adb
10533         stylesw.ads switch.adb switch.ads sysdep.c system.ads
10534         table.adb table.ads targparm.adb targparm.ads targtyps.c
10535         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
10536         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
10537         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
10538         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
10539         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
10540         usage.ads utils.c utils2.c validsw.adb validsw.ads
10541         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
10542         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
10543         xtreeprs.adb: Correct statements in comments about maintainership
10544         of GNAT.
10546 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
10548         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
10549         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
10550         * gnatvsn.ads: Gnat_Version_String is now a function.
10551         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
10552         copy the C version_string into a String and return it.
10553         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
10554         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
10555         Remove pragma Ident (Gnat_Version_String).  If this was the
10556         sole use of package Gnatvsn, remove the with statement too.
10557         * gnat1drv.adb: Tweak -gnatv output.
10559 2002-09-17  Richard Henderson  <rth@redhat.com>
10561         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
10562         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
10563         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
10564         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
10565         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
10566         and real_2expN instead of a loop.
10567         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
10568         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
10570 2002-08-25  Andre Leis <a.leis@gmx.net>
10571             David Billinghurst (David.Billinghurst@riotinto.com>
10573         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
10575 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10577         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
10578         Remove $(CONFIG_H) dependency.
10580 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
10582         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
10584 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10586         * adadecode.c (ada_demangle): Use xstrdup in lieu of
10587         xmalloc/strcpy.
10588         * misc.c (gnat_decode_option): Likewise.
10590 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
10592         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
10593         function approach did not work well because of a side effect (the
10594         function call could reallocate the table which was being indexed
10595         using its result). Fixes ada/4851. [RESURRECTED]
10597 2002-07-01  Roger Sayle  <roger@eyesopen.com>
10599         * ada/utils.c (builtin_function): Accept an additional parameter.
10601 2002-06-28  Andreas Jaeger  <aj@suse.de>
10603         PR ada/7144
10604         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
10605         <adi@thur.de>.
10607 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10609         * Makefile.in (SHELL): Set to @SHELL@.
10611 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10613         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
10614         array size calculation.
10616 2002-06-04  Andreas Jaeger  <aj@suse.de>
10618         * Make-lang.in (gnatbind): Readd rule that has been lost in last
10619         patch.
10621 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
10623         Merge from pch-branch:
10625         * config-lang.in (gtfiles): Add ada-tree.h.
10626         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
10627         (SET_TYPE_MODULUS): New.
10628         (SET_TYPE_INDEX): New.
10629         (SET_TYPE_DIGITS_VALUE): New.
10630         (SET_TYPE_RM_SIZE): New.
10631         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
10632         (SET_TYPE_ADA_SIZE): New.
10633         (SET_TYPE_ACTUAL_BOUNDS): New.
10634         (SET_DECL_CONST_CORRESPONDING_VAR): New.
10635         (SET_DECL_ORIGINAL_FIELD): New.
10636         (TREE_LOOP_ID): Correct typo.
10637         * decl.c: Use new macros.
10638         * utils.c: Include debug.h, use new macros.
10639         * utils2.c: Use new macros.
10641         * ada-tree.h: Update all macros for new tree description.
10642         (struct tree_loop_id): New.
10643         (union lang_tree_node): New.
10644         (struct lang_decl): New.
10645         (struct lang_type): New.
10646         * misc.c (gnat_mark_tree): Delete.
10647         (LANG_HOOKS_MARK_TREE): Delete.
10648         * trans.c (tree_transform): No longer any need to cast
10649         for TREE_LOOP_ID.
10651         * utils.c (struct language_function): New dummy structure.
10653         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
10654         (misc.o): Likewise.
10655         (utils.o): Likewise; also gtype-ada.h.
10656         * Make-lang.in (gnat1): Add dependency on s-gtype.
10657         (gnatbind): Add dependency on $(CONFIG_H).
10658         * utils.c: Correct last #include.
10659         (stuct e_stack): Remove unnecessary 'static'.
10660         (mark_e_stack): Remove unused prototype.
10662         * scn-nlit.adb: Remove whitespace after version number to
10663         keep lines under 80 chars.
10664         * snames.adb: Likewise.
10665         * treepr.ads: Likewise.
10667         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
10668         (misc.o): Likewise.
10669         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
10670         * config-lang.in (gtfiles): New.
10671         * decl.c: Use gengtype for roots.
10672         * gigi.h: Use gengtype for roots.
10673         * trans.c: Use gengtype for roots.
10674         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
10676 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
10678         * misc.c (gnat_init): Adjust setting of internal_error_function.
10680 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
10682         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
10683         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10684         gnat_ug_wnt.texi: Regenerate.
10686 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
10688         * 5ntaprop.adb (with System.OS_Primitives): Remove.
10690         * cstreams.c (max_path_len): Move from here ...
10691         * adaint.c (__gnat_max_path_len): ... to here.
10692         * adaint.c (__gnat_max_path_len): Declare.
10693         * g-dirope.adb (Max_Path): Adjust.
10694         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
10695         * i-cstrea.ads (max_path_len): Adjust.
10696         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
10697         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
10699         * Makefile.in, Make-lang.in: Documentation is now built in
10700         Make-lang.in.  Store Info and generated Texinfo files in the
10701         source directory.
10702         * gnat_ug.texi: Remove CVS keywords, correct version number.
10703         Set file name correctly.
10705         * gnat_ug_*.texi: Add.
10706         * .cvsignore: Ignore generated Texinfo files.
10708 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
10710         * ada.h: Add MI guard macro.
10711         (SUBTYPE): Define constants with an anonymous enum, not static
10712         const variables.
10713         (IN): Cast constants to appropriate type before use.
10715 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
10717         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
10718         (experimental)".
10720 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10722         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
10723         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
10724         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
10725         (ALL_ADA_CFLAGS): Likewise.
10726         (ADA_INCLUDES): Likewise.
10727         Adapt for new working dir.
10728         (GNATBIND): Use Makefile.in version.
10729         (.SUFFIXES): Copy from Makefile.in.
10730         (ada-warn): Define.
10731         (.adb.o, .ads.o): Copy from Makefile.in.
10732         Added $(OUTPUT_OPTION).
10733         (GNAT1_C_OBJS): Moved from Makefile.in.
10734         Prefix with ada subdir.
10735         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
10736         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
10737         Adapt for new working dir.
10738         (EXTRA_GNATBIND_OBJS): Likewise.
10739         (ADA_BACKEND): Moved from Makefile.in.
10740         Renamed to avoid conflict with global BACKEND.
10741         Use that one.
10742         (TARGET_ADA_SRCS): Moved from Makefile.in.
10743         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
10744         Use ADA_BACKEND.
10745         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
10746         (ada_extra_files): Moved from Makefile.in.
10747         Prefix with ada subdir.
10748         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
10749         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
10750         (ada/nmake.ads): Likewise.
10751         (update-sources): Moved from Makefile.in.
10752         Prefix with ada subdir.
10753         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
10754         (ADA_TREE_H): Likewise.
10755         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
10756         (ada/memtrack.o): Likewise.
10757         (ada/adadecode.o): Likewise.
10758         Update dependencies.
10759         (ada/adaint.o): New.
10760         (ada/argv.o): Moved from Makefile.in.
10761         Prefix with ada subdir.
10762         Update dependencies.
10763         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
10764         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
10765         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
10766         Prefix with ada subdir.
10767         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
10768         (GNAT DEPENDENCIES): Regenerate.
10769         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
10770         toplevel Makefile.in.
10771         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
10772         (TARGET_ADA_SRCS): Removed.
10773         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
10774         (GNATBIND_OBJS): Likewise.
10775         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
10776         (BACKEND): Removed.
10777         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
10778         (TREE_H): Likewise.
10779         (ada_extra_files): Likewise.
10780         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
10781         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
10782         (update-sources): Likewise.
10783         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
10784         (ADA_TREE_H): Likewise.
10785         (adadecoce.o): Likewise.
10786         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
10787         (GNAT DEPENDENCIES): Likewise.
10789 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10791         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
10792         * Makefile.in: Likewise.
10794 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10796         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
10797         Restore $(CONFIG_H) and prefix.o dependencies.
10798         (ada.stage[1-4]): Depend on stage?-start.
10800         * Makefile.in (b_gnatb.c): Depend on interfac.o.
10802 2002-05-02  Jim Wilson  <wilson@redhat.com>
10804         * utils.c (finish_record_type): Change record_size to record_type.
10806 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10808         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
10809         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
10810         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
10812 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
10814         * misc.c (gnat_parse_file): Update.
10816 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10818         * misc.c (gnat_init): Don't set lang_attribute_common.
10820 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
10822         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
10824 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
10826         * gnat_ug.texi: New file.
10828         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
10829         instead of gfdl.texi
10831         * xgnatug.adb, ug_words: New files.
10833         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
10834         gnat_rm and gnat-style manuals.
10836 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
10838         * gigi.h (incomplete_type_error): Remove.
10839         * utils.c (incomplete_type_error): Remove.
10841 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
10843         * trans.c (tree_transform): Add has_scope argument to
10844         expand_start_stmt_expr.
10846 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10848         * gigi.h (truthvalue_conversion): Rename.
10849         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
10850         * trans.c (tree_transform): Update.
10851         * utils2.c (truthvalue_conversion): Rename, update.
10852         (build_binary_op, build_unary_op): Update.
10854 2002-04-04  Laurent Guerby  <guerby@acm.org>
10856         * make.adb: Implement -margs, remove restriction about file name placement.
10857         * makeusg.adb: Documentation update.
10858         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
10859         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
10861 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10863         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
10864         (builtin_function): Similarly.
10866 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10868         * decl.c (gnat_to_gnu_entity): Update.
10869         * gigi.h (mark_addressable): Rename.
10870         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10871         * trans.c (tree_transform): Update.
10872         * utils.c (create_var_decl): Update.
10873         * util2.c (build_binary_op, build_unary_op,
10874         fill_vms_descriptor): Update.
10875         (mark_addressable): Rename, update.
10877 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10879         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
10880         Rename.
10881         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10882         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10883         * trans.c (tree_transform, convert_with_check): Update.
10884         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
10885         Rename.
10887 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
10889         * gigi.h (finish_incomplete_decl): Rename.
10890         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
10891         * utils.c (gnat_init_decl_processing): Don't set hook.
10892         (finish_incomplete_decl): Rename.
10894 2002-03-29  Andreas Schwab  <schwab@suse.de>
10896         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
10897         directory.
10899 2001-03-28  Robert Dewar <dewar@gnat.com>
10901         * checks.ads:
10902         (Remove_Checks): New procedure
10904         * checks.adb:
10905         (Remove_Checks): New procedure
10907         * exp_util.adb:
10908         Use new Duplicate_Subexpr functions
10909         (Duplicate_Subexpr_No_Checks): New procedure
10910         (Duplicate_Subexpr_No_Checks_Orig): New procedure
10911         (Duplicate_Subexpr): Restore original form (checks duplicated)
10912         (Duplicate_Subexpr): Call Remove_Checks
10914         * exp_util.ads:
10915         (Duplicate_Subexpr_No_Checks): New procedure
10916         (Duplicate_Subexpr_No_Checks_Orig): New procedure
10917         Add 2002 to copyright notice
10919         * sem_util.adb: Use new Duplicate_Subexpr functions
10921         * sem_eval.adb:
10922         (Eval_Indexed_Component): This is the place to call
10923         Constant_Array_Ref and to replace the value. We simply merge
10924         the code of this function in here, since it is now no longer
10925         used elsewhere. This fixes the problem of the back end not
10926         realizing we were clever enough to see that this was
10927         constant.
10928         (Expr_Val): Remove call to Constant_Array_Ref
10929         (Expr_Rep_Val): Remove call to Constant_Array_Ref
10930         Minor reformatting
10931         (Constant_Array_Ref): Deal with string literals (patch
10932         suggested by Zack Weinberg on the gcc list)
10934 2001-03-28  Ed Schonberg <schonber@gnat.com>
10936         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
10937         Duplicate_Subexpr_Move_Checks.
10939         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
10940         Duplicate_Subexpr_Move_Checks.
10942         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
10943         value of array exists before retrieving it (it may a private
10944         protected component in a function).
10946 2002-03-28   Geert Bosch <bosch@gnat.com>
10948         * prj-pp.adb : New file.
10950         * prj-pp.ads : New file.
10952 2002-03-28  Andreas Jaeger  <aj@suse.de>
10954         * Makefile.in (stamp-sdefault): Fix path for Makefile.
10956 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
10958         * misc.c (gnat_expand_expr): Move prototype.
10960 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10962         * misc.c (insert_default_attributes): Remove.
10964 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10966         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10967         (gnat_init): Don't set hook.
10968         (gnat_expand_expr): Fix prototype.
10970 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10972         * misc.c (ggc_p): Remove.
10974 2002-03-27  Geert Bosch  <bosch@gnat.com>
10976         * prj-makr.ads, prj-makr.adb : New files.
10978 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
10980         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
10981         (lang_mark_tree): Make static, rename.
10983 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
10985         * misc.c (maybe_build_cleanup): Remove.
10987 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10989         * gigi.h (yyparse): Remove.
10991 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
10993         * gnat_rm.texi: Sync with ACT version.
10994           (From Ben Brosgol <brosgol@gnat.com>)
10996 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
10998         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
10999         (gnat_init): Remove old hook.
11001 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
11003         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
11004         (yyparse): Rename gnat_parse_file.
11006 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
11008         Delete all lines containing "$Revision:".
11009         * xeinfo.adb: Don't look for revision numbers.
11010         * xnmake.adb: Likewise.
11011         * xsinfo.adb: Likewise.
11012         * xsnames.adb: Likewise.
11013         * xtreeprs.adb: Likewise.
11015 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11017         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
11018         gnat_tree_code_name): Delete.
11019         (tree_code_type, tree_code_length, tree_code_name): Define.
11020         (gnat_init): Don't try to copy into the various tree_code
11021         arrays.
11023 2002-03-11  Richard Henderson  <rth@redhat.com>
11025         * Makefile.in (.NOTPARALLEL): Add fake tag.
11027 2002-03-07  Geert Bosch  <bosch@gnat.com>
11029         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
11030         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
11031         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
11032         switch-m.adb, switch-m.ads : New files.
11034 2002-03-07  Geert Bosch  <bosch@gnat.com>
11036         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
11037         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
11038         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
11039         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
11040         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
11041         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
11042         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
11043         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
11044         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
11045         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
11046         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
11047         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
11048         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
11049         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
11050         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
11051         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
11052         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
11053         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
11054         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
11055         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
11056         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
11057         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
11058         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
11059         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
11060         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
11061         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
11062         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
11063         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
11064         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
11065         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
11066         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
11067         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
11068         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
11069         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
11070         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
11071         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
11072         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
11073         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
11074         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
11075         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
11076         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
11077         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
11078         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
11079         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
11080         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
11081         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
11082         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
11083         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
11084         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
11085         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
11086         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
11087         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
11088         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
11089         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
11090         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
11091         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
11092         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
11093         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
11094         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
11095         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
11096         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
11097         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
11098         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
11099         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
11100         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
11101         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
11102         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
11103         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
11104         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
11105         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
11106         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
11107         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
11108         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
11109         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
11110         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
11111         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
11112         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
11113         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
11114         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
11115         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
11116         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
11117         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
11118         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
11119         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
11120         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
11121         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
11122         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
11123         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
11124         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
11125         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
11126         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
11127         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
11128         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
11129         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
11130         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
11131         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
11132         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
11134         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
11135         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
11136         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
11137         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
11139         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
11140         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
11142         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
11143         to mdll-fil.ad[bs] and mdll-util.ad[bs]
11145         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
11146         from mdllfile.ad[bs] and mdlltool.ad[bs]
11148 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11150         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
11151         lieu of explicit sizeof/sizeof.
11153 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11155         * misc.c (copy_lang_decl): Remove.
11157 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11159         * misc.c: Delete traditional-mode-related code copied from the
11160         C front end but not used, or used only to permit the compiler
11161         to link.
11163 2002-02-07  Richard Henderson  <rth@redhat.com>
11165         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
11166         * adaint.h (__gnat_to_gm_time): Update prototype.
11168 2002-01-30  Richard Henderson  <rth@redhat.com>
11170         * trans.c (tree_transform) [N_Loop_Statement]: Use
11171         expand_exit_loop_top_cond.
11173 2001-12-23  Richard Henderson  <rth@redhat.com>
11175         * utils.c (end_subprog_body): Push GC context around
11176         rest_of_compilation for nested functions.
11178 2001-12-23  Richard Henderson  <rth@redhat.com>
11180         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
11182 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
11184         * gnat-style.texi (Declarations and Types): Remove ancient style
11185         rule which was mandated by code generation issues.
11187         * gnat-style.texi (header): Add @dircategory, @direntry.
11188         (title page): Remove date.
11189         (general) Add @./@: where approriate, and two spaces after the
11190         full stop at the end of a sentence.  Use @samp markup when
11191         referring concrete lexical entities (keywords, attribute names
11192         etc.), and @syntax for ARM grammar elements. Use @r for English
11193         text in comments.  Use @emph for emphasis.  Change "if-statements"
11194         etc. to "if statements" (without @samp). Break long lines.  Make
11195         casing of section names consistent.
11196         (Identifiers): Use @samp markup for variable names.
11197         (Comments): Use @samp markup for comment characters. Line-end
11198         comments may follow any Ada code, not just statements.  Fix
11199         misspelling of "Integer" as "integer".
11200         (Loop statements): Do not use variable name "I", use "J".
11201         (Subprogram Declarations): Document alignment.
11202         (Subprogram Bodies, Block statements): Document empty line before
11203         "begin".
11205 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
11207         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
11208         function approach did not work well because of a side effect (the
11209         function call could reallocate the table which was being indexed
11210         using its result). Fixes ada/4851.
11212 2001-12-19  Robert Dewar <dewar@gnat.com>
11214         * bindgen.adb: Minor reformatting
11216         * cstand.adb: Minor reformatting
11218         * fmap.adb: Minor reformatting
11219         Change name from Add for Add_To_File_Map (Add is much too generic)
11220         Change Path_Name_Of to Mapped_Path_Name
11221         Change File_Name_Of to Mapped_File_Name
11222         Fix copyright dates in header
11224         * fmap.ads:
11225         Change name from Add for Add_To_File_Map (Add is much too generic)
11226         Change Path_Name_Of to Mapped_Path_Name
11227         Change File_Name_Of to Mapped_File_Name
11228         Fix copyright dates in header
11230         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
11231         Add use clause for Fmap.
11233         * make.adb: Minor reformatting
11235         * osint.adb: Minor reformatting.  Change of names in Fmap.
11236         Add use clause for Fmap.
11238         * prj-env.adb: Minor reformatting
11240         * prj-env.ads: Minor reformatting
11242         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
11243         error found (there were odd exceptions to this general rule in
11244         -gnatec/-gnatem processing)
11246 2001-12-19  Olivier Hainque <hainque@gnat.com>
11248         * raise.c (__gnat_eh_personality): Exception handling personality
11249         routine for Ada.  Still in rough state, inspired from the C++ version
11250         and still containing a bunch of debugging artifacts.
11251         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
11252         inspired from the C++ library.
11254         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
11255         exception handling integration.
11257 2001-12-19  Arnaud Charlet <charlet@gnat.com>
11259         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
11260         (HIE_SOURCES): Add s-secsta.ad{s,b}.
11261         (HIE_OBJS): Add s-fat*.o
11262         (RAVEN_SOURCES): Remove files that are no longer required. Add
11263         interrupt handling files.
11264         (RAVEN_MOD): Removed, no longer needed.
11266 2001-12-19  Robert Dewar <dewar@gnat.com>
11268         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
11269         Add 2001 to copyright date
11271         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
11272         need to force universal inlining for these cases.
11274 2001-12-19  Arnaud Charlet <charlet@gnat.com>
11276         * s-taprob.adb: Minor clean ups so that this unit can be used in
11277         Ravenscar HI.
11279         * exp_ch7.adb: Allow use of secondary stack in HI mode.
11280         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
11282 2001-12-19  Vincent Celier <celier@gnat.com>
11284         * prj-tree.ads (Project_Node_Record): Add comments for components
11285         Pkg_Id and Case_Insensitive.
11287 2001-12-19  Pascal Obry <obry@gnat.com>
11289         * g-socket.adb: Minor reformatting. Found while reading code.
11291 2001-12-19  Robert Dewar <dewar@gnat.com>
11293         * prj-tree.ads: Minor reformatting
11295 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
11297         * config-lang.in (diff_excludes): Remove.
11299 2001-12-17  Ed Schonberg <schonber@gnat.com>
11301         * sem_res.adb (Resolve_Selected_Component): do not generate a
11302         discriminant check if the selected component is a component of
11303         the argument of an initialization procedure.
11305         * trans.c (tree_transform, case of arithmetic operators): If result
11306         type is private, the gnu_type is the base type of the full view,
11307         given that the full view itself may be a subtype.
11309 2001-12-17  Robert Dewar <dewar@gnat.com>
11311         * sem_res.adb: Minor reformatting
11313         * trans.c (tree_transform, case N_Real_Literal): Add missing third
11314         parameter in call to Machine (unknown horrible effects from this
11315         omission).
11317         * urealp.h: Add definition of Round_Even for call to Machine
11318         Add third parameter for Machine
11320 2001-12-17  Ed Schonberg <schonber@gnat.com>
11322         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
11323         predefined units in No_Run_Time mode.
11325 2001-12-17  Richard Kenner <kenner@gnat.com>
11327         * misc.c (insn-codes.h): Now include.
11329 2001-12-17  Olivier Hainque <hainque@gnat.com>
11331         * a-except.adb: Preparation work for future integration of the GCC 3
11332         exception handling mechanism
11333         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
11334         to factorize previous code sequences and make them externally callable,
11335         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
11336         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
11337         Use the new notification routines.
11339 2001-12-17  Emmanuel Briot <briot@gnat.com>
11341         * prj-tree.ads (First_Choice_Of): Document the when others case
11343 2001-12-17  Arnaud Charlet <charlet@gnat.com>
11345         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
11346         HI-E mode, in order to support Ravenscar profile properly.
11348         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
11349         mode on 32 bits targets.
11351 2001-12-17  Vincent Celier <celier@gnat.com>
11353         * fmap.adb: Initial version.
11355         * fmap.ads: Initial version.
11357         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
11358         If search is successfully done, add to mapping.
11360         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
11362         * make.adb:
11363         (Gnatmake): Add new local variable Mapping_File_Name.
11364          Create mapping file when using project file(s).
11365          Delete mapping file before exiting.
11367         * opt.ads (Mapping_File_Name): New variable
11369         * osint.adb (Find_File): Use path name found in mapping, if any.
11371         * prj-env.adb (Create_Mapping_File): New procedure
11373         * prj-env.ads (Create_Mapping_File): New procedure.
11375         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
11376         (Mapping_File)
11378         * usage.adb: Add entry for new switch -gnatem.
11380         * Makefile.in: Add dependencies for fmap.o.
11382 2001-12-17  Ed Schonberg <schonber@gnat.com>
11384         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
11385         is a package instantiation rewritten as a package body.
11386         (Install_Withed_Unit): Undo previous change, now redundant.
11388 2001-12-17  Gary Dismukes <dismukes@gnat.com>
11390         * layout.adb:
11391         (Compute_Length): Move conversion to Unsigned to callers.
11392         (Get_Max_Size): Convert Len expression to Unsigned after calls to
11393         Compute_Length and Determine_Range.
11394         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
11395         Compute_Length and Determine_Range.
11396         Above changes fix problem with length computation for supernull arrays
11397         where Max (Len, 0) wasn't getting applied due to the Unsigned
11398         conversion used by Compute_Length.
11400 2001-12-17  Arnaud Charlet <charlet@gnat.com>
11402         * rtsfind.ads:
11403         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
11404          System.Secondary_Stack.
11405         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
11406          in HI-E mode.
11407         Remove unused entity RE_Exception_Data.
11409         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
11411         * rident.ads (No_Secondary_Stack): New restriction.
11413 2001-12-17  Joel Brobecker <brobecke@gnat.com>
11415         * gnat_rm.texi: Fix minor typos. Found while reading the section
11416         regarding "Bit_Order Clauses" that was sent to a customer.
11417         Very interesting documentation!
11419 2001-12-17  Robert Dewar <dewar@gnat.com>
11421         * sem_case.adb (Choice_Image): Avoid creating improper character
11422         literal names by using the routine Set_Character_Literal_Name. This
11423         fixes bombs in certain error message cases.
11425 2001-12-17  Arnaud Charlet <charlet@gnat.com>
11427         * a-reatim.adb: Minor reformatting.
11429 2001-12-17  Ed Schonberg <schonber@gnat.com>
11431         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
11432         case where the formal is an extension of another formal in the current
11433         unit or in a parent generic unit.
11435 2001-12-17  Arnaud Charlet <charlet@gnat.com>
11437         * s-tposen.adb: Update comments.  Minor reformatting.
11438         Minor code clean up.
11440         * s-tarest.adb: Update comments.  Minor code reorganization.
11442 2001-12-17  Gary Dismukes <dismukes@gnat.com>
11444         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
11445         when Java_VM.
11447 2001-12-17  Robert Dewar <dewar@gnat.com>
11449         * exp_attr.adb: Minor reformatting
11451 2001-12-17  Ed Schonberg <schonber@gnat.com>
11453         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
11454         derivations nested within a child unit: verify that the parent
11455         type is declared in an outer scope.
11457 2001-12-17  Robert Dewar <dewar@gnat.com>
11459         * sem_ch12.adb: Minor reformatting
11461 2001-12-17  Ed Schonberg <schonber@gnat.com>
11463         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
11464         warning if current unit is a predefined one, from which bodies may
11465         have been deleted.
11467 2001-12-17  Robert Dewar <dewar@gnat.com>
11469         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
11470         Fix header format. Add 2001 to copyright date.
11472         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
11473         which caused CE during compilation if checks were enabled.
11475 2001-12-17  Vincent Celier <celier@gnat.com>
11477         * make.adb:
11478         (Switches_Of): New function
11479         (Test_If_Relative_Path): New procedure
11480         (Add_Switches): Use new function Switches_Of
11481         (Collect_Arguments_And_Compile): Use new function Switches_Of.
11482         When using a project file, test if there are any relative
11483         search path. Fail if there are any.
11484         (Gnatmake): Only add switches for the primary directory when not using
11485         a project file. When using a project file, change directory to the
11486         object directory of the main project file. When using a project file,
11487         test if there are any relative search path. Fail if there are any.
11488         When using a project file, fail if specified executable is relative
11489         path with directory information, and prepend executable, if not
11490         specified as an absolute path, with the exec directory.  Make sure
11491         that only one -o switch is transmitted to the linker.
11493         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
11495         * prj-nmsc.adb:
11496         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
11497         when using a non standard naming scheme.
11498         (Check_Ada_Naming_Scheme): Make sure that error messages
11499         do not raise exceptions.
11500         (Is_Illegal_Append): Return True if there is no dot in the suffix.
11501         (Language_Independent_Check): Check the exec directory.
11503         * prj.adb (Project_Empty): Add new component Exec_Directory
11505         * prj.ads:
11506         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
11507         (Project_Data): Add component Exec_Directory
11509         * snames.adb: Updated to match snames.ads revision 1.215
11511         * snames.ads: Added Exec_Dir
11513 2001-12-17  Robert Dewar <dewar@gnat.com>
11515         * make.adb: Minor reformatting
11517         * prj-nmsc.adb: Minor reformatting
11519         * snames.adb: Updated to match snames.ads
11521         * snames.ads: Alphebetize entries for project file
11523 2001-12-17  Ed Schonberg <schonber@gnat.com>
11525         * trans.c (process_freeze_entity): Do nothing if the entity is a
11526         subprogram that was already elaborated.
11528 2001-12-17  Richard Kenner <kenner@gnat.com>
11530         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
11531         and Esize if object is referenced via pointer.
11533 2001-12-17  Ed Schonberg <schonber@gnat.com>
11535         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
11536         is discrete before analyzing choices.
11538 2001-12-17  Joel Brobecker <brobecke@gnat.com>
11540         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
11541         containing the name of the Ada Main Program. This string is mainly
11542         intended for the debugger.
11543         (Gen_Output_File_C): Do the equivalent change when generating a C file.
11545 2001-12-17  Robert Dewar <dewar@gnat.com>
11547         * ali.adb: Set new Dummy_Entry field in dependency entry
11549         * ali.ads: Add Dummy_Entry field to source dependency table
11551         * bcheck.adb (Check_Consistency): Ignore dummy D lines
11553         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
11555         * lib-writ.ads: Document dummy D lines for missing files.
11557         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
11559 2001-12-17  Robert Dewar <dewar@gnat.com>
11561         * ali.adb: Type reference does not reset current file.
11563         * ali.adb: Recognize and scan renaming reference
11565         * ali.ads: Add spec for storing renaming references.
11567         * lib-xref.ads: Add documentation for handling of renaming references
11569         * lib-xref.adb: Implement output of renaming reference.
11571         * checks.adb:
11572         (Determine_Range): Document local variables
11573         (Determine_Range): Make sure Hbound is initialized. It looks as though
11574          there could be a real problem here with an uninitialized reference
11575          to Hbound, but no actual example of failure has been found.
11577 2001-12-17  Laurent Pautet <pautet@gnat.com>
11579         * g-socket.ads:
11580         Fix comment of Shutdown_Socket and Close_Socket. These functions
11581         should not fail silently because if they are called twice, this
11582         probably means that there is a race condition in the user program.
11583         Anyway, this behaviour is consistent with the rest of this unit.
11584         When an error occurs, an exception is raised with the error message
11585         as exception message.
11587 2001-12-17  Robert Dewar <dewar@gnat.com>
11589         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
11590         that it happens before modification of Sloc values for -gnatD.
11592         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
11593         so that it happens before modification of Sloc values for -gnatD.
11595         * switch.adb: Minor reformatting
11597 2001-12-15  Richard Henderson  <rth@redhat.com>
11599         * sem_ch7.adb: Wrap comment.
11601 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
11603         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
11604         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
11605         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
11606         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
11607         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
11608         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
11609         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
11610         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
11611         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
11612         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
11613         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
11614         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
11615         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
11616         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
11617         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
11618         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
11619         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
11620         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
11621         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
11622         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
11623         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
11624         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
11625         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
11626         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
11627         spelling errors.
11629 2001-12-14  Vincent Celier <celier@gnat.com>
11631         * osint.adb(Create_Debug_File): When an object file is specified,
11632         put the .dg file in the same directory as the object file.
11634 2001-12-14  Robert Dewar <dewar@gnat.com>
11636         * osint.adb: Minor reformatting
11638         * lib-xref.adb (Output_Instantiation): New procedure to generate
11639         instantiation references.
11641         * lib-xref.ads: Add documentation of handling of generic references.
11643         * ali.adb (Read_Instantiation_Ref): New procedure to read
11644         instantiation references
11646         * ali.ads: Add spec for storing instantiation references
11648         * bindusg.adb: Minor reformatting
11650         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11652         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11654         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11656         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11658         * csets.ads:
11659         Fix header format
11660         Add 2001 to copyright date
11661         Add entry for Latin-5 (Cyrillic ISO-8859-5)
11663 2001-12-14  Matt Gingell <gingell@gnat.com>
11665         * adaint.c: mktemp is a macro on Lynx and can not be used as an
11666         expression.
11668 2001-12-14  Richard Kenner <kenner@gnat.com>
11670         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
11671         if operand is CONSTRUCTOR.
11673 2001-12-14  Ed Schonberg <schonber@gnat.com>
11675         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
11676         before emiting check on right-hand side, so that exception information
11677         is correct.
11679 2001-12-14  Richard Kenner <kenner@gnat.com>
11681         * utils.c (create_var_decl): Throw away initializing expression
11682         if just annotating types and non-constant.
11684 2001-12-14  Vincent Celier <celier@gnat.com>
11686         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
11687         Default_Ada_...
11689         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
11690         Remove functions.
11691         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
11693         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
11694         Remove functions.
11695         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
11697 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
11699         * ChangeLog: Remove piece of diff output.
11701 2001-12-14  Geert Bosch <bosch@gnat.com>
11703         * config-lang.in: Update copyright notice
11705         * layout.adb: Remove commented out code.
11707         * mdllfile.ads: Update copyright notice. Fix header format.
11709         * sem_case.ads: Likewise.
11711         * sem_ch3.adb: Minor reformatting.
11713 2001-12-12  Geert Bosch <bosch@gnat.com>
11715         * freeze.ads: Update copyright date.
11717         * g-comlin.ads: Minor reformatting.
11719         * gnat-style.texi: Fix typo.
11721 2001-12-12  Geert Bosch <bosch@gnat.com>
11723         *  einfo.h: Regenerate.
11725 2001-12-12  Ed Schonberg <schonber@gnat.com>
11727         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
11728         on known node types, rather than untyped fields. Further cleanups.
11730 2001-12-12  Robert Dewar <dewar@gnat.com>
11732         * sem_ch12.adb:
11733         (Save_Entity_Descendant): Minor comment update.
11734         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
11735          of an N_Attribute_Reference node. As per note below, this does not
11736         eliminate need for Associated_Node in attribute ref nodes.
11737         (Associated_Node): Documentation explicitly mentions attribute
11738         reference nodes, since this field is used in such nodes.
11740         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
11742 2001-12-12  Robert Dewar <dewar@gnat.com>
11744         * s-stalib.adb: Add more comments on with statements being needed
11746         * par-ch12.adb: Minor reformatting
11748         * prj-dect.ads: Fix copyright header
11750         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
11751         inputs fit in 32 bits, but the result still overflows.
11753         * s-fatgen.ads: Minor comment improvement
11755 2001-12-12  Ed Schonberg <schonber@gnat.com>
11757         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
11758         formal derived type, look for an inherited component from the full
11759         view of the parent, if any.
11761 2001-12-12  Robert Dewar <dewar@gnat.com>
11763         * checks.ads (Apply_Alignment_Check): New procedure.
11765         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
11766         ensure that the alignment of objects with address clauses is
11767         appropriate, and raise PE if not.
11769         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
11770         Exp_Pakd.Known_Aligned_Enough
11772         * mdllfile.ads: Minor reformatting
11774         * mlib-fil.ads: Minor reformatting
11776 2001-12-12  Ed Schonberg <schonber@gnat.com>
11778         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
11779         fix to any component reference if enclosing record has non-standard
11780         representation.
11782 2001-12-12  Vincent Celier <celier@gnat.com>
11784         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
11785         Iteration
11787 2001-12-12  Ed Schonberg <schonber@gnat.com>
11789         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
11790         sem_attr.
11792 2001-12-12  Robert Dewar <dewar@gnat.com>
11794         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
11796 2001-12-12  Emmanuel Briot <briot@gnat.com>
11798         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
11799         and it adds dependencies to system.io.
11801 2001-12-12  Pascal Obry <obry@gnat.com>
11803         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
11804         variable name.
11806 2001-12-11  Ed Schonberg <schonber@gnat.com>
11808         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
11809         that is the parent of other generics, the instance body replaces the
11810         instance node.  Retrieve the instance of the spec, which is the one
11811         that is visible in clients and within the body.
11813 2001-12-11  Vincent Celier <celier@gnat.com>
11815         * gnatmain.adb: Initial version.
11817         * gnatmain.ads: Initial version.
11819         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
11821         * snames.adb: Updated to match snames.ads.
11823         * snames.ads: Added Gnatstub.
11825 2001-12-11  Vincent Celier <celier@gnat.com>
11827         * prj-attr.adb (Initialization_Data): Change name from
11828         Initialisation_Data.
11830 2001-12-11  Emmanuel Briot <briot@gnat.com>
11832         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
11833         + and * applied to backslashed expressions like \r.
11835 2001-12-11  Vasiliy Fofanov <fofanov@gnat.com>
11837         * g-os_lib.ads: String_List type added, Argument_List type is now
11838         subtype of String_List.
11840 2001-12-11  Robert Dewar <dewar@gnat.com>
11842         * g-os_lib.ads: Change copyright to FSF
11843         Add comments for String_List type
11845 2001-12-11  Vincent Celier <celier@gnat.com>
11847         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
11848         string to the buffer).
11850 2001-12-11  Ed Schonberg <schonber@gnat.com>
11852         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
11853         sem_attr.
11855         * sem_attr.adb: Simplify previous fix for Address.
11856         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
11857         to avoid anomalies where the bound of the type appears to raise
11858         constraint error.
11860 2001-12-11  Robert Dewar <dewar@gnat.com>
11862         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
11863         handled.
11865 2001-12-11  Ed Schonberg <schonber@gnat.com>
11867         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
11868         renamed unit before checking for recursive instantiations.
11870 2001-12-11  Emmanuel Briot <briot@gnat.com>
11872         * prj.ads: Add comments for some of the fields.
11874 2001-12-11  Robert Dewar <dewar@gnat.com>
11876         * lib-xref.adb (Output_Refs): Don't output type references outside
11877         the main unit if they are not otherwise referenced.
11879 2001-12-11  Ed Schonberg <schonber@gnat.com>
11881         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
11882         code and diagnose additional illegal uses
11884         * sem_util.adb (Is_Object_Reference): An indexed component is an
11885         object only if the prefix is.
11887 2001-12-11  Vincent Celier <celier@gnat.com>
11889         * g-diopit.adb: Initial version.
11891         * g-diopit.ads: Initial version.
11893         * g-dirope.adb:
11894         (Expand_Path): Avoid use of Unbounded_String
11895         (Find, Wildcard_Iterator): Moved to child package Iteration
11897         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
11899 2001-12-11  Robert Dewar <dewar@gnat.com>
11901         * sem_attr.adb: Minor reformatting
11903 2001-12-11  Ed Schonberg <schonber@gnat.com>
11905         * sem_ch3.adb: Clarify some ???.
11907 2001-12-11  Robert Dewar <dewar@gnat.com>
11909         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
11910         Exp_Pakd.Known_Aligned_Enough
11912         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
11913         version is moved to Exp_Ch13.
11915 2001-12-11  Robert Dewar <dewar@gnat.com>
11917         * einfo.ads: Minor reformatting
11919         * exp_ch5.adb: Add comment for previous.change
11921         * ali.adb: New interface for extended typeref stuff.
11923         * ali.ads: New interface for typeref stuff.
11925         * checks.adb (Apply_Alignment_Check): New procedure.
11927         * debug.adb: Add -gnatdM for modified ALI output
11929         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
11931         * lib-xref.adb: Extend generation of <..> notation to cover
11932         subtype/object types. Note that this is a complete rewrite,
11933         getting rid of the very nasty quadratic algorithm previously
11934         used for derived type output.
11936         * lib-xref.ads: Extend description of <..> notation to cover
11937         subtype/object types. Uses {..} for these other cases.
11938         Also use (..) for pointer types.
11940         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
11942         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
11943         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
11945 2001-12-11  Vincent Celier <celier@gnat.com>
11947         * gnatcmd.adb:
11948         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
11949         Changed /BIND_ONLY to /ACTIONS=BIND
11950         Changed /LINK_ONLY to /ACTIONS=LINK
11952 2001-12-11  Ed Schonberg  <schonber@gnat.com>
11954         * sem_ch8.adb (Find_Selected_Component): improved search for a
11955         candidate package in case of error.
11957         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
11958         chain back on scope stack before reinstalling use clauses.
11960         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
11961         is enabled, do not kill the code for the condition, to preserve
11962         warning.
11964 2001-12-11  Robert Dewar <dewar@gnat.com>
11966         * checks.adb (Insert_Valid_Check): Apply validity check to expression
11967         of conversion, not to result of conversion.
11969 2001-12-11  Ed Schonberg <schonber@gnat.com>
11971         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
11972         before freezing parent. If the declarations are mutually recursive,
11973         an access to the current record type may be frozen before the
11974         derivation is complete.
11976 2001-12-05  Vincent Celier <celier@gnat.com>
11978         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
11979         -c /COMPILE_ONLY, -l /LINK_ONLY
11981         * opt.ads:
11982         (Bind_Only): New Flag
11983         (Link_Only): New flag
11985         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
11986         and -l (Link_Only)
11988         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
11990         * make.adb:
11991         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
11992         (Gnatmake): Set the step flags. Only perform a step if the
11993         corresponding step flag is True.
11994         (Scan_Make_Arg): Reset the bind and link step flags when -u
11995         or -gnatc has been specified.
11997 2001-12-05  Ed Schonberg <schonber@gnat.com>
11999         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
12000         get bounds from right operand.
12002         * sem_eval.adb: Minor reformatting
12004         * exp_util.adb (Make_Literal_Range): use bound of literal rather
12005         than Index'First, its lower bound may be different from 1.
12007         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
12008         and C48009J
12010 2001-12-05  Vincent Celier <celier@gnat.com>
12012         * prj-nmsc.adb Minor reformatting
12014         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
12015         set and libraries are not supported.
12017 2001-12-05  Ed Schonberg <schonber@gnat.com>
12019         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
12020         private view explicitly, so the back-end can treat as a global
12021         when appropriate.
12023 2001-12-05  Ed Schonberg <schonber@gnat.com>
12025         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
12026          unit, always replace instance node with new body, for ASIS use.
12028 2001-12-05  Vincent Celier <celier@gnat.com>
12030         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
12031         libraries are not supported and both attributes Library_Name and
12032         Library_Dir are specified.
12034         * prj-proc.adb (Expression): Set location of Result to location of
12035         first term.
12037         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
12038         (prj-nmsc is now importing MLib.Tgt)
12040         * prj-proc.adb: Put the change indicated above that was forgotten.
12042 2001-12-05  Robert Dewar <dewar@gnat.com>
12044         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
12046 2001-12-05  Ed Schonberg <schonber@gnat.com>
12048         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
12049         constraint, introduce explicit subtype declaration and derive from it.
12051         * sem_ch3.adb: Minor reformatting
12053 2001-12-05  Robert Dewar <dewar@gnat.com>
12055         * checks.adb (Determine_Range): Increase cache size for checks.
12056         Minor reformatting
12058         * exp_ch6.adb: Minor reformatting
12059         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
12060         a parameter whose root type is System.Address, since treating such
12061         subprograms as pure in the code generator is almost surely a mistake
12062         that will lead to unexpected results.
12064         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
12065         change handling of conversions.
12067         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
12069 2001-12-05  Ed Schonberg <schonber@gnat.com>
12071         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
12072         aggregate with static wrong size, attach generated Raise node to
12073         declaration.
12075 2001-12-05  Robert Dewar <dewar@gnat.com>
12077         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
12078         Fixes compilation abandoned bomb in B24009B.
12080 2001-12-05  Ed Schonberg <schonber@gnat.com>
12082         * sem_ch12.adb:
12083         Document use of Associated_Node on Selected_Components.
12084         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
12085         to clarify use of untyped descendant fields.
12087 2001-12-05  Robert Dewar <dewar@gnat.com>
12089         * prj-dect.ads: Add ??? comment
12090         Add 2001 to copyright notice (was not done in after all)
12092         * prj-part.adb: Minor reformatting. Reword one awkward error message.
12094         * prj.ads: Minor reformatting throughout, and add some ??? comments
12096         * snames.ads: Minor reformatting
12098 2001-12-05  Geert Bosch <bosch@gnat.com>
12100         * snames.adb: Autoupdate
12102 2001-12-05  Vincent Celier <celier@gnat.com>
12104         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
12106         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
12108         * prj-env.adb: Minor comment changes (modifying -> extends).
12110         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
12112         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
12113         Tok_Extends.
12115         * prj.adb (Initialize): Change Modifying to Extends.
12117         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
12119         * prj.ads: Minor comment change (Modifying -> extending).
12121         * snames.ads: Change modifying to extends.
12123 2001-12-05  Robert Dewar <dewar@gnat.com>
12125         * sem_warn.adb: Remove stuff for conditionals, we are not going to
12126         do this after all.
12128         * sem_warn.ads: Remove stuff for conditionals, we are not going to
12129         do this after all.  Add 2001 to copyright notice
12131 2001-12-04  Geert Bosch <bosch@gnat.com>
12133         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
12135 2001-12-04  Robert Dewar <dewar@gnat.com>
12137         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
12138         location if we already have errors. Stops some cases of cascaded
12139         errors.
12141         * errout.adb: Improve comment.
12143 2001-12-04  Robert Dewar <dewar@gnat.com>
12145         * sem_ch12.adb:
12146         (Analyze_Formal_Type_Definition): Defend against Error.
12147         (Analyze_Formal_Subprogram): Defend against Error.
12149         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
12150         remove following semicolon if present. Removes cascaded error.
12152 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
12154         * bindgen.adb:
12155         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
12156          exceptions equals 0.
12157         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
12158         Fixes PIWG E tests (which have to be run with -gnatL).
12160 2001-12-04  Robert Dewar <dewar@gnat.com>
12162         * einfo.ads: Minor reformatting
12164 2001-12-04  Ed Schonberg <schonber@gnat.com>
12166         * einfo.ads: Block_Node points to the identifier of the block, not to
12167         the block node itself, to preserve the link when the block is
12168         rewritten, e.g. within an if-statement with a static condition.
12170         * inline.adb (Cleanup_Scopes): recover block statement from block
12171         entity using new meaning of Block_Node.
12173         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
12174         identifier of block node, rather than to node itself.
12176 2001-12-04  Gary Dismukes <dismukes@gnat.com>
12178         * layout.adb:
12179         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
12180         (Discrimify): Go back to setting the Etypes of the selected component
12181         because the Vname component does not exist at this point and will
12182         fail name resolution. Also set Analyzed.
12183         Remove with and use of Sem_Res.
12185 2001-12-04  Arnaud Charlet <charlet@gnat.com>
12187         * Makefile.in: (HIE_SOURCES): add s-fat*.
12189 2001-12-04  Robert Dewar <dewar@gnat.com>
12191         * sem_attr.adb:
12192         (Compile_Time_Known_Attribute): New procedure.
12193         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
12194          proper range check.
12196 2001-12-04  Ed Schonberg <schonber@gnat.com>
12198         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
12199         processing discriminants to diagnose illegal default values.
12201 2001-12-04  Ed Schonberg <schonber@gnat.com>
12203         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
12204         access discriminant within a type extension that constrains its
12205         parent discriminants.
12207 2001-12-04  Ed Schonberg <schonber@gnat.com>
12209         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
12210         is malformed, use instance of Any_Id to allow analysis to proceed.
12212         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
12213         type definition is illegal.
12214         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
12215         misplaced.
12217 2001-12-04  Ed Schonberg <schonber@gnat.com>
12219         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
12220         constants.
12222 2001-12-04  Robert Dewar <dewar@gnat.com>
12224         * errout.adb: Minor reformatting
12226 2001-12-04  Robert Dewar <dewar@gnat.com>
12228         * exp_util.adb: Minor reformatting from last change
12230         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
12231         which is a rewriting of an expression, traverse the original
12232         expression to remove warnings that may have been posted on it.
12234 2001-12-04  Ed Schonberg <schonber@gnat.com>
12236         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
12237         record that has other packed components.
12239 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
12241         * adaint.c: Minor cleanups.
12243 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
12245         * adaint.c: Do not use utime.h on vxworks.
12247 2001-12-04  Arnaud Charlet <charlet@gnat.com>
12249         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
12250         more confusion than it solves.
12252 2001-12-04  Geert bosch <bosch@gnat.com>
12254         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
12256 2001-12-04  Geert Bosch  <bosch@gnat.com>
12258         * Makefile.in (update-sources): New target.
12259         For use by gcc_release script.
12261 2001-12-04  Ed Schonberg <schonber@gnat.com>
12263         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
12264         a configuration pragma, it is now legal wherever a pragma can appear.
12266 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
12268         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
12269         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
12270         is now @CROSS@ -DIN_GCC; update comment.
12272 2001-12-04  Robert Dewar <dewar@gnat.com>
12274         * einfo.adb (Has_Pragma_Pure_Function): New flag.
12275         Fix problem that stopped ceinfo from working
12277         * einfo.ads (Has_Pragma_Pure_Function): New flag.
12279         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
12281 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
12283         * gnatchop.adb:
12284         (File_Time_Stamp): New procedure.
12285         (Preserve_Mode): New boolean.
12286         (Write_Unit): Pass time stamp.
12287         Implement -p switch (preserve time stamps).
12289         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
12291         * gnatchop.adb: Do usage info for -p switch
12293         * adaint.h (__gnat_set_file_time_name): New function
12295         * adaint.c (__gnat_set_file_time_name): Implement
12297         * adaint.h: Fix typo
12299 2001-12-03  Robert Dewar <dewar@gnat.com>
12301         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
12302         have Associated_Node.
12304 2001-12-03  Robert Dewar <dewar@gnat.com>
12306         * prj-proc.adb: Minor reformatting
12308         * make.adb: Minor reformatting
12310 2001-12-03  Geert Bosch <bosch@gnat.com>
12312         * make.adb: Minor reformatting.
12314 2001-12-03 Robert Dewar  <dewar@gnat.com>
12316         * sem_ch12.adb: Minor reformatting
12318 2001-12-03  Ed Schonberg <schonber@gnat.com>
12320         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
12321         push Standard on the stack before analyzing the instance body,
12322         in order to have a clean visibility environment.
12324         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
12326 2001-12-03  Ed Schonberg <schonber@gnat.com>
12328         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
12329         instantiation of a body that contains an inlined body.
12331 2001-12-03  Ed Schonberg <schonber@gnat.com>
12333         * sem_ch12.adb:
12334         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
12335         to prevent freezing within formal packages.
12336         (Freeze_Subprogram_Body): If body comes from another instance that
12337         appeared before its own body, place freeze node at end of current
12338         declarative part, to prevent a back-end crash.
12339         (Inline_Instance_Body): Handle properly a package instance within
12340         a subprogram instance that is a child unit.
12342 2001-12-01  Graham Stott  <grahams@redhat.com>
12344         * Makefile.in (misc.o): Add missing $(srcdir) prefix
12345         and add optabs.h dependency.
12347         * misc.c: Include optabs.h
12348         (gnat_tree_code_type): Make static and const.
12349         (gnat_tree_code_length): Likewise.
12350         (gnat_tree_code_name): Likewise.
12351         (update_setjmp_buf): Obtain operands mode from insn_data.
12353 2001-11-29  Richard Henderson  <rth@redhat.com>
12355         * init.c: Remove obsolete dwarf2 frame.h section.
12357 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
12359         * Make-lang.in (ada.generated-manpages): New dummy target.
12361 2001-11-29  Ed Schonberg <schonber@gnat.com>
12363         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
12364         into Command, an array conversion is illegal here. Uncovered by
12365         ACATS B460005.
12367 2001/11/28  Geert Bosch <bosch@gnat.com>
12369         * init.c: Minor whitespace changes.
12371 2001-11-28  Doug Rupp <rupp@gnat.com>
12373         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
12374         signal stack.
12376 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
12378         * misc.c (gnat_expand_constant): Move declaration above
12379         definition of lang_hooks.
12380         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
12381         (gnat_init): lang_expand_constant no longer exists.
12383         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
12384         always have vprintf.
12385         (gnat_init): Always call set_internal_error_function.
12387 2001-11-27  Andreas Jaeger  <aj@suse.de>
12389         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
12391 2001-11-27  Laurent Guerby  <guerby@acm.org>
12393         * Makefile.in: Regenerate Ada dependencies.
12395 2001-11-26  Richard Henderson  <rth@redhat.com>
12397         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
12398         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
12399         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
12401 2001-11-25  Laurent Guerby  <guerby@acm.org>
12403         * sysdep.c (rts_get_*): Fix style.
12405 2001-11-19  Laurent Guerby  <guerby@acm.org>
12407         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
12408         since it is of no apparent use and cause warnings.
12410 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
12412         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
12413         static too.
12414         (gnat_init): Don't return NULL.
12415         (finish_parse): Remove.
12417 2001-11-17  Laurent Guerby  <guerby@acm.org>
12419         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
12420         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
12421         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
12422         * lang-spec.h: Add missing struct field to silence warnings.
12423         * sysdep.c (rts_get_*): Provide K&R prototype.
12424         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
12425         * traceback.c (Unlock_Task, Lock_Task): Likewise.
12426         * tracebak.c (__gnat_backtrace): Remove unused variable.
12427         * utils.c (end_subprog_body): Move to K&R style.
12429 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12431         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
12433 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
12435         * misc.c (gnat_init): Change prototype.  Include the
12436         functionality of the old init_parse and init_decl_processing.
12437         (gnat_init_decl_processing): New prototype.
12438         (init_parse): Remove.
12439         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
12441 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
12443         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
12444         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
12445         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
12446         set_yydebug): Remove.
12448 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
12450         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
12451         (struct lang_hooks): Constify.
12452         (language_string, lang_identify): Remove.
12453         * utils.c (init_decl_processing): Update.
12455 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12457         * misc.c: Include langhooks-def.h.
12458         * Makefile.in: Update.
12460 2001-10-30  Robert Dewar <dewar@gnat.com>
12462         * style.adb:
12463         (Check_Identifier): Rewrite circuit to be compatible with use of letters
12464         in the upper half of ASCII.
12465         (Check_Identifier): Minor reformatting
12467 2001-10-30  Geert Bosch <bosch@gnat.com>
12469         * (Associated_Node, Set_Associated_Node): Do not check for
12470         Freeze_Entity.
12472 2001-10-30  Robert Dewar <dewar@gnat.com>
12474         * a-reatim.ads: Minor reformatting
12476 2001-10-30  Robert Dewar <dewar@gnat.com>
12478         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
12479         undocumented declarations.
12481 2001-10-30  Pascal Obry <obry@gnat.com>
12483         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
12484         to the binder and linker.
12485         Minor style fix.
12487         * mdll.ads: Fix layout.  Update copyright notice.
12489         * mdll.adb: Fix layout.  Update copyright notice.
12491 2001-10-30  Robert Dewar <dewar@gnat.com>
12493         * usage.adb: Minor fix to output for -gnaty.
12495 2001-10-30  Ed Schonberg <schonber@gnat.com>
12497         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
12498         to accommodate all its possible values.
12500         * a-reatim.adb (Split): Special-case handling of Time_Span_First
12501         and of small absolute values of T.
12503 2001-10-30  Richard Kenner <kenner@gnat.com>
12505         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
12506         set_mem_attributes since not needed and wrong if RESULT if a REG;
12507         fixes ACATS failures.
12509 2001-10-30  Geert Bosch <bosch@gnat.com>
12511         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
12512         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
12514 2001-10-30  Robert Dewar <dewar@gnat.com>
12516         * bindusg.adb: Undocument -f switch.
12518         * gnatcmd.adb: Remove /FULL_ELABORATION.
12520         * opt.ads (Force_RM_Elaboration_Order): Document that this is
12521         obsolescent.
12523         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
12525         * gnatbind.adb: Minor update of warning msg.
12527 2001-10-30  Vincent Celier <celier@gnat.com>
12529         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
12530         for project file switches (-P (/PROJECT_FILE=),
12531          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
12532         or MEDIUM or HIGH)
12534 2001-10-30  Geert Bosch <bosch@gnat.com>
12536         * decl.c: Minor whitespace fixes.
12538 2001-10-30  Richard Kenner <kenner@gnat.com>
12540         * utils2.c (build_allocator): Test for SIZE overflow in array case too
12542 2001-10-30  Geert Bosch <bosch@gnat.com>
12544         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
12545         Found due to GCC 3.0 warning of using uninitialized value.
12547         * layout.adb:
12548         (Get_Max_Size): Use variant record for tracking value/expression.
12549          Makes logic clearer and prevents warnings for uninitialized variables.
12550         (Layout_Array_Type): Use variant record for tracking value/expression.
12551          Makes logic clearer and prevents warnings for uninitialized variables.
12553 2001-10-30  Robert Dewar <dewar@gnat.com>
12555         * lib.adb: Minor reformatting
12557         * s-taprop.ads: Minor reformatting
12559 2001-10-29  Laurent Guerby  <guerby@acm.org>
12561         * init.c:
12562         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
12563         const.
12564         (_gnat_error_handler): Make MSG const.
12566 2001-10-29  Richard Kenner <kenner@gnat.com>
12568         * sysdep.c: Fix localtime_r problem on LynxOS.
12569         Also remove #elif to avoid warnings.
12571         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
12572         used by this.
12574         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
12576 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
12578         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
12579         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
12580         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
12581         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
12582         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
12583         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
12584         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
12585         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
12586         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
12587         types.ads, urealp.adb: Fix spelling errors.
12589 2001-10-27  Laurent Guerby <guerby@acm.org>
12591         * trans.c (gigi): Fix non determinism leading to bootstrap
12592         comparison failures for debugging information.
12594 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
12596         * gnat_rm.texi: Use @./@: where appropriate.
12598 2001-10-26  Robert Dewar <dewar@gnat.com>
12600         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
12602 2001-10-26  Richard Kenner <kenner@gnat.com>
12604         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
12606 2001-10-26  Richard Kenner <kenner@gnat.com>
12608         * decl.c (validate_size): Modify message for bad size to avoid
12609         implication that compiler is modifying the size.
12611 2001-10-26  Robert Dewar <dewar@gnat.com>
12613         * prj-util.adb: Minor reformatting. Fix bad header format.
12615 2001-10-26  Robert Dewar <dewar@gnat.com>
12617         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
12619         * sinfo.ads: Clarify use of Associated_Node (documentation only).
12621         * sem_ch12.adb: Change Node4 to Associated_Node. Change
12622         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
12623         much more narrowly in places where needed. These are cleanups.
12625 2001-10-26  Joel Brobecker <brobecke@gnat.com>
12627         * 5zosinte.ads (null_pthread): new constant.
12629         * 5ztaprop.adb:
12630         (Initialize_TCB): Initialize thread ID to null, to be able to verify
12631          later that this field has been set.
12632         (Finalize_TCB): ditto.
12633         (Suspend_Task): Verify that the thread ID is not null before using it.
12634         (Resume_Task): ditto.
12636         * s-tasdeb.adb:
12637         (Resume_All_Tasks): Lock the tasks list before using it.
12638         (Suspend_All_Tasks): ditto.
12640 2001-10-26  Richard Kenner <kenner@gnat.com>
12642         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
12643         Make constant variant of designated type for Is_Access_Constant.
12644         Call update_pointer_to with main variant.
12646         * trans.c (process_freeze_entity, process_type):
12647         Call update_pointer_to on main variant.
12649         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
12650         If main variant, update all other variants.
12652         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
12653         TREE_STATIC.
12655 2001-10-26  Robert Dewar <dewar@gnat.com>
12657         * prj-util.adb: Minor reformatting
12659 2001-10-26  Robert Dewar <dewar@gnat.com>
12661         * prj-util.adb: Minor reformatting
12663 2001-10-26  Robert Dewar <dewar@gnat.com>
12665         * prj-attr.adb: Minor reformatting throughout
12667 2001-10-26  Robert Dewar <dewar@gnat.com>
12669         * prj-attr.ads: Minor reformatting
12670         Add ??? comment (this whole spec has almost no comments)
12672 2001-10-26  Vincent Celier <celier@gnat.com>
12674         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
12675         ("//") that precede the drive letter on Interix.
12677 2001-10-26  Geert Bosch <bosch@gnat.com>
12679         * gnat_rm.texi: Add GNAT Reference Manual.
12681 2001-10-25  Robert Dewar <dewar@gnat.com>
12683         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
12684         is Error. Similar change for other renaming cases.
12686 2001-10-25  Robert Dewar <dewar@gnat.com>
12688         * s-atacco.ads: Add pragma Inline_Always for functions.
12689         Fix header format. Add copyright 2001
12691 2001-10-25  Ed Schonberg <schonber@gnat.com>
12693         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
12694         return Error rather than Empty so that analysis can proceed.
12696 2001-10-25  Ed Schonberg <schonber@gnat.com>
12698         * sem_util.adb (Enter_Name): better handling of cascaded error
12699         messages when a unit appears in its own context.
12701 2001-10-25  Ed Schonberg <schonber@gnat.com>
12703         * sem_util.adb (Defining_Entity): in case of error, attach created
12704         entity to specification, so that semantic analysis can proceed.
12706 2001-10-25  Robert Dewar <dewar@gnat.com>
12708         * sem_util.adb
12709         (Defining_Entity): Deal with Error.
12710         (Process_End_Label): Deal with bad end label for.
12712 2001-10-25  Ed Schonberg <schonber@gnat.com>
12714         * sem_elab.adb (Check_A_Call): refine message when call is in an
12715         instance but callee is not declared in the generic unit.
12717 2001-10-25  Ed Schonberg <schonber@gnat.com>
12719         * sem_elab.adb (Check_A_Call): check for renaming before finding the
12720         enclosing unit, which may already be different from the calling unit.
12722 2001-10-25  Geert Bosch <bosch@gnat.com>
12724         * 4gintnam.ads: fix header format.
12726 2001-10-25  Ed Schonberg <schonber@gnat.com>
12728         * sem_res.adb (Resolve_Call): if the call is actually an indexing
12729         operation on the result of a parameterless call, perform elaboration
12730         check after the node has been properly rewritten.
12732         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
12733         inlined within the generic tree, the defining identifier is not a
12734         compilation_unit.
12736 2001-10-25  Ed Schonberg <schonber@gnat.com>
12738         * sem_res.adb (Resolve): special-case resolution of Null in an
12739          instance or an inlined body to avoid view conflicts.
12741         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
12742          compatibility by retrieving the access type of the generic copy.
12744 2001-10-25  Robert Dewar <dewar@gnat.com>
12746         * sem_ch3.adb:
12747         (Analyze_Number_Declaration): Handle error expression.
12748         (Signed_Integer_Type_Declaration): Handle error bound.
12749         (Analyze_Subtype_Indication): Handle error range.
12751         * sem_util.adb (Get_Index_Bounds): Check for Error.
12753 2001-10-25  Robert Dewar <dewar@gnat.com>
12755         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
12756         in no run time mode.
12758 2001-10-25  Pascal Obry <obry@gnat.com>
12760         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
12761         mode case for ALLOC case.
12763         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
12764         all platforms. Improvement of last change.
12766 2001-10-25  Robert Dewar <dewar@gnat.com>
12768         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
12770 2001-10-25  Geert Bosch  <bosch@gnat.com>
12772         * osint.adb (Is_Relative): Remove duplicate.
12774 2001-10-25  Pascal Obry <obry@gnat.com>
12776         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
12777         pathnames in UNIX and DOS style with drive letter.
12778         (Is_Relative): new routine.
12780         * osint.adb: Minor reformatting
12782         * osint.adb (Is_Relative): implementation using
12783         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
12785 2001-10-25  Pascal Obry <obry@gnat.com>
12787         * g-dirope.adb (Basename): correctly compute offset between the
12788         original Path and the translated one.
12790         * g-dirope.adb: (Base_Name): add some comments.
12792 2001-10-25  Robert Dewar <dewar@gnat.com>
12794         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
12795         in HIE mode, avoids compilation abandoned message
12797         * exp_imgv.adb: Correct typo in previous change
12799         * exp_imgv.adb: Correct typo in previous change (not my day!)
12801 2001-10-25  Robert Dewar <dewar@gnat.com>
12803         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
12805 2001-10-25  Pascal Obry <obry@gnat.com>
12807         * g-awk.ads: Move all pragma inlines next to the routine
12808          declarations. This is more uniform with other GNAT spec.
12810 2001-10-22  Geert Bosch  <bosch@gnat.com>
12812         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
12814 2001-10-19  Geert Bosch  <bosch@gnat.com>
12816         * Makefile.in (tools, gnattools): Remove gnatmem.
12818 2001-10-17  Richard Henderson  <rth@redhat.com>
12820         * Makefile.in (misc.o): Depend on langhooks.h.
12821         * misc.c: Include it.
12822         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
12823         (LANG_HOOKS_DECODE_OPTION): New.
12824         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
12826 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
12828         * trans.c (tree_transform): Adjust to recent change in
12829         expand_asm_operands to implement named asm operands.
12831 2001-10-11  Ed Schonberg  <schonber@gnat.com>
12833         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
12834         renaming of discriminant for mutable record type.
12836 2001-10-11  Robert Dewar  <dewar@gnat.com>
12838         * validsw.adb: Properly save -gnatVn status.
12840 2001-10-11  Robert Dewar <dewar@gnat.com>
12842         * usage.adb: Add lines for V switch.
12844         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
12845         (/VALIDITY_CHECKING).
12847 2001-10-11  Ed Schonberg <schonber@gnat.com>
12849         * sem_type.adb (Add_One_Interp): an operator for a type declared in
12850         an extension of System is known to be visible.
12852 2001-10-11  Ed Schonberg <schonber@gnat.com>
12854         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
12855         properly. Fixes regression on ACATS C34005G.
12857 2001-10-11  Robert Dewar <dewar@gnat.com>
12859         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
12860         loop in generic instance, since this is likely not very useful.
12862 2001-10-11  Robert Dewar <dewar@gnat.com>
12864         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
12865         the error message for high integrity mode.
12867         * rtsfind.adb (RTE): Give message if we try to find an entity that
12868         is not available in high integrity mode.
12870         * rtsfind.ads:
12871         (OK_To_Use_In_HIE_Mode): New array.
12872         (RTE): May return Empty in high integrity mode.
12874         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
12875         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
12877         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
12878         unit if not inlined always and in no runtime mode. Fixes problem
12879         caused by new Rtsfind changes.
12881         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
12882         body is deleted.
12884         * rtsfind.adb (RTE): Make sure we do not try to load unit after
12885         giving message for entity not available in high integrity mode.
12887 2001-10-11  Pascal Obry <obry@gnat.com>
12889         * impunit.adb: Add GNAT.CRC32.
12891 2001-10-11  Ed Schonberg <schonber@gnat.com>
12893         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
12894         properly the case where one universal operand in a non-static
12895         exponentiation of a real literal.
12897 2001-10-11  Ed Schonberg <schonber@gnat.com>
12899         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
12900         clause, return the gobal finalization list, for lack of anthing else.
12902 2001-10-11  Ed Schonberg <schonber@gnat.com>
12904         * exp_ch7.adb (Make_Transient_Block): if statement is within
12905         exception handler, always use new transient scope to place Clean
12906         procedure.
12908 2001-10-11  Pascal Obry <obry@gnat.com>
12910         * Makefile.in:
12911         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
12912         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
12913         (GNATLS_RTL_OBJS): add g-crc32.o
12914         (GNATMAKE_RTL_OBJS): add g-crc32.o
12916         * ali-util.adb:
12917         (CRC_Match): new function.
12918         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
12919         instead of the previous simple checksum algorithm.
12920         (Time_Stamp_Mismatch): use CRC_Match for comparison.
12921         (Set_Source_Table): idem.
12923         * ali-util.ads:
12924         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
12925         instead of simple checksum.
12926         (CRC_Match): new function.
12927         (CRC_Error): new constant.
12929         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
12930         a CRC now and not a simple checksum. A CRC uses lower-case hex
12931         letters, fixes ambiguity in parsing.
12933         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
12934         is what this variable will store.
12936         * bcheck.adb: Change reference to chechsum in comments by CRC.
12937         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
12938         rename All_Checksum_Match to All_CRC_Match. Change due to API
12939         renaming since now GNAT does not use a simple checksum but a
12940         CRC using GNAT.CRC32.
12942         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
12943         now and not anymore a simple checksum.
12945         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
12946         places.
12948         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
12950         * scans.adb:
12951         (Restore_Scan_State): rename Checksum to CRC.
12952         (Save_Scan_State): idem.
12954         * scans.ads:
12955         With GNAT.CRC32.
12956         (Checksum): rename to CRC.
12957         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
12959         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
12960         GNAT.CRC32).  Update copyright notice.
12962         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
12963         GNAT.CRC32).  Update copyright notice.
12965         * scn.adb:
12966         (Accumulate_Checksum): removed.
12967         (Update): new procedure. Add a wide-character into the CRC.
12969         * sinput-l.adb:
12970         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
12971         (Load_File): fix initialization of S (change Source_Checksum to
12972         Source_CRC)
12974         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
12975         Source_CRC in S initialization.
12977         * sinput.adb (Source_Checksum): renamed to Source_CRC.
12979         * sinput.ads (Source_Checksum): renamed to Source_CRC.
12980         Update comments for the CRC.
12982         * types.adb (Hex): Use lowercase for the letter part.
12984         * types.ads (Get_Hex_String): Returns the hexadecimal representation
12985         for a word. This is currently used only for CRC. In previous version,
12986         the checksum was using a representation with all letter being
12987         upper-case. With the new implementation (using CRC) we do not remove
12988         the 32th bit of the CRC, so we can have an upper-case starting letter
12989         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
12990         It is ambigous since the CRC was optional and could be followed by
12991         options like EB, EE. So now this routines uses lower-case letter for
12992         the hexadecimal representation. Strange enough only lower case letters
12993         where checked in Scan_ALI (even if this was not a possible case).
12995         * gnatvsn.ads (Library_Version): changed to 3.15a.
12997         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
12998         for the compiler.
13000         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
13001         for the compiler.
13003         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
13004         Add 2001 to copyright notice
13005         (Accumulate_Checksum): Modify to use System.CRC32.
13007         * ali-util.ads: Redo changes of previous revision to continue to use
13008         the word Checksum. Add 2001 to copyright notice.
13010         * ali.adb: Undo some of previous changes, not needed.
13011         Keep the change for lower case letters in the checksum.
13013         * ali.ads: Undo previous change not needed.
13015         * bcheck.adb: Undo most of previous change, not needed.
13016         But do use Checksums_Match for checksum comparison.
13018         * gnatls.adb: Undo most of previous change, not needed.
13019         But do use Checksums_Match for comparing checksums.
13021         * lib-load.adb: Undo previous change, not needed.
13023         * lib-writ.adb: Undo previous change, not needed.
13025         * lib-writ.ads: Document that checksums use lower case,
13026         not upper case letters.
13028         * scans.adb: Undo previous change, not needed
13030         * scans.ads: Undo previous change, not needed.
13032         * scn-nlit.adb: Undo previous changes, not needed.
13034         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
13036         * scn.adb:
13037         (Accumulate_Checksum): Use System.CRC32.
13038         (Initialize_Checksum): New procedure.
13039         Remove other changes of previous revision.
13041         * sinput-p.adb: Undo previous change, not needed.
13043         * sinput.adb: Undo previous change, not needed.
13045         * sinput-l.adb: Undo previous change, not needed.
13047         * sinput.ads: Undo previous change, not needed.  Keep only comment
13048         on new checksum algorithm
13050         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
13051         Also remove a-tags and a-stream from GNAT sources.
13053         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
13055         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
13057 2001-10-11  Geert Bosch  <bosch@gnat.com>
13059         * einfo.h: Regenerate.
13061         * nmake.ads: Regenerate.
13063         * nmake.adb: Regenerate.
13065         * sinfo.h: Regenerate.
13067         * treeprs.adb: Regenerate.
13069 2001-10-10  Geert Bosch  <bosch@gnat.com>
13071         * gnat-style.texi: New file describing coding guidelines for Ada.
13073 2001-10-10  Ed Schonberg <schonber@gnat.com>
13075         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
13076         is Flag174.
13078 2001-10-10  Geert Bosch  <bosch@gnat.com>
13080         * snames.ads: Add new names for project facility.
13082         * snames.adb: Update to reflect snames.ads changes.
13084         * snames.h: Update to reflect snames.ads changes.
13086 2001-10-10  Vincent Celier <celier@gnat.com>
13088         * make.adb:
13089         (Add_Switches): reflect the changes for the switches attributes
13090         Default_Switches indexed by the programming language,
13091         Switches indexed by the file name.
13092         (Collect_Arguments_And_Compile): Idem.
13093         Reflect the attribute name changes.
13095         * prj-attr.adb:
13096         (Initialisation_Data): Change the names of some packages and
13097         attributes.
13098         (Initialize): process case insensitive associative arrays.
13100         * prj-attr.ads:
13101         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
13103         * prj-dect.adb:
13104         (Parse_Attribute_Declaration): For case insensitive associative
13105          arrays, set the index string to lower case.
13107         * prj-env.adb:
13108         Reflect the changes of the project attributes.
13110         * prj-nmsc.adb:
13111         Replace Check_Naming_Scheme by Ada_Check and
13112         Language_Independent_Check.
13114         * prj-nmsc.ads:
13115         Replaced Check_Naming_Scheme by 2 procedures:
13116         Ada_Check and Language_Independent_Check.
13118         * prj-proc.adb:
13119         (Process_Declarative_Items): For case-insensitive associative
13120         arrays, set the index string to lower case.
13121         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
13122         Prj.Nmsc.Check_Naming_Scheme.
13124         * prj-tree.adb:
13125         (Case_Insensitive): New function
13126         (Set_Case_Insensitive): New procedure
13128         * prj-tree.ads:
13129         (Case_Insensitive): New function
13130         (Set_Case_Insensitive): New procedure
13131         (Project_Node_Record): New flag Case_Insensitive.
13133         * prj-util.adb:
13134         (Value_Of): new function to get the string value of a single
13135         string variable or attribute.
13137         * prj-util.ads:
13138         (Value_Of): new function to get the string value of a single
13139         string variable or attribute.
13141         * prj.adb:
13142         (Ada_Default_Spec_Suffix): New function
13143         (Ada_Default_Impl_Suffix): New function
13144         Change definitions of several constants to reflect
13145         new components of record types.
13147         * prj.ads:
13148         (Naming_Data): Change several components to reflect new
13149         elements of naming schemes.
13150         (Project_Data): New flags Sources_Present and
13151         Language_Independent_Checked.
13152         (Ada_Default_Spec_Suffix): New function.
13153         (Ada_Default_Impl_Suffix): New function.
13155         * snames.ads:
13156         Modification of predefined names for project manager: added
13157         Implementation, Specification_Exceptions, Implementation_Exceptions,
13158         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
13159         Default_Switches, _Languages, Builder, Cross_Reference,
13160         Finder. Removed Body_Part, Specification_Append, Body_Append,
13161         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
13162         Gnatlink.
13164         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
13165         Add comments.
13167         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
13168         not that it is Nil_Variable_Value.
13170         * prj.ads: Add ??? for uncommented declarations
13172 2001-10-10  Ed Schonberg <schonber@gnat.com>
13174         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
13175         constant, do not indicate possible modification, so that gigi can
13176         treat it as a bona fide constant.
13178 2001-10-10  Robert Dewar <dewar@gnat.com>
13180         * sem_prag.adb: Add processing for pragma External.
13182         * snames.ads: Add entry for pragma External.
13184         * par-prag.adb: Add pragma External.
13186         * snames.adb: Updated to match snames.ads.
13188 2001-10-10  Ed Schonberg <schonber@gnat.com>
13190         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
13191         a dynamic task if the allocator appears in an indexed assignment
13192         or selected component assignment.
13194         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
13195         For a dynamic task in an assignment statement, use target of
13196         assignment to generate meaningful name.
13198 2001-10-10  Ed Schonberg <schonber@gnat.com>
13200         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
13201         a generic package.
13203         * einfo.ads: Body_Entity is also defined for generic package.
13204         Documentation change only
13206         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
13207         others_choice for a discriminated component initialization,
13208         convert discriminant references into the corresponding discriminals.
13210         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
13211         only if original type is private and expression has to be wrapped
13212         in a conversion.
13214         * checks.adb:
13215         (Apply_Constraint_Check): Do not perform length check
13216         if expression is an aggregate with only an others_choice.
13217         (Length_N_Cond): two references to the same in_parameter
13218         (typically the discriminal in an init_proc) denote the same value.
13219         Two useful optimization uncovered by bugfixes above.
13221 2001-10-10  Robert Dewar <dewar@gnat.com>
13223         * xeinfo.adb: Change int to char in translation of enumeration types.
13224         This fixes a problem in the C representation of component alignment.
13225         Add 2001 to copyright notice
13227 2001-10-10  Richard Kenner <kenner@gnat.com>
13229         * decl.c: (validate_size): Do check size of object of integral type
13230         if it is a packed array type.
13232 2001-10-10  Richard Kenner <kenner@gnat.com>
13234         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
13235         VAR_DECL for constant if not Is_Public but -O0.
13237 2001-10-10  Richard Kenner  <kenner@gnat.com>
13239         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
13241 2001-10-10  Geert Bosch  <bosch@gnat.com>
13243         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
13244         use '/' as switch character, allowing for absolute file names.
13246 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
13248         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
13249         FSF address.
13251 2001-10-08  Geert Bosch  <bosch@gnat.com>
13253         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
13254         Automatically build utilities when files need to be regenerated.
13256 2001-10-08  Geert Bosch  <bosch@gnat.com>
13258         * xsnames.adb: New utility for updating snames.ads and snames.adb
13260 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
13262         * Make-lang.in (ADAFLAGS): Add -W -Wall.
13263         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
13264         (gnat1): Also depend on attribs.o.
13265         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
13266         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
13267         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
13268         (ADAFLAGS): Add -W -Wall.
13269         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
13270         take out CFLAGS.
13272         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
13273         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
13274         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
13275         Use $(ADAC), not $(CC), as compilation command.
13277         (gnattools): Depend directly on tools to build, don't use
13278         recursive make.
13279         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
13281         * einfo.h, sinfo.h: New files (autogenerated).
13283 2001-10-08  Richard Henderson  <rth@redhat.com>
13285         * comperr.adb (Abort_In_Progress): New.
13286         (Compiler_Abort): Use it to prevent recursion.
13288 2001-10-08  Robert Dewar <dewar@gnat.com>
13290         * atree.adb: Set Error_Posted in Error node, helps error recovery.
13292         * par-endh.adb (Output_End_Expected): We should also not test
13293         Error_Posted on the Error node, since now it is always set.
13295         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
13296         to help error recovery. Part of general work on 9407-004.
13298         * par.adb: Add ??? for misuse of error
13300         * sem_res.adb:
13301         (Resolve): Defend against Error, fixes 9407-003.
13302         (Resolve_Discrete_Subtype_Indication): Defend against Error.
13304         * sinfo.ads (N_Error): Now has Etype field (which will be set
13305         to Any_Type to help error recovery).
13307 2001-10-08  Richard Kenner (kenner@gnat.com)
13309         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
13310         Consistently set MEM attributes from expression; fixes
13311         bootstrap failure on x86.
13313 2001-10-08  Geert Bosch  (bosch@gnat.com)
13315         * 5oosinte.adb: Add 2001 to copyright notice.
13317 2001-10-08  Geert Bosch  (bosch@gnat.com)
13319         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
13321         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
13323 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
13325         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
13327 2001-10-05  Geert Bosch  (bosch@gnat.com)
13329         * adaint.h: Small formatting fix.
13331 2001-10-04  Geert Bosch  <bosch@gnat.com>
13333         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
13334         Arg is int, not FILE *, in dummy version of functions.
13336         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
13337         Arg is int, not FILE *.
13339 2001-10-04  Geert Bosch  <bosch@gnat.com>
13341         * 3lsoccon.ads: Added file, missed with initial check ins.
13343         * 4lintnam.ads: Fix header format.
13344         Change Linux to GNU/Linux.
13346         * 5iosinte.adb: Change Linux to GNU/Linux.
13348         * 5iosinte.ads: Change Linux to GNU/Linux.
13350         * 5itaprop.adb: Change Linux to GNU/Linux.
13352         * 5itaspri.ads: Change Linux to GNU/Linux.
13353         Update copyright notice.
13355         * 5lintman.adb: Change Linux to GNU/Linux.
13357         * 5lml-tgt.adb: Change Linux to GNU/Linux.
13359         * 5losinte.ads: Change Linux to GNU/Linux.
13361         * 5lsystem.ads: Change Linux to GNU/Linux.
13363         * 5qosinte.adb: Change Linux to GNU/Linux.
13365         * 5qosinte.ads: Change Linux to GNU/Linux.
13367         * 5qparame.ads: Change Linux to GNU/Linux.
13369         * 5qtaprop.adb: Change Linux to GNU/Linux.
13371         * 5qtaspri.ads: Change Linux to GNU/Linux.
13372         Add 2001 to copyright notice.
13374         * 5vintman.ads: Change Linux to GNU/Linux.
13375         Fix header format.  Add 2001 to copyright notice.
13377         * g-soccon.ads: Change Linux to GNU/Linux.
13379         * g-trasym.ads: Change Linux to GNU/Linux.
13380         Add 2001 to copyright notice.
13382         * memtrack.adb: Change Linux to GNU/Linux.
13384         * s-intman.ads: Change Linux to GNU/Linux.
13385         Add 2001 to copyright notice.  Fix header format.
13387         * s-stache.adb: Change Linux to GNU/Linux.
13389         * adaint.c: Change Linux to GNU/Linux.
13391         * cio.c: Change Linux to GNU/Linux.
13393         * cstreams.c: Change Linux to GNU/Linux.
13395         * init.c: Change Linux to GNU/Linux.
13397         * gmem.c: Change Linux to GNU/Linux.
13399         * tracebak.c: Change Linux to GNU/Linux.
13402 2001-10-02  Geert Bosch  <bosch@gnat.com>
13404         * misc.c (insert_default_attributes): Add dummy version.