PR middle-end/20263
[official-gcc.git] / gcc / ada / ChangeLog
blob0936c187ef5d5fa9f964ab9ff4b014818a61a40d
1 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
3         * adaint.c (__gnat_portable_spawn): Adjust cast.
5 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
7         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
9 2005-03-17  Pascal Obry  <obry@adacore.com>
11         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
12         used.
14         * expect.c (__gnat_waitpid): Moved here from adaint.c.
15         Reimplement under Win32 using Win32 API.
17         (__gnat_kill) [Win32]: Properly close the process handle before leaving
18         this routine.
20 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
22         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
23         (DECL_RENAMED_OBJECT): New accessor macro.
24         (SET_DECL_RENAMED_OBJECT): New setter macro.
26         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
27         object in all cases.  Attach the renamed object to the VAR_DECL.
28         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
29         field is not prescribed.
31         * misc.c (gnat_handle_option): Handle -gnatO separately.
32         (gnat_print_decl) <VAR_DECL>: New case.
33         Print the DECL_RENAMED_OBJECT node.
35         * lang.opt:  Declare separate -gnatO option.
37         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
38         pointer, replace it with the renamed object.
39         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
40         pointer type if the source is not a fat pointer type whose underlying
41         array has the same non-zero alias set as that of the destination array.
43 2005-03-17  Javier Miranda  <miranda@adacore.com>
45         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
46         (Get_Inheritance_Depth): Removed.
47         (Set_Inheritance_Depth): Removed.
49         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
50         subprogram Get_Expanded_Name because it is not referenced by the
51         frontend.
53         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
54         (CPP_Get_Inheritance_Depth): Removed.
55         (CPP_Set_Inheritance_Depth): Removed.
57         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
59 2005-03-17  Robert Dewar  <dewar@adacore.com>
61         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
62         3, since we now expect GCC 3 to do all the work.
64 2005-03-17  Javier Miranda  <miranda@adacore.com>
66         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
67         of one barrier to avoid wrong usage of this attribute.
69         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
70         First_Private_Entity.
72         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
73         the subprogram against wrong usage.
74         Adapt the code to traverse the entities in the
75         scope of a record_type because in addition to its usage regarding
76         packages, this subprogram is also called by Expand_N_Freeze_Entity
77         to install the visible declarations of the enclosing scope of a
78         record_type_with_private to establish the proper visibility before
79         freezing the entity and related subprograms.
81 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
83         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
84         entry formals.
86 2005-03-17  Thomas Quinot  <quinot@adacore.com>
88         * exp_ch3.adb (Check_Attr): New subprogram.
89         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
90         into a new Check_Attr subprogram, in order to provide a more
91         explanatory error message (including the name of the missing attribute).
92         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
93         subprogram determines whether a default implementation exists for a
94         given stream attribute.
95         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
96         Determine whether to generate a default implementation for each stream
97         attribute separately, as this depends on the specific attribute.
99         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
100         limited extension where a stream attribute is missing for a limited
101         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
102         generate a bogus reference to the missing attribute to prevent
103         cascaded errors. Instead, generate a null statement.
105         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
106         available for a limited type if it has been specified for an ancestor
107         of the type.
109 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
111         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
112         entity is an operator.
114 2005-03-17  Thomas Quinot  <quinot@adacore.com>
116         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
117         spec, to make this predicate available to other units.
119         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
120         reimplementing it.
122         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
123         when no distribution runtime library is available.
125         * sem_res.adb, sem_dist.adb: Disable expansion of remote
126         access-to-subprogram types when no distribution runtime library is
127         available.
128         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
129         predicate available to other units.
131         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
132         spec, to make this predicate available to other units.
134 2005-03-17  Vincent Celier  <celier@adacore.com>
136         * make.adb (Insert_Project_Sources): Make sure the Q is always
137         initialized.
139         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
140         the default for the tree, not the global default naming.
142         * prj-proc.adb (Recursive_Process): No need to put the default naming
143         in the project data, it's already there.
145 2005-03-17  Doug Rupp  <rupp@adacore.com>
147         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
149         * 5xcrtl.ads: Renamed to...
150         * s-crtl-vms64.ads: ...this new file
152 2005-03-17  Robert Dewar  <dewar@adacore.com>
154         PR ada/19519
156         * namet.adb (Copy_One_Character): Set proper wide character encoding
157         for upper half character if we have upper half encoding.
159 2005-03-17  Robert Dewar  <dewar@adacore.com>
161         * par.adb (Par): Improved msg for attempt to recompile predefined unit
163 2005-03-17  Thomas Quinot  <quinot@adacore.com>
165         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
166         tagged limited type, the TSS is a newly built renaming declaration:
167         insert it using Set_TSS, not Copy_TSS.
169 2005-03-17  Javier Miranda  <miranda@adacore.com>
171         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
172         Try_Object_Operation): Analyze the object that is accessible
173         through the prefix of the subprogram call before we apply
174         the transformation of the object-operation notation.
176 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
178         * s-taprob.adb (Initialize_Protection): Initialize the protected
179         object's owner to Null_Task.
180         (Lock): If pragma Detect_Blocking is in effect and the caller of this
181         procedure is already the protected object's owner then Program_Error
182         is raised. In addition the protected object's owner is updated.
183         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
184         of this procedure is already the protected object's owner then
185         Program_Error is raised.
186         In addition the protected object's owner is updated.
187         (Unlock): Remove the ownership of the protected object.
189         * s-taprob.ads (Protection): Add the field Owner, used to store the
190         protected object's owner.
191         This component is needed for detecting one type of potentially blocking
192         operations (external calls on a protected subprogram with the same
193         target object as that of the protected action). Document the rest of
194         the components.
196         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
197         Initialize the protected object's owner to Null_Task.
198         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
199         caller of this procedure is already the protected object's owner then
200         Program_Error is raised.
201         Do not raise Program_Error when this procedure is called from a
202         protected action.
203         (Unlock_Entries): Remove the ownership of the protected object.
204         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
205         of this procedure is already the protected object's owner then
206         Program_Error is raised.
207         Do not raise Program_Error when this procedure is called from
208         a protected action.
210         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
211         used to store the protected object's owner.
213         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
214         effect and this procedure (a potentially blocking operation) is called
215         from whithin a protected action, Program_Error is raised.
216         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
217         and this procedure (a potentially blocking operation) is called from
218         whithin a protected action, Program_Error is raised.
220 2005-03-17  Vincent Celier  <celier@adacore.com>
221             Nicolas Setton  <setton@adacore.com>
223         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
224         switch, not supported by the linker on Darwin. Add '_' before
225         <library>init, as this character is added unconditionally by the
226         compiler.
227         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
228         correct one ".dylib". This fixes detection of the archive files when
229         building library projects.
231 2005-03-17  Vincent Celier  <celier@adacore.com>
233         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
234         -gnat83, -gnat95 and -gnat05.
236 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
238         * gnat_ugn.texi: Document gnatmem restriction
240 2005-03-17  Thomas Quinot  <quinot@adacore.com>
242         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
243         cleanup
245 2005-03-17  Robert Dewar  <dewar@adacore.com>
247         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
248         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
249         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
251         * casing.adb: Comment improvements
253 2005-03-17  Pascal Obry  <obry@adacore.com>
255         * g-expect.adb: Minor reformatting.
257 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
259         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
260         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
261         to dependencies.
263 2005-03-15  Vincent Celier  <celier@adacore.com>
265         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
266         Add new parameter In_Tree to specify the project tree: needed
267         by the project manager. Adapt to changes in project manager
268         using new parameter In_Tree.
270 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
272         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
273         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
274         ada/bldtools to avoid make -jN failures.
276 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
278         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
279         to NULL_TREE on entry.
281 2005-03-15  Robert Dewar  <dewar@adacore.com>
283         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
284         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
285         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
286         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
287         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
288         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
289         system-interix.ads, system-solaris-sparc.ads,
290         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
291         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
292         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
293         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
294         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
295         Compiler_System_Version to be False.
297         * opt.ads: Add new flag Opt.Address_Is_Private
299         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
300         Add new parameter Compiler_System_Version to avoid checking for
301         completeness of parameters when compiler is compiling itself.
302         Allows old versions of GNAT to be compiled with new compiler.
304 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
306         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
307         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
308         calling thread.
309         (Stack_Base_Available): New flag.
310         (Get_Page_Size): New overloaded functions imported from C.
311         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
312         PROT_ON, PROT_OFF): New constants.
313         (mprotect): New function imported from C.
314         (pthread_teb_t): New record type.
316         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
317         (Create_Task): Account for the Yellow Zone and the guard page.
319 2005-03-15  Vincent Celier  <celier@adacore.com>
321         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
322         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
323         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
324         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
325         Library_File_Name_For): Add new parameter In_Tree
326         to specify the project tree: needed by the project manager.
327         Adapt to changes in project manager using new parameter In_Tree.
328         Remove local imports, use functions in System.CRTL.
330         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
331         to use the project manager.
333         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
334         In_Tree to designate the project tree. Adapt to changes in the project
335         manager, using In_Tree.
337         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
338         Copy_Interface_Sources): Add new parameter In_Tree to specify the
339         project tree: needed by the project manager.
340         (Build_Library): Check that Arg'Length >= 6 before checking if it
341         contains "--RTS=...".
343         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
344         Library_File_Name_For): Add new parameter In_Tree to specify the
345         project tree: needed by the project manager.
347         * prj.ads, prj.adb: Major modifications to allow several project trees
348         in memory at the same time.
349         Change tables to dynamic tables and hash tables to dynamic hash
350         tables. Move tables and hash tables from Prj.Com (in the visible part)
351         and Prj.Env (in the private part). Move some constants from the visible
352         part to the private part. Make other constants deferred.
353         (Project_Empty): Make it a variable, not a function
354         (Empty_Project): Add parameter Tree. Returns the data with the default
355         naming data of the project tree Tree.
356         (Initialize): After updating Std_Naming_Data, copy its value to the
357         component Naming of Project Empty.
358         (Register_Default_Naming_Scheme): Use and update the default naming
359         component of the project tree, instead of the global variable
360         Std_Naming_Data.
361         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
362         Tree is not defaulted, return the default naming data of the Tree.
363         (Initial_Buffer_Size): Constant moved from private part
364         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
365         variables initialized in procedure Initialize.
366         (Add_To_Buffer): Add two in out parameters to replace global variables
367         Buffer and Buffer_Last.
368         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
369         functions.
370         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
371         hash tables.
372         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
373         for the project tree.
374         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
375         constant at the beginning of the package spec, so that they cane be used
376         in subprograms before their full declarations.
377         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
378         (Empty_Project): Add parameter of type Project_Node_Ref
379         (Private_Project_Tree_Data): Add component Default_Naming of type
380         Naming_Data.
381         (Buffer, Buffer_Last): remove global variables
382         (Add_To_Buffer): Add two in out parameters to replace global variables
383         Buffer and Buffer_Last.
384         (Current_Packages_To_Check): Remove global variable
385         (Empty_Name): Move to private part
386         (No-Symbols): Make it a constant
387         (Private_Project_Tree_Data): New type for the private part of the
388         project tree data.
389         (Project_Tree_Data): New type for the data of a project tree
390         (Project_Tree_Ref): New type to designate a project tree
391         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
392         for the project tree.
394         * prj-attr.ads: Add with Table; needed, as package Prj no longer
395         imports package Table.
397         * prj-com.adb: Remove empty, no longer needed body
399         * prj-com.ads: Move most of the content of this package to package Prj.
401         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
402         designate the project node tree and Packages_To_Check to replace
403         global variable Current_Packages_To_Check.
404         Add new parameters In_Tree and Packages_To_Check to local subprograms,
405         when needed. Adapt to changes in project manager with project node tree
406         In_Tree.
408         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
409         project tree to most subprograms. Move tables and hash tables to
410         private part of package Prj.
411         Adapt to changes in project manager using project tree In_Tree.
413         * prj-makr.adb (Tree): New constant to designate the project node tree
414         Adapt to change in project manager using project node tree Tree
416         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
417         display the Library_Src_Dir and the Library_Dir.
418         Add new parameter In_Tree to designate the project node tree to most
419         subprograms. Adapt to changes in the project manager, using project tree
420         In_Tree.
421         (Check_Naming_Scheme): Do not alter the casing on platforms where
422         the casing of file names is not significant.
423         (Check): Add new parameter In_Tree to designate the
425         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
426         designate the project tree.
427         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
429         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
430         to replace those that were in the private part of package Prj.
431         Add new parameter In__Tree to designate the project node tree to most
432         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
433         (Post_Parse_Context_Clause): When specifying the project node of a with
434         clause, indicate that it is a limited with only if there is "limited"
435         in the with clause, not necessarily when In_Limited is True.
436         (Parse): Add new parameter In_Tree to designate the project node tree
438         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
439         designate the project node tree. Adapt to change in Prj.Tree with
440         project node tree In_Tree.
442         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
443         tree In_Tree in the call to function Empty_Process to give its initial
444         value to the project data Processed_Data.
445         Add new parameters In_Tree to designate the project tree and
446         From_Project_Node_Tree to designate the project node tree to several
447         subprograms. Adapt to change in project manager with project tree
448         In_Tree and project node tree From_Project_Node_Tree.
450         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
451         to replace those that were in the private part of package Prj.
452         Add new parameter In_Tree to designate the project node tree to most
453         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
455         * prj-tree.ads, prj-tree.adb: Add new parameter of type
456         Project_Node_Tree_Ref to most subprograms.
457         Use this new parameter to store project nodes in the designated project
458         node tree.
459         (Project_Node_Tree_Ref): New type to designate a project node tree
460         (Tree_Private_Part): Change table to dynamic table and hash tables to
461         dynamic hash tables.
463         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
464         the project tree to most subprograms. Adapt to changes in project
465         manager using project tree In_Tree.
467         * makegpr.adb (Project_Tree): New constant needed to use project
468         manager.
470 2005-03-15  Olivier Hainque  <hainque@adacore.com>
472         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
473         for sigactions with SA_SIGINFO set. Call
474         __gnat_adjust_context_for_raise before raising, to perform the
475         potentially required adjustments to the machine context for the GCC
476         unwinder.
478         * raise.h (__gnat_adjust_context_for_raise): New prototype.
480         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
481         Adjust PC by one in the provided machine context.
482         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
483         so that the handler is passed the context structure to adjust prior to
484         the raise.
485         (__gnat_error_handler) HPUX: Adjust the signature to match what an
486         SA_SIGINFO sigaction should look like. Call
487         __gnat_adjust_context_for_raise before actually raising.
488         (__gnat_adjust_context_for_raise): Default noop to help PC
489         adjustments before raise from signal handlers.
490         (__gnat_error_handler): Indirectly call a predicate function to
491         determine if a condition should be resignaled or not.
492         (__gnat_set_resignal_predicate): User interface to modify the predicate.
493         (__gnat_default_resignal_p): Default GNAT predicate.
495 2005-03-15  Doug Rupp  <rupp@adacore.com>
497         * adaint.c: Prefix #include of VMS system header files with vms/
498         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
499         Do not define a dummy function "convert_addresses" under Darwin,
500         not needed.
502         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
503         with vms/
505 2005-03-15  Nicolas Setton  <setton@adacore.com>
507         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
508         PPC/AIX.
510 2005-03-15  Robert Dewar  <dewar@adacore.com>
512         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
513         AI-386.
515         * a-retide.ads: Minor comment changes
517 2005-03-15  Robert Dewar  <dewar@adacore.com>
519         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
520         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
521         Realloc_For_Chunk to private part of package.
522         New subprograms for AI-301
524         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
525         Get_Line procedure.
526         Avoid unnecessary use of Get/Set_Wide_String
528 2005-03-15  Robert Dewar  <dewar@adacore.com>
530         PR ada/13470
532         * a-stunau.ads, a-stunau.adb:
533         Change interface to allow efficient (and correct) implementation
534         The previous changes to allow extra space in unbounded strings had
535         left this interface a bit broken.
537         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
539         * g-spipat.ads, g-spipat.adb: New interface for Get_String
540         Minor reformatting (function specs)
542         * g-spitbo.adb: New interface for Get_String
544         * g-spitbo.ads: Minor reformatting
546         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
548         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
550 2005-03-15  Javier Miranda  <miranda@adacore.com>
551             Robert Dewar  <dewar@adacore.com>
552             Thomas Quinot  <quinot@adacore.com>
553             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
555         * atree.ads, atree.adb: Add support for Elist24 field
557         * atree.h: Fix wrong definition of Field27
558         Add support for Elist16 field
559         Add support for Elist24 field
561         * einfo.ads, einfo.adb (Abstract_Interfaces,
562         Set_Abstract_Interfaces): New subprograms.
563         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
564         subprograms.
565         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
566         entities rather than a single node.
567         (Is_Interface, Set_Is_Interface): New subprogram
568         (First_Tag_Component): New syntesized attribute
569         (Next_Tag_Component): New synthesized attribute
570         (Write_Entity_Flags): Upgraded to write Is_Interface
571         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
572         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
573         (Task_Body_Procedure): New subprogram to read this attribute.
574         (Set_Task_Body_Procedure): New subprogram to set this attribute.
575         (Has_Controlled_Component): Now applies to all entities.
576         This is only a documentation change, since it always worked to apply
577         this to other than composite types (yielding false), but now this is
578         official.
579         Update documentation on Must_Be_Byte_Aligned for new spec
581         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
582         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
583         uses of the Access_Disp_Table attribute to reference the first dispatch
584         table associated with a tagged type. As
585         part of the implementation of abstract interface types,
586         Access_Disp_Table has been redefined to contain a list of dispatch
587         tables (rather than a single dispatch table).
588         Similarly, upgrade all the references to Tag_Component by the
589         new attribute First_Tag_Component.
590         (Find_Inherited_TSS): Moved to exp_tss.
591         Clean up test in Expand_N_Object_Declaration for cases
592         where we need to do a separate assignment of the initial value.
593         (Expand_N_Object_Declaration): If the expression in the
594         declaration of a tagged type is an aggregate, no need to generate an
595         additional tag assignment.
596         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
597         is to be deleted.
598         Bit packed array ops are only called if operands are known to be
599         aligned.
600         (Component_Equality): When returning an N_Raise_Program_Error statement,
601         ensure that its Etype is set to Empty to avoid confusing GIGI (which
602         expects that only expressions have a bona fide type).
603         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
604         determine the amount of data to be copied.
606         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
607         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
608             INTERFACE_TYPE_DEFINITION ::=
609               [limited | task | protected | synchronized] interface
610                 [AND interface_list]
612         * par-ch3.adb (P_Type_Declaration): Modified to give support to
613         interfaces.
614         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
615         interfaces.
616         (P_Interface_Type_Definition): New subprogram that parses the new
617         syntax rule of Ada 2005 interfaces
618         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
619         messages by the correct RENAMES (quotes removed).
621         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
622         attribute First_Tag_Component.
624         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
625         (Interface_List, Set_Interface_List): New subprograms.
626         (Interface_Present, Set_Interface_Present): New subprograms.
627         (Limited_Present, Set_Limited_Present): Available also in derived
628         type definition nodes.
629         (Protected_Present, Set_Protected_Present): Available also in
630         record type definition and
631         derived type definition nodes.
632         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
633         (Task_Present, Set_Task_Present): New subprogram.
634         (Task_Body_Procedure): Removed.
635         (Set_Task_Body_Procedure): Removed.
636         These subprogram have been removed because the attribute
637         Task_Body_Procedure has been moved to the corresponding task type
638         or task subtype entity to leave a field free to store the list
639         of interfaces implemented by a task (for AI-345)
640         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
641         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
642         expression flag Do_Range_Check
643         (Exception_Junk): Change to Flag7 to accomodate above change
644         (Box_Present, Default_Name, Specification, Set_Box_Present,
645         Set_Default_Name, Set_Specification): Expand the expression
646         "X in N_Formal_Subprogram_Declaration" into the corresponding
647         two comparisons. Required to use the csinfo tool.
649         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
650         "with string" given.
652         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
653         expression given.
655         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
656         in 2005 mode
658         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
659         attribute Task_Body_Procedure rather than the old semantic field that
660         was available in the task_type_declaration node.
662         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
663         interface type definitions.
664         (P_Formal_Derived_Type_Definition): Modified to handle the list of
665         interfaces.
667         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
668         task type declaration.
669         (P_Protected): Modified to handle the list of interfaces in a
670         protected type declaration.
672 2005-03-15  Doug Rupp  <rupp@adacore.com>
673             Vincent Celier  <celier@adacore.com>
675         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
676         (Gen_Output_File_C): Likewise.
677         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
679 2005-03-15  Thomas Quinot  <quinot@adacore.com>
681         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
682         is an N_Raise_Constraint_Error node, create a new copy of it without
683         going through a call to Duplicate_Subexpr.
685 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
686             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
687             Nicolas Setton  <setton@adacore.com>
688             Ed Schonberg  <schonberg@adacore.com>
690         PR ada/19900
691         PR ada/19408
692         PR ada/19140
693         PR ada/20255
695         * decl.c (gnat_to_gnu_field): Reject aliased components with a
696         representation clause that prescribes a size not equal to the rounded
697         size of their types.
698         (gnat_to_gnu_entity, case E_Component): Always look at
699         Original_Record_Component if Present and not the entity.
700         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
701         of tagged extension types by not making field for components that are
702         inside the parent.
703         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
704         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
705         expression to the type of the object when the object is constant.
706         Reverse defer_debug_incomplete_list before traversing it, so that trees
707         are processed in the order at which they were added to the list. This
708         order is important when using the stabs debug format.
709         If we are deferring the output of debug information, also defer this
710         output for a function return type.
711         When adding fields to a record, prevent emitting debug information
712         for incomplete records, emit the information only when the record is
713         complete.
714         (components_to_record): New parameter defer_debug.
715         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
716         (gnat_to_gnu_field_decl): New function.
717         (substitution_list, annotate_rep): Call it.
718         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
719         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
720         No longer update discriminants to not be a COMPONENT_REF.
721         (copy_alias_set): Strip padding from input type; also handle
722         unconstrained arrays properly.
724         * gigi.h (write_record_type_debug_info): New function.
725         Convert to use ANSI-style prototypes. Remove unused
726         declarations for emit_stack_check, elab_all_gnat and
727         set_second_error_entity.
728         (gnat_to_gnu_field_decl): New decl.
730         * utils.c (write_record_type_debug_info): New function.
731         (finish_record_type): Delegate generation of debug information to
732         write_record_type_debug_info.
733         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
734         (update_pointer_to): Fix pasto.
735         (convert) <UNION_TYPE>: Accept slight type variations when
736         converting to an unchecked union type.
738         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
739         replace the N_Freeze_Entity with a null statement.
741         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
742         within a constrained subcomponent of an enclosing record, place the
743         freeze nodes in the scope stack entry for the enclosing record.
744         (Undelay_Type): New Subprogram.
745         (Set_Small_Size): Pass T, the type to modify; all callers changed.
746         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
747         within records; allow them to have freeze nodes if their base types
748         aren't frozen yet.
750         * exp_util.adb (Remove_Side_Effects): Properly test for
751         Expansion_Delayed and handle case when it's inside an
752         N_Qualified_Expression.
754         * sem_ch3.adb (Derived_Type_Declaration): New predicate
755         Comes_From_Generic, to recognize accurately that the parent type in a
756         derived type declaration can be traced back to a formal type, because
757         it is one or is derived from one, or because its completion is derived
758         from one.
759         (Constrain_Component_Type): If component comes from source and has no
760         explicit constraint, no need to constrain in in a subtype of the
761         enclosing record.
762         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
763         Minor change to propagate Is_Ada_2005 flag
765         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
766         Expansion_Delayed is False.
767         (assoc_to_constructor): Ignore fields that have a
768         Corresponding_Discriminant.
769         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
770         function returns "by target", dereference the target pointer using the
771         type of the actual return value.
772         <all>: Be prepared for a null gnu_result.
773         (processed_inline_subprograms): Check flag_really_no_inline
774         instead of flag_no_inline.
775         (set_second_error_entity): Remove unused function.
776         (gnat_to_gnu, case N_Selected_Component): Call
777         gnat_to_gnu_field_decl.
778         (assoc_to_constructor): Likewise.
780 2005-03-15  Robert Dewar  <dewar@adacore.com>
781             Ed Schonberg  <schonberg@adacore.com>
782             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
784         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
785         Must_Be_Byte_Aligned for cases where we do not need to use a
786         System.Pack_nn unit.
788         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
789         as procedures.
790         Needed now that we do some processing for IN parameters as well. This
791         may well fix some unrelated errors.
792         (Expand_Call): Handle case of unaligned objects (in particular those
793         that come from packed arrays).
794         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
795         renamed entity is an inherited operation, re-expand the call using the
796         original operation, which is the one to call.
797         Detect attempt to inline parameterless recursive subprogram.
798         (Represented_As_Scalar): Fix to work properly with private types
799         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
800         accurate estimate. Yields True in far fewer cases than before,
801         improving the quality of code that depends on this test.
803         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
804         over both visible and private declarations to remove them from tree,
805         and mark subprograms declared in package as eliminated, to prevent
806         spurious use in subsequent compilation of generic units in the context.
808         * exp_util.ads: Minor cleanup in variable names
810         * sem_eval.ads, sem_eval.adb: Minor reformatting
811         (Compile_Time_Known_Bounds): New function
813 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
815         * exp_ch7.adb (Convert_View): Use base types of underlying types when
816         determining whether an unchecked conversion is needed for the argument
817         of an initialization call.
819 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
821         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
822         that appears in the instantiation rather than the internal subtype
823         generated in the wrapper package, to avoid anomalies in gigi when the
824         target is derived from a private type whose full view is an access type.
826 2005-03-15  Robert Dewar  <dewar@adacore.com>
828         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
829         not needed.
830         Add documentation to replace the use of this flag
831         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
832         the x86_64.
834 2005-03-15  Thomas Quinot  <quinot@adacore.com>
836         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
837         here from exp_attr so it can be shared between exp_attr and exp_dist.
838         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
839         all TSS names, not a subset thereof, and the previous name introduced
840         an unnecessarily confusion that a distinction might exist between
841         "OK" TSS names and some "not OK" TSS names.
843 2005-03-15  Doug Rupp  <rupp@adacore.com>
845         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
846         Command_Name.
848 2005-03-15  Pascal Obry  <obry@adacore.com>
849             Eric Botcazou  <ebotcazou@adacore.com>
851         PR ada/20226
852         PR ada/20344
854         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
855         when IN_RTS. This is to work around a bootstrap path problem.
857         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
858         table and pass it to __gnat_install_SEH_handler().
859         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
861         * lang.opt: Fix specification of -fRTS=.
863 2005-03-15  Doug Rupp  <rupp@adacore.com>
864             Bernard Banner  <banner@adacore.com>
865             Vincent Celier  <celier@adacore.com>
866             Arnaud Charlet  <charlet@adacore.com>
868         PR ada/6852
869         This change works fine when gnatlib is built from the gcc directory,
870         but does not work when using the libada Makefile, since GCC_FOR_TARGET
871         is not passed to ada/Makefile.in, so more work is needed by a
872         Makefile/configure expert.
874         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
875         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
876         Setup gnatlink switch -M for x86_64 linux, as it is already setup
877         for Linux x86.
878         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
879         Run ranlib on libgccprefix.a
880         Define PREFIX_OBJS for Darwin, to build libgccprefix.
881         (ADA_INCLUDE_SRCS): Split Ada packages.
883 2005-03-15  Robert Dewar  <dewar@adacore.com>
885         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
887         * impunit.adb: Add GNAT.UTF_32
889         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
891         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
892         now uses GNAT.UTF_32).
894         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
895         capabilities for categorizing characters using Unicode categories
897 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
899         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
900         instantiation that has been rewritten as a package body, retrieve spec
901         to generate proper name for implicit_with_clause.
902         (Install_Parents): Recognize a parent that is an instantiation but has
903         been rewritten as a package declaration during analysis.
905 2005-03-15  Javier Miranda  <miranda@adacore.com>
906             Ed Schonberg  <schonberg@adacore.com>
908         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
909         parameter reported some error we immediately return. This improves the
910         behaviour of the frontend in case of errors.
911         (Install_Parent, Remove_Parent): Introduce new flag
912         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
913         ancestor of a generic child unit, when the child is being instantiated.
914         (Inline_Instance_Body): If we are compiling the private
915         part or the body of a child unit, restore the proper visibility of the
916         parents after compiling the instance body.
918 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
919             Javier Miranda  <miranda@adacore.com>
921         PR ada/15608
922         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
923         of a private type, in which case it is underlying_type that denotes
924         the proper task. Also modified to use the new entity attribute
925         that is directly available in the task type and task subtype entities
926         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
927         arrays when other dimensions than the first are constrained by
928         discriminants of an enclosing record.
929         (Insert_Explicit_Dereference): If the prefix is an indexed component or
930         a combination of indexed and selected components, find ultimate entity
931         and generate the appropriate reference for it, to suppress spurious
932         warnings.
933         (Note_Possible_Modification): If an entity name has no entity, return.
934         (Is_Variable): A function call never denotes a variable.
935         (Requires_Transient_Scope): For record types, recurse only on
936         components, not on internal subtypes that may have been generated for
937         constrained components.
939 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
941         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
942         Eliminated as candidates for resolution. Both efficient, and avoids
943         anomalies with operators declared in deleted code.
944         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
945         expansion is disabled (as when compiling a generic) to prevent spurious
946         warnings on prefixes of selected components.
948 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
950         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
951         attached to a list before checking whether it appears in the private
952         declarations of the current package.
953         (Make_Inequality_Operator): Insert declaration in proper declarative
954         list rather than just setting the Parent field, so that
955         Is_Private_Declaration can handle it properly.
957 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
959         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
960         a renaming a body, check that the renamed subprogram in not intrinsic.
961         (Find_Direct_Name): If several use_visible entities hide
962         each other, and the context is a predefined file compiled through
963         rtsfind, keep only the entity that comes from a predefined file.
965 2005-03-15  Geert Bosch  <bosch@adacore.com>
967         * s-fatgen.adb (Valid): Extend special exceptions to account for long
968         long float padding to also cover AMD64 and IA64.
970 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
972         * s-imgwch.adb: Add with and use of Interfaces.
973         (Img_Wide_Character): Change type of Val to Unsigned_16.
974         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
976 2005-03-15  Matthew Gingell  <gingell@adacore.com>
978         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
980 2005-03-15  Robert Dewar  <dewar@adacore.com>
982         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
984         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
986         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
988 2005-03-15  Robert Dewar  <dewar@adacore.com>
990         * s-bitops.adb, s-bitops.ads,
991         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
992         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
993         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
994         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
995         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
996         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
997         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
998         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
999         reformatting.
1001 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
1003         * utils2.c (build_binary_op): Fix typo.
1005 2005-03-15  Doug Rupp  <rupp@adacore.com>
1007         * s-crtl.ads (popen,pclose): New imports.
1009 2005-03-15  Cyrille Comar  <comar@adacore.com>
1011         * comperr.adb (Compiler_Abort): remove references to obsolete
1012         procedures in the bug boxes for various GNAT builds.
1014 2005-03-15  Vincent Celier  <celier@adacore.com>
1016         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
1018 2005-03-15  Geert Bosch  <bosch@adacore.com>
1019             Arnaud Charlet  <charlet@adacore.com>
1020             Robert Dewar  <dewar@adacore.com>
1021             Cyrille Comar  <comar@adacore.com>
1022             Sergey Rybin  <rybin@adacore.com>
1024         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
1025         too specific and long-winded to be appropriate for the GNAT User's
1026         Guide.
1027         Warn about use of GCC switches not documented in the GNAT User's Guide,
1028         as these may cause generated code to not conform to Ada semantics.
1029         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
1030         Add documentation for -gnat95 and -gnat05 switches
1031         Remove paragraph documenting obsolete way to refer to third party
1032         libraries.
1033         Add a few references to Ada_05 that were missing.
1034         Update documentation on -gnatZ/-gnatL.
1035         Document limitation when using -m64 under Solaris.
1036         Change the "Name Casing" subsection of the pretty-printer section
1037         according to the changes in the dictionary processing.
1039         * gnat_rm.texi: Document the Ada_05 pragma.
1040         Section on record representation clauses describes the new more
1041         relaxed rules about placement of large packed bit array components.
1042         Add documentation of GNAT.UTF_32
1044 2005-03-12  Daniel Berlin <dberlin@dberlin.org>
1046         * misc.c (gnat_post_options): Turn off structural
1047         aliasing for now.
1049 2005-03-08  Laurent Guerby <laurent@guerby.net>
1051         * system-linux-sparc.ads: Fix typo in previous commit.
1053 2005-03-07  James A. Morrison <phython@gcc.gnu.org>
1054             Laurent Guerby <laurent@guerby.net>
1056         PR ada/20035
1057         * system-linux-sparc.ads: New.
1058         * Makefile.in: Add sparc linux entry.
1060 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
1062         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
1063         parameters as unused.
1065 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
1066         Partial merge from libada-gnattools-branch:
1068         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
1069         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
1070         into code in gnattools/Makefile.in.  Remove direct dependencies on
1071         stamp-tools by tools clauses.
1072         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
1073         * config-lang.in: Add gnattools to $lang_dirs.
1075 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
1077         PR ada/19942
1078         * utils.c (gnat_type_for_mode): Return null instead of ICE because
1079         we asked for an unknown mode.
1081 2005-02-12  Richard Henderson  <rth@redhat.com>
1083         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
1084         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
1086 2005-02-10  Andreas Jaeger  <aj@suse.de>
1088         * init.c (__gnat_initialize): Mark parameter as unused.
1090 2005-02-09  Doug Rupp  <rupp@adacore.com>
1092         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
1093         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
1095 2005-02-09  Doug Rupp  <rupp@adacore.com>
1097         * gnatchop.adb (dup, dup2),
1098         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
1100         * gnatlbr.adb (mkdir),
1101         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
1103         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
1105 2005-02-09  Doug Rupp  <rupp@adacore.com>
1107         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
1109 2005-02-09  Robert Dewar  <dewar@adacore.com>
1110             Thomas Quinot  <quinot@adacore.com>
1111             Javier Miranda  <miranda@adacore.com>
1112             Pascal Obry  <obry@adacore.com>
1113             Ed Schonberg  <schonberg@adacore.com>
1114             Doug Rupp  <rupp@adacore.com>
1115             Gary Dismukes  <dismukes@adacore.com>
1116             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1118         * g-zstspl.ads: New file.
1120         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
1122         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
1123         Ada 95 mode
1124         Add definition of Wide_Wide_Space for AI-285
1126         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
1127         interface (to support Ada 95 and Ada 2005 units).
1128         Add Unbounded_IO files
1129         Add entries for Wide_Wide packages for AI-285
1130         Add list of containers packages to Ada 2005 unit list
1132         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
1133         support new Unbounded_IO package cleanly.
1135         * g-utf_32.ads, g-utf_32.adb: New files.
1137         * Makefile.rtl: Add entry for g-utf_32
1138         Add new files for Unbounded_IO
1139         Adjust make file for new AI-285 wide wide packages
1140         Add AI-302 containers to the run time.
1142         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
1143         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
1144         subprograms for AI-301.
1146         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
1148         * a-stunau.ads: Minor comment correction
1150         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
1151         etc.
1152         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
1153         (Check_RPC): Update to match changes in expanded code.
1154         Clean up unused entity.
1156         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
1157         was not taken into account.
1158         This includes proper initialization with Normalize_Scalars.
1159         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
1160         normalize scalars cases (particularly the latter) to do a better job
1161         of finding invalid representations.
1163         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
1165         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
1166         used
1168         * exp_dist.adb: Add support for wide wide character type
1169         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
1170         private part, generate stub bodies at the end of the private part,
1171         not the visible part.
1172         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
1173         PolyORB support.
1174         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
1175         generic wrapper to execute final processing after completing the
1176         expansion of the RPC receiver for an RACW.
1178         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
1179         packages and attributes.
1180         (Preset_Names): Addition of the new reserved words of Ada 2005,
1181         that is interface, overriding and synchronized.
1182         (Get_Pragma_Id): Give support to the use of the new reserved word
1183         "interface" as a pragma name.
1184         (Is_Pragma_Name): Give support to the use of the new reserved word
1185         "interface" as a pragma name.
1186         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
1187         attribute implementation.
1189         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
1190         checks to entities that are output parameters of Asm operations.
1191         Handle the Stream_Size attribute.
1192         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
1194         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
1196         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
1197         for second parameter being 0.0.
1198         Add support for wide wide character type.
1199         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
1201         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
1202         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
1203         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
1204         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
1205         for wide wide character cases.
1207         * cstand.adb: Create entities for Wide_Wide_Character and
1208         Wide_Wide_String.
1210         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
1211         accordance with AI-258.
1212         Add new declarations for 16/32 bit C character types (Part of AI285)
1214         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
1215         (Obsolescent_Warning): New field
1216         (Rep_Clause): New local subprogram used to share code. Returns the rep
1217         clause for which the name is given in parameter.
1218         (Has_Stream_Size_Clause): New routine.
1219         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
1220         (Address_Clause): Implementation is now using Rep_Clause.
1221         (Alignment_Clause): Idem.
1222         (Size_Clause): Idem.
1224         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
1225         entity in non-Ada 2005 mode and generate warning.
1227         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
1228         (Prag): Code cleanup. Remove old gnat pragma "overriding"
1230         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
1231         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
1232         on the named unit if the pragma is not in the current compilation unit,
1233         so that elaboration calls in the current unit can set up an elaboration
1234         dependency on the named unit, as needed.
1235         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
1236         subprogram as well as for subprograms declared within a package.
1237         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
1238         pragma overriding.
1240         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
1241         to z) to avoid some instances of duplication for Wide_Wide packages.
1243         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
1244         characters.
1246         * scn.adb: Char_Literal_Value field is now a Uint
1248         * scng.adb: Significant rewrite to handle new Ada 2005 features
1249         allowing wide and wide wide characters in program text, e.g. for
1250         identifiers, as described in AI-285.
1251         (Set_Reserved): New procedure, makes setting up keywords cleaner.
1252         (Initialize_Scanner): Register the new reserved words of Ada 2005.
1253         (Scan): Give support to the new reserved words.
1255         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
1256         warning notifying that interface, overriding, and synchronized are
1257         new reserved words.
1258         (P_Pragma): Allow the use of the new reserved word "interface" as
1259         a pragma name.
1261         * gnatls.adb, gnatbind.adb,
1262         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
1263         identifiers named "interface" to "SAL_Interface".
1265         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
1266         (Structured Exception handling).
1267         (Gen_Main_C): Idem.
1269         * bindgen.adb:
1270         (Gen_Main_Ada): Set the default exit code if specified.
1271         (Gen_Main_C): Likewise.
1272         Part of *DC20-006.
1273         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
1274         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
1276         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
1277         new -Xnnn switch.
1279         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
1280         has a collision with the new Ada 2005 "interface" reserved word.
1282         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
1283         generate a warning notifying that interface, overriding, and
1284         synchronized are new reserved words.
1286         * scans.ads (Token_Type): Addition of the tokens corresponding to the
1287         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
1288         and Tok_Synchronized.
1290         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
1291         "dispatching" rather than "primitive" operations, since dispatching
1292         calls are now allowed to abstract formal subprograms (which are not
1293         primitive).
1294         Char_Literal_Value field is now a Uint
1295         (Resolve_Slice): If the prefix is an access to an unconstrained array,
1296         compute the actual subtype of the designated object to impose the proper
1297         index constraints.
1298         (Resolve_Selected_Component): Do not insert an access check if the
1299         prefix is an access type: such a node is expanded into an explicit
1300         dereference, on which the access check is performed anyway. Removes
1301         expensive duplicate checks.
1302         (Resolve_Call): Use new flag Is_Obsolescent and field
1303         Obsolescent_Warning so that pragma Obsolescent works on library
1304         subprograms.
1305         Add support for wide wide character type
1306         (Resolve_Allocator): Replace the error message on wrong null-exclusion
1307         value by a warning message.
1308         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
1309         as fixed-point, and one of the operands is non-static and universal, it
1310         can only be an illegal exponentiation operation, in which case there is
1311         no real value to retrieve.
1313         * exp_strm.adb: Add support for wide wide character type
1314         (Build_Elementary_Input_Call): Compute the size of the stream element by
1315         querying the rep chain to find the Stream_Attribute attribute value.
1316         (Build_Elementary_Write_Call): Ditto.
1318         * sem_aggr.adb: Char_Literal_Value field is now a Uint
1319         Add support for wide wide character type
1320         Replace the error messages on wrong null-exclusion value by warnings
1321         as described in Ada 2005.
1322         (Resolve_Extension_Aggregate): Document the fact that the error
1323         message on class-wide expressions in extensions aggregates.
1325         * sem_case.adb: Add support for wide wide character type
1327         * sem_ch13.adb: Add support for wide wide character type
1328         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
1330         * sem_ch3.adb: Add support for wide wide character type
1331         (Process_Subtype): If constraint is illegal for the type, set Ekind of
1332         now-useless Itype, to prevent cascaded errors on a compiler built
1333         without -gnatp.
1335         * sem_ch8.adb: Add with and use of Sem_Disp.
1336         (Analyze_Subprogram_Renaming): Replace unclean uses of
1337         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
1338         of Corresponding_Spec to Empty).
1339         (Attribute_Renaming): Replace use of Corresponding_Spec with
1340         Corresponding_ Formal_Spec and simplify condition.
1341         (Use_One_Package): Check that scope of homonym of identifier is defined,
1342         before checking whether it is a wrapper package.
1343         Add support for wide wide character type
1345         * sem_eval.adb: Add support for wide wide character type.
1346         (Eval_Arithmetic_Op): Check for compile time known signed integer
1347         overflow in the non-static case.
1348         (Subtypes_Statically_Match): A formal scalar type and its base type do
1349         not statically match.
1351         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
1352         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
1353         subtype).
1354         (Unit_Declaration_Node): Ditto.
1355         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
1356         has a packed array type, the prefix has been rewritten into a type
1357         conversion. Determine variable-ness from the converted expression.
1358         Handle wide wide character cases.
1360         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
1362         * stringt.ads, stringt.adb: Handle full UTF-32 range.
1363         Remove ["0A"] from comment, since it can look like a line terminator.
1364         Currently we don't permit this, but this is under discussion by the
1365         ARG, and it is easy enough to use a different example.
1367         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
1368         handling UTF-32 encoding for wide wide character.
1369         Implement new brackets coding ["hhhhhhhh"]
1370         Add UTF-8 encodings for full UTF-32 range
1372         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
1374         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
1375         bit range Add full UTF-32 support.
1376         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
1377         notify that constraint error will be raised at run-time
1378         because a null value is assigned to a null-excluding object.
1379         Remove some obsolete declarations and make Char_Code
1380         unsigned.
1382         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
1383         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
1384         Rcheck subprograms.
1386         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
1387         wrong null-exclusion value by a warning message.
1388         (Enable_Range_Check): Do range check if the prefix is an
1389         explicit dereference whose designated object is an unconstrained array.
1390         Current algorithm for removing duplicate checks is over-eager in this
1391         case.
1393         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
1394         null-exclusion value by a warning message
1396         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
1397         completely. Add support for Uint2 field
1399         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
1400         exp_prag.adb: Char_Literal_Value field is now a Uint.
1402         * exp_util.adb (Insert_Actions): Replace
1403         N_Formal_Subprogram_Declaration by
1404         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
1405         Char_Literal_Value field is now a Uint.
1407         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
1408         defined for subprogram renaming declarations. When set, the field
1409         indicates the defining entity of a corresponding formal subprogram
1410         when the renaming corresponds to a formal subprogram association in an
1411         instantiation.
1412         (Set_Corresponding_Formal_Spec): New procedure to return
1413         Corresponding_Formal_Spec field.
1414         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
1415         (which is now a subtype).
1416         Char_Literal_Value field is now a Uint
1418         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
1419         pointer to the base of the dispatch table.
1420         Minor changes to comments.
1421         (Controlling_Type): New function for determining the tagged type
1422         associated with a tagged primitive subprogram.
1423         (Expand_Dispatching_Call): Add support for a controlling actual that is
1424         directly a value of type Ada.Tag rather than a tagged object.
1426         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
1427         describing the new layout.
1428         (Dispatch_Table): The expander computes the actual array size, allocates
1429         the Dispatch_Table record accordingly, and generates code that displaces
1430         the base of the record after the Typeinfo_Ptr component. The access to
1431         these components is done by means of local functions.
1432         (Offset_To_Top): New function.
1433         (Typeinfo_Ptr): New function.
1434         (Get_TSD): Modified to access the new position of the TSD.
1435         (Set_TSD): Modified to save the TSD in its new position.
1437         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
1438         case of formal abstract subprograms. Add check and message for -gnat05.
1439         Update comments.
1441         * sem_ch12.adb: Add with and use for Sem_Disp.
1442         (Analyze_Associations): Minor change from "=" to "in" for use of
1443         N_Formal_Subtype_Declaration (which is now a subtype).
1444         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
1445         N_Formal_Subtype_Declaration (which is now a subtype).
1446         (Analyze_Formal_Subprogram): Add handling for
1447         N_Formal_Abstract_Subprogram, marking the formal as abstract and
1448         dispatching, setting the controlling status of the formal parameters
1449         and result, and issuing an error if there is no controlling type for
1450         the formal subprogram.
1451         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
1452         which is an unclean use of that field, we set the new field
1453         Corresponding_Formal_Spec to make the formal subprogram available to
1454         processing in Analyze_Subprogram_Declaration.
1455         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
1456         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
1457         Constrained, so that it is is does not statically match its anonymous
1458         base type.
1460         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
1461         abstract formal subprograms in error check for functions returning
1462         abstract types. Set scope of new designator for
1463         a parameterless subprogram, so that it is available when checking the
1464         body for nested subprograms, before full analysis of said body.
1465         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
1466         subprogram only if inner one comes from source.
1467         (Analyze_Function_Call): If the call is given in object notation, the
1468         analysis of the name rewrites the node and analyzes it with the proper
1469         argument list. After analyzing the name, if the call has been rewritten
1470         and the result type is set, no further analysis is needed.
1471         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
1472         mark in function specification, in a context where the formals are
1473         visible and hide outer homographs.
1475         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
1476         as the tagged type for the cases of abstract formal subprograms and
1477         renamings of those.  Clean up spec comments.
1478         (Check_Dispatching_Context): Add error message to indicate "abstract
1479         procedure", covering the case of a call to a formal abstract procedure
1480         that has statically tagged operands.
1481         (Check_Dispatching_Call): Check for the case of an actual given by
1482         a tag-indeterminate function call whose type is an ancestor of the
1483         containing call's associated tagged type. This situation can occur
1484         for inherited primitives with function defaults. In this case we
1485         use the tagged type's tag directly as the controlling argument for
1486         the calls.
1487         (Expand_Call): Name change on call to Expand_Dispatch_Call.
1489         * sprint.adb (Sprint_Node_Actual): Split
1490         N_Formal_Subprogram_Declaration into two alternatives for the new
1491         cases N_Formal_Abstract_Subprogram_Declaration and
1492         N_Formal_Concrete_Subprogram_Declaration.
1493         Char_Literal_Value field is now a Uint.
1495         * trans.c: Get rid of junk Uint2 reference.
1496         Char_Literal_Value field is now a Uint.
1497         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
1498         (gigi): Correct third arg to gimplify_body.
1500         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
1501         (TYPE_LANG_FLAG_0): Check for record or union.
1503         * treepr.adb: Char_Literal_Value field is now a Uint
1505         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
1506         UI_From_CC.
1508         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
1509         Add full UTF-32 support
1510         Char_Code is now 32 bits
1512         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
1513         wide character UTF_32 line terminators.
1514         Initialize Main_Source_File to avoid error when no main
1515         source is loaded.
1517         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
1518         (Main_Source_File) when no main source has been loaded, to avoid
1519         potential crash.
1521 2005-02-09  Robert Dewar  <dewar@adacore.com>
1523         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
1524         Fix name of Set routine
1526         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
1527         fixed packages.
1529         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
1530         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
1531         fixed packages
1533         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
1534         forms of Get_Line subprograms for AI-301.
1536         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
1537         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
1538         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
1539         a-stwima.ads: Minor reformatting.
1541 2005-02-09  Doug Rupp  <rupp@adacore.com>
1542             Thomas Quinot  <quinot@adacore.com>
1544         * adaint.c, adaint.h
1545         [VMS] (to_ptr32): New function.
1546         (MAYBE_TO_PTR32): New macro.
1547         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
1548         for pointer size.
1549         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
1550         [VMS] (#define fork()): Remove since unneccessary.
1551         (__gnat_set_close_on_exec): New routine to support
1552         GNAT.OS_Lib.Set_Close_On_Exec.
1554         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
1555         the parent side as close-on-exec so that they are not inherited by the
1556         child.
1558         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
1559         set or clear the FD_CLOEXEC flag on a file descriptor.
1561 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
1562             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1564         Fix for c330001 - PR ada/19386
1566         * decl.c:
1567         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
1568         on the field if Pragma Component_Alignment (Storage_Unit).
1569         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
1570         side-effects as if it were a constant; also make SAVE_EXPR to protect
1571         side-effects.
1572         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
1573         UNION_TYPE.
1574         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
1575         (components_to_record): Test it.
1576         Fix improper usage of REFERENCE_CLASS_P.
1578         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
1579         RECORD_TYPE.
1581         * utils2.c: Minor reformatting.
1583         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
1584         handle other cases like RECORD_TYPE.
1586         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
1588 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
1590         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
1591         component of an array of arrays in an assignment context, and the
1592         aggregate has component associations that require sliding on
1593         assignment, force reanalysis of the aggregate to generate a temporary
1594         before the assignment.
1595         (Must_Slide): Make global to the package, for use in Gen_Assign.
1597 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
1599         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
1600         unchecked union with no inferable discriminants, return a
1601         Raise_Program_Error node, rather than inserting it at the point the
1602         type is frozen.
1603         (Expand_Record_Equality, Component_Equality): Handle properly the case
1604         where some subcomponent is an unchecked union whose generated equality
1605         code raises program error.
1607 2005-02-09  Doug Rupp  <rupp@adacore.com>
1609         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
1610         [VMS] (#define exit hack): Remove.
1612 2005-02-09  Pascal Obry  <obry@adacore.com>
1613             Arnaud Charlet <charlet@adacore.com>
1615         * init.c (__gnat_initialize): Add a new parameter eh which contains the
1616         address of the exception registration. The Win32 version of this
1617         routine calls __gnat_install_SEH_handler() to initialize the SEH
1618         (Structured Exception Handling) handler.
1619         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
1620         SEH (Structured Exception Handling) now.
1621         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
1622         (__gnat_initialize for ppc-vxworks): Adjust comments and the
1623         preprocessor condition protecting the call to the extra eh setup
1624         subprogram, which is only available for the ppc target.
1625         (__gnat_clear_exception_count): replaced reference to
1626         variable taskIdCurrent by call to taskIdSelf(), cleaner.
1628         * seh_init.c: New file.
1630         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
1631         (GNATBIND_OBJS): Idem.
1633         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
1634         routine takes a new parameter (a pointer to the exception registration
1635         for the SEH (Structured Exception Handling) support.
1637         * raise.h: (__gnat_install_SEH_handler): New prototype.
1638         Update copyright notice.
1640         * s-tassta.adb (Task_Wrapper): Declare the exception registration
1641         record and initialize it by calling __gnat_install_SEH_handler.
1643 2005-02-09  Vincent Celier  <celier@adacore.com>
1645         * make.adb (Gnatmake): Do not fail when the main project has no object
1646         directory.
1648 2005-02-09  Doug Rupp  <rupp@adacore.com>
1650         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
1651         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
1652         [VMS]: Add translations for g-enblsp.adb.
1654         * s-asthan-vms.adb: Removed.
1655         * s-asthan-vms-alpha.adb: Added.
1657 2005-02-09  Pascal Obry  <obry@adacore.com>
1659         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
1660         (LIBGNAT_OBJS): Add seh_init.o.
1662 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
1664         PR ada/16592
1666         * Makefile.in: Link all gnat tools with -static-libgcc, since
1667         -shared-libgcc is now used by default on some systems (e.g. linux with
1668         recent binutils).
1669         Remove references to Makefile.prolog/generic, no longer used.
1671 2005-02-09  Vincent Celier  <celier@adacore.com>
1673         * prj-makr.adb (Process_Directory): Put file name in canonical case
1674         before matching against the patterns.
1675         If gnatname has been invoked as <prefix>-gnatname
1676         then invoke the compiler as <prefix>-gcc, not just "gcc".
1678 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
1680         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
1681         with expansion disabled. The actual subtype is needed among other
1682         places when the selected component appears in the context of a loop
1683         bound, and denotes a packed array.
1684         (Operator_Check): Always use the first subtype in the
1685         error message, to avoid the appearance of internal base types.
1686         (Transform_Object_Operation): Copy each actual in full
1687         to the parameter associations of the constructed call, rather than
1688         using the shallow copy mechanism of New_Copy_List. This ensures that
1689         the chaining of named associations is done properly.
1690         (Complete_Object_Operation): Rewrite node, rather than
1691         replacing it, so that we can trace back to the original selected
1692         component.
1694         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
1695         and calls that use object notation, if the called function is not
1696         declared  in a withed unit, place the elaboration constraint on the
1697         unit in the context that makes the function accessible.
1698         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
1699         imposes an elaboration constraint between two packages.
1701 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
1703         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
1704         views of a private type after handling its private dependents, to
1705         maintain proper stack discipline between entry and exit from the
1706         package.
1708 2005-02-09  Cyrille Comar  <comar@adacore.com>
1710         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
1711         Minor reformatting.
1713 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
1715         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
1716         fields for foreign threads.
1718 2005-02-09  Doug Rupp  <rupp@adacore.com>
1720         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
1721         recursion warnings when compiled with -gnatdm.
1723 2005-02-09  Robert Dewar  <dewar@adacore.com>
1725         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
1726         Slight fix to documentation of -gnaty with no parameters
1728         * xr_tabls.ads: Add ??? comment for missing overall comment
1730         * xsinfo.adb: Make default file name be sinfo.h, since this is what
1731         we now use by default.
1733         * xsnames.adb: Adjust end of file test to look for five space followed
1734         by '#' instead of six spaces. The format of xsnames.adb was modified
1735         in the last update.
1737         * a-numeri.ads: Add reference to AI-388 for greek letter pi
1738         identifier.
1740         * clean.adb: Minor reformatting.
1742         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
1743         gnatname.adb: Minor reformatting
1744         Add 2005 to copyright output when utility is run
1746         * csets.adb: Eliminate obsolete comment
1748         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
1749         Update comments.
1751         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
1753 2005-02-09  Sergey Rybin  <rybin@adacore.com>
1755         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
1756         the difference between compact and incompact layout and add the record
1757         representation clause to the example illustrating different layouts.
1758         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
1759         component clauses").
1761 2005-02-09  Florian Villoing  <villoing@adacore.com>
1763         * gnat_ugn.texi: Fix typos.
1764         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
1765         @file.
1766         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
1767         in the generated documentation.
1769 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
1771         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
1772         longer supported.
1773         Update linker wrapper when linking with non GNU C++.
1775 2005-02-09  Pascal Obry  <obry@adacore.com>
1777         * gnat_ugn.texi:
1778         Document the procedure to debug the DllMain routine on Windows.
1779         Add note about -funwind-tables and mixed Ada and C/C++ programming in
1780         ZCX mode.
1781         Document new BIND qualifer /RETURN_CODES=VMS.
1783 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
1785         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
1786         Edited gnatmetric chapter
1788 2005-02-09  Robert Dewar  <dewar@adacore.com>
1790         * gnat_rm.texi:
1791         Changes to document new wide wide character support
1792         For AI-285
1793         Update documentation on Normalize_Scalars and Initialize_Scalars
1795 2005-02-09  Pascal Obry  <obry@adacore.com>
1797         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
1799 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
1801         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
1802         from the VxWorks kernel) that is needed for getting the active
1803         priority of the different tasks.
1805         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
1806         Use a pragma Elaborate_Body in the spec file instead.
1807         Noticed by code reading.
1809 2005-02-09  Thomas Quinot  <quinot@adacore.com>
1811         * exp_util.ads: Minor correction in comment.
1813 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
1815         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
1816         since this procedure is now too complex to be worth inlining.
1818 2005-02-09  Richard Henderson  <rth@redhat.com>
1820         * utils.c (gnat_define_builtin): Remove.
1821         (gnat_install_builtins): Use build_common_builtin_nodes.
1823 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
1825         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
1826         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
1827         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
1828         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
1829         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
1830         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
1831         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
1832         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
1833         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
1834         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
1835         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
1836         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
1837         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
1838         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
1839         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
1840         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
1841         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
1842         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
1843         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
1844         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
1845         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
1846         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
1847         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
1848         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
1849         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
1850         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
1851         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
1852         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
1853         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
1854         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
1855         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
1856         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
1857         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
1858         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
1859         library.
1861 2005-01-27  Laurent GUERBY <laurent@guerby.net>
1863         * Makefile.in: Fix a-intnam.ads from previous commit,
1864         add 2005 to copyright.
1865         * a-intman-rtems.ads: Renamed to...
1866         * a-intnam-rtems.ads:
1868 2005-01-27  Laurent GUERBY <laurent@guerby.net>
1870         * Makefile.in: Rename GNAT RTEMS specific files.
1871         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
1872         5rosinte.ads, 5rparame.adb: Replaced by files below.
1873         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
1874         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
1876 2005-01-27  Joel Sherrill <joel.sherrill@oarcorp.com>
1877             Laurent GUERBY <laurent@guerby.net>
1879         PR ada/19488
1880         * 5rosinte.ads: Add No_Key constant.
1881         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
1882         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
1884 2005-01-26  Laurent GUERBY <laurent@guerby.net>
1886         PR ada/19414
1887         * i-cobol.adb (Valid_Numeric): Handle zero length case.
1889 2005-01-20  Richard Henderson  <rth@redhat.com>
1891         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
1892         a-intnam-linux.ads and system-linux-alpha.ads.
1893         * a-intnam-linux-alpha.ads: Remove file.
1894         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
1895         * system-linux-alpha.ads: New file.
1897 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
1899         PR ada/13470
1900         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
1901         set to the new string.
1903 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
1905         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
1906         to True.
1908 2005-01-18  Richard Henderson  <rth@redhat.com>
1910         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
1911         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
1912         for alpha-linux.
1913         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
1915 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
1917         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
1918         (GCC_ZCX_Support): Likewise.
1920 2005-01-11  Bastian Blank  <waldi@debian.org>
1922         * system-linux-s390.ads: Define Preallocated_Stacks.
1923         * system-linux-s390x.ads: Likewise.
1925 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
1927         * gnat_ugn.texi: Fix texi errors with null variables.
1929 2005-01-03  Thomas Quinot  <quinot@adacore.com>
1931         * gen-soccon.c: New utility program to generate g-soccon.ads
1932         automatically.
1934         * socket.c, gsocket.h: Split inclusion of system header files into a
1935         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
1937         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
1938         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
1939         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
1940         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
1941         should not be edited by hand anymore, but should be regenerated using
1942         gen-soccon.
1944 2005-01-03  Robert Dewar  <dewar@adacore.com>
1945             Ed Schonberg  <schonberg@adacore.com>
1946             Vincent Celier  <celier@adacore.com>
1948         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
1949         on/off, since this is an obsolescent feature, for which we now generate
1950         a warning.
1952         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
1953         warning mode is set and obsolescent usage of this attribute occurs.
1954         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
1955         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
1956         predates, and partly motivates, the adoption of the AI.
1957         Implement new Ada 2005 attribute Mod
1959         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
1960         attribute Mod.
1962         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
1964         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
1965         pragma restrictions.
1966         New entry for Ada 2005 attribute Mod.
1968         * par-prag.adb:
1969         Add recognition of new pragma Restrictions No_Dependence
1970         Recognize restriction No_Obsolescent_Features at parse time
1972         * bcheck.adb: Add circuitry for checking for consistency of
1973         No_Dependence restrictions.
1975         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
1976         restrictions.
1978         * restrict.ads, restrict.adb: Add subprograms to deal with
1979         No_Dependence restrictions.
1981         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
1982         restrictions.
1984         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
1985         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
1987         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
1988         dummy parameter to scng instantiation.
1989         Needed for new restriction No_Obsolescent_Features
1991         * scn.adb: (Obsolescent_Check): New procedure
1992         Needed for new restriction No_Obsolescent_Features
1994         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
1995         specified by AI-285, needed for implementation of AI-388 (adding greek
1996         pi to Ada.Numerics).
1997         Add new generic formal to scng, needed for new restriction
1998         No_Obsolescent_Features.
2000         * s-rident.ads: Add new restriction No_Obsolescent_Features.
2002         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
2003         restrictions lines.
2004         (Scan_ALI): When finding an unexpected character on an R line, raise
2005         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
2006         Ignore_Errors is True, default restrictions are set and scanning of the
2007         ALI file continues with the next line. Also, when Bad_R_Line is raised
2008         and Ignore_Errors is True, skip to the end of le line.
2010         * sem_ch10.adb: Check that explicit with's do not violate
2011         No_Dependence restrictions.
2012         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
2013         illegal context clauses containing child units of instance.
2015         * sem_prag.adb: Processing and checking for new No_Dependence
2016         restrictions.
2017         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
2018         analyze and check the External argument.
2020         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
2022 2005-01-03  Robert Dewar  <dewar@adacore.com>
2024         * atree.adb: Add a fifth component to entities
2025         This allows us to add 32 flags and four new fields
2027         * atree.ads: Add a fifth component to entities
2028         This allows us to add 32 flags and four new fields
2030         * einfo.ads, einfo.adb: Document new fields and new flags now available
2031         Add routines for printing new fields
2033         * treepr.adb: Call routines to print out additional fields if present
2035 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
2037         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
2038         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
2040         * Makefile.in: Add support to build shared Ada libraries on solaris x86
2041         Remove gpr2make, replaced by gprmake.
2042         Remove references to gnatmem and libaddr2line.
2043         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
2044         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
2045         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
2046         a-numaux-darwin.ads and a-numaux-darwin.adb
2047         Enable mlib-tgt-lynxos.adb on lynxos.
2049         * Make-lang.in: Remove rules for gpr2make.
2050         When generating sdefault.adb, do not call Relocate_Path
2051         on S3 for function Target_Name, as it is not a path.
2052         Remove references to gnatmem and libaddr2line.
2054         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
2055         files.
2057 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
2059         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
2060         address is incompatible with its base type alignment constraints when
2061         this can be decided statically.
2063 2005-01-03  Olivier Hainque  <hainque@adacore.com>
2065         * decl.c (compatible_signatures_p): New function. The intended purpose
2066         is to check if two function signatures for a call-site and a callee are
2067         compatible enough for the call to be valid. The underlying purpose is
2068         to check if a call to a mapped builtin is using the right interface.
2069         The current code actually does not check antyhing - this a placeholder
2070         for future refinements.
2071         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
2072         builtin calls for convention Intrinsic.
2074         * gigi.h (builtin_decl_for): Declare (new function).
2076         * utils.c (gnat_install_builtins): Install the target specific builtins.
2077         (builtin_decl_for): New function, provide a dummy body for now.
2079 2005-01-03  Geert Bosch  <bosch@adacore.com>
2081         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
2082         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
2083         (Pred): Implement in terms of Succ.
2085         * trans.c (convert_with_check): Reimplement conversion of float to
2086         integer.
2088 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
2089             Vincent Celier  <celier@adacore.com>
2091         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
2092         bounds can be negative, and must be declared Int, not Nat.
2094         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
2095         array is checked after using the index in the array.
2097         * makegpr.adb (Add_Switches): Check if there is a package for the
2098         processor. If there is no package, do not look for switches.
2100 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
2102         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
2103         generation of predefined stream operations (specs and bodies) should
2104         proceed. Under various restrictions these subprograms must not be
2105         generated.
2107 2005-01-03  Thomas Quinot  <quinot@adacore.com>
2109         * exp_dist.adb:
2110         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
2111         amount of PCS-specific code in RACW stubs generation.
2112         (Copy_Specification): Set Etype on copied formal parameter entities, as
2113         this information is needed for PolyORB stubs generation.
2114         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
2115         variable Dynamic_Async.
2116         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
2117         (Build_RPC_Receiver_Specification): Make generic again, as recent
2118         changes have allowed RPC receivers to have the same profile for both
2119         variants of the PCS.
2120         Reorganise RPC receiver generation to reduce differences between the
2121         structure of GARLIC and PolyORB RPC receivers.
2122         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
2123         PCS-specific.
2124         Simplify elaboration code for RCI packages.
2126         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
2127         generation to reduce differences between the structure of GARLIC and
2128         PolyORB RPC receivers.
2130         * s-stratt.adb: Fix typo in comment.
2132 2005-01-03  Thomas Quinot  <quinot@adacore.com>
2134         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
2135         copied from Make_Init_Call).
2137         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
2138         reads and assignments on a temporary variable declared with appropriate
2139         discriminants.
2141 2005-01-03  Robert Dewar  <dewar@adacore.com>
2143         * i-c.adb (To_C): Raise CE if string is null and Append_Null
2145 2005-01-03  Robert Dewar  <dewar@adacore.com>
2147         * i-cstrin.adb (Update): Do not append a null in form called with a
2148         String. This avoids unintended behavior.
2150 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
2152         PR ada/17527
2153         * init.c: Fix warnings on Free BSD section.
2155 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
2157         PR ada/16949
2158         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
2159         xsinfo.adb).
2161 2005-01-03  Vincent Celier  <celier@adacore.com>
2163         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
2164         libraries when Unique_Compile is True (-u switch).
2165         (Gnatmake): ditto.
2167 2005-01-03  Robert Dewar  <dewar@adacore.com>
2169         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
2170         upper case letter or underscore after W, as allowed by spec.
2172 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
2174         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
2175         darwin port by using proper type definitions from header files.
2176         Use SIGTERM instead of SIGABRT for SIGADAABORT.
2178 2005-01-03  Robert Dewar  <dewar@adacore.com>
2180         * par.adb: Enhance error message handling for configuration file
2181         pragmas.
2183 2005-01-03  Robert Dewar  <dewar@adacore.com>
2185         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
2186         removed during the previous update (test properly for case of dividing
2187         largest negative number by -1, which generates overflow).
2189 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
2190             Sergey Rybin  <rybin@adacore.com>
2192         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
2193         to use as the defining identifier for a formal package.
2194         (Remove_Parent): If the instance takes place within (an instance of)
2195         a sibling, preserve private declarations of common parent.
2197 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
2199         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
2200         to determine whether one of the operands is a fixed-point type for
2201         which a user-defined multiplication or division operation might be
2202         defined.
2204         * sem_res.adb (Valid_Conversion): The legality rules for conversions
2205         of access types are symmetric in Ada 2005: either designated type can
2206         be unconstrained.
2208 2005-01-03  Vincent Celier  <celier@adacore.com>
2210         * s-fileio.adb (Temp_File_Record): Change length of string component
2211         Name from L_tmpnam + 1 to max_path_len + 1.
2213 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
2215         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
2216         Self_Id.Deferral_Level = 0.
2217         (Do_Pending_Action): Move this function to the spec.
2219         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
2220         Do_Pending_Action explicitely when needed, in case we're using
2221         No_Abort restrictions.
2223         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
2224         deferral level since it will not get changed by the generated code.
2225         Keeping a default value of 1 would prevent some operations (e.g.
2226         select or delay) to proceed successfully.
2228 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
2229             Robert Dewar  <dewar@adacore.com>
2230             Cyrille Comar  <comar@adacore.com>
2232         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
2233         porting guide chapter (vms version).
2234         Revised doc title (removed "for native platforms") and subtitle.
2235         Add discussion on warning flag for obsolescent features. First we
2236         note that it applies to obsolete GNAT features, which was previously
2237         omitted. Second we contrast the behavior with that of the new
2238         Ada 2005 AI-368 restriction No_Obsolescent_Features.
2239         Preliminary rewriting of GNAT & libraries chapter in order to take
2240         into account default project locations & new project manager
2241         capabilities.
2243 2005-01-03  Robert Dewar  <dewar@adacore.com>
2245         * cstand.adb (Create_Operators): Clean up format and documentation of
2246         unary and binary operator result tables. No change in code, just
2247         reformatting and addition of comments.
2249         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
2250         sem_ch2.adb: Minor reformatting
2252         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
2253         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
2254         comments for Tree_Read and Tree_Write.
2256 2005-01-03  Pascal Obry  <obry@adacore.com>
2258         * exp_attr.ads: Minor reformatting.
2260 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
2262         * comperr.adb (Compiler_Abort): Add specialized message for GAP
2263         versions.
2265 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
2267         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
2268         whether the ancestor type is private, as may be the case with nested
2269         instantiations.
2271 2004-12-30  Sohail Somani <sohail@sohailsomani.com>
2273         PR ada/19128
2274         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
2276 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
2278         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
2279         * utils2.c (build_unary_op): Likewise.
2281 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2283         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
2285 2004-12-19  Richard Henderson  <rth@redhat.com>
2287         * trans.c (gigi): Update gimplify_body call.
2289 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
2291         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
2293 2004-12-07  Ed Falis  <falis@adacore.com>
2295         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
2296         current task being suspended.
2298         * init.c (__gnat_clear_exception): added to reset VxWorks exception
2299         count.
2300         (__gnat_map_signal): removed test for current task being suspended.
2302 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
2304         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
2305         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
2306         targets (such as AAMP).
2308 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
2310         * atree.adb (Visit_Itype): Create a new name for the generated itype,
2311         because the back-end may otherwise treat it as a redefinition of the
2312         old symbol.
2314 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
2316         * back_end.adb (Scan_Back_End_Switches): Accept --param.
2318         * lang-specs.h: Accept --param.
2320 2004-12-07  Vincent Celier  <celier@adacore.com>
2322         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
2323         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
2324         Current_Body_Suffix => Ada_Body_Suffix).
2325         Take into account Externally_Built attribute.
2327         * clean.adb (In_Extension_Chain): Always return False when one of the
2328         parameter is No_Project.
2329         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
2330         Ada_Language_Index).
2331         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
2332         Process_Languages for procedure Parse).
2334         * gnatcmd.adb (Carg_Switches): New table.
2335         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
2336         Adapt to name changes in package Prj (Current_Spec_Suffix =>
2337         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
2339         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
2340         Header_Num and function Hash are now declared in package Prj,
2341         not Prj.Com.
2343         * prj.adb (Suffix_Of): New function.
2344         (Set (Suffix)): New procedure.
2345         (Hash): One function moved from Prj.Com
2346         (Is_Present, Language_Processing_Data_Of): New functions
2347         (Set): Two new procedures
2348         (Add_Language_Name, Display_Language_Name): New procedures
2350         * prj.ads: (Suffix_Of): New function
2351         (Set (Suffix)): New procedure
2352         Add several types and tables for multi-language support.
2353         (Header_Num): Type moved from Prj.Com
2354         (Hash): Two functions moved from Prj.Com
2355         (Is_Present, Language_Processing_Data_Of): New functions
2356         (Set): Two new procedures
2357         (Add_Language_Name, Display_Language_Name): New procedures
2358         (Naming): Component name changes:
2359         Current_Spec_Suffix => Ada_Spec_Suffix,
2360         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
2361         Impl_Suffixes, Supp_Suffixes.
2362         (Project_Data): New components: Externally_Built, Supp_Languages,
2363         First_Language_Processing, Supp_Language_Processing, Default_Linker,
2364         Default_Linker_Path.
2366         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
2367         new package Language_Processing with its attributes (Compiler_Driver,
2368         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
2369         Binder_Driver, Default_Linker).
2371         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
2372         (Header_Num): Type moved to package Prj
2374         * prj-env.adb: Adapt to name changes in package Prj
2375         (Current_Spec_Suffix => Ada_Spec_Suffix,
2376         Current_Body_Suffix => Ada_Body_Suffix).
2378         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
2379         default to the project path, except the "-" is one of the directories
2380         in env var ADA_PROJECT_PATH.
2381         (Current_Project_Path): Global variable, replacing Project_Path
2382         that was in the body of Prj.Part.
2383         (Project_Path): New function
2384         (Set_Project_Path): New procedure
2385         Initialize Current_Project_Path during elaboration of the package
2386         Remove dependency on Prj.Com, no longer needed
2388         * prj-ext.ads (Project_Path): New function
2389         (Set_Project_Path): New procedure
2391         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
2392         suffix is defined for language <lang>.
2393         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
2394         accessing directly the components of Naming.
2395         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
2396         Reorganise of this package.
2397         Break procedure Check in several procedures.
2399         * prj-nmsc.ads: Replace all procedures (Ada_Check,
2400         Other_Languages_Check and Language_Independent_Check) with a single
2401         procedure Check.
2403         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
2404         Process_Languages, no longer needed.
2406         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
2407         Current_Project_Path.
2408         Remove elaboration code, moved to the body of Prj.Ext
2409         Use new function Prj.Ext.Project_Path instead of old variable
2410         Project_Path.
2411         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
2412         When comparing with project paths on the stack, first put the resolved
2413         path in canonical case.
2414         (Parse_Single_Project): Set the path name of the project file in the
2415         tree to the normalized path.
2417         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
2418         parameter Process_Languages, no longer needed.
2419         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
2420         Other_Languages_Check.
2422         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
2423         to store the resolved canonical path of the project file.
2424         Remove dependency to Prj.Com, no longer needed
2426         * prj-util.adb: Adapt to name changes in package Prj
2427         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
2428         Ada_Body_Suffix).
2430         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
2431         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
2432         Externally_Built, Include_Option, Language_Processing.
2434         * makegpr.adb: Numerous changes due to changes in packages
2435         Prj and Prj.Nmsc.
2437         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
2438         default to the project path, except whe "-" is one of the directories
2439         in env var ADA_PROJECT_PATH.
2440         (Gnatls): In verbose mode, add the new section "Project Search Path:"
2442 2004-12-07  Robert Dewar  <dewar@adacore.com>
2444         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
2446         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
2447         set -gnatR3m mode.
2449         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
2450         flag. No longer needed now that we handle this in gnat1drv.adb.
2452         * repinfo.ads: Minor reformatting
2454 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2455             Olivier Hainque  <hainque@adacore.com>
2456             Eric Botcazou  <ebotcazou@adacore.com>
2458         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
2459         TYPE_SIZE_UNIT of result type if SIZE is not specified.
2460         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
2461         of a bitfield, which we know is useless and causes trouble because of
2462         alignment implications.
2464         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
2465         BSS sections.
2466         (process_attributes): Clear DECL_COMMON again when a section attribute
2467         is present.
2468         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
2469         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
2470         (create_field_decl): Special case ADDRESSABLE negative to mean
2471         "no bitfield creation", to be used by make_aligning_type. Don't
2472         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
2473         fields claimed addressable still have to be bitfields. Use
2474         value_factor_p instead of a raw binop construction to check for the
2475         position's alignment.
2477 2004-12-07  Geert Bosch  <bosch@adacore.com>
2479         * eval_fat.adb: Revert previous change.
2481 2004-12-07  Thomas Quinot  <quinot@adacore.com>
2482             Ed Schonberg  <schonberg@adacore.com>
2484         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
2485         with an implicit dereference as its prefix, use
2486         Insert_Explicit_Dereference instead of merely rewriting the prefix into
2487         an explicit dereference. This ensures that a reference to the original
2488         prefix is generated, if appropriate.
2490         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
2491         dereference is rewritten to an explicit one, generate a reference to
2492         the entity denoted by its prefix using the original prefix node, so
2493         the dereference can be properly recorded as a read of the denoted
2494         access value, if appropriate.
2496         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
2497         emitting 'assigned but never read' warning on a variable on the basis
2498         that it has an access type.
2499         (Check_References): Emit unreferenced warning when the scope is a
2500         subprogram body.
2502 2004-12-07  Robert Dewar  <dewar@adacore.com>
2503             Ed Schonberg  <schonberg@adacore.com>
2505         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
2506         intrinsic
2508         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
2509         leaving call unchanged.
2510         This deals with the case where the pragma Import specified
2511         an external name, to be handled by the back end.
2513         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
2514         subprogram which is Imported with convention Intrinsic if an
2515         External_Name argument is specified.
2516         (Process_Import_Or_Interface): Properly diagnose link name argument.
2517         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
2518         with Sem_Ch6.Cannot_Inline.
2519         (Process_Inline): Provide separate warning for inapplicable inline
2520         pragma.
2521         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
2522         treatment is uniform on different targets.
2524 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
2526         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
2527         construct is rewritten, preserve end label to permit source navigation.
2529 2004-12-07  Thomas Quinot  <quinot@adacore.com>
2531         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
2532         Specific_Build_Stub_Target): New subprograms.
2533         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
2534         the PCS implementation used, using the above PCS-customized subprograms.
2535         Minor reformatting.
2536         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
2537         for generation of DSA code targeted to the PolyORB PCS.
2538         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
2539         implementation of the partition communication subsystem in ancillary
2540         subprograms.
2541         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
2542         PolyORB_Support.Build_Stub_Type): New subrograms containing the
2543         PCS-specific part of Add_Stub_Type.
2544         (Insert_Partition_Check): Use runtime library function to perform
2545         E.4(19) check.
2547         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
2548         (RE_Same_Partition): New entity, from s-parint.
2550         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
2552 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
2554         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
2555         Output the copyright message on a separate line from the version
2556         message.
2558 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
2560         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
2561         compile-time warning.
2563 2004-12-07  Robert Dewar  <dewar@adacore.com>
2565         * g-regpat.adb: (Match): Change a misuse of or to or else
2567 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
2569         * lib-xref.adb:
2570         (Generate_Reference): Handle properly a reference to an entry formal,
2571          when an accept statement has a pragma Unreferenced for it.
2573         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
2574         and the Has_Pragma_Unreferenced flag for each formal before analyzing
2575         the body, to ensure that warnings are properly emitted for each accept
2576         statement of a given task entry.
2578 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
2580         * Makefile.in: Add support for foreign threads on VMS.
2582 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2584         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
2585         Remove.
2586         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
2588         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
2590         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
2591         exception.
2592         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
2594 2004-12-07  Robert Dewar  <dewar@adacore.com>
2596         * nlists.adb (Prepend_Debug): Remove parameters and nest within
2597         Prepend.
2598         (Remove_Next_Debug): Same fix
2600         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
2601         maintain back pointers now, though we did not used to, and comments
2602         were out of date).
2603         (Prepend): Remove pragma Inline.
2604         (Remove_Next): Same cleanup
2606 2004-12-07  Thomas Quinot  <quinot@adacore.com>
2608         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
2609         used to record an implicit dereference as a read operation on its
2610         prefix when operating under -gnatc. Necessary to avoid spurious
2611         'variable assigned but never read' warnings in that mode.
2612         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
2613         is a non-overloaded implicit dereference, call the above subprogram to
2614         ensure proper recording of references.
2616 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
2618         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
2619         to be resolved later as part of Analyze_Iteration_Scheme's call to
2620         Make_Index.
2622 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
2624         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
2625         prefix is not a scalar type, place error message on prefix, not on
2626         type entity.
2628 2004-12-07  Bernard Banner  <banner@adacore.com>
2630         * vxaddr2line.adb: Add support for x86 vxworks
2632 2004-12-07  Thomas Quinot  <quinot@adacore.com>
2634         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
2635         documentation of the behaviour of these functions when passed an IP
2636         address that has no record in the system hosts database and no reverse
2637         record in the DNS.
2639         * cstand.adb, a-tags.ads: Fix typos in comment.
2641 2004-12-07  Robert Dewar  <dewar@adacore.com>
2643         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
2644         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
2645         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
2646         s-poosiz.ads: Minor reformatting
2648         * make.adb: Minor reformatting
2649         Add some ??? comments asking for more comments
2651         * s-poosiz.adb: Minor reformatting
2652         Add comments on alignment requirement
2654         * sinfo.ads: Remove obsolete comment and fix typo.
2656 2004-12-07  Vincent Celier  <celier@adacore.com>
2657             Sergey Rybin  <rybin@adacore.com>
2659         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
2660         Files" with the new tool and package names.
2661         Reformatting to suppress most of the warnings for line too long
2662         Document the new section "Project Search Path:" in the output of
2663         gnatls -v.
2664         Add gnatmetric section
2666 2004-12-07  Vincent Celier  <celier@adacore.com>
2668         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
2669         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
2670         and -eit to -ept. Added qualifier
2671         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
2673 2004-11-27  Andreas Schwab  <schwab@suse.de>
2675         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
2677 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
2679         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
2680         internal implementation unit GNAT.Sockets.Thin,
2681         as their usage for sockets is non-portable (using the read and write
2682         functions from the system runtime library is fine on UNIX but won't
2683         work under Windows).
2685         * mingw32.h: Update copyright notice.
2687 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
2689         * ada-tree.h: Minor reformatting of previous change to avoid lines
2690         longer than 79 characters.
2692 2004-11-25  Olivier Hainque  <hainque@adacore.com>
2694         * tb-gcc.c: GCC infrastructure based implementation of
2695         __gnat_backtrace.
2697 2004-11-24  Steven Bosscher  <stevenb@suse.de>
2699         * misc.c (gnat_post_options): Don't clear
2700         flag_inline_functions.
2702 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
2704         PR ada/17986
2705         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
2706         tree.
2708 2004-11-21  Andreas Jaeger  <aj@suse.de>
2710         * stylesw.adb: Change Style_Check_Subprogram_Order to
2711         Style_Check_Order_Subprograms.
2713 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
2715         * adaint.h, adaint.c
2716         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
2717         to avoid warnings.
2718         Add also a cast to kill another warning.
2719         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
2720         parameter with the priority class of the parent process instead of
2721         always using the NORMAL_PRIORITY_CLASS.
2722         (__gnat_dup): New function.
2723         (__gnat_dup2): New function.
2724         (__gnat_is_symbolic_link): Enable the effective body of this
2725         function when __APPLE__ is defined.
2727         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
2728         Update comments.
2730 2004-11-18  Olivier Hainque  <hainque@adacore.com>
2732         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
2733         address of which may be used to represent "others" and "all others"
2734         choices in exception tables, instead of the current harcoded
2735         (void *)0 and (void *)1.
2736         (Setup_Exception): Do nothing in the GNAT SJLJ case.
2738         * gigi.h (others_decl, all_others_decl): New decls representing the
2739         new Others_Value and All_Others_Value objects.
2740         (struct attrib): Rename "arg" component as "args", since GCC expects a
2741         list of arguments in there.
2743         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
2744         corresponding objects exported by a-exexpr, instead of hardcoded dummy
2745         addresses.
2747         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
2748         others_decl and all_others_decl instead of hardcoded dummy addresses
2749         to represent "others" and "all others" choices, which is cleaner and
2750         more flexible with respect to the possible eh pointer encoding policies.
2752         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
2753         (process_attributes): Account for the naming change of the "args"
2754         attribute list entry component.
2756         * decl.c (build_attr_list): Rename into prepend_attributes to allow
2757         cumulating attributes for different entities into a single list.
2758         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
2759         attributes for the current entity and propagate first subtype
2760         attributes to other subtypes.
2761         <E_Procedure>: Attribute arguments are attr->args and not
2762         attr->arg any more.
2763         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
2764         argument provided, as this is what GCC expects. Use NULL_TREE instead
2765         of 0 for trees.
2767 2004-11-18  Robert Dewar  <dewar@adacore.com>
2769         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
2770         Minor reformatting througout (including new function specs)
2771         Add ??? comments asking for clarification.
2773 2004-11-18  Thomas Quinot  <quinot@adacore.com>
2775         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
2776         incomplete duplicate implementation of this subprogram from butil.
2778 2004-11-18  Thomas Quinot  <quinot@adacore.com>
2780         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
2781         procedures factors the common processing for building an RPC receiver
2782         for an RCI package or an RACW type.
2783         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
2784         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
2785         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
2786         in use.
2787         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
2788         Add_RACW_Features.
2789         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
2790         Add_RAST_Features.
2791         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
2792         distribution subprogram identifiers that are either subprogram numbers
2793         or strings.
2794         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
2795         string distribution identifiers assigned to a given subprogram.
2796         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
2797         (Add_RAS_Dereference_TSS): Add comments.
2798         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
2799         is not referenced yet because it will be used by the PolyORB DSA
2800         implementation.
2801         (Insert_Partition_Check): Remove fossile code.
2802         (First_RCI_Subprogram_Id): Document this constant.
2803         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
2804         RAS_Access TSS.
2805         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
2806         replaced with calls to Get_Library_Unit_Name_String. Previously there
2807         were several instances of the same code in different locations in the
2808         compiler; this checkin completes the replacement of all of these
2809         instances with calls to a common subprogram.
2810         Minor reformatting.
2812         * sem_dist.adb: Remove comment noting that RPC receiver generation
2813         should be disabled for RACWs that implement RASs.
2814         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
2816         * sem_util.ads, sem_util.adb (Has_Stream): New function
2817         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
2818         qualified name of a library unit into the name buffer.
2819         (Note_Possible_Modification): Generate a reference only
2820         if the context comes from source.
2822         * snames.ads (PCS_Names): New subtype corresponding to names of
2823         supported implementations of the Partition Communication Subsystem
2824         (PCS) (i.e. the runtime library support modules for the distributed
2825         systems annex).
2827 2004-11-18  Robert Dewar  <dewar@adacore.com>
2828             Ed Schonberg  <schonberg@adacore.com>
2830         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
2831         (Has_Rep_Pragma): New function
2832         (Has_Attribute_Definition_Clause): New function
2833         (Record_Rep_Pragma): Moved here from sem_ch13.adb
2834         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
2836         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
2838         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
2839         (Expand_Pragma_Psect_Object): New procedure
2840         These procedures contain the revised and cleaned up processing for
2841         these two pragmas. This processing was formerly in Sem_Prag, but
2842         is more appropriately moved here. The cleanup involves making sure
2843         that the pragmas are properly attached to the tree, and that no
2844         nodes are improperly shared.
2846         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
2847         pragmas to Exp_Prag, which is more appropriate.
2848         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
2849         check for duplicates Remove use of Is_Psected flag, no longer needed.
2850         Use new Make_String_Literal function with string.
2852         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
2853         that are functions return universal values, that have to be converted
2854         to the context type.
2855         Use new Make_String_Literal function with string.
2856         (Get_Stream_Convert_Pragma): New function, replaces the use of
2857         Get_Rep_Pragma, which had to be kludged to work in this case.
2859         * freeze.adb: Use new Has_Rep_Pragma function
2861         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
2862         function with string.
2863         Use new Has_Rep_Pragma function.
2865         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
2866         string argument.
2868 2004-11-18  Robert Dewar  <dewar@adacore.com>
2870         * errout.ads, errout.adb: (First_Sloc): New function
2872         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
2873         check (-gnatyx) instead of being included as a redundant construct
2874         warning.
2876         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
2877         Style_Check_Order_Subprograms.
2879         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
2880         stylesw.adb: Add Style_Check_Xtra_Parens
2882         * usage.adb: Add line for -gnatyx (check extra parens)
2884         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
2886 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
2887             Robert Dewar  <dewar@adacore.com>
2889         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
2890         discriminant of a constrained subtype, analyze the copy of the
2891         corresponding constraint, because in some cases it may be only
2892         partially analyzed.
2893         Removes long-lived ??? comments.
2895         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
2896         handled controlled or secondary-stack expressions within the
2897         iteration_scheme of a loop.
2899         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
2900         bounds that may contain functions calls, to prevent memory leaks when
2901         the bound contains a call to a function that uses the secondary stack.
2902         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
2903         generate temporaries for loop bounds that might contain function calls
2904         that require secondary stack and/or finalization actions.
2906         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
2907         selected component and the selector is overloadable (not just a
2908         function) treat as function call, Analyze_Call will disambiguate if
2909         necessary.
2910         (Analyze_Selected_Component): Do not generate an actual subtype for the
2911         selected component if expansion is disabled. The actual subtype is only
2912         needed for constraint checks.
2913         (Analyze_Allocator): If restriction No_Streams is set, then do
2914         not permit objects to be declared of a stream type, or of a
2915         composite type containing a stream.
2917         * restrict.ads: Remove the a-stream entry from Unit_Array, since
2918         No_Streams no longer prohibits with'ing this package.
2920         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
2921         discriminants, but the parent base has unknown discriminants, there is
2922         no discriminant constraint to inherit. Such a discrepancy can arise
2923         when the actual for a formal type with unknown discriminants is a
2924         similar private type whose full view has discriminants.
2925         (Analyze_Object_Declaration): If restriction No_Streams is set, then
2926         do not permit objects to be declared of a stream type, or of a
2927         composite type containing a stream.
2929 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
2931         * exp_dbug.ads: Update documentation to reflect simpler encoding for
2932         protected operations.
2934         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
2935         generated name, it complicates decoding in gdb and hinders debugging
2936         of protected operations.
2937         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
2938         flag for the protected entry barrier function.
2939         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
2940         flag for the protected entry function.
2942 2004-11-18  Nicolas Setton  <setton@adacore.com>
2944         * expect.c: Define __unix__ when __APPLE__ is defined.
2946         * Makefile.in: Inform the value of the variable GMEM_LIB in the
2947         Darwin-specific section.
2949         * lang-specs.h: Change the placement of the %1 marker.
2950         Works around the fact that gcc adds -fPIC by default under Darwin.
2952 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
2954         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
2955         type of the object with the packed array type, set the Analyzed flag
2956         on the object if it is an entity or simple indexed component, to avoid
2957         spurious type errors.
2959 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
2961         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
2962         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
2963         separate line from the version message.
2965 2004-11-18  Ed Falis  <falis@adacore.com>
2967         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
2968         vthreads.
2969         (init_float): Eliminate initialization of floating point status for
2970         AE653. The instructions have no effect for vThreads.
2972 2004-11-18  Vincent Celier  <celier@adacore.com>
2974         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
2975         gnatbind is invoked with -shared.
2977 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
2979         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
2980         for Detect_Blocking which is redundant with the check done within the
2981         procedure Protected_Single_Entry_Call.
2982         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
2983         Detect_Blocking which is redundant with the check done within the
2984         procedure Protected_Single_Entry_Call.
2986 2004-11-18  Vincent Celier  <celier@adacore.com>
2988         * makegpr.adb (Compile): Put the compiling switches (in package
2989         Compiler and on the command line) immediately after "-c", instead of
2990         at the end of the command line invocation of the compiler, when
2991         compiling a non-Ada file.
2992         (Build_Global_Archive): When there is no need to rebuild the archive,
2993         set Global_Archive_Exists, so that the archive is passed to the linker
2994         if one is needed.
2996 2004-11-18  Robert Dewar  <dewar@adacore.com>
2997             Sergey Rybin  <rybin@adacore.com>
2999         * gnat_ugn.texi:
3000         Remove extra paren check from list of checks for redundant constructs
3001         Add documentation of new -gnatyx style check (check extra parens)
3002         Remove paragraph about gnatelim debug options.
3004         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
3005         objects rather than forbidding dependencies on the package Ada.Streams.
3007         * sinfo.ads: Add ??? note that we should document pragmas passed to
3008         back end.
3010         * g-expect.ads: Fix a few typos in the comments.
3012 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
3014         * misc.c (gnat_handle_option): Use %< and %> for quoting in
3015         warning message.
3017 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3019         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
3021 2004-11-07  Andreas Schwab  <schwab@suse.de>
3023         * Makefile.in (install-gnatlib): Remove spurious hyphen.
3025 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
3027         PR ada/18228
3028         * Makefile.in (darwin): Set soext to .dylib.
3030 2004-10-26  Vincent Celier  <celier@gnat.com>
3031             Thomas Quinot   <quinot@act-europe.fr>
3033         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
3034         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
3035         there is no use of GNAT.Sockets.Constants.
3036         Remove remaining pragma Import for C_Write
3037         Remove C_Read and C_Write from internal implementation unit
3038         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
3039         the read and write functions from the system runtime library is fine
3040         on UNIX but won't work under Windows).
3042         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
3043         (Check_Selector): Use C_Recv instead of C_Read.
3044         Selectors are the GNAT.Sockets abstraction to perform a select()
3045         call on a set of descriptors. To allow abortion of an ongoing
3046         select operation, some data is written to a dedicated socket that
3047         is always monitored.
3048         Under Windows, the write and read library functions cannot operate
3049         on sockets, so we need to use send and recv instead, which is portable
3050         across all supported platforms.
3052         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
3053         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
3054         (using the read and write functions from the system runtime library is
3055         fine on UNIX but won't work under Windows).
3057 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
3059         * mlib-tgt-darwin.adb: New file.
3061         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3062         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
3063         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
3064         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
3065         subprogram body.
3067         * Makefile.in: Add support for building shared libraries under Darwin.
3068         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
3069         the low level EH init subprogram to be called from __gnat_initialize.
3071         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
3072         indicates which options to pass to the archive indexer.
3074         * mlib-utl.adb: Add support for calling ranlib with additional
3075         options. This is needed for instance under Mac OS X.
3076         (Ranlib_Options): New global variable, used to store the potential
3077         options to pass to ranlib.
3078         (Ar): Use Ranlib_Options when spawning ranlib.
3079         (Initialize): Set the value of ranlib option.
3081 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
3083         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
3084         instead of 8K, to reflect the real potential needs for stack-checking
3085         in the ZCX case.
3087 2004-10-26  Pascal Obry  <obry@gnat.com>
3089         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
3091         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
3092         Windows only the initial thread stack size can be set so it is good to
3093         start we a low stack size.
3094         The OS will adjust the size as needed.
3096 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
3097             Nicolas Setton  <setton@act-europe.fr>
3099         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
3100         "__unix__" instead of "unix".
3101         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
3102         sections were just mistakenly ignored. The former is
3103         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
3104         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
3105         of hpux. This prevents an unwanted definition of the symbol
3106         convert_addresses in adaint.o.
3108 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
3110         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
3111         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
3113 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
3115         * a-filico.ads, a-filico.adb: fix incorrect header.
3117 2004-10-26  Javier Miranda  <miranda@gnat.com>
3119         * a-ststio.ads: Fix typo in identifier
3121 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
3123         * sem_ch4.adb: Minor reformatting.
3125 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
3127         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
3128         enabled, check the result of unary and binary operations when the
3129         expression is the right-hand side of an assignment.
3131 2004-10-26  Vincent Celier  <celier@gnat.com>
3133         * clean.adb (Delete): Do not output warnings when in quiet output and
3134         not in verbose mode.
3135         (Force_Deletions): New Boolean flag, defaulted to False
3136         (Delete): Only delete a file if it is writable, and when
3137         Force_Deletions is True.
3138         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
3139         (Usage): Line for new switch -f
3140         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
3141         own.
3143 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
3145         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
3146         JM type only if its size matches that of the wrapper.  When a size is
3147         prescribed and the field is not aliased, remove the wrapper of a JM
3148         type only if the size is not greater than that of the packed array.
3149         (gnat_to_gnu_entity): Change the extension of packed array wrappers
3150         from LJM to JM.
3152 2004-10-26  Geert Bosch  <bosch@gnat.com>
3154         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
3155         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
3156         (Pred): Implement in terms of Succ.
3158 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
3160         * exp_aggr.adb (Safe_Component): An aggregate component that is an
3161         unchecked conversion is safe for in-place use if the expression of the
3162         conversion is safe.
3163         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
3164         be expandable in place even if the aggregate does not come from source.
3165         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
3166         designated object of an allocator in place, rather than building it
3167         first on the stack. The previous scheme forces a full copy of the array,
3168         and may be altogether unsusable if the size of the array is too large
3169         for stack allocation.
3171 2004-10-26  Robert Dewar  <dewar@gnat.com>
3173         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
3174         compares if the component is atomic.
3176         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
3177         array assignment if the component type is atomic.
3179 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
3180             Eric Botcazou  <ebotcazou@act-europe.fr>
3182         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
3183         is aliased and is a by_reference type, do not pass by copy.
3184         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
3185         detect whether the call is in the right side of an assignment or
3186         the expression of an object declaration.  Recurse on component
3187         association within aggregates.
3188         Call it in the condition that determines whether the temporary is
3189         necessary for correct stack-checking.
3191 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
3193         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
3194         RACW_Type, used in the PolyORB version.
3195         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
3196         version and the GARLIC version.
3198         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
3199         Rename RCI_Info to RCI_Locator for better consistency between the
3200         GARLIC and PolyORB versions of the distributed systems annex.
3201         (DSA_Implementation_Name): This enumeration lists the possible
3202         implementations of the Partition Communication Subsystem for the
3203         Distributed Systems Annex (DSA). The three available implementations
3204         are the dummy stub implementation (No_DSA), and two versions based on
3205         two different distribution runtime libraries: GARLIC and PolyORB. Both
3206         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
3207         technology.
3208         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
3209         that organization.
3211         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
3212         between the GARLIC and PolyORB versions of the distributed systems
3213         annex.
3214         Remove RE_Unbounded_Reclaim_Pool since it is unused.
3216 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
3218         * gnat1drv.adb: Suppress calling the back end when
3219         Frontend_Layout_On_Target is true.
3221 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
3223         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
3224         Set_Read_Only): New subprograms.
3225         These new routines allow the user to set or unset the Owner execute
3226         and Owner write permission flags on a file.
3228         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
3229         GNAT.OS_Lib.Set_Executable instead of rolling our own.
3231 2004-10-26  Matthew Gingell  <gingell@gnat.com>
3233         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
3235 2004-10-26  Pascal Obry  <obry@gnat.com>
3237         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
3238         memory before the faulting page we properly test the process read
3239         access for this address using appropriate Win32 routine.
3240         (HPUX sections): guard with "__hpux__" instead of "hpux".
3242 2004-10-26  Robert Dewar  <dewar@gnat.com>
3244         * lib-xref.adb (Generate_Reference): Don't complain about reference to
3245         entry parameter if pragma Unreferenced set, since we do not properly
3246         handle the case of multiple parameters.
3248 2004-10-26  Vincent Celier  <celier@gnat.com>
3250         * prj-env.adb: (Contains_ALI_Files): New Boolean function
3251         (Ada_Objects_Path.Add): For a library project, add to the object path
3252         the library directory only if there is no object directory or if the
3253         library directory contains ALI files.
3254         (Set_Ada_Paths.Add.Recursive_Add): Ditto
3256 2004-10-26  Vincent Celier  <celier@gnat.com>
3258         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
3259         extension of library projects.
3261         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
3262         path defaults to ".:<prefix>/lib/gnat".
3263         (Parse): For an extending all project, allow direct import of a project
3264         that is virtually extended.
3266         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
3267         the specified name is directly imported, return its ID. Otherwise, if
3268         an extension of this project is imported, return the ID of the
3269         extension.
3271 2004-10-26  Robert Dewar  <dewar@gnat.com>
3273         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
3274         (Sub3): New procedure, used by Scaled_Divide
3275         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
3276         correct more than one instance of failure to propagate carries
3277         correctly.
3278         (Double_Divide): Handle overflow case of largest negative number
3279         divided by minus one.
3281         * s-arit64.ads (Double_Divide): Document that overflow can occur in
3282         the case of a quotient value out of range.
3283         Fix comments.
3285 2004-10-26  Robert Dewar  <dewar@gnat.com>
3287         * s-bitops.adb (Bit_Eq): Remove redundant check.
3289         * s-bitops.ads: Minor comment updates
3290         Change some occurrences of Address to System.Address
3292         * s-carsi8.ads: Fix minor cut-and-paste error in comments
3294 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
3296         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
3297         accessibility check to prefix that is a protected operation.
3299 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
3301         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
3302         empty, post message on stub.
3304 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
3305             Javier Miranda  <miranda@gnat.com>
3307         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
3308         current instance appears within a unit that is directly in the context
3309         of the main unit.
3310         Used to determine whether the body of the instance should be analyzed
3311         immediately after its spec, to make its subprogram bodies available
3312         for front-end inlining.
3313         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
3314         constraint is not allowed on the component type (AARM 12.5.3(3))
3316 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
3318         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3319         'Storage_Pool): enhance, document & limit detection of non-sharable
3320         internal pools.
3322         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
3324         * s-pooglo.ads: Add more documentation now that this pool is properly
3325         documented.
3327 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
3329         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
3330         or protected type with discriminants, do not constrain the
3331         corresponding record type if the subtype declaration has no
3332         discriminant constraints. This can be the case in source code, or in
3333         the subtype declaration created to rename an actual type within an
3334         instantiation.
3336 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
3338         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
3339         different kind of stub (possibly wrong name for file), do not check
3340         for conformance.
3341         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
3342         includes call to some function that returns an unconstrained type, do
3343         not inline.
3345 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
3347         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
3348         appear in the code for the main unit. Dependencies among units in the
3349         context of the main unit are established when those other units are
3350         compiled. Otherwise spurious elaboration constraints can generate
3351         incorrect elaboration circularities.
3353 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
3354             Ed Schonberg   <schonberg@gnat.com>
3356         * sem_util.adb (Is_Aliased_View): Defend against the case where this
3357         subprogram is called with a parameter that is not an object name. This
3358         situation arises for some cases of illegal code, which is diagnosed
3359         later, and in this case it is wrong to call Is_Aliased, as that might
3360         cause a compiler crash.
3361         (Explain_Limited_Type): Refine previous fix to include
3362         inherited components of derived types, to provide complete information.
3364         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
3365         is the prival for a protected object.
3366         It is necessary to mark this entity as a variable, in addition to
3367         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
3368         modified to avoid checking the Aliased flag on entities that are not
3369         objects. (Checking that flag for non-objects is erroneous and could
3370         lead to a compiler crash).
3372 2004-10-26  Robert Dewar  <dewar@gnat.com>
3374         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
3375         X_Frac = 0.5, then we know that the number X must be positive.
3376         (Succ): Remove the same redundant test, and also fix the primary test
3377         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
3378         Minor reformatting
3379         (Decompose): Add fuller comments to spec
3381 2004-10-26  Pascal Obry  <obry@gnat.com>
3383         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
3384         validity (process must have read access). Set to 0 in all other cases.
3385         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
3386         violation on Win32.
3387         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
3388         segmentation violation.
3390 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
3392         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
3393         whose type is a constructed subtype of an aliased object with an
3394         unconstrained nominal subtype, convert the actual to the constructed
3395         subtype before taking its address.
3397 2004-10-26  Vincent Celier  <celier@gnat.com>
3399         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
3400         (Is_Path_Name_Case_Sensitive): New function
3402         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
3403         (Base_Name, Simple_Name, Current_Directory, Compose,
3404         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
3405         the result.
3407 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
3408             Vasiliy Fofanov  <fofanov@act-europe.fr>
3409             Vincent Celier   <celier@gnat.com>
3411         * gnat_ugn.texi: Generalize "finding memory problems" section into a
3412         "memory management issues" section and document some of the useful
3413         memory pools provided as part of the GNAT library.
3414         Remove "virtual" from declaration of A::method2 in
3415         the simple example of Ada/C++ mixed system.
3416         Library Projects may be virtually extended: their virtual extensions
3417         are not Library Projects.
3418         Added section on extending project hierarchies.
3420 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
3422         * adaint.c (__gnat_get_libraries_from_registry): Cast value
3423         to LPBYTE.
3424         (__gnat_portable_spawn): Remove const.
3426         * mingw32.h (MAXPATHLEN): Check for previous definition.
3428 2004-10-17  Matthias Klose  <doko@debian.org>
3430         * gnatvsn.ads: Set gnat library version to 4.0.
3432 2004-10-05  Vincent Celier  <celier@gnat.com>
3434         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
3436 2004-10-04  Laurent GUERBY <laurent@guerby.net>
3438         PR ada/15156
3439         * Makefile.in: Define and use RANLIB_FLAGS.
3441 2004-10-04  Pascal Obry  <obry@gnat.com>
3443         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
3444         other x86 platforms).
3446 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
3448         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
3449         in general and triggers stack alignment adjustment for thread entry
3450         points on targets where this is necessary.
3452 2004-10-04  Bernard Banner  <banner@gnat.com>
3454         PR ada/13897
3456         * Makefile.in: Add section for powerpc linux
3457         Add variant i-vxwork-x86.ads
3459         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
3461 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
3463         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
3464         table registration calls when need be. Ensures no reference to the crt
3465         ctors symbol are issued in the SJLJ case, which avoids possible
3466         undefined symbol errors in the case of modules to be statically linked
3467         with the kernel.
3469 2004-10-04  Javier Miranda  <miranda@gnat.com>
3471         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
3472         in-line the code corresponding to subprogram Analyze_Actuals. In
3473         addition, analyze the actuals only in case of subprogram call.
3475 2004-10-04  Ed Falis  <falis@gnat.com>
3477         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
3479 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
3481         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
3482         in the documentation.
3484 2004-10-04  Robert Dewar  <dewar@gnat.com>
3486         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
3487         IF and CASE.
3488         (Analyze_Block_Statement): Add circuitry to detect following dead code
3489         (Check_Unreachable_Code): Handle case of block exit
3491 2004-10-04  Robert Dewar  <dewar@gnat.com>
3493         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
3494         (XMatchD): Avoid warning for Logic_Error call
3496 2004-10-04  Robert Dewar  <dewar@gnat.com>
3498         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
3499         consider expressions buried within a procedure actual to be an actual.
3500         This caused some blowups with uses of packed slices within a procedure
3501         actual.
3503 2004-10-04  Robert Dewar  <dewar@gnat.com>
3505         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
3506         longer need to be initialized to zero.
3507         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
3508         initialized to zero.
3510         * checks.adb (Expr_Known_Valid): Packed arrays are now always
3511         considered valid, even if the representation is modular. That's correct
3512         now that we no longer initialize packed modular arrays to zero.
3514         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
3515         suffixes. These are now documented as the only cases in which the
3516         debugger ignores outer records.
3517         Previously, the spec allowed arbitrary suffixes for this purpose.
3518         Change name of LJM to JM for packed array pad records
3519         Create separate section on packed array handling, and add a whole new
3520         set of comments to this section describing the situation with packed
3521         modular types and justification requirements depending on endianness.
3523 2004-10-04  Robert Dewar  <dewar@gnat.com>
3525         * a-except.adb: Add a comment for last change
3527         * einfo.ads: Minor spelling correction in comment
3529         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
3531         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
3532         messages.
3534         * sem_util.ads: Minor comment update
3536 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
3538         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
3539         Inline_Always when in Configurable_Run_Time mode.
3541         * sem_prag.adb (Process_Convention): If entity is an inherited
3542         subprogram, apply convention to parent subprogram if in same scope.
3543         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
3544         when in Configurable_Run_Time mode.
3546 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
3548         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
3549         class_wide type after component list has been inherited.
3551 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
3553         * sem_ch12.adb (Check_Generic_Actuals): New predicate
3554         Denotes_Previous_Actual, to handle properly the case of a private
3555         actual that is also the component type of a subsequent array actual.
3556         The visibility status of the first actual is not affected when the
3557         second is installed.
3558         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
3559         make fully recursive the treatment of formals of packages declared
3560         with a box.
3561         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
3562         the above on exit from an instantiation.
3563         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
3564         current instantiation which is now complete.
3565         (Analyze_Package_Instantiation): No instantiated body is needed if the
3566         main unit is generic. Efficient, and avoid anomalies when a instance
3567         appears in a package accessed through rtsfind.
3569 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
3571         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
3572         do not generate a declaration for a temporary if the call is part of a
3573         library-level instantiation.
3575 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
3577         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
3578         searching for a limited component to flag.
3580         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
3581         expansion of Input, to account for the fact that the implicit call
3582         generated by the attribute reference must freeze the user-defined
3583         stream subprogram. This is only relevant to 'Input, because it can
3584         appear in an object declaration, prior to the body of the subprogram.
3586         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
3587         expansion can proceed and further errors uncovered.
3588         (Minor clean up): Fix cases of using | instead of \ for continuation
3589         messages.
3591 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3593         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
3595         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
3596         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
3597         Use gcc_assert and gcc_unreachable.
3599         * decl.c (gnat_to_gnu_entity, case object): Check and process a
3600         specified alignment before validating size.
3601         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
3602         stripped-down declaration for the type of the inner field when making
3603         a JM type.
3605         * utils.c (finish_record_type): Do not compute the size in units
3606         incrementally. Instead compute it once for the rep clause case.
3607         Use gcc_assert and gcc_unreachable.
3609 2004-10-04  Vincent Celier  <celier@gnat.com>
3611         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
3612         in file name.
3613         (Is_Valid_Path_Name): Take '/' as a directory separator.
3615 2004-10-04  Vincent Celier  <celier@gnat.com>
3617         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
3618         (Extended_Project) only if Extended_Project is defined, to avoid
3619         assertion error.
3620         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
3621         resolved path.
3622         (Parse_Single_Project): Ditto.
3624         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
3625         Add_To_Project_Path for virtual projects.
3627 2004-10-04  Vincent Celier  <celier@gnat.com>
3629         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3630         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
3631         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
3632         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
3633         parameter Options_2.
3635         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
3636         Build_Dynamic_Library with an empty Options_2.
3638         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
3639         default anymore.
3641         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
3642         directory separator, if any.
3643         (Gprmake): Do not allow mains on the command line for library projects.
3644         Do not attempt to link when the project is a library project.
3645         (Library_Opts): New table to store Library_Options.
3646         (Build_Library): If Library_Options is specified, pass these options
3647         when building a shared library.
3649 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
3651         * s-tposen.adb (Service_Entry): The object must be always unlocked at
3652         the end of this procedure now that the unlock operation was inserted
3653         by the expander.
3655 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
3657         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
3658         corresponding to the Preallocated_Stacks flags in System.
3659         (Get_Target_Parameters): Including the processing for
3660         Preallocated_Stacks.
3662         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
3663         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
3664         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
3665         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
3666         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
3667         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
3668         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
3669         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
3670         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
3671         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
3672         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
3673         used to signal whether the compiler creates the required stacks and
3674         descriptors for the different tasks (when True) or it is done by the
3675         underlying operating system at run time (when False).
3676         It is initially set to False in all targets.
3678         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
3679         if it is supported by the target.
3680         (Make_Task_Create_Call): Pass the stack address if it has been
3681         previously created. Otherwise pass a Null_Address.
3683         * snames.adb: Add _stack.
3685         * snames.ads: Add Name_uStack. Required to allow the expander to
3686         statically allocated task stacks.
3688         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
3689         Stack_Address argument.
3690         Check that its value is equal to Null_Address because this target does
3691         not support the static stack allocation.
3693 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
3695         * usage.adb: Change "pragma inline" to "pragma Inline" in information
3696         and error messages
3698 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
3700         * exp_dist.adb: Split declaration of asynchronous flag out of
3701         Add_RACW_Read_Attribute.
3702         Minor reformatting for better alignment with PolyORB version.
3703         Store the entity for the asynchronous flag of an RACW, rather than the
3704         expression, in the asynchronous flags table. This will allow this flag
3705         to be used in other subprograms beside Add_RACW_Read_Attribute.
3707 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
3709         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
3710         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
3711         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
3712         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
3713         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
3714         sockets constant MSG_NOSIGNAL (Linux-specific).
3715         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
3716         all Send operations.
3717         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
3718         from trigerring SIGPIPE.
3719         Rename components to avoid clash with Ada 2005 possible reserved
3720         word 'interface'.
3721         (Check_Selector): When the select system call returns with an error
3722         condition, propagate Socket_Error to the caller.
3724 2004-10-01  Jan Hubicka  <jh@suse.cz>
3726         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
3728 2004-09-23  Robert Dewar  <dewar@gnat.com>
3730         PR ada/17540
3732         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
3733         instead do this at freeze time (we won't do it if there is an address
3734         clause).
3735         Change "pragma inline" to "pragma Inline" in information and error
3736         messages.
3737         Minor reformatting.
3739         * freeze.adb (Check_Address_Clause): Remove previous change, not the
3740         right way of doing things after all.
3741         (Freeze_Entity): For object, set Is_Public for imported entities
3742         unless there is an address clause present.
3744 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
3746         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
3747         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
3748         ensures proper handling of types with rep clauses, which might have
3749         their TYPE_SIZE set already.
3751 2004-09-21  Robert Dewar  <dewar@gnat.com>
3753         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
3754         packed array types in both little- and big-endian cases. This change
3755         ensures that we no longer count on the unused bits being initialized
3756         for such types (and in particular ensures that equality testing will
3757         only read the relevant bits).
3758         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
3759         These changes mean that we no longer need to initialize small packed
3760         arrays.
3761         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
3762         optimization to an LJM field as to its parent field.
3764         * ada-tree.h, trans.c, utils.c, utils2.c:
3765         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
3767 2004-09-20  Jan Hubicka  <jh@suse.cz>
3769         * utils.c (gnat_finalize): Remove.
3770         (end_subprog_body): Directly call cgraph_finalize_function;
3771         do not lower the nested functions.
3773 2004-09-20  Robert Dewar  <dewar@gnat.com>
3775         PR ada/17540
3777         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
3778         if an address clause is present, since that means that the Import
3779         should be ignored.
3781 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
3783         * 5tsystem.ads: Removed, no longer used.
3785 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
3786             Zack Weinberg  <zack@codesourcery.com>
3788         * ada-tree.def: Use tree_code_class enumeration constants
3789         instead of code letters.
3790         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
3791         Update for new tree-class enumeration constants.
3793 2004-09-17  Vincent Celier  <celier@gnat.com>
3795         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
3796         capabilities of the general project manager.
3798 2004-09-09  Vincent Celier  <celier@gnat.com>
3800         * a-direct.ads: Add pragma Ada_05
3801         (Directory_Entry_Type): Give default value to component Kind to avoid
3802         not initialized warnings.
3804         * a-direct.adb (Current_Directory): Remove directory separator at the
3805         end.
3806         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
3807         an existing directory.
3808         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
3809         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
3810         Convert the result to File_Size.
3812         * prj.ads: (Project_Error): New exception
3814         * prj-attr.adb: Except in procedure Initialize, Fail comes from
3815         Prj.Com, not from Osint.
3816         (Attrs, Package_Attributes): Tables moved to private part of spec
3817         (Add_Attribute, Add_Unknown_Package): Moved to new child package
3818         Prj.Attr.PM.
3819         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
3820         Prj.Project_Error after call to Fail.
3821         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
3822         Fail. Check that package name is not already in use.
3824         * prj-attr.ads: Comment updates to indicate that all subprograms may be
3825         used by tools, not only by the project manager, and to indicate that
3826         exception Prj.Prj_Error may be raised in case of problem.
3827         (Add_Unknown_Package, Add_Attribute): Moved to new child package
3828         Prj.Attr.PM.
3829         (Attrs, Package_Attributes): Table instantiations moved from the body to
3830         the private part to be accessible from Prj.Attr.PM body.
3832         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
3833         from new package Prj.Attr.PM.
3834         (Parse_Attribute_Declaration): Call Add_Attribute from new package
3835         Prj.Attr.PM.
3837         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
3839         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
3840         instead of Elaboration_Checks).
3842         * a-calend.adb: Minor reformatting
3844 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3846         * gigi.h (maybe_pad_type): New declaration.
3847         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
3849         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
3851         * cuintp.c: Convert to use buildN.
3853         * decl.c (maybe_pad_type): No longer static.
3854         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
3855         target pointer.
3856         Convert to use buildN.
3858         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
3859         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
3860         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
3861         RHS.
3862         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
3863         (gnat_gimplify_expr, case ADDR_EXPR): New case.
3864         Convert to use buildN.
3866         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
3867         TREE_READONLY for const.
3868         Convert to use buildN.
3870         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
3871         (create_var_decl): Refine when TREE_STATIC is set.
3872         Convert to use buildN.
3874 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
3876         * gnat_ugn.texi: Delete text relating to checking of ali and object
3877         consistency.
3879         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
3880         routines.
3882 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
3884         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
3885         pragmas recognized by GNAT.
3887         * gnat_rm.texi: Document pragma Detect_Blocking.
3889         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
3890         raise Program_Error if called from a protected operation.
3892         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
3893         the protected action nesting level.
3894         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
3895         protected action nesting level.
3896         (Unlock): When pragma Detect_Blocking is active decrease the protected
3897         action nesting level.
3899         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
3900         Protected_Action_Nesting.
3902         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
3903         Common_ATCB record. It contains the dynamic level of protected action
3904         nesting for each task. It is needed for checking whether potentially
3905         blocking operations are called from protected operations.
3906         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
3907         Detect_Blocking is active or not in the partition.
3909         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
3910         raise Program_Error if called from a protected operation.
3911         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
3912         Program_Error if called from a protected operation.
3913         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
3914         Program_Error if called from a protected operation.
3916         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
3917         raise Program_Error if called from a protected operation.
3919         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
3920         raise Program_Error if called from a protected operation, and increase
3921         the protected action nesting level.
3922         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
3923         Program_Error if called from a protected operation, and increase the
3924         protected action nesting level.
3925         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
3926         protected action nesting level.
3928         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
3929         raise Program_Error if called from a protected operation, and increase
3930         the protected action nesting level.
3931         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
3932         Program_Error if called from a protected operation, and increase the
3933         protected action nesting level.
3934         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
3935         raise Program_Error if called from a protected operation.
3936         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
3937         active, raise Program_Error if called from a protected operation.
3938         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
3939         protected action nesting level.
3941         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
3942         insertion of the statement raising Program_Error. The run time
3943         contains the required machinery for handling that.
3945         * sem_util.ads: Change comment associated to procedure
3946         Check_Potentially_Blocking_Operation.
3947         This procedure does not insert a call for raising the exception because
3948         that is currently done by the run time.
3950         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
3952         * init.c: Add the global variable __gl_detect_blocking that indicates
3953         whether pragma Detect_Blocking is active (1) or not (0). Needed for
3954         making the pragma available at run time.
3955         (__gnat_set_globals): Pass and update the detect_blocking parameter.
3957         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
3958         pragma Detect_Blocking is active.
3960         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
3962         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
3963         DB is found in the ali file. Any unit compiled with pragma
3964         Detect_Blocking active forces its effect in the whole partition.
3966         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
3967         Detect_Blocking is active and delay is called from a protected
3968         operation.
3970         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
3971         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
3972         Detect_Blocking is active (0 otherwise).
3973         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
3974         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
3975         otherwise).
3977 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
3979         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
3980         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
3981         package.
3983         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
3984         (Register_Receiving_Stub): Add Subp_Info formal parameter.
3985         Update API in placeholder implemetation of s-parint to reflect changes
3986         in distribution runtime library.
3988         * sem_ch3.adb (Expand_Derived_Record): Rename to
3989         Expand_Record_Extension.
3991         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
3992         primitive operations of potentially distributed object types that have
3993         non-controlling anonymous access formals.
3995         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
3996         subprogram.
3997         New implementation of expansion for remote access-to-subprogram types,
3998         based on the RACW infrastructure.
3999         This version of sem_dist is compatible with PolyORB/DSA as well as
4000         GLADE.
4002         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
4003         Asynchrronous that applies to a remote access-to-subprogram type, mark
4004         the underlying RACW type as asynchronous.
4006         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
4007          __gnat_using_gnu_linker to 1.
4009         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
4010         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
4011         GNAT.Perfect_Hash_Generators, and remove the empty
4012         GNAT.Perfect_Hash package.
4014         * atree.adb: Minor reformatting
4016         * exp_ch3.adb (Expand_Derived_Record): Rename to
4017         Expand_Record_Extension.
4018         (Build_Record_Init_Proc.Build_Assignment): The default expression in
4019         a component declaration must remain attached at that point in the
4020         tree so New_Copy_Tree copies it if the enclosing record type is derived.
4021         It is therefore necessary to take a copy of the expression when building
4022         the corresponding assignment statement in the init proc.
4023         As a side effect, in the case of a derived record type, we now see the
4024         original expression, without any rewriting that could have occurred
4025         during expansion of the ancestor type's init proc, and we do not need
4026         to go back to Original_Node.
4028         * exp_ch3.ads (Expand_Derived_Record): Rename to
4029         Expand_Record_Extension.
4031         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
4032         Returns the RACW type used to implement a remote access-to-subprogram
4033         type.
4034         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
4035         New subprograms. Used to create a proxy tagged object for a remote
4036         subprogram. The proxy object is used as the designated object
4037         for RAS values on the same partition (unless All_Calls_Remote applies).
4038         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
4039         System.Partition_Interface.Get_Unique_Remote_Pointer.
4040         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
4041         Renamed from Add_RAS_*_Attribute.
4042         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
4043         subprograms.
4044         New implementation of expansion for remote access-to-subprogram types,
4045         based on the RACW infrastructure.
4047         * exp_dist.ads (Copy_Specification): Update comment to note that this
4048         function can copy the specification from either a subprogram
4049         specification or an access-to-subprogram type definition.
4051 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
4053         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
4054         in an instance, between an explicit subprogram an one inherited from a
4055         type derived from an actual.
4057         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
4058         add a polling call if the subprogram is to be inlined by the back-end,
4059         to avoid repeated calls with multiple inlinings.
4061         * checks.adb (Apply_Alignment_Check): If the expression in the address
4062         clause is a call whose name is not a static entity (e.g. a dispatching
4063         call), treat as dynamic.
4065 2004-09-09  Robert Dewar  <dewar@gnat.com>
4067         * g-trasym.ads: Minor reformatting
4069         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
4070         packed arrays, since unused bits are expected to be zero for a
4071         comparison.
4073 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
4075         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
4076         comment.
4078 2004-09-09  Pascal Obry  <obry@gnat.com>
4080         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
4081         enable map file generation. Add the right option to generate the map
4082         file if Map_File is set to True.
4084         * gnatdll.adb (Gen_Map_File): New variable.
4085         (Syntax): Add info about new -m (Map_File) option.
4086         (Parse_Command_Line): Add support for -m option.
4087         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
4088         Minor reformatting.
4090 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
4092         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
4093         new gnatdist implementation.
4094         Define a subpackage isolating the output routines specific to this
4095         verbose mode.
4097 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
4099         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
4101         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
4103 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
4105         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
4106         internal unit.
4108         * opt.ads: Add Ada_Version_Runtime constant used to decide which
4109         version of the language is used to compile the run time.
4111 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
4113         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
4114         of variable length temporaries for function return now that the
4115         back-end and gigi support it.
4117 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4119         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
4121         * trans.c (struct stmt_group): Delete field GLOBAL.
4122         (gnat_init_stmt_group): Do not initialize it.
4123         (call_to_gnu): Use save_expr, not protect_multiple_eval.
4124         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
4125         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
4126         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
4127         (start_stmt_group): Likewise.
4128         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
4130         * utils2.c (ggc.h): Include.
4131         (build_call_raise): Call build_int_cst, not build_int_2.
4133         * utils.c (gnat_init_decl_processing): Fix arg to
4134         build_common_tree_nodes.
4135         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
4136         (gnat_define_builtin): Set built_in_decls.
4137         (init_gigi_decls): Call build_int_cst, not build_int_2.
4139         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
4140         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
4141         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
4142         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
4143         SET_TYPE_MODULE): Use them.
4144         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
4145         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
4146         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
4147         SET_TYPE_ADA_SIZE): Likewise.
4148         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
4149         (DECL_CONST_CORRESPONDING_VAR,
4150         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
4151         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
4152         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
4153         (TYPE_RM_SIZE_NUM): New macro.
4154         (TYPE_RM_SIZE): Modified to use above.
4156         * cuintp.c: (build_cst_from_int): New function.
4157         (UI_To_gnu): Use it.
4159         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
4160         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
4161         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
4162         MIN_EXPR for the size, copy it into new.
4164 2004-09-01  Robert Dewar  <dewar@gnat.com>
4166         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
4167         packed indexed component where array is an IN OUT formal. This
4168         generated garbage code previously.
4170         * gnat_ugn.texi: Document -fverbose-asm
4172         * gnat-style.texi: Minor updates (note that boolean constants and
4173         variables are joined with AND/OR rather than short circuit forms).
4175 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
4177         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
4178         it is an upward conversion of an untagged type with no representation
4179         change.
4181 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
4183         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
4184         System.Partition_Interface.
4186         * checks.adb (Apply_Access_Checks): Do not generate checks when
4187         expander is not active (but check for unset reference to prefix of
4188         dereference).
4190         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
4191         pragma Debug as an if statement with a constant condition, for
4192         consistent treatment of entity references contained within the
4193         enclosed procedure call.
4195 2004-09-01  Vincent Celier  <celier@gnat.com>
4197         * bindgen.adb: (Set_EA_Last): New procedure
4198         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
4199         Set_EA_Last.
4200         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
4201         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
4202         linked without errors.
4203         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
4204         ST and EA.
4205         (Gen_Exception_Table_C): Correct same bugs
4207         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
4209         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
4210         on Windows, make sure that the drive letter is in upper case.
4212         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
4213         Windows, when the drive letter is added and Case_Sensitive is True, the
4214         drive letter is forced to upper case.
4216         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
4217         to Options_2 for the call to MLib.Utl.Gcc.
4219         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
4220         directory separator when defining BASE_DIR.
4222 2004-09-01  Pascal Obry  <obry@gnat.com>
4224         * gprcmd.adb (Extend): Do not output trailing directory separator. This
4225         is not needed and it confuses Windows GNU/make which does not report
4226         directory terminated by a slash as a directory.
4227         (gprcmd): Idem for "pwd" internal command.
4229         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
4230         target names rewrite to fix regressions with recent version of
4231         GNU/make. Starting with GNU/make 3.80 the pipe character was not
4232         handled properly anymore.
4234 2004-09-01  Andreas Schwab  <schwab@suse.de>
4236         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
4237         * raise.c [!IN_RTS]: Undef abort.
4239 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
4241         * utils2.c (build_allocator): Use ssize_int.
4243         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
4245 2004-08-27  Andreas Schwab  <schwab@suse.de>
4247         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
4249 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
4250             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4252         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
4254 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
4256         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
4257         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
4258         * utils.c (init_gigi_decls): Likewise.
4259         * utils2.c (build_call_raise, build_allocator): Likewise.
4261 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
4263         * utils.c (gnat_init_decl_processing): Adjust
4264         build_common_tree_nodes call.
4266 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
4268         * utils2.c (build_allocator): Use build_int_cst for negative
4269         size types.
4271 2004-08-18  Richard Henderson  <rth@redhat.com>
4273         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
4275 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
4277         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
4278         call.s
4279         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
4280         (gnat_to_gnu): Likewise.
4282 2004-08-16  Pascal Obry  <obry@gnat.com>
4284         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
4285         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
4286         option and not mdll anymore. Update comment.
4288 2004-08-16  Pascal Obry  <obry@gnat.com>
4290         * bld.adb (Put_Include_Project): Properly handle directory separators
4291         on Windows.
4293 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
4295         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
4296         decreasing the number of allocated junk nodes while searching for the
4297         appropriate subprogram.
4299 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
4301         * cuintp.c (UI_To_gnu): Use build_int_cst..
4302         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
4303         * utils.c (init_gigi_decls): Likewise.
4304         * utils2.c (build_call_raise): Likewise.
4306 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
4308         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
4309         for a global aliased object with a variable size and an unconstrained
4310         nominal subtype, pretend there is no initializer if the one we have is
4311         incomplete, and avoid referencing an inexistant component in there. The
4312         part we have will be rebuilt anyway and the reference may confuse
4313         further operations.
4315 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
4317         * einfo.ads: Minor reformatting
4319         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
4320         restrictions in the ALI if we only want to warn about violations.
4322 2004-08-13  Vincent Celier  <celier@gnat.com>
4324         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
4325         when creating a new Unit_Record in table Units.
4327         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
4328         that are violated, if any.
4330         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
4331         add directory separator if path already ends with a directory separator.
4333 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
4335         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
4336         unit, this is an attempt to inline a construct that is not available in
4337         the current restricted mode, so abort rather than trying to continue.
4339         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
4340         discriminants that rename those of the parent, recover names of
4341         original discriminants for the constraint on the full view of the
4342         parent.
4343         (Complete_Private_Subtype): Do not create a subtype declaration if the
4344         subtype is an itype.
4346         * gnat_rm.texi: Added section on implementation of discriminated
4347         records with default values for discriminants.
4349 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
4351         PR ada/15601
4352         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
4353         the second operand is overloaded.
4355 2004-08-10  Richard Henderson  <rth@redhat.com>
4357         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
4358         add __builtin_alloca.
4360 2004-08-10  Richard Henderson  <rth@redhat.com>
4362         * config-lang.in (boot_language): Yes.
4364 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
4366         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
4367         from complaining on potential uninitialized reference.
4368         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
4369         new specification and test explicitly for non-zero return value.
4371         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
4372         returning C.int, to avoid using a derived boolean type.
4374         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
4375         Duplicate_Subexpr_No_Checks in preference to direct use of
4376         Remove_Side_Effects and New_Copy_Tree.
4377         Clear Comes_From_Source on prefix of 'Size attribute reference.
4379         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
4380         g-socthi-vxworks.adb: Change calls to
4381         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
4382         and test explicitly for non-zero return value.
4384         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
4385         (Is_Socket_In_Set): Declare imported function as returning C.int, to
4386         avoid using a derived boolean type.
4388 2004-08-09  Albert Lee  <lee@gnat.com>
4390         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
4392 2004-08-09  Pascal Obry  <obry@gnat.com>
4394         * gnat_ugn.texi: Document new way to build DLLs on Windows using
4395         GCC's -shared option.
4397         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
4398         Options_2 parameter (options put after object files).
4400 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
4402         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
4403         ignore overflows on low and high bounds of an index to also account for
4404         differences in signedness between sizetype and gnu_index_subtype.
4405         These are as legitimate as the ones caused by a lower TYPE_PRECISION
4406         on sizetype.
4408 2004-08-09  Robert Dewar  <dewar@gnat.com>
4410         * s-solita.ads, s-solita.adb: Minor reformatting
4412         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
4413         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
4414         obsolescent section
4415         Add note that No_Implicit_Conditionals does not suppress
4416         run time constraint checks.
4418         * vms_conv.ads: Minor reformatting
4420         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
4421         and necessary for following change).
4422         (Mark): Return new format Mark_Id containing sec stack address
4423         (Release): Use sec stack address from Mark_Id avoiding Self call
4425         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
4426         pointer (cleanup and necessary for following change).
4427         Define Mark_Id as record containing address of secondary stack, that way
4428         Release does not need to find the stack again, decreasing the number of
4429         calls to Self and improving efficiency.
4431         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
4433         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
4434         case variable into the individual case branches when possible.
4436         * sem_ch11.adb: Minor reformatting
4438         * prj.ads: Correct spelling of suffixs
4440         * prj-nmsc.adb: Minor reformatting
4441         Correct spelling suffixs throughout (also in identifiers)
4443         * freeze.adb: Minor spelling correction
4445         * exp_ch2.adb: Cleanups to handling of Current_Value
4446         (no functional effect).
4448         * bld.adb: Correct spelling of suffixs
4450         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
4452 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
4454         PR ada/15408
4456         * sem_ch7.adb (Install_Private_Declarations): In the body of the
4457         package or of a child, private entities are both immediately_visible
4458         and not hidden.
4460 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
4462         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
4463         there are no range checks on the value of the literal.
4465         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
4466         wrapped is the triggering alternative of an asynchronous select, action
4467         statements mustbe inserted before the select itself.
4469         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
4470         case where the prefix is a protected function call.
4471         (Resolve_Attribute, case 'Access): The attribute reference on a
4472         subprogram is legal in a generic body if the subprogram is declared
4473         elsewhere.
4475 2004-08-09  Vincent Celier  <celier@gnat.com>
4477         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
4478         languages, otherwise building the library may fail with unresolved
4479         symbols.
4480         (Compile_Sources): Do not build libraries if -c switch is used
4482         * gnatlink.adb (Process_Args): New switches -M and -Mmap
4483         (Write_Usage): If map file creation is supported, output new switches
4484         -M and -Mmap.
4485         (Gnatlink): When -M is specified, add the necessary switch(es) to the
4486         gcc call, when supported.
4488         * Makefile.in: Added indepsw.o to the object list for gnatlink
4489         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
4491         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
4492         indepsw.adb, indepsw.ads: New files.
4494 2004-08-09  Bernard Banner  <banner@gnat.com>
4496         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
4498         * Makefile.in: add section for vxworks x86
4500 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
4502         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
4503         per-object constrained components where the discriminant is of an
4504         Access type.
4505         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
4506         the parent initialization procedure for derived Unchecked_Unions.
4507         Instead, derived Unchecked_Unions build their own initialization
4508         procedure.
4509         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
4510         Check the body of the subprogram for details.
4511         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
4512         functions for derived Unchecked_Union types by introducing a condition.
4513         Allow the creation of TSS equality functions for Unchecked_Unions.
4514         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
4515         Add formal parameter Discr to function signature. Discr is used to
4516         control the generated case statement for Unchecked_Union types.
4517         (Make_Eq_If): Rename formal parameter Node to E in function signature.
4519         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
4520         Unchecked_Unions.
4521         Check the body of the subprogram for details.
4522         (Expand_Composite_Equality): Augment composite type equality to include
4523         correct handling of Unchecked_Union components.
4524         (Expand_N_In): Add condition to detect illegal membership tests when the
4525         subtype mark is a constrained Unchecked_Union and the expression lacks
4526         inferable discriminants, and build a Raise_Program_Error node.
4527         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
4528         to detect types that contain components of unconstrained Unchecked_Union
4529         subtype. Add condition to detect equality between types that have an
4530         unconstrained Unchecked_Union component, and build a Raise_Program_Error
4531         node. Add condition to detect equality between Unchecked_Union types
4532         that lack inferable discriminants, and build a Raise_Program_Error node.
4533         Otherwise build a TSS equality function call.
4534         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
4535         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
4536         with the operand lacking inferable discriminants, and build a Raise_
4537         Program_Error node.
4538         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
4539         composite equality.
4540         (Has_Inferable_Discriminants): Implement new predicate for objects and
4541         expressions of Unchecked_Union type. Check the body of subprogram for
4542         details.
4543         (Has_Unconstrained_UU_Components): Add function
4544         Component_Is_Unconstrained_UU. It is used to detect whether a single
4545         component is of an unconstrained Unchecked_Union subtype. Add function
4546         Variant_Is_Unconstrained_UU. It is used to detect whether a single
4547         component inside a variant is of an unconstrained Unchecked_Union type.
4549         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
4550         inferred discriminant values. Add condition to generate a case
4551         statement with an inferred discriminant as the switch.
4552         (Make_Component_List_Assign): Introduce a Boolean flag that determines
4553         the behaviour of the subprogram in the presence of an Unchecked_Union.
4554         Add condition to trigger the usage of the inferred discriminant value
4555         as the generated case statement switch.
4556         (Make_Field_Assign): Introduce a Boolean flag that determines the
4557         behaviour of the subprogram in the presence of an Unchecked_Union. Add
4558         condition to trigger the usage of the inferred discriminant value as
4559         the right-hand side of the generated assignment.
4561         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
4562         parameter generation when dealing with Unchecked_Unions.
4564         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
4565         checks for Unchecked_Unions.
4567         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
4569         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
4570         Raise_Program_Error nodes for the execution of Read and Write
4571         attributes of Unchecked_Union types and the execution of Input and
4572         Output attributes of Unchecked_Union types that lack default
4573         discriminant values.
4575         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
4576         Unchecked_Union. Add procedure Check_Component. It is used to inspect
4577         per-object constrained components of Unchecked_Unions for being
4578         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
4579         check individual components withing a variant.
4581         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
4582         comparison of Unchecked_Unions.
4583         (Resolve_Equality_OP): Remove guard that prevents equality between
4584         Unchecked_Unions.
4586         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
4587         of component subtypes for Unchecked_Union components.
4588         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
4589         since it is the actual subtype.
4591         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
4592         pass of Unchecked_Union subtypes as generic actuals to formal types
4593         that lack known_discriminant_parts or that are derived Unchecked_Union
4594         types, and do nothing. In any other case, produce an error message.
4596         * sem_ch3.adb (Analyze_Component_Declaration): Add function
4597         Contains_POC. It determines whether a constraint uses the discriminant
4598         of an enclosing record type.
4599         Add condition to detect per-object constrained component and set the
4600         appropriate flag.
4601         (Derived_Type_Declaration): Remove guard that prevents derivation from
4602         Unchecked_Union types.
4603         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
4604         Union subtypes.
4606         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
4607         references to Unchecked_Union discriminants.
4609         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
4610         formal generation when dealing with Unchecked_Unions.
4611         (Set_Actual_Subtypes): Add condition to prevent generation of actual
4612         subtypes for Unchecked_Unions.
4614         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
4615         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
4616         completions of discriminated partial views by Unchecked_Unions and
4617         produce an error message.
4619 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4621         * trans.c (struct stmt_group): New field, GLOBAL.
4622         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
4623         (struct elab_info): New struct.
4624         (elab_info_list, gnu_elab_proc_stack): New variables.
4625         (Compilation_Unit_to_gnu): New procedure.
4626         (gigi): Call it and also handle elaboration procs we've saved.
4627         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
4628         global field from parent.
4629         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
4630         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
4631         (start_stmt_group): Initialize global field from parent.
4632         (add_decl_expr): Set to global for current statement group.
4633         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
4634         post.
4636         * utils.c (global_bindings_p): True when no current_function_decl; no
4637         longer check current_binding_level.
4639 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
4641         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
4642         choice.
4644         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
4646 2004-08-06  Andreas Schwab  <schwab@suse.de>
4648         * utils.c (gnat_define_builtin): Remove second parameter of
4649         make_decl_rtl.
4650         (begin_subprog_body): Likewise.
4652 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
4654         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
4655         optimization, not supported by the tree-ssa back-end.
4657 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
4659         * s-mastop-irix.adb: Update comments.
4661         * a-except.adb (Exception_Information): Raise Constraint_Error if
4662         exception Id is Null_Id.
4663         This is required behavior, which is more reliably and clearly checked
4664         at the top level interface level.
4666 2004-07-26  Javier Miranda  <miranda@gnat.com>
4668         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
4669         call if a component has no default_expression and the box is used.
4671         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
4672         default_expression and you use box, it behaves as if you had declared a
4673         stand-alone object.
4674         (Resolve_Record_Aggregate): If a component has no default_expression and
4675         you use box, it behaves as if you had declared a stand-alone object.
4677         * sem_ch10.adb (Install_Siblings): Do not make visible the private
4678         entities of private-with siblings.
4680 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
4682         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
4683         for a component of an itype, set the parent pointer for analysis,
4684         there is no list in which to insert it.
4686         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
4687         bona-fide renamings, not for inherited operations.
4689         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
4690         actual for a formal that is an access parameter, create local
4691         finalization list even if the expression is not an aggregate.
4693 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
4695         PR ada/16213
4696         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
4697         Diagnose properly illegal subprogram renamings that are library units.
4699 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
4701         PR ada/15588
4702         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
4703         conversion rewritten as an unchecked conversion, check that original
4704         expression is a variable.
4706         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
4707         unchecked_conversion, create new node rather than rewriting in place,
4708         to preserve original construct.
4710 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4712         * gigi.h (gnat_expand_body): Deleted.
4714         * Make-lang.in: (trans.o): Depends on function.h.
4716         * misc.c: (gnat_expand_body): Moved to here.
4718         * trans.c (gnat_expand_body_1): Deleted.
4719         (gnat_expand_body): Moved from here.
4720         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
4721         (add_stmt): Check for marked visited with global_bindings_p.
4722         (gnat_gimplify_expr, case COMPONENT_REF): New case.
4723         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
4725         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
4726         VIEW_CONVERT_EXPR if not operation type.
4728         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
4729         fat pointer.
4731         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
4732         changes: reformatting of negation operators, removing unneeded
4733         inequality comparison with zero, converting equality comparisons with
4734         zero to negations, changing int/0/1 to bool/false/true, replace calls
4735         to gigi_abort with abort, and various other similar changes.
4737 2004-07-26  Vincent Celier  <celier@gnat.com>
4739         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
4740         "setup".
4742         * make.adb (Gnatmake): Fail when a library is not present and there is
4743         no object directory.
4745         * mlib-prj.adb (Check_Library): No need to check if the library needs
4746         to be rebuilt if there is no object directory, hence no object files
4747         to build the library.
4749         * opt.ads (Setup_Projects): New Boolean flag.
4751         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
4752         Location.
4753         Create directory when Kind /= "" and in "gnat setup". Report error if
4754         directory cannot be created.
4755         (Ada_Check): Create library interface copy dir if it does not exist
4756         and we are in "gnat setup".
4757         (Find_Sources): No error if in "gnat setup" and no Ada sources were
4758         found.
4759         (Language_Independent_Check): Create object directory, exec directory
4760         and/or library directory if they do not exist and we are in
4761         "gnat setup".
4763         * vms_conv.ads: (Command_Type): New command Setup.
4765         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
4767         * vms_data.ads: Add qualifiers/switches for new built-in command
4768         "setup".
4770 2004-07-25  Richard Henderson  <rth@redhat.com>
4772         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
4773         DECL_IGNORED_P on RESULT_DECL.
4775 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
4777         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
4778         allocation and potentially overflowing update with
4779         Tailored_Exception_Information. Use the sec-stack free procedural
4780         interface to output Exception_Information instead.
4782         * a-except.adb (To_Stderr): New subprogram for character, and string
4783         version moved from a-exextr to be visible from other separate units.
4784         (Tailored_Exception_Information): Remove the procedural version,
4785         previously used by the default Last_Chance_Handler and not any more.
4786         Adjust various comments.
4788         * a-exexda.adb: Generalize the exception information procedural
4789         interface, to minimize the use of secondary stack and the need for
4790         local buffers when the info is to be output to stderr:
4791         (Address_Image): Removed.
4792         (Append_Info_Character): New subprogram, checking for overflows and
4793         outputing to stderr if buffer to fill is of length 0.
4794         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
4795         (Append_Info_Address, Append_Info_Exception_Name,
4796         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
4797         Append_Info_Basic_Exception_Traceback,
4798         Append_Info_Exception_Information): New subprograms.
4799         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
4800         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
4801         Exception_Info_Maxlength, Exception_Name_Length,
4802         Exception_Message_Length): New subprograms.
4803         (Exception_Information): Use Append_Info_Exception_Information.
4804         (Tailored_Exception_Information): Use
4805         Append_Info_Basic_Exception_Information.
4806         Export services for the default Last_Chance_Handler.
4808         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
4809         other separate units.
4811 2004-07-20  Vincent Celier  <celier@gnat.com>
4813         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
4815 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
4817         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
4818         emit itype references for the designated types of component types that
4819         are declared outside of the full record declaration, and that may
4820         denote a partial view of that record type.
4822 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
4824         PR ada/15607
4825         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
4826         which is the designated type in an access component declaration, to the
4827         list of incomplete dependents of the parent type, to avoid elaboration
4828         issues with out-of-scope subtypes.
4829         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
4830         full view of the parent.
4832 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
4834         PR ada/15610
4835         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
4836         entities that are hidden, such as references to generic actuals
4837         outside an instance.
4839 2004-07-20  Javier Miranda  <miranda@gnat.com>
4841         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
4842         support to the new notation.
4843         (Analyze_Selected_Component): Add call to Try_Object_Operation.
4845 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
4847         * s-taprob.adb: Adding the elaboration code required for initializing
4848         the tasking soft links that are common to the full and the restricted
4849         run times.
4851         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
4852         restricted run time has been moved to the package
4853         System.Soft_Links.Tasking.
4855         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
4856         restricted run time has been moved to the package
4857         System.Soft_Links.Tasking.
4859         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
4861         * s-solita.ads, s-solita.adb: New files.
4863 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4865         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
4866         Case_Statement_to_gnu): Split off from gnat_to_gnu.
4867         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
4868         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
4869         Exception_Handler_to_gnu_zcx): Likewise.
4871 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
4873         * gigi.h (builtin_function): Declare.
4875 2004-07-15  Robert Dewar  <dewar@gnat.com>
4877         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
4878         reformatting
4880         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
4881         access values as an example of a warning.
4883         * gnat_rm.texi: Document new attribute Has_Access_Values
4885         * gnat-style.texi: Document that box comments belong on nested
4886         subprograms
4888         * sem_util.ads (Has_Access_Values): Improved documentation
4890         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
4892         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
4893         (Process_Interface_Name): Call to this new procedure
4894         (Set_Extended_Import_Export_External_Name): Call to this new procedure
4896         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
4898         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
4900         * einfo.ads: Minor comment typo fixed
4902 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
4904         * snames.adb: Add _atcb.
4906         * snames.ads: Add Name_uATCB.
4908         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
4909         (in the expanded code) when using the restricted run time.
4911         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
4912         a in parameter in order to allow ATCBs to be preallocated (in the
4913         expanded code).
4915         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
4916         order to allow ATCBs to be preallocated. In case of error, the ATCB is
4917         deallocated in System.Tasking.Stages.
4919         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
4920         order to allow ATCBs to be preallocated.
4922         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
4923         here. It was previously done in Initialize_ATCB.
4925         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
4927         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
4928         Restricted run time.
4930         * exp_ch3.adb: When using the Restricted run time, pass the
4931         preallocated Ada_Task_Control_Block when creating a task.
4933 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
4935         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
4936         function call that is itself an actual in an enclosing call, diagnose
4937         problem here rather than assuming that resolution will catch it.
4939         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
4940         the local copy of a generic unit for a formal package, and the generic
4941         is a child unit, install private part of ancestors before compiling
4942         private part of spec.
4944         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
4945         use scope entities rather than tree structures, to handle properly
4946         parent units that are instances rewritten as bodies for inlining
4947         purposes.
4949         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
4950         Remove_Parents): Handle properly a parent unit that is an
4951         instantiation, when the unit has been rewritten as a body for inlining
4952         purposes.
4954         * par.adb (Goto_List): Global variable to collect goto statements in a
4955         given unit, for use in detecting natural loops.
4957         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
4958         use in detecting natural loops.
4960         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
4961         backwards goto's, and rewrite as a infinite loop, to improve locality
4962         of temporaries.
4964         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
4965         subcomponent that includes an indexed reference, to prevent the
4966         generation of copies that would miscompile the desired assignment
4967         statement.
4968         (Build_Task_Image_Decls): Add a numeric suffix to
4969         generated name for string variable, to avoid spurious conflicts with
4970         the name of the type of a single protected object.
4972         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
4973         loop with an explicit exit statement, to avoid generating an
4974         out-of-range value with 'Succ leading to spurious constraint_errors
4975         when compiling with -gnatVo.
4977 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
4979         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
4980         might not be analyzed yet, even if its Etype is already set (case of an
4981         unchecked conversion built using Unchecked_Convert_To, for example).
4982         If the prefix has already been analyzed, this will be a nop anyway.
4984         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
4985         controller type, or an assignment of a record type with controlled
4986         components, copy only user data, and leave the finalization chain
4987         pointers untouched.
4989 2004-07-15  Vincent Celier  <celier@gnat.com>
4991         * make.adb (Collect_Arguments): Improve error message when attempting
4992         to compile a source not part of any project, when -x is not used.
4994         * prj.ads: (Defined_Variable_Kind): New subtype
4996         * prj-attr.adb (Register_New_Package): Two new procedures to register
4997         a package with or without its attributes.
4998         (Register_New_Attribute): Mew procedure to register a new attribute in a
4999         package.
5000         New attribute oriented subprograms: Attribute_Node_Id_Of,
5001         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
5002         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
5003         Next_Attribute.
5004         New package oriented subprograms: Package_Node_Id_Of,
5005         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
5007         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
5008         type.
5009         (Package_Node_Id): Now a private, self initialized type
5010         (Register_New_Package): New procedure to register a package with its
5011         attributes.
5012         New attribute oriented subprograms: Attribute_Node_Id_Of,
5013         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
5014         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
5015         Next_Attribute.
5016         New package oriented subprograms: Package_Node_Id_Of,
5017         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
5019         * prj-dect.adb (Parse_Attribute_Declaration,
5020         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
5022         * prj-makr.adb (Make): Parse existing project file before creating
5023         other files. Fail if there was an error during parsing.
5025         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
5026         new spec of Prj.Attr.
5028         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
5029         to new spec of Prj.Attr.
5031 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5033         * utils2.c: Fix typo in comment.
5035 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5037         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
5038         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
5040 2004-07-14  Andreas Schwab  <schwab@suse.de>
5042         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
5044 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5046         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
5047         object type.
5048         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
5049         TYPE_STUB_DECL.
5051         * misc.c (gnat_types_compatible_p): New function.
5052         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
5053         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
5055         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
5056         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
5057         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
5058         (mark_visited): Don't mark dummy type.
5059         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
5060         parameter, we must remove any LJM building from GNU_NAME.
5061         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
5062         (pos_to_constructor): Use int_const_binop.
5063         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
5064         PARM_DECL.
5066         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
5067         (gnat_pushlevel): Set TREE_USE on BLOCK node.
5068         (gnat_install_builtins): Add __builtin_memset.
5070 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
5072         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
5073         for a renaming, stabilize the initialization expression if we are at a
5074         local level.  At the local level, uses of the renaming may be performed
5075         by a direct dereference of the initializing expression, and we don't
5076         want possible variables there to be evaluated for every use.
5078         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
5079         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
5080         them on the way.  Account for the fact that we may introduce side
5081         effects in the process.
5083 2004-07-13  Richard Henderson  <rth@redhat.com>
5085         * misc.c (default_pass_by_ref): Use pass_by_reference.
5087 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
5089         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
5090         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
5092 2004-07-08  Richard Henderson  <rth@redhat.com>
5094         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
5095         commentary.
5097 2004-07-06  Vincent Celier  <celier@gnat.com>
5099         * vms_conv.ads: Minor reformatting.
5100         Alphabetical order for enumerated values of type Command_Type, to have
5101         the command in alphabetical order for the usage.
5103         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
5104         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
5106         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
5108         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
5109         (Add_Archive_Path): Only add the global archive if there is one.
5110         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
5111         or not any object file to put in the global archive, and don't build
5112         a global archive if there is none.
5113         (X_Switches): New table
5114         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
5115         in the X_Switches table, if any.
5116         (Initialize): Make sure the X_Switches table is empty
5117         (Scan_Arg): Record -X switches in table X_Switches
5119         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
5121         * make.adb: Minor comment fix
5123         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
5124         invoked with directory information, add the directory in front of the
5125         path.
5127         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
5128         invoked with directory information, add the directory in front of the
5129         path.
5131         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
5132         when Keep_Temporary_Files is False.
5133         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
5134         directory information, add the directory in front of the path.
5135         When not on VMS, handle new switch -dn before the command to set
5136         Keep_Temporary_Files to True.
5137         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
5138         everywhere.
5140         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
5141         invoked with directory information, add the directory in front of the
5142         path.
5144 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
5146         * snames.ads, snames.adb (Name_Stub): New name for the distributed
5147         systems annex.
5149         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
5150         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
5152         * g-socket.adb (To_Timeval): Fix incorrect conversion of
5153         Selector_Duration to Timeval for the case of 0.0.
5155         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
5156         documentation from Evolve_And_Then.
5158 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
5160         * s-taprop-tru64.adb, s-taprop-os2.adb,
5161         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
5163 2004-07-06  Robert Dewar  <dewar@gnat.com>
5165         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
5166         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
5167         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
5168         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
5169         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
5170         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
5171         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
5172         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
5173         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
5174         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
5175         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
5176         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
5177         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
5178         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
5179         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
5180         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
5181         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
5182         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
5183         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
5184         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
5185         vms_data.ads: Minor reformatting,
5186         Fix bad box comment format.
5188         * gnat_rm.texi: Fix minor grammatical error
5190         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
5192         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
5193         more cases of discriminated records to be recognized as not needing a
5194         secondary stack.
5195         (Has_Access_Values): New function.
5197         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
5199         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
5200         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
5201         with LRM terminology).
5202         Change terminology in comments primitive type => elementary type.
5204 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
5206         PR ada/15602
5207         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
5208         parameters do not impose any requirements on the presence of a body.
5210 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
5212         PR ada/15593
5213         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
5214         compilation unit and is in an open scope at the point of instantiation,
5215         assume that a body may be present later.
5217 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
5219         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
5220         Improve error message when specified size is not supported.
5222         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
5223         is never a primitive operation.
5225 2004-07-05  Andreas Schwab  <schwab@suse.de>
5227         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
5228         RECORD_OR_UNION_CHECK.
5229         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
5231 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
5233         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
5234         dependency on xgnatugn, instead build it via a submake.
5235         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
5237 2004-07-04  Richard Henderson  <rth@redhat.com>
5239         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
5241 2004-07-01  Richard Henderson  <rth@redhat.com>
5243         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
5244         * utils.c (max_size): Likewise.
5246 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5248         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
5249         and rest_of_type_compilation; add arg to create_*_decl.
5250         (annotate_decl_with_node): Deleted.
5251         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
5252         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
5253         (get_current_block_context, gnat_pushdecl): New declarations.
5254         (gnat_init_stmt_group): Likewise.
5255         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
5256         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
5257         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
5258         (gnat_init): Call gnat_init_stmt_group.
5259         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
5260         (gnu_pending_elaboration_list): Deleted.
5261         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
5262         (gigi): Rearrange initialization calls and move some to last above.
5263         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
5264         Delete calls to add_decl_expr; add arg to create_*_decl.
5265         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
5266         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
5267         begin_subprog_body and call it.
5268         Don't push and pop ggc context.
5269         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
5270         (add_stmt): Remove handling of DECL_EXPR from here.
5271         If not in function, mark visited.
5272         (add_decl_expr): Put global at top level.
5273         Check for cases of DECL_INITIAL we have to handle here.
5274         (process_type): Add extra arg to create_type_decl.
5275         (build_unit_elab): Rework to just gimplify.
5276         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
5277         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
5278         (get_pending_elaborations, pending_elaborations_p): Likewise.
5279         (push_pending_elaborations, pop_pending_elaborations): Likewise.
5280         (get_elaboration_location, insert_elaboration_list): Likewise.
5281         (gnat_binding_level): Renamed from ada_binding_level.
5282         (init_gnat_to_gnu): Don't clear pending_elaborations.
5283         (global_bindings_p): Treat as global if no current_binding_level.
5284         (set_current_block_context): New function.
5285         (gnat_pushdecl): Renamed from pushdecl; major rework.
5286         All callers changed.
5287         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
5288         (finish_record_type): Call call pushdecl for stub decl.
5289         (function_nesting_depth): Deleted.
5290         (begin_subprog_body): Delete obsolete code.
5291         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
5293 2004-06-28  Robert Dewar  <dewar@gnat.com>
5295         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
5296         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
5297         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
5298         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
5299         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
5301         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
5302         deal with problem of inefficient slices on machines with strict
5303         alignment, when the slice is a component of a composite.
5305         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
5306         machines, we need the check there as well.
5308 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
5310         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
5311         determine safe copying direction for overlapping slice assignments
5312         when component is controlled.
5314         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
5315         formal derived type in the actual for a formal package are visible in
5316         the enclosing instance.
5318 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
5320         PR ada/15600
5321         * sem_util.adb (Trace_Components): Diagnose properly an illegal
5322         circularity involving a private type whose completion includes a
5323         self-referential component.
5324         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
5325         renaming or an instantiation from an implicit derived operation.
5327 2004-06-28  Pascal Obry  <obry@gnat.com>
5329         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
5330         DLL.
5331         (Library_File_Name_For): Idem.
5333 2004-06-28  Matthew Gingell  <gingell@gnat.com>
5335         * g-traceb.ads: Add explanatory note on the format of addresses
5336         expected by addr2line.
5338 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
5340         * Makefile.in: Force debugging information on s-tasdeb.adb,
5341         a-except.adb and s-assert.adb needed by the debugger.
5343 2004-06-28  Vincent Celier  <celier@gnat.com>
5345         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
5346         Need_To_Build_Lib.
5347         (Gnatmake): Ditto.
5349         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
5351         * prj.adb: Minor reformatting
5352         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
5354         * prj.ads: Comment updates
5355         Minor reformatting
5356         (Project_Data): Change Flag1 to Need_To_Build_Lib.
5357         Remove Flag2: not used.
5359         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
5360         declaration.
5362         * gnat_ugn.texi: Put a "null;" declaration in one project file example
5364         * gnat_rm.texi: Document Empty declarations "null;".
5366         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
5367         front of the linker options.
5368         (Link_Foreign): Put the global archives and the libraries in front of
5369         the linker options.
5371 2004-06-28  Javier Miranda  <miranda@gnat.com>
5373         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
5374         (RTU_Loaded): Code cleanup
5375         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
5376         withed predefined units.
5378         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
5379         explicitly withed predefined units.
5380         Fix typo in comment
5382         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
5383         explicitly withed predefined units.
5385 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5387         * ada-tree.def (DECL_STMT): Deleted.
5388         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
5389         (DECL_STMT_VAR): Deleted.
5390         * decl.c: add_decl_stmt now add_decl_expr.
5391         * gigi.h: Likewise.
5392         * trans.c: Likewise.
5393         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
5394         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
5395         (add_stmt): Only handle padded type here.
5396         (add_stmt_with_node): Allow gnat_node to not be present.
5397         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
5398         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
5399         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
5400         make a SAVE_EXPR for the entire fat pointer.
5401         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
5402         (create_index_type): Make a DECL_EXPR.
5403         (end_subprog_body): Don't call allocate_struct_function here but
5404         do clear cfun.
5406 2004-06-25  Pascal Obry  <obry@gnat.com>
5408         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
5409         Relocatable from Build_Dynamic_Library call.
5411         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
5412         Relocatable are now synonym.
5414         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
5416         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
5417         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
5418         call.
5420         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
5421         Lib_Address and Relocatable.
5422         (Default_DLL_Address): Removed.
5424         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
5425         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
5426         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
5427         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
5428         (Default_DLL_Address): Removed.
5430         * mlib-tgt-mingw.adb: Ditto.
5431         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
5433         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
5434         the initial thread stack size.
5436         * a-strmap.ads: Move package L to private part as it is not used in
5437         the spec. Found while reading code.
5439 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
5441         * tracebak.c: Introduce support for a GCC infrastructure based
5442         implementation of __gnat_backtrace.
5444         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
5445         any more. Use accessors instead. This eases maintenance and relaxes
5446         some alignment constraints.
5447         (_GNAT_Exception structure): Remove the Ada specific fields
5448         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
5449         a-exexpr.adb.
5450         (is_handled_by, __gnat_eh_personality): Replace component references to
5451         exception structure by use of the new accessors.
5453         * init.c (__gnat_initialize): Adjust comments to match the just
5454         reverted meaning of the -static link-time option.
5456         * adaint.c (convert_addresses): Arrange not to define a stub for
5457         mips-irix any more, as we now want to rely on a real version from a
5458         recent libaddr2line.
5460         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
5461         the personality routine can use them and not have to rely on a C
5462         counterpart of the record anymore. This simplifies maintenance and
5463         relaxes the constraint of having Standard'Maximum_Alignment match
5464         BIGGEST_ALIGNMENT.
5465         Update comments, and add a section on the common header alignment issue.
5467 2004-06-25  Geert Bosch  <bosch@gnat.com>
5469         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
5470         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
5472 2004-06-25  Robert Dewar  <dewar@gnat.com>
5474         * gnat_rm.texi: Fix section on component clauses to indicate that the
5475         restriction on byte boundary placement still applies for bit packed
5476         arrays.
5477         Add comment on stack usage from Initialize_Scalars
5479         * gnat_ugn.texi: Add documentation for -gnatyLnnn
5481         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
5482         limiting nesting level.
5484         * usage.adb: Add line for -gnatyLnnn switch
5486         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
5487         sem_ch13.adb, exp_aggr.adb: Minor reformatting
5489         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
5490         type as well as on the subtype. This corrects a problem in freeze in
5491         setting alignments of atomic types.
5493         * sem_eval.ads: Minor comment typo fixed
5495         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
5496         level.  Minor reformatting.
5498         * fname.adb (Is_Predefined_File_Name): Require a letter after the
5499         minus sign. This means that file names like a--b.adb will not be
5500         considered predefined.
5502         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
5503         record Test new flag and give diagnostic for bad component clause.
5504         (Freeze_Entity): Set alignment of array from component alignment in
5505         cases where this is safe to do.
5507         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
5508         arrays.
5510         * cstand.adb: (Create_Standard): Set alignment of String to 1
5512         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
5514         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
5515         code in the common constrained array cases.
5517         * a-storio.adb: Change implementation to avoid possible alignment
5518         problems on machines requiring strict alignment (data should be moved
5519         as type Buffer, not type Elmt).
5521         * checks.adb (Apply_Array_Size_Check): Improve these checks by
5522         killing the overflow checks which we really do not need (64-bits is
5523         enough).
5525 2004-06-25  Vincent Celier  <celier@gnat.com>
5527         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
5528         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
5529         inconditionally for the main project.
5530         (Recursive_Add_Archives.Add_Archive_Path): New procedure
5531         (Link_Executables.Check_Time_Stamps): New procedure
5532         (Link_Executables.Link_Foreign): New procedure
5533         Changes made to reduce nesting level of this package
5534         (Check): New procedure
5535         (Add_Switches): When not in quiet output, check that a switch is not
5536         the concatenation of several valid switches. If it is, issue a warning.
5537         (Build_Global_Archive): If the global archive is rebuilt, linking need
5538         to be done.
5539         (Compile_Sources): Rebuilding a library archive does not imply
5540         rebuilding the global archive.
5541         (Build_Global_Archive): New procedure
5542         (Build_Library): New name for Build_Archive, now only for library
5543         project
5544         (Check_Archive_Builder): New procedure
5545         (Create_Global_Archive_Dependency_File): New procedure
5546         (Gprmake): Call Build_Global_Archive before linking
5547         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
5548         throughout.
5549         (Scan_Arg): Display the Copyright notice when -v is used
5551         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
5552         for gnatls.
5554         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
5555         COMPILE.
5556         Add new GNAT LIST qualifier /FILES=
5557         Added qualifier /DIRECTORY= to GNAT METRIC
5558         Added qualifier /FILES= to GNAT METRIC
5559         Added qualifier /FILES to GNAT PRETTY
5561         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
5562         to take into account both versions of the switch.
5564         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
5565         always be the last switch to the gcc driver. Disable switch storing so
5566         that switches automatically added by the gcc driver are not put in the
5567         ALI file.
5569         * prj.adb (Project_Empty): Take into account changes in components of
5570         Project_Data.
5572         * prj.ads (Languages_Processed): New enumaration value All_Languages.
5574         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
5575         used. Split Boolean component Ada_Sources_Present in two Boolean
5576         components Ada_Sources_Present and Other_Sources_Present.
5577         Minor reformatting
5579         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
5580         instead of Sources_Present.
5581         (Set_Ada_Paths.Add.Recursive_Add): Ditto
5583         * prj-nmsc.adb: Minor reformatting
5584         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
5585         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
5586         Check_Ada_Naming_Scheme.
5587         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
5588         throughout.
5590         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
5591         In_Limited.
5592         Make sure that all cycles where there is at least one "limited with"
5593         are detected.
5594         (Parse_Single_Project): New Boolean parameter In_Limited
5596         * prj-proc.adb (Recursive_Check): When Process_Languages is
5597         All_Languages, call first Prj.Nmsc.Ada_Check, then
5598         Prj.Nmsc.Other_Languages_Check.
5600         * prj-proc.adb (Process): Use Ada_Sources_Present or
5601         Other_Sources_Present (instead of Sources_Present) depending on
5602         Process_Languages.
5604         * lang-specs.h: Keep -g and -m switches in the same order, and as the
5605         last switches.
5607         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
5608         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
5609         False.
5610         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
5611         False.
5613         * lib.ads (Disable_Switch_Storing): New procedure.
5615         * make.adb: Modifications to reduce nesting level of this package.
5616         (Check_Standard_Library): New procedure
5617         (Gnatmake.Check_Mains): New procedure
5618         (Gnatmake.Create_Binder_Mapping_File): New procedure
5619         (Compile_Sources.Compile): Add switch -gnatez as the last option
5620         (Display): Never display -gnatez
5622         * Makefile.generic:
5623         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
5625         * gnatcmd.adb (Check_Project): New function
5626         (Process_Link): New procedure to reduce nesting depth
5627         (Check_Files): New procedure to reduce the nesting depth.
5628         For GNAT METRIC, include the inherited sources in extending projects.
5629         (GNATCmd): When GNAT LS is invoked with a project file and no files,
5630         add the list of files from the sources of the project file. If this list
5631         is too long, put it in a temp text files and use switch -files=
5632         (Delete_Temp_Config_Files): Delete the temp text file that contains
5633         a list of source for gnatpp or gnatmetric, if one has been created.
5634         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
5635         in the project file is too large, create a temporary text file that
5636         list them and pass it to the tool with "-files=<temp text file>".
5637         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
5639         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
5640         generated file is in not in Ada.
5642         * gnatls.adb: Remove all parameters And_Save that are no longer used.
5643         (Scan_Ls_Arg): Add processing for -files=
5644         (Usage): Add line for -files=
5646         * g-os_lib.adb (On_Windows): New global constant Boolean flag
5647         (Normalize_Pathname): When on Windows and the path starts with a
5648         directory separator, make sure that the resulting path will start with
5649         a drive letter.
5651         * clean.adb (Clean_Archive): New procedure
5652         (Clean_Project): When there is non-Ada code, delete the global archive,
5653         the archive dependency files, the object files and their dependency
5654         files, if they exist.
5655         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
5657 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
5659         * sinfo.ads: Fix typo in comment.
5661         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
5662         the TSS for remote access-to-subprogram types, since these TSS are
5663         always present once the type has been analyzed.
5664         (RAS_E_Dereference): Same.
5666         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
5667         reference raises Bad_Attribute, mark the reference as analyzed so the
5668         node (and any children resulting from rewrites that could have occurred
5669         during the analysis that ultimately failed) is not analyzed again.
5671         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
5673         * exp_dist.adb: Minor comment fix.
5675         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
5676         type is an anonymous access type, no unchecked deallocation of the
5677         allocated object can occur. If the object is controlled, attach it with
5678         a count of 1. This allows attachment to the Global_Final_List, if
5679         no other relevant list is available.
5680         (Get_Allocator_Final_List): For an anonymous access type that is
5681         the type of a discriminant or record component, the corresponding
5682         finalisation list is the one of the scope of the type.
5684 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
5686         * sem_ch3.adb (Replace_Type): When computing the signature of an
5687         inherited subprogram, use the first subtype if the derived type
5688         declaration has no constraint.
5690         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
5691         before applying previous optimization. Minor code cleanup.
5693         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
5694         placed at the beginning of an unpacked record without explicit
5695         alignment, a slice of it will be aligned and does not need a copy when
5696         used as an actual.
5698 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
5700         PR ada/15591
5701         PR ada/15592
5702         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
5703         reference is written with expressions mimicking parameters.
5705 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
5707         PR ada/15589
5708         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
5709         STEP 2a. The constraints of a full type declaration of a derived record
5710         type are checked for conformance with those declared in the
5711         corresponding private extension declaration. The message
5712         "not conformant with previous declaration" is emitted if an error is
5713         detected.
5715 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
5717         * g-traceb.ads: Document the need for -E binder switch in the spec.
5719         * g-trasym.ads: Document the need for -E binder switch in the spec.
5721 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
5723         * sem_prag.adb: Add handling of pragma Detect_Blocking.
5725         * snames.h, snames.ads, snames.adb: Add entry for pragma
5726         Detect_Blocking.
5728         * s-rident.ads: Change reference to pragma Detect_Blocking.
5730         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
5731         system.ads.
5733         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
5734         to indicate whether pragma Detect_Blocking is active.
5736         * par-prag.adb: Add entry for pragma Detect_Blocking.
5738         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
5739         of not handling WITH.
5740         Note that this replaces the previous update which was incorrect.
5742 2004-06-25  Javier Miranda  <miranda@gnat.com>
5744         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
5745         use-clauses to have a clean environment.
5747         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
5748         the installation of the use-clauses to stablish a clean environment in
5749         case of compilation of a separate unit; otherwise the call to
5750         use_one_package is protected by the barrier Applicable_Use.
5752         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
5753         the installation of the use-clauses to stablish a clean environment in
5754         case of compilation of a separate unit.
5755         (End_Use_Clauses): Minor comment cleanup.
5757 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
5759         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
5761 2004-06-23  Richard Henderson  <rth@redhat.com>
5763         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
5765 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5767         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
5768         now bool instead of int.
5769         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
5770         * trans.c (gnu_switch_label_stack): New function.
5771         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
5772         elaboration of renamed entity returns.
5773         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
5774         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
5775         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
5776         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
5777         DECL_SIZE_UNIT and simplify variable-sized case.
5778         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
5779         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
5780         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
5781         (build_unit_elab): Disable for now.
5782         * utils.c (mark_visited): New function.
5783         (pushdecl): Walk tree to call it for global decl.
5784         (update_pointer_to): Update all variants of pointer and ref types.
5785         Add arg to COMPONENT_REF.
5786         (convert): Likewise.
5787         Move check for converting between variants lower down.
5788         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
5789         (build_allocator): Don't force type of MODIFY_EXPR.
5790         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
5791         put_var_into_stack.
5793 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5795         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
5796         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
5797         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
5798         subprograms.
5799         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
5800         all callers changed.
5801         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
5802         the way that EXIT_STMT finds the loop label.
5803         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
5804         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
5805         (add_stmt): Use annotate_with_locus insted of setting directly.
5806         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
5807         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
5808         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
5809         (build_vms_descriptor): Add extra args to ARRAY_REF.
5810         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
5811         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
5812         New cases.
5813         (build_binary_op): Don't make explicit CONVERT_EXPR.
5814         Add extra rgs to ARRAY_REF.
5816 2004-06-14  Pascal Obry  <obry@gnat.com>
5818         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
5819         Windows.  Fix minor typo.
5821         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
5822         which is now supported on Windows. With this implementation using the
5823         Library Project feature is no different on Windows than on UNIX.
5825 2004-06-14  Vincent Celier  <celier@gnat.com>
5827         * makegpr.adb (Compile_Sources): Nothing to do when there are no
5828         non-Ada sources.
5830         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
5832         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
5833         found, show the project name and the path of the previously parsed
5834         project file.
5836 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
5838         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
5839         array, avoid copying the actual before the call.
5841 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
5843         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
5844         Instead, allocate memory on worst-case alignment assumptions, and then
5845         return an aligned address within the allocated zone.
5847 2004-06-14  Robert Dewar  <dewar@gnat.com>
5849         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
5850         elab entities in predefined units in No_Run_Time_Mode.
5851         (Gen_Adainit_C): Same fix
5852         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
5853         units in No_Run_Time_Mode
5854         (Gen_Elab_Calls_C): Same fix
5856         * symbols-vms-alpha.adb: Minor reformatting
5858         * g-debpoo.ads: Minor reformatting
5860         * lib.adb (In_Same_Extended_Unit): Version working on node id's
5862         * lib.ads (In_Same_Extended_Unit): Version working on node id's
5864         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
5865         working on nodes.
5867         * make.adb: Minor reformatting
5869         * par-ch12.adb: Minor reformatting
5871         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
5873         * prj-strt.adb: Minor reformatting
5875         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
5876         be more general.
5878         * sem_attr.adb: Minor reformatting
5880         * sem_ch7.adb: Minor reformatting
5882         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
5883         for type in the same unit as the object declaration.
5885         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
5886         static string expressions and not just string literals.
5887         Minor reformatting
5888         (Set_Warning): Reset restriction warning flag for restriction pragma
5889         Implement pragma Profile_Warnings
5890         Implement pragma Profile (Restricted)
5891         Give obolescent messages for old restrictions and pragmas
5893         * snames.h, snames.ads, snames.adb: Add new entry for pragma
5894         Profile_Warnings.
5896         * s-rident.ads: Add declarations for restrictions required by profile
5897         Restricted and profile Ravenscar.
5899         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
5901         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
5902         configuration pragmas.
5904 2004-06-11  Vincent Celier  <celier@gnat.com>
5906         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
5907         gnatsym, when symbol policy is Restricted.
5909         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
5910         gnatsym, when symbol policy is Restricted.
5912         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
5913         read the symbol file.
5914         (Finalize): Fail in symbol policy Restricted if a symbol in the original
5915         symbol file is not in the object files. Do not create a new symbol file
5916         when symbol policy is Restricted.
5918         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
5919         in Scng.
5921         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
5922         Restricted.
5923         (Usage): Line for new switch -R
5925         * make.adb (Initialize): When the platform is not VMS, add the
5926         directory where gnatmake is invoked in the front of the path, if
5927         gnatmake is invoked with directory information.  Change the Scan_Args
5928         while loop to a for loop.
5929         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
5930         if Depth is equal or greater than the proposed depth, there is nothing
5931         to do.
5932         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
5933         instead of 0.
5935         * prj.ads: Add new symbol policy Restricted.
5937         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
5938         with the new parameters Check_All_Labels and Case_Location.
5940         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
5941         (Library_Symbol_File needs to be defined).
5943         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
5944         and Case_Location If Check_All_Labels is True, check that all values of
5945         the string type are used, and output warning(s) if they are not.
5947         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
5948         and Case_Location.
5950         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
5952         * gnat_ugn.texi: Update documentation about the library directory in
5953         Library Projects.
5955         * makegpr.adb (Display_Command): In verbose mode, also display the
5956         value of the CPATH env var, when the compiler is gcc.
5957         (Initialize): Change the Scan_Args while loop to a for loop
5958         (Compile_Individual_Sources): Change directory to object directory
5959         before compilations.
5961         * symbols.ads: New symbol policy Restricted.
5963 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
5965         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
5966         is now taken care of internally in the Exception_Propagation package
5967         and does not require clients assistance any more.
5969         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
5970         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
5971         functions. Helpers to maintain a predicate required in the handling of
5972         occurrence transfer between tasks.
5973         This is now handled internally and does not require clients assistance
5974         for the setup/propagate separation anymore.
5975         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
5976         allocation strategy, handle the Setup_And_Not_Propagated predicate and
5977         document.
5979         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
5980         raise_after_setup, now that everything is handled internally within the
5981         setup/propagation engine.
5983 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
5985         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
5986         Add additional conditions for the case of an actual being a simple
5987         name or literal. Improve inlining by preventing the generation
5988         of temporaries with a short lifetime (one use).
5990 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
5992         PR ada/15587
5994         * einfo.ads: Minor comment updates for Has_Completion and
5995         E_Constant list of flags.
5997         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
5998         and constant redeclarations now set the Has_Completion flag of their
5999         defining identifiers.
6001         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
6002         Inspect_Deferred_Constant_Completion.
6003         Used to detect private deferred constants that have not been completed
6004         either by a constant redeclaration or pragma Import. Emits error message
6005         "constant declaration requires initialization expression".
6007         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
6008         completes a deferred constant.
6010 2004-06-11  Geert Bosch  <bosch@gnat.com>
6012         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
6014         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
6015         calculating exponent for scaling denormal numbers.
6016         (Leading_Part): Properly raise Constraint_Error for zero or negative
6017         Adjustment.
6018         (Remainder): Properly raise Constraint_Error for zero divisor.
6020 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
6022         * sem_util.adb: Minor reformatting.
6024         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
6025         dereference when accessing the entry parameter record.
6026         (Check_Array_Type): Always check for possible implicit dereference.
6027         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
6028         Abort if a pointer is still present (denoting that an implicit
6029         dereference was left in the tree by the front-end).
6031         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
6032         dereference when accessing the entry parameter record.
6033         (Check_Array_Type): Always check for possible implicit dereference.
6034         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
6035         Abort if a pointer is still present (denoting that an implicit
6036         dereference was left in the tree by the front-end).
6038 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
6040         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
6041         message, like the compiler itself does. Easier to parse the output.
6043         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
6045         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
6046         be base names, and not includes directories.
6048 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
6050         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
6051         so that dependencies are properly taken into account by make.
6053 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
6055         PR ada/15622
6056         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
6057         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
6059 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
6061         * Makefile.in (install-gnatlib): install target-specific run-time files.
6063         * Make-lang.in: Remove obsolete targets.
6065 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
6067         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
6068         specification, to catch misuses of program unit names.
6070         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
6071         superfluous conversions in an instance.
6073 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
6075         PR ada/15403
6077         * sem_ch12.adb (Save_References): If operator node has been folded to
6078         enumeration literal, associated_node must be discarded.
6080 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
6082         * s-stchop-vxworks.adb: Add required pragma Convention to
6083         Task_Descriptor because it is updated by a C function.
6085 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
6087         PR ada/15568
6089         * Makefile.in: Remove target specific SO_OPT on IRIX
6091 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6093         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
6094         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
6095         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
6096         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
6097         (STMT_STMT, USE_STMT): New statement codes.
6098         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
6099         * ada-tree.h: Reflect above changes.
6100         (struct tree_loop_id): Deleted.
6101         (union lang_tree_node, struct lang_decl, struct lang_type):
6102         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
6103         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
6104         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
6105         (IS_ADA_STMT): New macro.
6106         * decl.c (annotate_decl_with_node): New function.
6107         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
6108         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
6109         Call add_stmt_with_node to do needed assignments.
6110         Add call to update setjmp buffer directly, not via EXPR_STMT.
6111         (maybe_variable): Argment GNAT_NODE deleted.
6112         * gigi.h (maybe_variable): Likewise.
6113         (make_transform, add_stmt_with_node, set_block_for_group): New.
6114         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
6115         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
6116         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
6117         (set_lineno, set_lineno_from_sloc): Likewise.
6118         (record_code_position, insert_code_for): Likewise.
6119         (gnat_poplevel): Now returns void.
6120         (end_subprog_body): Now takes argument.
6121         * misc.c (cgraph.h, tree-inline.h): New includes.
6122         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
6123         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
6124         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
6125         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
6126         (gnat_parse_file): Don't set immediate_size_expand.
6127         Call cgraph functions.
6128         (gnat_expand_expr): Remove most cases.
6129         (record_code_position, insert_code_for): Remove from here.
6130         * trans.c (toplev.h, tree-gimple.h): Now included.
6131         (discard_file_names): Deleted.
6132         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
6133         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
6134         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
6135         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
6136         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
6137         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
6138         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
6139         (set_block_for_group, add_stmt_list): Likewise.
6140         (start_stmt_group): Renamed from start_block_stmt.
6141         (end_stmt_group): Likewise, from end_block_stmt.
6142         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
6143         (gigi): Don't set discard_file_names or call set_lineno.
6144         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
6145         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
6146         Numerous changes throughout to reflect new names and complete
6147         function-at-a-time implementation.
6148         (gnat_expand_stmt): Delete or comment out all cases.
6149         (process_inlined_subprograms): Use add_stmt.
6150         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
6151         call set_lineno; also remove unneeded block handling.
6152         (process_type): Remove unneeded block handling.
6153         (build_unit_elab): Remove calls to deleted functions.
6154         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
6155         (tree-dump.h): Likewise.
6156         (struct ada_binding_level): Add field jmpbuf_decl.
6157         (gnat_define_builtin, gnat_install_builtins): New.
6158         (gnat_gimplify_function, gnat_finalize): Likewise.
6159         (gnat_poplevel): No longer return BLOCK, set it instead.
6160         Remove code dealing with nested functions.
6161         (gnat_init_decl_processing): Also set size_type_node.
6162         Call gnat_install_builtins.
6163         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
6164         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
6165         Remove special-case for "main".
6166         (end_subprog_body): Add arg and rework for tree-ssa.
6167         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
6168         Add case for BOOLEAN_TYPE.
6169         * utils2.c (rtl.h): Now include.
6170         (build_call_raise): Test Debug_Flag_NN directly.
6171         (build_call_alloc_dealloc): Don't use local stack allocation for now.
6172         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
6173         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
6175 2004-06-07  Robert Dewar  <dewar@gnat.com>
6177         * a-direct.ads, einfo.ads: Minor comment updates
6179         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
6180         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
6181         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
6182         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
6183         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
6185         * s-interr-sigaction.adb: Remove unreferenced variable
6186         (Attached_Interrupts).  Minor reformatting.
6187         Avoid use of variable I (replace by J).
6189         * par-ch10.adb: Fix text of one error message
6191         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
6192         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
6193         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
6194         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
6195         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
6196         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
6197         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
6198         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
6199         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
6200         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
6201         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
6202         2005 support.
6204 2004-06-07  Doug Rupp  <rupp@gnat.com>
6206         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
6208         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
6210         * mlib-tgt-vms-ia64.adb: New file.
6212         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
6213         Add mlib-tgt-vms-ia64.adb
6214         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
6215         Move to alpha specific ifeq section.
6216         Add VMS specific versions of symbols.adb
6217         Renaming of 5q vms files.
6219         * 5qsystem.ads renamed to system-vms_64.ads.
6221 2004-06-07  Vincent Celier  <celier@gnat.com>
6223         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
6224         explain that when a time of day corresponding to the non existing hour
6225         on the day switching to DST is specified, Split may return a different
6226         value for Seconds.
6228         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
6229         to GNAT PRETTY.
6231         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
6232         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
6234         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
6235         to False.
6236         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
6237         the linking options.
6238         (Build_Library.Check_Libs): On VMS, if there is a dependency on
6239         g-trasym.ads, set Gtrasymobj_Needed to True.
6241         * prj-attr.adb: Add new package Metrics for gnatmetric
6243         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
6244         canonical case to take into account files with upper case characters on
6245         Windows.
6246         (Ada_Check): Load the reference symbol file name in the name buffer to
6247         check it, not the symbol file name.
6249         * snames.ads, snames.adb: Add standard name Metrics (name of project
6250         file package for gnatmetric).
6252         * vms_conv.ads: Add Metric to Comment_Type
6254         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
6256         * vms_data.ads: Add qualifiers for GNAT METRIC
6258         * makegpr.adb (Link_Executables): Take into account the switches
6259         specified in package Linker of the main project.
6261 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
6263         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
6264         the index of the last element is Units.Last, not Units.Table'Last
6265         (which is usually not a valid index within the actually allocated
6266         storage for the table).
6268         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
6269         determines whether to generate a call to a checked storage pool
6270         Dereference action.
6271         Generate such a call only for a dereference that either comes from
6272         source, or is the result of rewriting a dereference that comes from
6273         source.
6275 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
6277         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
6279 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
6281         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
6282         file level, elaborate the stride for inner dimensions in alignment
6283         units, not bytes.
6285         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
6286         in a comment.
6288 2004-06-07  Javier Miranda  <miranda@gnat.com>
6290         * exp_ch6.adb: Correct wrong modification in previous patch
6292 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
6294         * g-trasym.ads: Corrected comment to properly reflect level of support
6295         on VMS.
6297 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
6299         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
6300         includes case of a variable referenced on the left hand side of an
6301         assignment, therefore remove redundant code. Variables and prefixes of
6302         indexed or selected components are now marked as referenced on left
6303         hand side. Warnings are now properly emitted when variables or prefixes
6304         are assigned but not read.
6306         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
6307         left hand side referenced variables. Private access types do not
6308         produce the warning "variable ... is assigned but never read".
6309         Add also additional checks to left hand side referenced variables.
6310         Aliased, renamed objects and access types do not produce the warning
6311         "variable ... is assigned but never read" since other entities may read
6312         the memory location.
6314 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
6316         * Makefile.in: In the powerpc/vxworks-specific section, restore
6317         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
6318         by mistake).
6320 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
6322         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
6323         predefined operators.
6324         Removes spurious type errors from g-trasym-vms.adb.
6326         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
6327         distinct from the operator appearing in the source, call appropriate
6328         routine to insert conversions when needed, and complete resolution of
6329         node.
6330         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
6331         interpretations for rewritten right operand.
6332         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
6333         the other operand is overloaded and the context is a type conversion.
6335 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6337         * ada-tree.def (BLOCK_STMT): Now has two operands.
6338         (BREAK_STMT): New.
6340         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
6342         * gigi.h: (gnat_poplevel): Now returns a tree.
6344         * trans.c (end_block_stmt): Add arg; all callers changed.
6345         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
6346         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
6347         (add_stmt): Set TREE_TYPE.
6348         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
6349         (gnat_expand_stmt, case BREAK_STMT): New case.
6351         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
6353 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
6355         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
6356         procedure Set_Stack_Size that is not needed.
6358 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
6360         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
6361         used for gnatpp input file and for the files upon which it depends
6363 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
6365         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
6367 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
6369         * gnatvsn.ads: Bump version numbers appropriately.
6370         Add new build type.
6372 2004-06-07  Pascal Obry  <obry@gnat.com>
6374         * gnat_ugn.texi: Improve comments about imported names and link names
6375         on Windows. Add a note about the requirement to use -k gnatdll's option
6376         when working with a DLL which has stripped stdcall symbols (no @nn
6377         suffix).
6379 2004-05-27  Vincent Celier  <celier@gnat.com>
6381         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
6382         COMMENTS_LAYOUT=UNTOUCHED
6384         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
6385         symbols-vms-alpha.adb
6387 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
6389         * sem.ads: Clarify documentation on checks suppression.
6391         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
6393 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
6395         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
6396         the case of multiple derivations.
6397         (Is_Object_Reference): For a selected component, verify that the prefix
6398         is itself an object and not a value.
6400         * sem_ch12.adb (Same_Instantiated_Constant): New name for
6401         Same_Instantiated_Entity.
6402         (Same_Instantiated_Variable): Subsidiary to
6403         Check_Formal_Package_Instance, to recognize actuals for in-out generic
6404         formals that are obtained from a previous formal package.
6405         (Instantiate_Subprogram_Body): Emit proper error when
6406         generating code and the proper body of a stub is missing.
6408         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
6409         has a universal interpretation, do the disambiguation here.
6411         * exp_ch4.adb (Expand_N_Type_Conversion,
6412         Expand_N_Unchecked_Type_Conversion): Special handling when target type
6413         is Address, to avoid typing anomalies when Address is a visible integer
6414         type.
6416         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
6417         to determine whether a subprogram should not be marked Pure, even when
6418         declared in a pure package.
6420 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
6422         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
6424         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
6425         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
6426         Update the documentation about the Ravenscar profile, following the
6427         definition found in AI-249.
6429         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
6430         setting the Profile (Ravenscar). This must be done in addition to
6431         setting the required restrictions.
6433         * rtsfind.ads: Add the set of operations defined in package
6434         Ada.Interrupts.
6436         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
6437         restriction.
6439 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
6441         lang-specs.h: Always require -c or -S and always redirect to /dev/null
6442         if -gnatc or -gnats is passed.
6444 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
6446         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
6447         a significant reference. Warnings are now properly emitted when a
6448         discriminated type is not referenced.
6450         * lib-xref.adb (Generate_Reference): A deferred constant completion,
6451         record representation clause or record type discriminant does not
6452         produce a reference to its corresponding entity. Warnings are now
6453         properly emitted when deferred constants and record types are not
6454         referenced.
6456 2004-05-27  Geert Bosch  <bosch@gnat.com>
6458         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
6459         Fixes ACATS Annex G tests.
6461 2004-05-27  Robert Dewar  <dewar@gnat.com>
6463         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
6464         handling WITH
6466 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
6468         * s-interr.adb (Server_Task): Take into account case of early return
6469         from sigwait under e.g. linux.
6471 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
6473         * gnat_ugn.texi: Add description for the new gnatpp options:
6474          -rnb - replace the original source without creating its backup copy
6475          -c0 - do not format comments
6477 2004-05-24  Geert Bosch  <bosch@gnat.com>
6479         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
6480         with 192 bits of precision, sufficient to reduce a double-extended
6481         arguments X with a maximum relative error of T'Machine_Epsilon, for X
6482         in -2.0**32 .. 2.0**32.
6483         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
6484         reduction by the processor, which only uses a 68-bit approximation of
6485         Pi.
6486         (Tan): Always reduce arguments and compute function either using
6487         the processor's fptan instruction, or by dividing sin and cos as needed.
6489 2004-05-24  Doug Rupp  <rupp@gnat.com>
6491         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
6492         gcc error on 32/64 bit VMS.
6494 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
6496         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
6497         since this is what we get for stack overflows although not documented
6498         as such.
6499         Document the issues which may require adjustments to our signal
6500         handlers.
6502 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
6504         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
6505         enclosing dynamic scope if the instantiation is within a generic unit.
6507 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
6509         * exp_dbug.ads: Fix typo.
6511         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
6512         Rename it to its proper name: system-linux-ia64.ads
6513         (stamp-gnatlib1): Remove extra target specific run time files when
6514         setting up the rts directory.
6516 2004-05-24  Javier Miranda  <miranda@gnat.com>
6518         * einfo.ads, einfo.adb (Limited_Views): Removed.
6519         (Limited_View): New attribute that replaces the previous one. It is
6520         now a bona fide package with the limited-view list through the
6521         first_entity and first_private attributes.
6523         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
6524         limited-private-with clause.
6525         (Install_Limited_Withed_Unit): Install the private declarations of a
6526         limited-private-withed package. Update the installation of the shadow
6527         entities according to the new structure (see Build_Limited_Views)
6528         (Build_Limited_Views): Replace the previous implementation of the
6529         limited view by a package entity that references the first shadow
6530         entity plus the first shadow private entity (required for limited-
6531         private-with clause)
6532         (New_Internal_Shadow_Entity): Code cleanup.
6533         (Remove_Limited_With_Clause): Update the implementation to undo the
6534         new work carried out by Build_Limited_Views.
6535         (Build_Chain): Complete documentation.
6536         Replace Ada0Y by Ada 0Y in comments
6537         Minor reformating
6539         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
6540         types the level of accessibility depends on the enclosing type
6541         declaration.
6543         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
6544         entities. Complete documentation of previous change.
6546 2004-05-24  Robert Dewar  <dewar@gnat.com>
6548         * namet.adb: Minor reformatting
6549         Avoid use of name I (replace by J)
6550         Minor code restructuring
6552         * sem_ch6.adb: Minor reformatting
6554         * lib-writ.adb: Do not set restriction as active if this is a
6555         Restriction_Warning case.
6557         * sem_prag.adb: Reset restriction warning flag if real pragma
6558         restriction encountered.
6560         * s-htable.adb: Minor reformatting
6561         Change rotate count to 3 in Hash (improves hash for small strings)
6563         * 5qsystem.ads: Add comments for type Address (no literals allowed).
6565         * gnat_ugn.texi: Add new section of documentation "Code Generation
6566         Control", which describes the use of -m switches.
6568 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
6570         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
6571         through the DECL_INITIAL for renamed variables.
6573 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
6575         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
6577 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
6579         * exp_dbug.ads: Correct comments concerning handling of overloading,
6580         since we no longer use $ anymore.
6582 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
6584         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
6585         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
6586         with illegal subunits.
6588 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
6590         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
6591         body with front-end inlining enabled, check whether an inline pragma
6592         appears immediately after the body and applies to it.
6594         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
6595         enabled and the pragma appears after the body of the subprogram.
6597 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6599         Part of function-at-a-time conversion
6601         * misc.c (adjust_decl_rtl): Deleted.
6602         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
6603         Define.
6605         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
6606         (add_decl_stmt, add_stmt, block_has_vars): New functions.
6607         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
6609         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
6610         when making a decl.
6611         (gnat_to_gnu_entity): Likewise.
6612         Use add_stmt to update setjmp buffer.
6613         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
6614         flush_addressof.
6615         No longer call adjust_decl_rtl.
6616         (DECL_INIT_BY_ASSIGN_P): New macro.
6617         (DECL_STMT_VAR): Likewise.
6619         * trans.c (gigi): Call start_block_stmt to make the outermost
6620         BLOCK_STMT.
6621         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
6622         Call start_block_stmt and end_block_stmt temporarily.
6623         Use gnat_expand_stmt instead of expand_expr_stmt.
6624         (add_decl_stmt): New function.
6625         (tree_transform): Call it.
6626         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
6627         (end_block_stmt): Set type and NULL_STMT.
6628         (gnat_expand_stmt): Make recursize call instead of calling
6629         expand_expr_stmt.
6630         (gnat_expand_stmt, case DECL_STMT): New case.
6631         (set_lineno_from_sloc): Do nothing if global.
6632         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
6633         (start_block_stmt, add_stmt, end_block_stmt): New functions.
6634         (build_block_stmt): Call them.
6635         (gnat_to_code): Don't expand NULL_STMT.
6636         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
6637         args.
6638         (tree_transform): Likewise.
6639         (tree_transform, case N_Null_Statement): Return NULL_STMT.
6640         (gnat_expand_stmt, case NULL_STMT): New case.
6641         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
6642         IF_STMT_TRUE.
6644         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
6645         TREE_ADDRESSABLE.
6647         * utils.c (create_var_decl): Do not call expand_decl or
6648         expand_decl_init.
6649         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
6650         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
6651         here.
6652         (struct e_stack): Add chain_next to GTY.
6653         (struct binding_level): Deleted.
6654         (struct ada_binding_level): New struct.
6655         (free_block_chain): New.
6656         (global_binding_level, clear_binding_level): Deleted.
6657         (global_bindings_p): Rework to see if no chain.
6658         (kept_level_p, set_block): Deleted.
6659         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
6660         new data structure and work directly on BLOCK node.
6661         (gnat_poplevel): Similarly.
6662         (get_decls): Look at BLOCK_VARS.
6663         (insert_block): Work directly on BLOCK node.
6664         (block_has_var): New function.
6665         (pushdecl): Rework for new binding structures.
6666         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
6667         poplevel.
6668         (build_subprog_body): Likewise.
6669         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
6671         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
6673         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
6674         (DECL_STMT_VAR): Likewise.
6676 2004-05-17  Robert Dewar  <dewar@gnat.com>
6678         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
6679         procedure
6681         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
6682         of restriction synonyums by using
6683         Restrict.Process_Restriction_Synonyms.
6685         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
6687         * s-restri.ads (Tasking_Allowed): Correct missing comment
6689         * s-rident.ads: Add entries for restriction synonyms
6691         * ali.adb: Fix some problems with badly formatted ALI files that can
6692         result in infinite loops.
6694         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
6695         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
6696         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
6697         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
6698         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
6699         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
6700         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
6701         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
6702         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
6703         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
6704         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
6705         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
6706         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
6707         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
6708         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
6709         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
6710         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
6711         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
6712         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
6713         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
6714         to Task_Id (minor cleanup).
6716 2004-05-17  Vincent Celier  <celier@gnat.com>
6718         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
6719         directory separator.
6721         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
6722         project being extended, if Languages is not declared in extending
6723         project.
6725 2004-05-17  Javier Miranda  <miranda@gnat.com>
6727         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
6728         limited view of a visible sibling.
6730 2004-05-14  Robert Dewar  <dewar@gnat.com>
6732         * gnat_ugn.texi: Minor change to -gnatS documentation
6734         * sprint.adb: Remove some instances of Assert (False) and for this
6735         purpose replace them by output of a ??? string.
6737         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
6738         Assert (False).
6740         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
6741         flag processing. This was suppressing required dependencies in
6742         No_Run_Time mode and is not needed since the binder does not generate
6743         references for things in libgnat anyway.
6745         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
6746         warning.
6748 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
6750         * gnat_ugn.texi: Document AIX-specific issue with initialization of
6751         resolver library.
6753         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
6754         action for the case of an actual parameter in an init proc call.
6756 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
6758         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
6759         subtype, check visible entities in base type.
6761         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
6762         actions if the object is a renaming.
6764         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
6765         Check_Formal_Package_Instance, to determine more precisely when the
6766         formal and the actual denote the same entity.
6768 2004-05-14  Javier Miranda  <miranda@gnat.com>
6770         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
6772         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
6773         corresponding to a private_with must be removed from visibility; it
6774         will be made visible later, just before we analyze the private part of
6775         the package.
6776         (Check_Private_Child_Unit): Allow private_with clauses in public
6777         siblings.
6778         (Install_Siblings): Make visible the private entities of private-withed
6779         siblings.
6780         (Install_Withed_Unit): Do not install the private withed unit if we
6781         are compiling a package declaration and the Private_With_OK flag was
6782         not set by the caller. These declarations will be installed later,
6783         just before we analyze the private part of the package.
6785         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
6786         during the evaluation of the expression that initializes the object,
6787         decorate it with the expected type to avoid cascade errors.
6788         Code cleanup.
6790         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
6791         subprogram we have to install the private_with clauses after its
6792         specification has been analyzed (as documented in AI-262.TXT).
6794         * sem_ch8.adb (Has_Private_With): New function. Determines if the
6795         current compilation unit has a private with on a given entity.
6796         (Find_Direct_Name): Detect the Beaujolais problem described in
6797         AI-262.TXT
6799         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
6800         provides the functionality of the function Is_Ancestor that was
6801         previously available in sem_ch10. It has been renamed to avoid
6802         overloading.
6804         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
6806 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6808         * utils.c (build_vms_descriptor): Use SImode pointers.
6810 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
6812         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
6814 2004-05-14  GNAT Script  <nobody@gnat.com>
6816         * Make-lang.in: Makefile automatically updated
6818 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
6820         Renaming of target specific files for clarity
6822         * Makefile.in: Rename GNAT target specific files.
6824         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
6825         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
6826         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
6827         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
6828         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
6829         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
6830         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
6831         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
6832         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
6833         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
6834         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
6835         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
6836         51osinte.adb, 51osinte.ads, 51system.ads,
6837         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
6838         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
6839         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
6840         56tpopsp.adb, 57system.ads, 58system.ads,
6841         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
6842         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
6843         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
6844         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
6845         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
6846         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
6847         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
6848         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
6849         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
6850         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
6851         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
6852         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
6853         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
6854         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
6855         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
6856         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
6857         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
6858         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
6859         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
6860         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
6861         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
6862         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
6863         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
6864         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
6865         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
6866         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
6867         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
6868         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
6869         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
6870         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
6871         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
6872         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
6873         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
6874         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
6875         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
6876         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
6877         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
6878         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
6879         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
6880         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
6882         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
6883         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
6884         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
6885         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
6886         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
6887         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
6888         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
6889         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
6890         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
6891         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
6892         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
6893         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
6894         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
6895         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
6896         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
6897         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
6898         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
6899         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
6900         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
6901         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
6902         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
6903         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
6904         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
6905         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
6906         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
6907         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
6908         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
6909         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
6910         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
6911         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
6912         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
6913         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
6914         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
6915         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
6916         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
6917         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
6918         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
6919         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
6920         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
6921         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
6922         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
6923         s-osinte-vms.ads, s-osinte-vxworks.adb,
6924         s-osinte-vxworks.ads, s-osprim-mingw.adb,
6925         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
6926         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
6927         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
6928         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
6929         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
6930         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
6931         s-stchop-vxworks.adb, s-taprop-dummy.adb,
6932         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
6933         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
6934         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
6935         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
6936         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
6937         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
6938         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
6939         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
6940         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
6941         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
6942         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
6943         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
6944         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
6945         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
6946         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
6947         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
6948         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
6949         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
6950         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
6951         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
6952         system-irix-o32.ads, system-linux-x86_64.ads,
6953         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
6954         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
6955         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
6956         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
6957         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
6958         system-vxworks-mips.ads, system-vxworks-ppc.ads,
6959         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
6960         above.
6962 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
6964         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
6966 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
6968         Merge from tree-ssa-20020619-branch.
6970         * config-lang.in (boot_language, build_by_default): Set
6971         to no.
6972         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
6973         (max_size): Add static chain op for call_expr.
6975 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
6977         PR target/15331
6978         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
6980 2004-05-11  Roger Sayle  <roger@eyesopen.com>
6982         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
6983         COND_EXPR.
6985 2004-05-10  Doug Rupp  <rupp@gnat.com>
6987         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
6988         system.aux_dec.
6990         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
6992         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
6994         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
6995         Fixes undefined symbols in IA64 gnatlib.
6997         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
6999         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
7000         Short_Address). This will be moved to system.auxdec.
7002 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
7004         * sem_util.adb: Replace test for presence of a node that is always
7005         present with a call to Discard_Node.
7007         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
7008         Analyze on the library unit node after generation of distribution stub
7009         constructs.  The call was a no-op because Unit_Node has already been
7010         Analyzed, and the tree fragments for the distribution stubs are
7011         analyzed as they are inserted in Exp_Dist.
7012         Update comment regarding to distribution stubs to reflect that we
7013         do not generate stub in separate files anymore.
7015         * einfo.ads: Clarify the fact that a tagged private type has the
7016         E_Record_Type_With_Private Ekind.
7018         * erroutc.adb: Minor reformatting
7020         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
7021         values if line length is increased using -gnatyM (noticed during code
7022         reading).
7024         * eval_fat.adb: Minor reformatting
7025         Put spaces around exponentiation operator
7027 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
7029         PR ada/15005
7030         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
7031         has been rewritten as an explicit dereference, retrieve type of
7032         original node to check for possibly unconstrained record type.
7034 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
7036         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
7037         overriding, use the operation of the parent unconditionally.
7039         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
7040         operation when either operand is a literal, to avoid further
7041         ambiguities.
7043         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
7044         overridden by a previous explicit declaration, mark the previous entity
7045         as overriding.
7047         * sem_disp.adb (Check_Dispatching_Operation): New predicate
7048         Is_Visibly_Controlled, to determine whether a declaration of a
7049         primitive control operation for a derived type overrides an inherited
7050         one. Add warning if the explicit declaration does not override.
7052 2004-05-10  Vincent Celier  <celier@gnat.com>
7054         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
7055         some cases when the sources are no longer present.
7057         * make.adb (Collect_Arguments): Fail if an external source, not part
7058         of any project need to be compiled, when switch -x has not been
7059         specified.
7061         * makeusg.adb: Document new switch -x
7063         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
7064         defaulted to False.
7066         * switch-m.adb (Scan_Make_Switches): New switch -x
7068         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
7069         gnatmake switch -x.
7071         * gnat_ugn.texi: Document new gnatmake switch -x
7073 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
7075         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
7077         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
7078         (process_attributes): Likewise.
7080 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
7082         * s-inmaop.ads: Fix spelling mistake in one of the comments.
7084 2004-05-10  Robert Dewar  <dewar@gnat.com>
7086         * gnat_ugn.texi: Document that for config pragma files, the maximum
7087         line length is always 32767.
7089         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
7090         literals is now allowed.
7092         * gnat-style.texi: Remove statement about splitting long lines before
7093         an operator rather than after, since we do not follow this rule at all.
7094         Clarify rule (really lack of rule) for spaces around exponentiation
7096         * sem_elim.adb: Allow concatenation of string literals as well as a
7097         single string literal for pragma arguments.
7099         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
7101         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
7102         written for append case.
7104         * frontend.adb: Changes to avoid checking max line length in config
7105         pragma files.
7107         * g-os_lib.ads: Minor reformatting
7109         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
7110         wrong in any case. Instead use standard value. Noticed during code
7111         reading.
7113         * opt.ads (Max_Line_Length): New field, used to implement removal of
7114         limitation on length of lines when scanning config pragma files.
7116         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
7117         makeutl.ads, makeutl.adb: Minor reformatting
7119         * scn.adb: Do not check line length while scanning config pragma files
7120         Do not check line length while scanning out license information
7122         * scng.adb: Changes to avoid line length checks while parsing config
7123         pragma files.
7125 2004-05-10  GNAT Script  <nobody@gnat.com>
7127         * Make-lang.in: Makefile automatically updated
7129 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
7131         * osint.adb (Find_Program_Name): Fix handling of VMS version
7132         number.
7134 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
7136         * g-os_lib.ads (Invalid_Time): New constant
7138         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
7139         return OS_Time instead of time_t to match what is imported by Ada.
7140         Now return -1 if the file doesn't exist, instead of a random value
7142 2004-05-05  Robert Dewar  <dewar@gnat.com>
7144         * usage.adb: Add line for -gnatR?s switch
7146         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
7148         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
7149         and for Match (Data_First, Data_last)
7151         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
7152         written when we are dealing with multi-unit files.
7154 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
7156         * Makefile.in: Remove unused targets and variables.
7158 2004-05-05  Vincent Celier  <celier@gnat.com>
7160         * switch-m.adb: New gnatmake switch -eI
7162         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
7163         of new gnatmake switch -eInnn.
7165         * makegpr.adb: Take into account new parameters Index and Src_Index in
7166         Prj.Util.
7168         * clean.adb: Implement support for multi-unit sources, including new
7169         switch -i.
7171         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
7172         Src_Index.
7174         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
7175         (Extract_From_Q): New out parameter Index
7176         (Mark, Is_Marked): Subprograms moved to Makeutl
7177         (Switches_Of): New parameter Source_Index
7178         (Add_Switch): New parameter Index
7179         (Check): New parameter Source_Index
7180         (Collect_Arguments): New parameter Source_Index
7181         (Collect_Arguments_And_Compile): New parameter Source_Index
7182         (Compile): New parameter Source_Index
7183         Put subprograms in alphabetical order
7184         Add support for multi-source sources, including in project files.
7186         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
7187         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
7188         Make.
7190         * makeusg.adb: New gnatmake switch -eInnn
7192         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
7193         Prj.Util.Value_Of.
7195         * opt.ads (Main_Index): New variable, defaulted to 0.
7197         * osint.ads, osinte.adb (Add_File): New parameter Index
7198         (Current_Source_Index): New function
7200         * prj.adb: Take into account new components Index and Src_Index
7202         * prj.ads (String_Element): New component Index
7203         (Variable_Value): New component Index
7204         (Array_Element): New component Src_Index
7206         * prj-attr.adb: Indicate that optional index may be specified for
7207         attributes Main, Executable, Spec, Body and some of Switches.
7209         * prj-attr.ads (Attribute_Kind): New values for optional indexes
7210         (Attribute_Record): New component Optional_Index
7212         * prj-com.ads (File_Name_Data): New component Index
7214         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
7216         * prj-env.adb (Put): Output optional index
7218         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
7219         attributes Spec and Body.
7221         * prj-nmsc.adb: Process optional indexes
7223         * prj-pp.adb: Ouput "at" for optional indexes
7225         * prj-proc.adb: Take into account optional indexes
7227         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
7228         Optional_Index. For string literal,
7229         process optional index when Optional_Index is True.
7230         (Parse_Expresion): New Boolean parameter Optional_Index
7232         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
7233         (Set_Source_Index_Of): New procedure
7235         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
7236         index.
7238         * prj-util.ads (Executable_Of): New parameter Index
7239         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
7240         New parameter Src_Index, defaulted to 0.
7242 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
7244         PR ada/15257
7245         * sem_ch3.adb (Access_Definition): If this is an access parameter
7246         whose designated type is imported through a limited_with clause, do
7247         not add the enclosing subprogram to the list of private dependents of
7248         the type.
7250 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
7252         PR ada/15258
7253         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
7254         a limited_with clause, and the other is its non-limited view.
7256 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
7258         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
7260         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
7261         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
7262         Stand.Boolean_Literals to produce references to entities
7263         Standard_False and Standard_True from compile-time computed boolean
7264         values.
7266         * stand.ads (Boolean_Literals): New variable, provides the entity
7267         values for False and True, for use by the expander.
7269 2004-05-05  Doug Rupp  <rupp@gnat.com>
7271         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
7272         5vinmaop.adb: Unchecked convert Short_Address vice Address
7274         * adaint.c, raise.c: Caste CRTL function return value
7275         to avoid gcc error on 32/64 bit IVMS.
7277         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
7278         target = IA64/VMS.
7280         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
7282         * 5qsystem.ads (Address): Declare as Long_Integer
7283         (Short_Address): Declare as 32 bit subtype of Address
7284         Declare  abstract address operations to avoid gratuitous ambiguities.
7286 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
7288         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
7289         instead of the old Boolean_Entry_Barriers.
7290         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
7292 2004-05-05  GNAT Script  <nobody@gnat.com>
7294         * Make-lang.in: Makefile automatically updated
7296 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
7298         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
7300 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
7302         PR ada/15152
7304         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
7305         alone. Replacing object references by literals is inappropriate in a
7306         so low level context.
7308 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
7310         * a-exexpr.adb: Add comments
7312 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
7314         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
7315         declare the Ancestor_Tags array in Type_Specific_Data with a small size
7316         without risking a bounds check error when accessing one of its
7317         components.
7318         (Type_Specific_Data): Define Ancestor_Tags as a small array.
7319         This prevents us from hitting a limitation during the debug info
7320         generation when using stabs.
7322         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
7323         small array.
7324         This prevents us from hitting a limitation during the debug info
7325         generation when using stabs.
7327 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
7329         lang-specs.h: Remove -gnatz* from specs.
7331 2004-05-03  Vincent Celier  <celier@gnat.com>
7333         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
7335         * Make-lang.in, Makefile.in: Add gprmake
7337 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
7339         * sem_aggr.adb: Fix typo in comment.
7341 2004-05-03  Robert Dewar  <dewar@gnat.com>
7343         * make.adb: Minor reformatting
7345         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
7347         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
7348         so that it works when address is not a private type.
7350         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
7351         properly with rewritten unchecked conversions. This prevents
7352         order-of-elaboration issues that can otherwise arise.
7353         (Minimum_Size): Don't check size of access types under VMS
7355         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
7356         interpretations of integer literals as type System.Address.
7358         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
7359         (Is_Descendent_Of): New function
7361 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
7363         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
7364         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
7365         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
7367         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
7368         of the old Max_Entry_Queue_Depth.
7370         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
7371         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
7372         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
7374         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
7375         New entry for proper handling of Max_Entry_Queue_Depth.
7376         New entry for proper handling of No_Dynamic_Interrupts.
7378         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
7379         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
7380         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
7381         the GNAT specific restriction Max_Entry_Queue_Depth.
7382         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
7383         the GNAT specific restriction No_Dynamic_Interrupts.
7385         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
7386         instead of the old Boolean_Entry_Barriers.
7387         Use the new restriction No_Dynamic_Attachment instead of the old
7388         No_Dynamic_Interrupts.
7390         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
7391         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
7393         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
7394         of the old Max_Entry_Queue_Depth.
7396 2004-05-03  GNAT Script  <nobody@gnat.com>
7398         * Make-lang.in: Makefile automatically updated
7400 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
7402         * checks.adb (Enable_Range_Check): If the prefix of an index component
7403         is an access to an unconstrained array, perform check unconditionally.
7405 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7407         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
7408         Component_Clause.
7410 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
7412         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
7413         alternate stack setting. There was no support for the tasking cases
7414         and the changes eventually caused a number of side-effect failures in
7415         the non-tasking case too.
7417 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
7419         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
7420         -gnats is passed.
7422 2004-04-29  Vincent Celier  <celier@gnat.com>
7424         * make.adb (Gnatmake): Increase max size of argument array for
7425         gnatbind for the potential addition of -F.
7426         If there are Stand-Alone Library projects, invoke gnatbind with -F to
7427         be sure that elaboration flags will be checked.
7429         * switch-c.adb: Correct call to Scan_Pos for -gnateI
7431 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
7433         * sem_warn.adb (Check_References): Move '<access-variable> may be
7434         null' warning out of under Warn_On_No_Value_Assigned.
7436 2004-04-29  Ed Falis  <falis@gnat.com>
7438         * gnat_ugn.texi: Fixed texi error
7440 2004-04-29  Robert Dewar  <dewar@gnat.com>
7442         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
7443         abstract operations if they come from predefined files.
7445         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
7446         Dynamic, not RM).
7448         * s-addope.adb: Correct obvious error in mod function
7450 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
7452         * Makefile.in: Add target pairs for powerpc darwin*
7453         tasking support.
7455         * a-intnam-darwin.ads, s-osinte-darwin.adb,
7456         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
7458 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
7460         * Makefile.in: Add target macro definitions for s390*-linux*.
7461         * system-linux-s390.ads: New file.
7462         * system-linux-s390x.ads: New file.
7464 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
7466         * gnat_ugn.texi: Correct argument to @setfilename.
7468 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
7470         * a-exexpr.adb (Unwind_Word): New data type.
7471         (Unwind_Exception): Use it as type of Private1 and Private2.
7473         * raise.c (db_action_for): Fix debug printf.
7475 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
7477         * a-wtmoio.ads: Formal type must be a modular type, not a signed
7478         integer type.
7480 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7482         * decl.c (gnat_to_gnu_entity, case object): Call
7483         __builtin_update_setjmp_buf.
7485         * gigi.h (update_setjmp_buf): Deleted.
7486         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
7488         * misc.c: (update_setjmp_buf): Deleted.
7490         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
7491         around block of RTL.
7493         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
7495 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
7497         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
7498         subprogram for which no pragma All_Calls_Remote applies, store the
7499         address of the real subprogram in the underlying record type, so local
7500         dereferences do not go through the PCS.
7502 2004-04-26  Robert Dewar  <dewar@gnat.com>
7504         * i-c.ads: Add some type qualifications to avoid ambiguities when
7505         compiling with s-auxdec.ads and a non-private address type.
7507 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
7509         * Makefile.rtl: Fix error in previous check-in:
7510         Add s-addope.o to non tasking object list (rather than tasking object
7511         list).
7513 2004-04-26  Javier Miranda  <miranda@gnat.com>
7515         * sem_aggr.adb: Fix typo in comments
7516         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
7517         Required to check the null-exclusion attribute.
7519         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
7520         case of anonymous access types in record and array components. For a
7521         component definition the level is the same of the enclosing composite
7522         type.
7524         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
7525         that are anonymous access types the level of accessibility depends on
7526         the enclosing type declaration. In order to have this information, set
7527         the scope of the anonymous access type to the enclosing record type
7528         declaration.
7529         (Array_Type_Declaration): In case of components that are anonymous
7530         access types the level of accessibility depends on the enclosing type
7531         declaration. In order to have this information, set the scope of the
7532         anonymous access type to the enclosing array type declaration.
7534         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
7535         access type.
7537         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
7538         renaming of anonymous access-to-constant types allowed if and only if
7539         the renamed object is access-to-constant.
7541         * sem_util.adb (Type_Access_Level): In case of anonymous access types
7542         that are component_definition or discriminants of a nonlimited type,
7543         the level is the same as that of the enclosing component type.
7545 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
7547         * sem_elim.adb: Some minor code reorganization from code reading. Fix
7548         misprint in the function name (File_Name_Match).
7550 2004-04-23  Laurent GUERBY <laurent@guerby.net>
7552         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
7553         install.
7555 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7557         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
7559 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
7561         * adaint.c (__gnat_try_lock): No longer requires that the parent
7562         directory be writable, the directory itself is enough.
7563         (gnat_is_absolute_path): Change profile, so that the call from
7564         GNAT.OS_Lib can be made more efficient.
7566         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
7567         from GNAT.OS_Lib can be made more efficient.
7569         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
7570         one copy of the file name. Found by code reading.
7572 2004-04-23  Vincent Celier  <celier@gnat.com>
7574         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
7575         Correct documentation on gnatmake switches transmitted to the compiler
7577         * ali.ads: Minor comment fix
7579 2004-04-23  Javier Miranda  <miranda@gnat.com>
7581         * sem_ch6.adb: (Confirming Types): Code cleanup
7583         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
7584         subprogram types: E_Anonymous_Access_Subprogram_Type and
7585         E_Anonymous_Access_Protected_Subprogram_Type.
7587 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
7589         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
7590         whether a pragma All_Calls_Remote applies to the subprogram on which
7591         'Access is taken.
7592         No functional change is introduced by this revision; the new parameter
7593         will be used to allow calls to local RCI subprograms to be optimized
7594         to not use the PCS in the case where no pragma All_Calls_Remote applies,
7595         as is already done in the PolyORB implementation of the DSA.
7597         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
7598         whether a pragma All_Calls_Remote applies to the subprogram on which
7599         'Access is taken.
7600         No functional change is introduced by this revision; the new parameter
7601         will be used to allow calls to local RCI subprograms to be optimized
7602         to not use the PCS in the case where no pragma All_Calls_Remote applies,
7603         as is already done in the PolyORB implementation of the DSA.
7605 2004-04-23  Robert Dewar  <dewar@gnat.com>
7607         * Makefile.rtl: Add entry for s-addope.o in run time library list
7608         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
7609         * s-addope.ads, s-addope.adb: New files.
7611         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
7612         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
7613         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
7614         System.Address to be non-private and signed.
7616         * sem_elim.adb: Minor reformatting (fairly extensive)
7617         Some minor code reorganization from code reading
7618         Add a couple of ??? comments
7620 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7622         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
7623         (tree_transform, case N_If_Statement): Remove non-determinism.
7625         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
7627 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
7629         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
7630         Eliminate' section.
7632         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
7633         no longer used as a parameter name for Eliminate pragma).
7635 2004-04-22  Laurent GUERBY <laurent@guerby.net>
7637         PR optimization/14984
7638         PR optimization/14985
7639         * trans.c (gigi): Fix non determinism leading to bootstrap
7640         comparison failures.
7642 2004-04-21  Pascal Obry  <obry@gnat.com>
7644         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
7645         passed to spawnvp() to properly handle program pathname with spaces on
7646         Win32.
7648 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
7650         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
7651         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
7652         unlocked in case of exceptions.
7654 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
7656         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
7657         This function does not exist anymore.
7659 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
7661         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
7663         * link.c: Move variables to the __gnat name space.
7665         * Makefile.in: list link.o explicitly when needed.
7667         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
7669 2004-04-21  Javier Miranda  <miranda@gnat.com>
7671         * einfo.adb (Original_Access_Type): New subprogram
7672         (Set_Original_Access_Type): New subprogram
7673         (Write_Field21_Name): Write the name of the new field
7675         * einfo.ads (Original_Access_Type): New field present in access to
7676         subprogram types.
7677         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
7678         E_Anonymous_Access_Protected_Subprogram_Type.
7680         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
7681         subprogram types.
7683         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
7684         to anonymous access to subprogram types.
7686         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
7687         to subprogram types.
7689         * sem_ch3.adb (Access_Definition): Complete decoration of entities
7690         corresponding to anonymous access to subprogram types.
7691         (Analyze_Component_Declaration): Add new actual to the call to
7692         subprogram replace_anonymous_access_to_protected_subprogram.
7693         (Array_Type_Declaration): Add new actual to the call to subprogram
7694         replace_anonymous_access_to_protected_subprogram.
7695         (Process_Discriminants): Add new actual to the call to subprogram
7696         replace_anonymous_access_to_protected_subprogram.
7697         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
7699         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
7700         formal.
7702         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
7703         access to subprogram types.
7705         * sem_util.adb (Has_Declarations): Addition of package_specification
7706         nodes.
7708 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
7710         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
7711         inlined flags to renamed entity only if in current unit.
7713 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
7715         * s-parint.ads: Add DSA implementation marker.
7717         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
7718         value of System.Partition_Interface.DSA_Implementation to determine
7719         what version of the distributed systems annex is available (no
7720         implementation, GLADE, or PolyORB).
7722 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
7724         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
7726 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7728         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
7729         with new type if alias sets differ.
7730         Fixes ACATS c41103b.
7732 2004-04-21  Vincent Celier  <celier@gnat.com>
7734         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
7735         Add array Lang_Args for the language specific compiling argument
7736         switches.
7738         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
7740 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
7742         * gnat_rm.texi: Update the descripton of the Eliminate pragma
7743         according to the recent changes in the format of the parameters of the
7744         pragma (replacing Homonym_Number with Source_Location).
7746 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
7748         * 5isystem.ads: Removed, unused.
7750         * gnat_rm.texi: Redo 1.13 change.
7752 2004-04-19  Robert Dewar  <dewar@gnat.com>
7754         * s-stoele.ads: Clean up definition of Storage_Offset (the new
7755         definition is cleaner, avoids the kludge of explicit Standard operator
7756         references, and also is consistent with a visible System.Address with
7757         no visible operations.
7759         * s-geveop.adb: Add declarations to avoid assumption of visible
7760         operations on type System.Address (since these might not be available
7761         if Address is a non-private type for which the operations
7762         are made abstract).
7764         * sem_eval.adb: Minor reformatting
7766         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
7767         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
7768         reformatting (new function spec format).
7770         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
7771         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
7772         s-caun64.adb: Add declarations to avoid assumption of visible
7773         operations on type System.Address (since these might not be available
7774         if Address is a non-private type for which the operations are made
7775         abstract).
7777         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
7779         * exp_intr.adb: Minor comment update
7781         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
7783         * 5omastop.adb: Add declarations to avoid assumption of visible
7784         operations on type System.Address (since these might not be available
7785         if Address is a non-private type for which the operations
7786         are made abstract).
7788 2004-04-19  Vincent Celier  <celier@gnat.com>
7790         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
7792         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
7793         defaulted to Ada.
7795         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
7796         defaulted to Ada.
7797         Call Check with Process_Languages.
7798         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
7799         with Process_Languages.
7800         (Recursive_Check): New Boolean parameter Process_Languages. Call
7801         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
7802         Process_Languages.
7804         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
7806         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
7807         parameter Ada_Main, defaulted to True.
7808         Check for Ada specific characteristics only when Ada_Main is True.
7810         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
7812         * prj.adb: (Project_Empty): Add new Project_Data components.
7814         * prj.ads: New types and tables for non Ada languages.
7815         (Project_Data): New components Languages, Impl_Suffixes,
7816         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
7817         Include_Path, Include_Data_Set.
7819         * prj-env.ads, prj-env.adb: Minor reformatting
7821         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
7822         Put subprograms in alphabetical order
7824         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
7825         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
7826         Opt.Follow_Links.
7828         * mlib-prj.adb: Back out modification in last version, as they are
7829         incorrect.
7830         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
7832         * make.adb: (Mains): Moved to package Makeutl
7833         (Linker_Opts): Moved to package Makeutl
7834         (Is_External_Assignment): Moved to package Makeutl
7835         (Test_If_Relative_Path): Moved to package Makeutl
7836         (Gnatmake): Move sorting of linker options to function
7837         Makeutl.Linker_Options_Switches.
7839         * makeutl.ads, makeutl.adb: New files.
7841         * Makefile.in: Add makeutl.o to the object files for gnatmake
7843         * makeusg.adb: Add line for new switch -eL.
7845         * gnatls.adb (Image): New function.
7846         (Output_Unit): If in verbose mode, output the list of restrictions
7847         specified by pragmas Restrictions.
7849         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
7850         Text_IO.
7852         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
7853         needed, to put it in the range 1970 (included) - 2026 (excluded).
7854         (Time_Of): Do not shift Unix_Min_Year (1970).
7855         Shift the date by multiple of 56 years, if needed, to put it in the
7856         range 1970 (included) - 2026 (excluded).
7858         * adaint.h, adaint.c (__gnat_set_executable): New function.
7860 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7862         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
7863         and pop GC context.
7864         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
7865         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
7866         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
7867         (tree_transform, case N_Code_Statement): Likewise.
7868         (gnat_expand_stmt, case LABEL_STMT): Don't look at
7869         LABEL_STMT_FIRST_IN_EH.
7870         (gnat_expand_stmt, case ASM_STMT): New case.
7872         * utils2.c (build_unary_op): Properly set TREE_READONLY of
7873         UNCONSTRAINED_ARRAY_REF.
7875         * utils.c (poplevel): Temporarily push/pop GC context around inline
7876         function expansion.
7878         * decl.c (maybe_variable): Properly set TREE_READONLY of
7879         UNCONSTRAINED_ARRAY_REF.
7880         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
7882         * ada-tree.def: (ASM_STMT): New.
7884         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
7885         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
7886         ASM_STMT_INPUT): New.
7887         (ASM_STMT_CLOBBER): Likewise.
7889 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
7891         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
7892         general rcheck mechanism to raise Program_Error for E.4(18), instead
7893         of a custom raiser in System.Partition_Interface.
7894         Part of general cleanup work before PolyORB integration.
7896         * snames.ads, snames.adb: Add new runtime library entities and names
7897         for PolyORB DSA.
7899         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
7900         exp_dist.
7901         (Build_Subprogram_Id): New subprogram provided by exp_dist
7902         Code reorganisation in preparation for PolyORB integration.
7904         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
7905         exp_dist.
7906         (Build_Subprogram_Id): New subprogram provided by exp_dist
7908         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
7909         actual parameter types for call to dereference of an
7910         access-to-subprogram type.
7912         * rtsfind.ads: Add new runtime library entities and names for PolyORB
7913         DSA.
7915         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
7916         instead, which has the same behaviour here since we never pass it a
7917         NULL pointer.
7919         * link.c (run_path_option, Solaris case): Use -Wl, as for other
7920         platforms.
7922         * Makefile.in: adjust object file lists for gnatlink and gnatmake
7923         to account for new dependency upon Interfaces.C.Strings + link.o
7924         For x86 FreeBSD, use 86numaux.
7926         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
7927         from Mlib.Tgt to Mlib.
7929         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
7930         target-independent.
7932         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
7933         target-specific versions of this subprogram, now implemented as a
7934         target-independent function in Mlib.
7936         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
7937         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
7938         (Linker_Library_Path_Option): Remove target-specific versions of this
7939         subprogram, now implemented as a target-independent function in Mlib.
7941         * atree.adb: (Allocate_Initialize_Node): New subprogram.
7942         Factors out node table slots allocation.
7943         (Fix_Parents): New subprogram.
7944         Encapsulate the pattern of fixing up parent pointers for syntactic
7945         children of a rewritten node.
7946         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
7947         (Rewrite): Use New_Copy when creating saved copy of original node.
7948         (Replace): Use Copy_Node to copy nodes.
7950 2004-04-19  Javier Miranda  <miranda@gnat.com>
7952         * sprint.adb (Sprint_Node_Actual): Give support to the new
7953         Access_To_Subprogram node available in Access_Definition nodes. In
7954         addition, give support to the AI-231 node fields: null-exclusion,
7955         all-present, constant-present.
7957         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
7959         * sinfo.ads, sinfo.adb:
7960         New field Access_To_Subprogram_Definition in Access_Definition nodes
7962         * sem_ch6.adb (Process_Formals): Move here the code that creates and
7963         decorates internal subtype declaration corresponding to the
7964         null-excluding formal. This code was previously in Set_Actual_Subtypes.
7965         In addition, carry out some code cleanup on this code. In case of
7966         access to protected subprogram call
7967         Replace_Anonymous_Access_To_Protected_Subprogram.
7968         (Set_Actual_Subtypes): Code cleanup.
7970         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
7971         Find_Type in case of anonymous access renamings. Add warning in case of
7972         null-excluding attribute used in anonymous access renaming.
7974         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
7975         subprogram
7977         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
7978         subprogram.
7979         (Access_Definition): In case of anonymous access to subprograms call
7980         the corresponding semantic routine to decorate the node.
7981         (Access_Subprogram_Declaration): Addition of some comments indicating
7982         some code that probably should be added here. Detected by comparison
7983         with the access_definition subprogram.
7984         (Analyze_Component_Declaration): In case of access to protected
7985         subprogram call Replace_Anonymous_Access_To_Protected.
7986         (Array_Type_Declaration): In case of access to protected subprogram call
7987         Replace_Anonymous_Access_To_Protected_Subprogram.
7988         (Process_Discriminants): In case of access to protected subprogram call
7989         Replace_Anonymous_Access_To_Protected_Subprogram.
7991         * par.adb (P_Access_Definition): New formal that indicates if the
7992         null-exclusion part was present.
7993         (P_Access_Type_Definition): New formal that indicates if the caller has
7994         already parsed the null-excluding part.
7996         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
7997         (P_Identifier_Declarations): Code cleanup and give support to renamings
7998         of anonymous access to subprogram types.
7999         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
8000         (P_Array_Type_Definition): Give support to AI-254.
8001         (P_Component_Items): Give support to AI-254.
8002         (P_Access_Definition): New formal that indicates if the header was
8003         already parsed by the caller.
8004         (P_Access_Type_Definition): New formal that indicates if the caller has
8005         already parsed the null-excluding part.
8007         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
8008         call to P_Access_Definition.
8010 2004-04-19  Geert Bosch  <bosch@gnat.com>
8012         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
8013         the delicate semantics of floating-point to integer conversion.
8014         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
8016         * eval_fat.adb (Machine_Mantissa): Moved to spec.
8017         (Machine_Radix): New function.
8019         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
8020         conversion checks.
8021         (Machine_Radix): New function also for use in conversion checks.
8023 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
8025         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
8027         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
8028         to decorate the access-to-protected subprogram and the equivalent type.
8030         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
8031         to anonymous access to subprogram types.
8033         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
8034         constant-folding, for legality checks in contexts that require an RM
8035         static expression.
8037         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
8038         temporary but stack checking is not enabled, increment serial number
8039         to so that symbol generation is consistent with and without stack
8040         checking.
8042         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
8043         independent on whether stack checking is enabled, caller must check
8044         the corresponding flag.
8046         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
8047         range checks.
8048         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
8049         parent if it has discriminants.
8050         (Build_Derived_Private_Type): Constructed full view does
8051         not come from source.
8052         (Process_Discriminants): Default discriminants on a tagged type are
8053         legal if this is the internal completion of a private untagged
8054         derivation.
8056         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
8057         no constraint checks, because it corresponds to an existing object.
8059         * sem_prag.adb (Process_Convention): Pragma applies
8060         only to subprograms in the same declarative part, i.e. the same unit,
8061         not the same scope.
8063         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
8064         ignore type mismatch on a numeric conversion if expression comes from
8065         expansion.
8067 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
8069         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
8070         Homonym_Number parameter, add processing for Source_Location parameter
8071         corresponding.
8072         (Check_Eliminated): Remove the check for homonym numbers, add the check
8073         for source location traces.
8075         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
8076         with Arg_Source_Location corresponding to the changes in the format of
8077         the pragma.
8079         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
8080         Eliminate pragma corresponding to the changes in the format of the
8081         pragma: Homonym_Number is replaced with Source_Location, two ways of
8082         distinguishing homonyms are mutially-exclusive.
8084 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
8086         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
8088         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
8089         No_Dollar_In_Label, no longer necessary, as it is always True.
8090         (Strip_Suffixes): Likewise.
8092 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
8094         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
8095         modulus for compatibility with size clause on targets with 16-bit
8096         Integer.
8098         * layout.adb (Discrimify): In the case of private types, set Vtyp to
8099         full type to fix type mismatches on calls to size functions for
8100         discriminant-dependent array components.
8102 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
8104         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
8105         lib.
8107 2004-04-19  Pascal Obry  <obry@gnat.com>
8109         * mdll-utl.adb (Locate): New version is idempotent.
8111 2004-04-17  Laurent Guerby <laurent@guerby.net>
8113         PR ada/14988 (partial)
8114         * impunit.adb: Fix typo.
8116 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
8118         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
8119         and install-rts-cert targets.  Remove all gnatlib and gnattools
8120         targets and all other rts-* targets (moved to libada).  Remove (now)
8121         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
8122         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
8124 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8126         * trans.c (tree_transform): Shortcut returning error_mark_node for
8127         statements in annotate_only_mode.
8128         (tree_transform, case N_Label, case N_Return_Statement,
8129         N_Goto_Statement): Make statement tree instead of generating code.
8130         (tree_transform, case N_Assignment_Statement): No longer check
8131         type_annotate_only.
8132         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
8133         RETURN_STMT): New.
8134         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
8135         New fcns.
8136         (gnat_to_gnu): Collect any RTL generated and deal with it.
8137         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
8138         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
8139         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
8141         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
8143         * ada-tree.def (EXPR_STMT): Fix typo in name.
8144         (BLOCK_STMT, IF_STMT): New nodes.
8146         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
8147         LABEL_STMT_FIRST_IN_EH): New macros.
8148         (RETURN_STMT_EXPR): Likewise.
8150         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
8151         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
8153 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
8155         * atree.ads: Correct documentation on extended nodes.
8157         * link.c: Set run_path_option for FreeBSD.
8159 2004-04-08  Vincent Celier  <celier@gnat.com>
8161         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
8162         one of the ALI file, do not link with DEC lib.
8164         * par.adb Remove the last two characters ("%s" or "%b") when checking
8165         if a language defined unit may be recompiled.
8167 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
8169         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
8170         removal of abstract operation leaves no possible interpretation for
8171         expression.
8173         * sem_eval.adb (Eval_Qualified_Expression): Use
8174         Set_Raises_Constraint_Error on node when needed, so that it does not
8175         get optimized away by subsequent optimizations.
8177         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
8178         operands even when they are not wrapped in a type conversion.
8180 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
8182         * sem_prag.adb (Set_Exported): Warn about making static as result of
8183         export only when the export is coming from source. This may be not
8184         be true e.g. on VMS where we expand export pragmas for exception codes
8185         together with imported or exported exceptions, and we don't want the
8186         user to be warned about something he didn't write.
8188 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
8190         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
8191         duplication between normal entities and those declared as renamings.
8192         No functional change.
8194         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
8195         inline functions returning an unconstrained result.
8197 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
8199         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
8200         conform to what other front-ends do.
8202 2004-04-08  Doug Rupp  <rupp@gnat.com>
8204         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
8205         libraries.
8207 2004-04-06  Pascal Obry  <obry@gnat.com>
8209         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
8211         * osint.adb (Program_Name): Do not look past a directory separator.
8213 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
8215         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
8217         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
8218         requirement for preserving a copy of the original assignment node.
8220         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
8222 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
8224         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
8225         when supported.
8227 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
8229         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
8230         operator calls in functional notation, and apply
8231         Universal_Interpretation to operands, not to their type.
8233 2004-04-06  Robert Dewar  <dewar@gnat.com>
8235         * 5wdirval.adb: Minor reformatting
8237 2004-04-06  Ed Falis  <falis@gnat.com>
8239         * gnat_rm.texi: Improve a reference to the GCC manual
8241 2004-04-05  Vincent Celier  <celier@gnat.com>
8243         * adaint.h, adaint.c: Add function __gnat_named_file_length
8245         * impunit.adb: Add Ada.Directories to the list
8247         * Makefile.in: Add VMS and Windows versions of
8248         Ada.Directories.Validity package body.
8250         * Makefile.rtl: Add a-direct and a-dirval
8252         * mlib-tgt.ads: Minor comment update.
8254         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
8255         a-direct.ads, a-direct.adb: New files.
8257 2004-04-05  Vincent Celier  <celier@gnat.com>
8259         PR ada/13620
8260         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
8261         just to the compiler.
8263 2004-04-05  Robert Dewar  <dewar@gnat.com>
8265         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
8266         returned string is 1.
8268         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
8270         * eval_fat.ads: Minor reformatting
8272         * g-curexc.ads: Document that lower bound of returned string values
8273         is always one.
8275         * gnatlink.adb: Add ??? comment for previous change
8276         (need to document why this is VMS specific)
8278         * s-stoele.ads: Minor reformatting
8280         * tbuild.ads: Minor reformatting throughout (new function specs)
8282         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
8283         after WITH.
8285         * scng.adb: Minor reformatting
8287 2004-04-05  Geert Bosch  <bosch@gnat.com>
8289         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
8290         (Leading_Part): Still perform truncation to machine number if the
8291         specified radix_digits is greater or equal to machine_mantissa.
8293 2004-04-05  Javier Miranda  <miranda@gnat.com>
8295         * par-ch3.adb: Complete documentation of previous change
8296         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
8297         (aliased must appear before constant).
8299         * par-ch4.adb: Complete documentation of previous change.
8301         * par-ch6.adb: Complete documentation of previous change.
8303         * sinfo.ads: Fix typo in commment.
8305 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
8307         * sem_ch3.adb (Inherit_Components): If derived type is private and has
8308         stored discriminants, use its discriminants to constrain parent type,
8309         as is done for non-private derived record types.
8311         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
8312         Ada 2005 AI-310: an abstract non-dispatching operation is not a
8313         candidate interpretation in an overloaded call.
8315         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
8316         expression is Null and target type is not an access type (e.g. a
8317         non-private address type).
8319 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
8321         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
8322         statement whose right-hand side is an inlined call, save a copy of the
8323         original assignment subtree to preserve enough consistency for
8324         Analyze_Assignment to proceed.
8326         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
8327         complete assignment subtree which is now unnecessary, as the expansion
8328         of inlined call has been improved to preserve a consistent assignment
8329         tree.  Note_Possible_Modification must be called only
8330         after checks have been applied, or else unnecessary checks will
8331         be generated.
8333         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
8334         of explicit dereferences that do not Come_From_Source:
8335          - be selective on cases where we must go back to the dereferenced
8336            pointer (an assignment to an implicit dereference must not be
8337            recorded as modifying the pointer);
8338          - do not rely on Original_Node being present (Analyze_Assignment
8339            calls Note_Possible_Modification on a copied tree).
8341         * sem_warn.adb (Check_References): When an unset reference to a pointer
8342         that is never assigned is encountered, prefer '<pointer> may be null'
8343         warning over '<pointer> is never assigned a value'.
8345 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
8347         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
8348         the ABI.
8350 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
8352         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
8353         libexc. We currently don't reference anything in this library and
8354         linking it in triggers linker warnings we don't want to see.
8356         * init.c: Update comments.
8358 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8360         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
8361         * utils.c (create_field_decl): Likewise.
8362         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
8364 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
8366         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
8367         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
8368         Add info directory entry and category.
8370 2004-04-02  Jan Hubicka  <jh@suse.cz>
8372         * utils.c: Include function.h
8373         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
8375 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
8377         PR ada/14150
8378         * Make-lang.in: Clean up generation of documentation
8380         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
8382         * xgnatug.adb: Removed, replaced by xgnatugn.adb
8384         * xgnatugn.adb: Replaces xgnatug.adb
8386         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
8388         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
8390         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
8391         gnat_ug_wnt.texi: Removed.
8393 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
8395         * utils2.c: Update copyright notice.
8397 2004-04-01  Robert Dewar  <dewar@gnat.com>
8399         * checks.adb: Minor reformatting throughout
8400         Note that prev checkin added RM reference to alignment warning
8402 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
8404         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
8405         non-static when building aggregate for bit-packed array.
8407         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
8408         function call that is itself the actual in a procedure call, build
8409         temporary for it.
8411         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
8412         a string literal, create a temporary for it, constant folding only
8413         handles scalars here.
8415 2004-04-01  Vincent Celier  <celier@gnat.com>
8417         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
8418         Error_Msg_SP): New empty procedures to instantiate the Scanner.
8419         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
8420         tokens.
8421         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
8422         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
8423         and get the checksum.
8425         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
8426         already in the Q.
8427         Increase the Marking_Label at the end of the Multiple_Main_Loop,
8428         instead of at the beginning.
8430         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
8431         directly.
8432         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
8433         on VMS.
8435         * osint.ads (Multi_Unit_Index_Character): New Character global variable
8437         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
8438         not '~' directly.
8440         * par.adb: Remove test on file name to detect language defined units.
8441         Add test on unit name, after parsing, to detect language defined units
8442         that are not compiled with -gnatg (except System.RPC and its children)
8444         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
8445         following units without style checking.
8447         * switch-c.adb: Change -gnatC to -gnateI
8449         * usage.adb: Document new switch -gnateInnn
8451         * scng.adb (Accumulate_Token_Checksum): New procedure
8452         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
8453         word or literal number.
8454         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
8455         numbers.
8457 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
8459         * a-tasatt.adb,
8460         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
8461         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
8462         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
8463         5vtpopde.adb: Add missing 'constant' keywords.
8465 2004-04-01  Javier Miranda  <miranda@gnat.com>
8467         * par-ch4.adb: (P_Allocator): Code cleanup
8469         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
8470         attribute.
8472         * sinfo.ads: Complete documentation of previous change
8474 2004-04-01  Pascal Obry  <obry@gnat.com>
8476         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
8477         only on VMS.  This special handling was done because an old GNU/ld bug
8478         on Windows which has been fixed.
8480 2004-04-01  GNAT Script  <nobody@gnat.com>
8482         * Make-lang.in: Makefile automatically updated
8484 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8486         * decl.c (gnat_to_gnu_entity, make_type_from_size):
8487         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
8488         * trans.c (tree_transform, convert_with_check): Likewise.
8489         * utils.c (gnat_signed_or_unsigned_type): Likewise.
8490         (build_vms_descriptor, unchecked_convert): Likewise.
8491         * utils2.c (nonbinary_modular_operation): Likewise.
8493 2004-03-29  Javier Miranda  <miranda@gnat.com>
8495         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
8496         (Install_Null_Excluding_Check): Local subprogram that determines whether
8497         an access node requires a runtime access check and if so inserts the
8498         appropriate run-time check.
8499         (Apply_Access_Check): Call Install_Null_Excluding check if required
8500         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
8502         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
8504         * einfo.ads: Fix typo in comment
8506         * exp_ch3.adb (Build_Assignment): Generate conversion to the
8507         null-excluding type to force the corresponding run-time check.
8508         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
8509         type to force the corresponding run-time check.
8511         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
8512         the null-excluding type to force the corresponding run-time check.
8514         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
8515         case of access types unless they have the null-excluding attribute.
8517         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
8518         part.
8520         * exp_util.ads: Fix typo in comment
8522         * par.adb (P_Null_Exclusion): New subprogram
8523         (P_Subtype_Indication): New formal that indicates if the null-excluding
8524         part has been scanned-out and it was present
8526         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
8528         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
8529         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
8530         type to force the corresponding run-time check
8531         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
8532         components
8533         (Resolve_Array_Aggregate): Carry out some static checks
8534         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
8536         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
8537         attribute must be set only if specified by means of the null-excluding
8538         part. In addition, we must also propagate the access-constant attribute
8539         if present.
8540         (Access_Subprogram_Declaration, Access_Type_Declaration,
8541         Analyze_Component_Declaration, Analyze_Object_Declaration,
8542         Array_Type_Declaration, Process_Discriminants,
8543         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
8544         and carry out some static checks.
8545         (Build_Derived_Access_Type): Set the null-excluding attribute
8546         (Derived_Type_Declaration, Process_Subtype): Carry out some static
8547         checks.
8549         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
8551         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
8553         * sem_ch6.adb (Process_Formals): Carry out some static checks.
8554         (Set_Actual_Subtypes): Generate null-excluding subtype if the
8555         null-excluding part was present; it is not required to be done here in
8556         case of anonymous access types.
8557         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
8558         value.
8560         * sem_res.adb (Resolve_Actuals): Carry out some static check
8561         (Resolve_Null): Allow null in anonymous access
8563         * sinfo.adb: New subprogram Null_Exclusion_Present
8564         All_Present and Constant_Present available on access_definition nodes
8566         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
8567         object_declaration, derived_type_definition, component_definition,
8568         discriminant_specification, access_to_object_definition,
8569         access_function_definition, allocator, access_procedure_definition,
8570         access_definition, parameter_specification, All_Present and
8571         Constant_Present flags available on access_definition nodes.
8573 2004-03-29  Robert Dewar  <dewar@gnat.com>
8575         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
8576         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
8577         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
8578         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
8579         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
8580         sem_prag.adb: Updates to handle multiple units/file
8582         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
8584         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
8585         sem_util.adb: Minor reformatting
8587         * sem_ch12.adb: Add comment for previous change
8589 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
8591         * osint.adb (Executable_Prefix): Set Exec_Name to the current
8592         executable name when not initialized. Otherwise, use its current value.
8594         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
8595         initialize it to another executable name than the current one. This
8596         allows to configure paths for an executable name (gnatmake) different
8597         from the current one (gnatdist).
8599 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
8601         * exp_ch6.adb (Expand_Call): A call to a function declared in the
8602         current unit cannot be inlined if it appears in the body of a withed
8603         unit, to avoid order of elaboration problems in gigi.
8605         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
8606         information for protected (wrapper) operation as well, to simplify gdb
8607         use.
8609         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
8610         protected body, indicate that the entity for the generated spec comes
8611         from source, to ensure that references are properly generated for it.
8612         (Build_Body_To_Inline): Do not inline a function that returns a
8613         controlled type.
8615         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
8616         apply convention to homonyms that are declared explicitly.
8618         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
8619         that renames an equality operator and the operands are overloaded,
8620         resolve them with the declared formal types, before rewriting as an
8621         operator.
8623 2004-03-29  GNAT Script  <nobody@gnat.com>
8625         * Make-lang.in: Makefile automatically updated
8627 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
8629         * memtrack.adb: Log realloc calls, which are treated as free followed
8630         by alloc.
8632 2004-03-25  Vincent Celier  <celier@gnat.com>
8634         * prj-makr.adb (Process_Directories): Detect when a file contains
8635         several units. Do not include such files in the config pragmas or
8636         in the naming scheme.
8638         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
8639         Resolve links only when not in Trusted_Mode.
8640         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
8641         Do not resolve links for the display names.
8643         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
8644         resolve links when computing the display names.
8646 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
8648         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
8649         attribute reference does not denote a subtype, it can be any
8650         expression that has a classwide type, potentially after an implicit
8651         dereference.  In particular, the prefix can be a view conversion for
8652         a classwide type (for which Is_Object_Reference holds), but it can
8653         also be a value conversion for an access-to-classwide type. In the
8654         latter case, there is an implicit dereference, and the original node
8655         for the prefix does not verify Is_Object_Reference.
8657         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
8658         conversion of a discriminant-dependent component of a mutable object
8659         is one itself.
8661 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
8663         * freeze.adb (Freeze_Entity): When an inherited subprogram is
8664         inherited, has convention C, and has unconstrained array parameters,
8665         place the corresponding warning on the derived type declaration rather
8666         than the original subprogram.
8668         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
8669         indication on renaming declaration, if formal has a box and actual
8670         is absent.
8672         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
8673         determine whether to generate an implicit or explicit reference to
8674         the renamed entity.
8676         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
8677         subprogram renaming comes from a defaulted formal subprogram in an
8678         instance.
8680 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
8682         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
8683         value expressions to ensure that calls within a component definition
8684         will be checked (since those are evaluated during the record type's
8685         elaboration).
8687 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
8689         * s-tpobop.adb: Code clean up:
8690         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
8691         code.
8692         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
8694 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
8696         * Makefile.in: Clean up in the ravenscar run time.
8698 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8700         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
8701         of No_Strict_Aliasing to build_pointer_type_for_mode.
8702         * utils.c (update_pointer_to): Walk pointer and ref chains.
8704 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
8706         * ali.ads: Fix Comment about Dynamic_Elab.
8708         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
8709         Has_RACW, Is_Generic, etc.)
8710         (Output_Object, Gnatls): Take into account ALI files not attached to
8711         an object.
8713 2004-03-22  Vincent Celier  <celier@gnat.com>
8715         * gprep.adb: Change all String_Access to Name_Id
8716         (Is_ASCII_Letter): new function
8717         (Double_File_Name_Buffer): New procedure
8718         (Preprocess_Infile_Name): New procedure
8719         (Process_Files): New procedure
8720         (Gnatprep): Check if output and input are existing directories.
8721         Call Process_Files to do the real job.
8723 2004-03-22  Robert Dewar  <dewar@gnat.com>
8725         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
8726         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
8728 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
8730         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
8731         case when the source contains only comments.
8733 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
8735         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
8736         declaration for a child subprogram body that acts as a spec, indicate
8737         that the entity in the declaration needs debugging information.
8739         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
8740         full view if the subtype is created for a constrained record component;
8741         gigi has enough information to construct the record, and there is no
8742         place in the tree for the declaration.
8744         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
8745         serial number for the dummy body that is built for analysis, to avoid
8746         inconsistencies in the generation of internal names when compiling
8747         with -gnatN.
8749 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
8751         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
8752         object.
8754 2004-03-22  GNAT Script  <nobody@gnat.com>
8756         * Make-lang.in: Makefile automatically updated
8758 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8760         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
8761         * trans.c (tree_transform, emit_index_check): Likewise.
8762         * utils.c (build_template): Likewise.
8763         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
8764         (maybe_unconstrained_array, unchecked_convert): Likewise.
8765         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
8766         (build_unary_op): Likewise.
8767         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
8768         (fill_vms_descriptor): Likewise.
8769         (build_call_alloc_dealloc): Likewise.
8770         ALIGN is unsigned.
8771         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
8773 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
8775         PR other/14630
8776         * gnat_ug.texi: Add info directory category and entry.
8777         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
8778         gnat_ug_wnt.texi: Regenerate.
8780 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
8782         * ada-tree.h: Update copyright notice.
8783         Minor reformatting.
8785 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
8787         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
8788         as regular exception objects and not as mere integers representing the
8789         condition code.  The latter approach required some dynamics to mask off
8790         severity bits, which did not fit well into the GCC table based model.
8791         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
8792         exception data objects. We don't it and it would conflict with the other
8793         external symbol we have to generate for such exceptions.
8795         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
8796         the special code for VMS exceptions, since these are now represented
8797         as regular exceptions objects.
8799 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8801         * decl.c (debug_no_type_hash): Remove.
8802         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
8803         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
8805 2004-03-19  Laurent Guerby <laurent@guerby.net>
8807         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
8808         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
8810 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8812         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
8813         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
8814         (TYPE_RM_SIZE_INT): Directly use type.values.
8815         (TREE_LOOP_ID): Clean up check.
8816         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
8817         TYPE_VALUES, not TYPE_FIELDS.
8818         * trans.c (convert_with_check): Delay access of bounds of basetype
8819         until sure is numeric.
8821 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
8823         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
8825         Code clean up:
8826         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
8827         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
8828         Specific.Set instead of direct call to e.g pthread_setspecific.
8830 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
8832         * adaint.c: Update comments.
8834         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
8835         GNATLIB_SHARED for FreeBSD.
8837 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
8839         * init.c [VxWorks]: Do not fix the stack size for the environment task.
8840         When needed (stack checking) the stack size is retrieved
8841         from the VxWorks kernel.
8843         * Makefile.in: Flag -nostdinc is required when building the run time
8844         for avoiding looking for files in the base compiler.
8845         Add the VxWorks specific version of the package body for
8846         System.Stack_checking.Operations (5zstchop.adb).
8848         * Make-lang.in: Add the object file for
8849         System.Stack_Checking.Operations.
8851         * Makefile.rtl: Add object file for the package
8852         System.Stack_Checking.Operations.
8854         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
8856         * s-stache.ads, s-stache.adb: Move the operations related to stack
8857         checking from this package to package System.Stack_Checking.Operations.
8858         This way, stack checking operations are only linked in the final
8859         executable when using the -fstack-check flag.
8861 2004-03-18  Doug Rupp  <rupp@gnat.com>
8863         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
8864         Reorganize ifeq's.
8866         * 5qsystem.ads, 5xcrtl.ads: New files.
8868 2004-03-18  Vincent Celier  <celier@gnat.com>
8870         * prj.adb (Reset): Reset hash table Files_Htable
8872         * prj-env.adb (Source_Paths, Object_Paths): New tables.
8873         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
8874         the procedures Add_To_Path_File.
8875         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
8876         making sure that each directory is present only once and, for object
8877         dirs, when a directory already present is added, the duplicate is
8878         removed and the directory is always put as the last in the table.
8879         Write the path files at the end of these accumulations.
8881         * prj-nmsc.adb (Record_Source): Add source file name in hash table
8882         Files_Htable for all sources.
8884         * prj-proc.adb (Process): Remove restrictions between not directly
8885         related extending projects.
8887 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
8889         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
8890         (Find_Sources): Minor speed optimization.
8892         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
8893         parameter Trusted_Mode.
8895 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
8897         * scn.adb (Determine_License): Take into account a degenerated case
8898         when the source contains only comments.
8900 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
8902         * sem_warn.adb (Check_References): For a warning on a selected
8903         component that does not come from source, locate an uninitialized
8904         component of the record type to produce a more precise error message.
8906 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
8908         * 3zsoccon.ads: Fix multicast options.
8910         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
8911         in the spec.
8913 2004-03-15  Robert Dewar  <dewar@gnat.com>
8915         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
8916         pragma used for a private type.
8918         * lib-xref.adb (Generate_Reference): Do not generate warning if
8919         reference is in a different unit from the pragma Unreferenced.
8921         * 5vtpopde.adb: Minor reformatting
8922         Fix casing of To_Task_ID
8924         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
8925         flag if we have an unchecked conversion to an access type in the same
8926         unit.
8928 2004-03-15  Geert Bosch  <bosch@gnat.com>
8930         * a-ngcoty.adb (Modulus): In alternate formula for large real or
8931         imaginary parts, use Double precision throughout.
8933         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
8934         we want to be able to compile run-time with -gnata for testing, but
8935         this may also be instantiated in user code that is compiled with -gnata.
8937 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
8939         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
8940         codes. Having a separate type for this is useful to enforce consistency
8941         throughout the various run-time units.
8942         (Exception_Data): Use Exception_Code for Import_Code.
8944         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
8945         Natural and Integer in various places.
8946         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
8947         with the severity bits masked off.
8948         (Register_VMS_Exception): Handle the additional exception data pointer
8949         argument.
8951         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
8952         component, now reflected by an exported accessor.
8953         (is_handled_by): New routine to compute whether the propagated
8954         occurrence matches some handler choice specification. Extracted out of
8955         get_action_description_for, and expanded to take care of the VMS
8956         specifities.
8957         (get_action_description_for): Use is_handled_by instead of an explicit
8958         complex condition to decide if the current choice at hand catches the
8959         propagated occurrence.
8961         * raise.h (Exception_Code): New type for C.
8963         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
8964         System.Standard_Library.Exception_Code, to allow references from the
8965         pragma import/export expander.
8967         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
8968         New accessors to allow easy access to GNAT exception data
8969         characteristics.
8970         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
8971         redundant Handled_By_Others component, helper for the personality
8972         routine which will now be able to call the appropriate exception data
8973         accessor instead.
8975         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
8976         component of Standard_Exception_Type to be the closest possible to
8977         Exception_Code in System.Standard_Library, that we cannot get at this
8978         point. Expand a ??? comment to notify that this type node should
8979         probably be rewritten later on.
8981         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
8982         registration call to include a pointer to the exception object in the
8983         arguments.
8985         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
8986         instead of int and explicit bitmasks.
8988 2004-03-15  Vincent Celier  <celier@gnat.com>
8990         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
8991         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
8993         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
8994         longer needed now that it is in the spec of
8995         System.Tasking.Task_Attributes.
8997         * adaint.h, adaint.c: (__gnat_create_output_file): New function
8999         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
9001         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
9003         * make.adb (Gnatmake): Do not check the executable suffix; it is being
9004         taken care of in Scan_Make_Arg.
9005         (Scan_Make_Arg): Add the executable suffix only if the argument
9006         following -o, in canonical case, does not end with the executable
9007         suffix.  When in verbose mode and executable file name does not end
9008         with executable suffix, output the executable name, in canonical case.
9010         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
9011         to avoid warnings when instantiating Ada.Task_Attributes.
9012         Minor reformating.
9014         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
9015         in the correct order.
9017         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
9018         redirect standard output and error to a file for the invocation of the
9019         compiler, then read the file.
9021         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
9022         directory, instead of the Value.
9023         (Find_Source_Dirs): Remove useless code & comments.
9025 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
9027         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
9028         tagged type is inherited, and the parent operation is not frozen yet,
9029         force generation of a freeze node for the inherited operation, so the
9030         corresponding dispatch entry is properly initialized.
9031         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
9032         when looking for user-defined equality operation.
9034         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
9035         boolean when locating primitive equality of tagged component.
9037         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
9038         bit-aligned field and the right-hand side a string literal, introduce
9039         a temporary before expanding assignment into a loop.
9041         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
9042         priority in full, to ensure that any expanded subepxressions of it are
9043         elaborated in the scope of the init_proc.
9045         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
9046         after object declaration, skipping over code that may have been
9047         generated for validity checks.
9049         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
9050         discriminants, ignore the known discriminants of its full view, if
9051         any, to check legality.
9053         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
9054         component if type has unknown discriminants.
9055         (Analyze_Private_Extension_Declaration): Discriminant constraint is
9056         null if type has unknown discriminants.
9058         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
9059         for end label when present.
9061         * s-fileio.adb (Open): When called with a C_Stream, use given name for
9062         temporary file, rather than an empty string.
9064 2004-03-15  Ed Falis  <falis@gnat.com>
9066         * s-thread.adb: Removed, no longer used.
9068 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9070         * decl.c (target.h): Now include.
9071         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
9072         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
9073         (validate_size): For POINTER_TYPE, get smallest size permitted on
9074         machine.
9076         * fe.h: Sort Einfo decls and add Set_Mechanism.
9078         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
9079         (ada/decl.o): Depends on target.h.
9081         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
9082         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
9084 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
9086         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
9088         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
9089         Insert_Dereference_Action when rewriting an implicit dereference into
9090         an explicit one, this will be taken care of during expansion of the
9091         explicit dereference.
9092         (Expand_N_Slice): Same. Always do the rewriting, even for the case
9093         of non-packed slices, since the dereference action generated by
9094         expansion of the explicit dereference is needed in any case.
9095         (Expand_N_Selected_Component): When rewriting an implicit dereference,
9096         analyze and resolve the rewritten explicit dereference so it is seen
9097         by the expander.
9098         (Insert_Dereference_Action): This procedure is now called only for the
9099         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
9100         dereferences that do not come from source (including explicit
9101         dereferences resulting from rewriting implicit ones), but do not
9102         recursively insert a check for the dereference nodes contained within
9103         the check.
9104         (Insert_Dereference_Action): Clarify and correct comment.
9106 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
9108         PR ada/14131
9109         Move language detection to the top level.
9110         * config-lang.in: Build by default.
9112 2004-03-05  Robert Dewar  <dewar@gnat.com>
9114         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
9116         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
9117         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
9118         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
9119         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
9120         unchecked conversion to spec to avoid warnings.
9122         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
9123         to Task_ID
9125         * 7stpopsp.adb: Correct casing in To_Task_ID call
9127         * a-strsea.ads, a-strsea.adb: Minor reformatting
9129         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
9131         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
9132         Adjust Max_Msg_Length to be clearly large enough.
9134         * fe.h: Define In_Same_Source_Unit
9136         * osint.adb: Add pragma Warnings Off to suppress warnings
9137         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
9138         aliasing warnings.
9140         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
9142         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
9144         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
9146         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
9148         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
9150         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
9151         node. We now do generate them for gcc back end.
9153         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
9154         warning.
9156         * sinput-c.adb: Fix bad name in header.
9157         Add pragma Warnings Off to suppress aliasing warning.
9159         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
9161         * snames.h, snames.ads, snames.adb: Add entry for pragma
9162         No_Strict_Aliasing.
9164 2004-03-05  Vincent Celier  <celier@gnat.com>
9166         * prj-com.ads: Add hash table Files_Htable to check when a file name
9167         is already a source of another project.
9169         * prj-nmsc.adb (Record_Source): Before recording a new source, check
9170         if its file name is not already a source of another project. Report an
9171         error if it is.
9173         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
9174         source file name, call gnatpp with all the sources of the main project.
9176         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
9177         of file names.
9179         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
9180         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
9181         /RUNTIME_SYSTEM=, converted to --RTS=
9182         /NOTABS, converted to -notabs
9184 2004-03-05  Pascal Obry  <obry@gnat.com>
9186         * make.adb: Minor reformatting.
9188 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
9190         Part of implemention of AI-262.
9191         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
9193         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
9194         procedure.
9196         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
9197         when component type is a partially constrained class-wide subtype.
9198         (Constrain_Discriminated_Type): If parent type has unknown
9199         discriminants, a constraint is illegal, even if full view has
9200         discriminants.
9201         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
9202         with unknown discriminants whose full view is a discriminated record.
9204         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
9205         flag, to handle properly derivations of tagged types with unknown
9206         discriminants.
9207         (Analyze_Package_Spec, Analyze_Package_Body): Install
9208         Private_With_Clauses before analyzing private part or body.
9210         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
9211         Has_Discriminants can be true for a given type (documentation).
9213 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
9215         * s-restri.ads: Fix license (GPL->GMGPL).
9217         * s-tassta.adb: Minor reformatting.
9219         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
9220         by calls to Exit_One_ATC_Level, since additional clean up is performed
9221         by this function.
9223         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
9224         by calls to Exit_One_ATC_Level, since additional clean up is performed
9225         by this function.
9227 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9229         * trans.c: Reflect GCC changes to fix bootstrap problem.
9230         Add warning for suspicious aliasing unchecked conversion.
9232 2004-03-05  GNAT Script  <nobody@gnat.com>
9234         * Make-lang.in: Makefile automatically updated
9236 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
9238         * ali.adb (Read_Instantiation_Instance): Do not modify the
9239         current_file_num when reading information about instantiations, since
9240         this corrupts files in later references.
9242 2004-03-02  Vincent Celier  <celier@gnat.com>
9244         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
9245         before checking if it is read-only.
9247         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
9248         of SRC_DIRS and eliminate duplicates.
9250         * gprcmd.adb: Replace command "path" with command "path_sep" to return
9251         the path separator.
9252         (Usage): Document path_sep
9254         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
9255         C++ compiler. No need for a script.
9256         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
9257         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
9258         subst.
9260         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
9261         where there are Ada sources.
9262         (Set_Ada_Paths): Only add to the include path the source dirs of project
9263         with Ada sources.
9264         (Add_To_Path): Add the Display_Values of the directories, not their
9265         Values.
9267         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
9268         data.
9270         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
9271         is not No_Name.
9272         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
9273         Value is canonicalized.
9274         (Language_Independent_Check): Do not copy Value to Display_Value when
9275         canonicalizing Value.
9277         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
9278         path to find limited with cycles.
9279         (Parse_Single_Project): Use canonical cased path to find the end of a
9280         with cycle.
9282 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
9284         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
9285         and not a child unit.
9287         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
9288         appear in a with_clause.
9290         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
9291         only happen in type_annotate mode, do not try to elaborate it.
9293         * exp_util.adb (Force_Evaluation): If expression is a selected
9294         component on the left of an assignment, use a renaming rather than a
9295         temporary to remove side effects.
9297         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
9298         inlined instance body, which is analyzed before the end of the
9299         enclosing scope.
9301 2004-03-02  Robert Dewar  <dewar@gnat.com>
9303         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
9304         sem_ch4.adb: Use new feature for substitution of keywords in VMS
9306         * errout.ads, errout.adb: Implement new circuit for substitution of
9307         keywords in VMS.
9309         * sem_case.adb (Analyze_Choices): Place message properly when case is
9310         a subtype reference rather than an explicit range.
9312         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
9314 2004-03-02  Doug Rupp  <rupp@gnat.com>
9316         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
9318 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
9320         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
9322 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9324         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
9325         BLKmode bitfield.
9327 2004-02-25  Robert Dewar  <dewar@gnat.com>
9329         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
9330         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
9331         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
9332         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
9333         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
9334         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
9335         the defining instance of the type to avoid aliasing problems.
9336         Fix copyright header.  Fix bad comments in package header.
9338         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
9340 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
9342         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
9343         rewritten as references when aliased through an address clause.
9345         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
9346         whether call can be interpreted as an indirect call to the result of a
9347         parameterless function call returning an access subprogram.
9349 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
9351         Code clean up:
9352         * exp_ch7.adb (Make_Clean): Remove generation of calls to
9353         Unlock[_Entries], since this is now done by Service_Entries directly.
9355         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
9357         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
9358         Requeue_Call for better code readability. Change spec and update calls:
9359         PO_Service_Entries now unlock the PO on exit.
9360         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
9361         PO_Service_Entries.
9363         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
9365         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
9367 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
9369         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
9370         protected subprogram call and analyzing the result of such expanding
9371         in case when the called protected subprogram is eliminated.
9373         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
9374         names.
9376 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
9378         * Makefile.in: Clean ups.
9380 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
9382         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
9383         protected operations if original subprogram is flagged as eliminated.
9384         (Expand_N_Subprogram_Body): For a protected operation, create
9385         discriminals for next operation before checking whether the operation
9386         is eliminated.
9388         * exp_ch9.adb (Expand_N_Protected_Body,
9389         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
9390         for internal protected operations if the original subprogram is
9391         eliminated.
9393         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
9394         declared in a single protected object.
9396 2004-02-23  Vincent Celier  <celier@gnat.com>
9398         * prj-attr.adb: Make attribute Builder'Executable an associative array,
9399         case insensitive if file names are case insensitive, instead of a
9400         standard associative array.
9402         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
9403         them as case insensitive on platforms where the file names are case
9404         sensitive.
9406         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
9407         project file has already been parsed that canonical path are compared.
9409 2004-02-23  Robert Dewar  <dewar@gnat.com>
9411         * sinput-c.ads: Correct bad unit title in header
9413         * freeze.adb: Minor reformatting
9415 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9417         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
9418         nonaddressable COMPONENT_REF that is removing padding that we are
9419         taking the address of, take the address of the padded record instead
9420         if item is variable size.
9422 2004-02-20  Robert Dewar  <dewar@gnat.com>
9424         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
9426 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
9428         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
9429         itype references for the constrained designated type of a component
9430         whose base type is already frozen.
9432 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
9434         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
9435         avoid GCC warnings.
9437 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
9439         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
9440         identifier for a phantom package that rewrites the formal package
9441         declaration with a box. The Add semantic decorations for the defining
9442         identifier from the original node (that represents the formal package).
9444 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
9446         * Make-lang.in (ada/stamp-sdefault): Use the top level
9447         move-if-change.
9449 2004-02-19  Richard Henderson  <rth@redhat.com>
9451         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
9453 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
9455         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
9456         Scan_ALI can be used for multiple ALI files without reinitializing
9457         between calls.
9459 2004-02-18  Robert Dewar  <dewar@gnat.com>
9461         * debug.adb: Minor reformatting.
9463 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9465         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
9466         to zero if there is an address clause.
9468 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
9470         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
9472 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
9474         * layout.adb (Layout_Component_List): Revise generation of call to
9475         discriminant-checking function to pass selections of all of the type's
9476         discriminants rather than just the variant-controlling discriminant.
9478 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
9480         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
9481         fail in the current setup and triggers spurious system error messages.
9482         Pretend it occurred and failed instead.
9484 2004-02-18  Vincent Celier  <celier@gnat.com>
9486         * bld.adb: Mark FLDFLAGS as saved
9487         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
9488         it is not the root project.  Put each directory to be
9489         extended between double quotes to prevent it to be expanded on Windows.
9490         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
9491         the project file. Set them back to their initial values if they have not
9492         been set in the project file.
9494         * gprcmd.adb: (Gprdebug, Debug): New global variables
9495         (Display_Command): New procedure
9496         (Usage): Document new command "linkopts"
9497         Call Display_Command when env var GPRDEBUG has the value "TRUE"
9498         Implement new command "linkopts"
9499         Remove quotes that may be around arguments for "extend"
9500         Always call Normalize_Pathname with arguments formatted for the platform
9502         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
9503         Change @echo to @$(display) in target clean to be able to clean silently
9505         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
9507         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
9508         canonical case.
9510         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
9511         = Extending_All when current project is an extending all project.
9513         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
9514         set to True only for LINK command, after Unix switch -o.
9515         (Process_Arguments): Set Output_File_Expected to True for LINK command
9516         after Unix switch -o. When Output_File_Expected is True, never add an
9517         extension to a file name.
9519         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
9520         option file name, only to the --for-linker= switch.
9521         (Option_File_Name): If option file name do not end with ".opt", append
9522         "/OPTIONS".
9524 2004-02-18  GNAT Script  <nobody@gnat.com>
9526         * Make-lang.in: Makefile automatically updated
9528 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
9530         * Make-lang.in (stamp-sdefault): Do not depend on
9531         move-if-change.
9533 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
9535         * config-lang.in: Disable Ada by default until probe logic for
9536         a bootstrap Ada compiler can be moved to the top level configure
9537         script.
9539 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
9541         * decl.c (components_to_record): Don't claim that the internal fields
9542         we make to hold the variant parts are semantically addressable, because
9543         they are not.
9545         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
9546         adjust the comment describing the modular type form when we can use it.
9547         (Install_PAT): Account for the Esiz renaming.
9549         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
9550         sc_onstack context indication before raising the exception to which
9551         the signal is mapped. Allows better handling of later signals possibly
9552         triggered by the resumed user code if the exception is handled.
9554 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
9556         * 5zinit.adb: Removed, no longer used.
9558 2004-02-12  Robert Dewar  <dewar@gnat.com>
9560         * ali.adb: Remove separating space between parameters on R line. Makes
9561         format consistent with format used by the binder for Set_Globals call.
9563         * atree.ads, atree.adb: Minor reformatting (new function header format)
9565         * bindgen.adb: Add Run-Time Globals documentation section containing
9566         detailed documentation of the globals passed from the binder file to
9567         the run time.
9569         * gnatls.adb: Minor reformatting
9571         * init.c (__gnat_set_globals): Add note pointing to documentation in
9572         bindgen.
9574         * lib-writ.ads, lib-writ.adb: Remove separating space between
9575         parameters on R line.
9576         Makes format consistent with format used by the binder for Set_Globals
9577         call.
9579         * osint.ads: Add 2004 to copyright notice
9580         Minor reformatting
9582         * snames.ads: Correct capitalization of FIFO_Within_Priorities
9583         Noticed during code reading, documentation issue only
9585         * usage.adb: Remove junk line for obsolete C switch
9586         Noticed during code reading
9588 2004-02-12  Vincent Celier  <celier@gnat.com>
9590         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
9591         extend for each directory, so that multiple /** directories are
9592         extended individually.
9593         (Recursive_Process): Set the default for LANGUAGES to ada
9595         * gprcmd.adb: Define new command "ignore", to do nothing.
9596         Implement new comment "path".
9598         * Makefile.generic: Suppress output when SILENT is set
9599         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
9600         used, so that the correct compiler is invoked.
9601         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
9602         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
9604 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
9606         * Makefile.in: Clean ups and remove obsolete targets.
9608 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
9610         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
9611         predicate declared in exp_util.
9613         * exp_util.adb: Add comments.
9615         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
9616         visibility before compiling context of the subunit.
9618         * sem_res.adb (Check_Parameterless_Call): If the context expects a
9619         value but the name is a procedure, do not attempt to analyze as a call,
9620         in order to obtain more telling diagnostics.
9622         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
9623         'Access on parameterless function calls.
9624         (Normalize_Actuals): For a parameterless function call with missing
9625         actuals, defer diagnostic until resolution of enclosing call.
9627         * sem_util.adb (Wrong_Type): If the context type is an access to
9628         subprogram and the expression is a procedure name, suggest a missing
9629         'attribute.
9631 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
9632             Nathanael Nerode  <neroden@gcc.gnu.org>
9634         PR ada/6637, PR ada/5911
9635         Merge with libada-branch:
9636         * config-lang.in: Build libada only when ada is built.
9638 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
9640         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
9641         for a tagged type, verify that both formals have the same type.
9643         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
9644         temporary when the formal is an in-parameter and the actual a possibly
9645         unaligned slice.
9647         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
9648         when expansion is disabled, to ensure proper name capture with
9649         overloaded literals.  Condition can be of any boolean type, resolve
9650         accordingly.
9652         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
9653         renaming is for a formal subprogram with a default operator name, and
9654         there is a usable operator that is visible at the point of
9655         instantiation.
9657 2004-02-09  Robert Dewar  <dewar@gnat.com>
9659         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
9660         rewrite to ignore errors in ali files, intended to allow tools downward
9661         compatibility with new versions of ali files.
9663         * ali.ads: Add new parameter Ignore_Errors
9665         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
9666         duplicating the error message giving the file with restrictions.
9668         * debug.adb: Add debug flag I for gnatbind
9670         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
9671         operators for the case where the operator is a defining operator.
9673         * exp_ch3.adb: Minor reformatting (new function spec format).
9675         * exp_ch4.adb: Add comment for previous change, and make minor
9676         adjustment to loop to always check for improper loop termination.
9677         Minor reformatting throughout (new function spec format).
9679         * gnatbind.adb: Implement -di debug flag for gnatbind
9681         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
9683         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
9685         * lib-load.adb: Fix bad assertion.
9686         Found by testing and code reading.
9687         Minor reformatting.
9689         * lib-load.ads: Minor reformatting.
9691         * lib-writ.adb: There is only one R line now.
9693         * lib-writ.ads: Add documentation on making downward compatible changes
9694         to ali files so old tools work with new ali files.
9695         There is only one R line now.
9696         Add documentation on format incompatibilities (with special GPS note)
9698         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
9700         * par-load.adb: Minor reformatting
9702         * sem_ch8.adb: Fix to error message from last update
9703         Minor reformatting and restructuring of code from last update
9705         * par-prag.adb, snames.adb, snames.ads, snames.h,
9706         sem_prag.adb: Implement pragma Profile.
9708         * stylesw.adb: Implement -gnatyN switch to turn off all style check
9709         options.
9711         * usage.adb: Add line for -gnatyN switch
9713         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
9715 2004-02-09  Albert Lee  <lee@gnat.com>
9717         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
9719 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
9721         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
9722         slices.
9724         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
9725         is nested in an instance that is not frozen yet, to avoid
9726         order-of-elaboration problems in gigi.
9728         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
9729         body the attribute is legal.
9731 2004-02-09  Robert Dewar  <dewar@gnat.com>
9733         * s-rident.ads: Minor comment correction
9735         * targparm.adb: Remove dependence on uintp completely. There was
9736         always a bug in Make in that it called Targparm before initializing
9737         the Uint package. The old code appeared to get away with this, but
9738         the new code did not! This caused an assertion error in gnatmake.
9740         * targparm.ads: Fix bad comment, restriction pragmas with parameters
9741         are indeed fully supported.
9743 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
9745         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
9747 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
9749         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
9750         with targetm.calls.promote_prototypes.
9752 2004-02-04  Robert Dewar  <dewar@gnat.com>
9754         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
9755         ali.ads, gprcmd.adb: Minor reformatting
9757         * bindgen.adb: Output restrictions string for new style restrictions
9758         handling
9760         * impunit.adb: Add s-rident.ads (System.Rident) and
9761         s-restri (System.Restrictions)
9763         * lib-writ.adb: Fix bug in writing restrictions string (last few
9764         entries wrong)
9766         * s-restri.ads, s-restri.adb: Change name Restrictions to
9767         Run_Time_Restrictions to avoid conflict with package name.
9768         Add circuit to read and acquire run time restrictions.
9770 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
9772         * restrict.ads, restrict.adb: Use the new restriction
9773         No_Task_Attributes_Package instead of the old No_Task_Attributes.
9775         * sem_prag.adb: No_Task_Attributes is a synonym of
9776         No_Task_Attributes_Package.
9778         * snames.ads, snames.adb: New entry for proper handling of
9779         No_Task_Attributes.
9781         * s-rident.ads: Adding restriction No_Task_Attributes_Package
9782         (AI-00249) that supersedes the GNAT specific restriction
9783         No_Task_Attributes.
9785 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
9787         * sem_prag.adb:
9788         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
9789          body, an identifier may be wrapped in an unchecked conversion.
9791 2004-02-04  Vincent Celier  <celier@gnat.com>
9793         * lib-writ.ads: Comment update for the W lines
9795         * bld.adb: (Expression): An empty string list is static
9797         * fname-uf.adb: Minor comment update
9799         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
9801         * gnatbind.adb: Initialize Cumulative_Restrictions with the
9802         restrictions on the target.
9804 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
9806         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
9807         gen_rtx.
9809 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
9811         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
9813 2004-02-02  Vincent Celier  <celier@gnat.com>
9815         * gprcmd.adb (Check_Args): If condition is false, print the invoked
9816         comment before the usage.
9817         Gprcmd: Fail when command is not recognized.
9818         (Usage): Document command "prefix"
9820         * g-md5.adb (Digest): Process last block.
9821         (Update): Do not process last block. Store remaining characters and
9822         length in Context.
9824         * g-md5.ads (Update): Document that several call to update are
9825         equivalent to one call with the concatenated string.
9826         (Context): Add fields to allow new Update behaviour.
9828         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
9829         defaulted to False.
9830         When May_Fail is True and no existing file can be found, return No_File.
9832         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
9833         functions.
9835         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
9836         spec file name instead on the W line.
9838 2004-02-02  Robert Dewar  <dewar@gnat.com>
9840         * ali.adb: Read and acquire info from new format restrictions lines
9842         * bcheck.adb: Add circuits for checking restrictions with parameters
9844         * bindgen.adb: Output dummy restrictions data
9845         To be changed later
9847         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
9848         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
9849         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
9850         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
9851         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
9853         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
9854         the warning message on access to possibly uninitialized variable S)
9855         Minor changes for new restrictions handling.
9857         * gnatbind.adb: Minor reformatting
9858         Minor changes for new restrictions handling
9859         Move circuit for -r processing here from bcheck (cleaner)
9861         * gnatcmd.adb, gnatlink.adb: Minor reformatting
9863         * lib-writ.adb: Output new format restrictions lines
9865         * lib-writ.ads: Document new R format lines for new restrictions
9866         handling.
9868         * s-restri.ads/adb: New files
9870         * Makefile.rtl: Add entry for s-restri.ads/adb
9872         * par-ch3.adb: Fix bad error messages starting with upper case letter
9873         Minor reformatting
9875         * restrict.adb: Major rewrite throughout for new restrictions handling
9876         Major point is to handle restrictions with parameters
9878         * restrict.ads: Major changes in interface to handle restrictions with
9879         parameters. Also generally simplifies setting of restrictions.
9881         * snames.ads/adb: New entry for proper handling of No_Requeue
9883         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
9884         restriction counting.
9885         Other minor changes for new restrictions handling
9887         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
9888         Restriction_Warnings now allows full parameter notation
9889         Major rewrite of Restrictions for new restrictions handling
9891 2004-02-02  Javier Miranda  <miranda@gnat.com>
9893         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
9894         syntax rule for object renaming declarations.
9895         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
9896         component definitions.
9898         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
9899         components.
9900         (Array_Type_Declaration): Give support to access components. In addition
9901         it was also modified to reflect the name of the object in anonymous
9902         array types. The old code did not take into account that it is possible
9903         to have an unconstrained anonymous array with an initial value.
9904         (Check_Or_Process_Discriminants): Allow access discriminant in
9905         non-limited types.
9906         (Process_Discriminants): Allow access discriminant in non-limited types
9907         Initialize the new Access_Definition field in N_Object_Renaming_Decl
9908         node.  Change Ada0Y to Ada 0Y in comments
9910         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
9911         equality operators.
9912         Change Ada0Y to Ada 0Y in comments
9914         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
9915         renamings Change Ada0Y to Ada 0Y in comments
9917         * sem_type.adb (Find_Unique_Type): Give support to the equality
9918         operators for universal access types
9919         Change Ada0Y to Ada 0Y in comments
9921         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
9923         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
9924         field.
9925         (N_Object_Renaming_Declaration): Addition of Access_Definition field
9926         Change Ada0Y to Ada 0Y in comments
9928         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
9929         component definition and object renaming nodes
9930         Change Ada0Y to Ada 0Y in comments
9932 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
9934         * restrict.adb: Use the new restriction identifier
9935         No_Requeue_Statements instead of the old No_Requeue for defining the
9936         restricted profile.
9938         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
9939         No_Requeue_Statements.
9941         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
9942         that supersedes the GNAT specific restriction No_Requeue. The later is
9943         kept for backward compatibility.
9945 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
9947         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
9948         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
9949         pragma and fix incorrect ones.
9951         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
9952         warning if the pragma is redundant.
9954 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
9956         * 5staprop.adb: Add missing 'constant' keywords.
9958         * Makefile.in: use consistent value for SYMLIB on
9959         platforms where libaddr2line is supported.
9961 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9963         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
9964         annotating types.
9966 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
9968         * init.c (__gnat_install_handler): Setup an alternate stack for signal
9969         handlers in the environment thread. This allows proper propagation of
9970         an exception on stack overflows in this thread even when the builtin
9971         ABI stack-checking scheme is used without support for a stack reserve
9972         region.
9974         * utils.c (create_field_decl): Augment the head comment about bitfield
9975         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
9976         here, because the former is not accurate enough at this point.
9977         Let finish_record_type decide instead.
9978         Don't make a bitfield if the field is to be addressable.
9979         Always set a size for the field if the record is packed, to ensure the
9980         checks for bitfield creation are triggered.
9981         (finish_record_type): During last pass over the fields, clear
9982         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
9983         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
9984         from DECL_BIT_FIELD.
9986 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
9988         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
9989         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
9990         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
9992 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9994         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
9996         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
9997         (ZCX_By_Default): Likewise.
9998         (Front_End_ZCX_Support): Likewise.
10000         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
10001         (Initialize_Lock): Mark Level unreferenced.
10002         (Sleep): Mark Reason unreferenced.
10003         (Timed_Sleep): Likewise.
10004         (Wakeup): Likewise.
10005         (Exit_Task): Use Result.
10006         (Check_No_Locks): Mark Self_ID unreferenced.
10008         * 5gtasinf.adb (New_Sproc): Make Attr constant.
10009         (Bound_Thread_Attributes): Make Sproc constant.
10010         (New_Bound_Thread_Attributes): Likewise.
10012 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
10014         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
10015         one-dimensional array an slice assignments, when component type is
10016         controlled.
10018         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
10019         component type is controlled, and control_actions are in effect, use
10020         TSS procedure rather than generating inline code.
10022         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
10023         arrays with controlled components.
10025 2004-01-26  Vincent Celier  <celier@gnat.com>
10027         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
10028         command line for the non VMS case.
10030         * gnatlink.adb (Process_Binder_File): When building object file, if
10031         GNU linker is used, put all object paths between quotes, to prevent ld
10032         error when there are unusual characters (such as '!') in the paths.
10034         * Makefile.generic: When there are sources in Ada and the main is in
10035         C/C++, invoke gnatmake with -B, instead of -z.
10037         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
10038         from VMS_Conversion.
10039         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
10040         specification of argument file on the command line.
10042 2004-01-26  Bernard Banner  <banner@gnat.com>
10044         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
10046 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
10048         * snames.adb: Update copyright notice.
10049         Add info on slice assignment for controlled arrays.
10051 2004-01-23  Robert Dewar  <dewar@gnat.com>
10053         * exp_aggr.adb: Minor reformatting
10055         * exp_ch9.adb: Minor code clean up
10056         Minor reformatting
10057         Fix bad character in comment
10059         PR ada/13471
10060         * targparm.adb (Get_Target_Parameters): Give clean abort error on
10061         unexpected end of file, along with more detailed message.
10063 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10065         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
10066         PAT.
10068         * decl.c (copy_alias_set): New function.
10069         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
10071 2004-01-23  Doug Rupp  <rupp@gnat.com>
10073         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
10074         lib$${file} in case subsequent character is not a separator.
10076 2004-01-23  Vincent Celier  <celier@gnat.com>
10078         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
10079         when the GCC version is at least 3.
10081         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
10082         Remove all "Opt.", to prepare for opt split
10084         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
10085         Extends_All. Set to True when the project parsed is an extending all
10086         project. Fails for importing an extending all project only when the
10087         imported project is an extending all project.
10088         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
10089         depending on the value of Extends_All returned.
10091         * prj-proc.adb (Process): Check that no project shares its object
10092         directory with a project that extends it, directly or indirectly,
10093         including a virtual project.
10094         Check that no project extended by another project shares its object
10095         directory with another also extended project.
10097         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
10098         Kind = N_With_Clause
10100         * prj-tree.ads: Minor reformatting
10101         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
10103 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
10105         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
10106         applies to a type with an incomplete view, use full view in Name of
10107         clause, for consistency with uses of Get_Attribute_Definition_Clause.
10109 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
10111         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
10112         SCHED_RR, since other values are not supported by this policy.
10113         (Initialize): Move initialization of mutex attribute to package
10114         elaboration, to prevent early access to this variable.
10116         * Makefile.in: Remove mention of Makefile.adalib, unused.
10118         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
10119         1ssecsta.ads: Removed, unused.
10121 2004-01-21  Javier Miranda  <miranda@gnat.com>
10123         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
10124         entity if already built in the current scope.
10126         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
10127         reminder in internal scopes. Required for nested limited aggregates.
10129 2004-01-21  Doug Rupp  <rupp@gnat.com>
10131         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
10132         VMS. Replace all occurences of libgnat- and libgnarl- with
10133         libgnat$(hyphen) and libgnarl$(hyphen).
10134         Fixed shared library build problem on VMS.
10136 2004-01-21  Robert Dewar  <dewar@gnat.com>
10138         * mlib-prj.adb: Minor reformatting
10140 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
10142         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
10143         'constant' keywords for declaration of pointers that are not modified.
10145         * exp_pakd.adb: Fix English in comment.
10147 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
10149         PR ada/10889
10150         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
10151         copy all attributes of the parent, including the foreign language
10152         convention.
10154 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
10156         PR ada/10565
10157         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
10158         for 'delay until' statement.
10160 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
10162         * Make-lang.in: Replace $(docdir) with doc.
10163         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
10164         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
10165         to use consistent MAKEINFO rule.
10166         (ada.man, ada.srcman): Dummy entry.
10167         (ADA_INFOFILES): Define.
10168         (ada.info, ada.srcinfo): New rules.
10170 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
10172         * utils.c: Update copyright notice, missed in previous change.
10174 2004-01-19  Vincent Celier  <celier@gnat.com>
10176         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
10177         args if Bind is True. Set First_ALI, if not already done.
10178         (Build_Library): For Stand Alone Libraries, extract from one ALI file
10179         an eventual --RTS switch, for gnatbind, and all backend switches +
10180         --RTS, for linking.
10182 2004-01-19  Robert Dewar  <dewar@gnat.com>
10184         * sem_attr.adb, memtrack.adb: Minor reformatting
10186 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
10188         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
10189         that rename enumeration literals. This is properly done in sem_eval.
10191         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
10192         to functions that rename enumeration literals.
10194         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
10195         functions that rename enumeration literals.
10197 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
10199         * Make-lang.in (utils.o): Depend on target.h.
10200         * utils.c: Include target.h.
10201         (process_attributes): Use targetm.have_named_sections instead
10202         of ASM_OUTPUT_SECTION_NAME.
10204 2004-01-16  Andreas Jaeger  <aj@suse.de>
10206         * Makefile.in: Add $(DESTDIR).
10208 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
10210         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
10211         also when not defining if a Size clause applies. That information is
10212         not to be ignored.
10214 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
10216         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
10217         symbolic links for the shared gnat run time when needed.
10219 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
10221         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
10222         for writing, and terminate with an error message if not.
10224 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
10226         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
10227         warning on an access to subprogram in an instance, when the target
10228         type is declared in the same generic unit.
10229         (Eval_Attribute): If 'access is known to fail accessibility check,
10230         rewrite as a raise statement.
10232 2004-01-15  GNAT Script  <nobody@gnat.com>
10234         * Make-lang.in: Makefile automatically updated
10236 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
10238         * Make-lang.in (ada.srcextra): Dummy entry.
10240 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
10242         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
10244 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
10246         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
10247         components that are initialized with aggregates.
10249 2004-01-13  Vincent Celier  <celier@gnat.com>
10251         * gnatlink.adb (Process_Binder_File): To find directory of shared
10252         libgcc, if "gcc-lib" is not a subdirectory, look for the last
10253         subdirectory "lib" in the path of the shared libgnat or libgnarl.
10255         * make.adb (Gnatmake): If GCC version is at least 3, link with
10256         -shared-libgcc, when there is at least one shared library project.
10258         * opt.ads (GCC_Version): New integer constant.
10260         * adaint.c (get_gcc_version): New function.
10262 2004-01-13  Robert Dewar  <dewar@gnat.com>
10264         * sem_dist.adb, sem_res.adb, sem_util.adb,
10265         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
10266         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
10268 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
10270         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
10271         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
10272         declarations.
10274 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
10276         * misc.c: Remove trailing spaces.
10277         Update copyright notice missed in previous change.
10279         PR ada/13572
10280         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
10281         prefix/share/make
10283         * Makefile.generic: Update copyright.
10284         Add license notice.
10286         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
10287         of prefix/share/make.
10289         * Makefile.prolog: Update copyright.
10290         Add license notice.
10292 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
10294         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
10295         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
10296         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
10297         instead of String.
10299         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
10300         signature.
10302 2004-01-12  Javier Miranda  <miranda@gnat.com>
10304         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
10305         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
10306         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
10307         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
10308         Component_Definition node.
10310 2004-01-12  Ed Falis  <falis@gnat.com>
10312         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
10314 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
10316         * link.c: Change default libgnat kind to STATIC for FreeBSD.
10318 2004-01-12  Bernard Banner  <banner@gnat.com>
10320         * Makefile.in: map 86numaux to a-numaux for x86_64
10322 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
10324         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
10325         generated to rename a generic actual, go to the actual itself, the
10326         subtype is not a user-visible entity.
10328         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
10329         part is a private subtype, reset the visibility of its full view, if
10330         any, to be consistent.
10332         PR ada/13417
10333         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
10334         to use a generic package G as a formal package for another generic
10335         declared within G.
10337 2004-01-12  Robert Dewar  <dewar@gnat.com>
10339         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
10341         * usage.adb: Remove mention of obsolete -gnatwb switch
10342         Noticed during code reading
10344 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
10346         * 1ssecsta.adb: Minor changes for -gnatwa warnings
10348 2004-01-12  GNAT Script  <nobody@gnat.com>
10350         * Make-lang.in: Makefile automatically updated
10352 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
10354         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
10356 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10358         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
10360 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
10362         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
10363         Update comment and copyright date.
10364         * stamp-xgnatug: Delete.
10366 2004-01-05  Robert Dewar  <dewar@gnat.com>
10368         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
10369         be modified by the binder generated main program if the -D switch is
10370         used.
10372         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
10373         imported functions (since now we expect this to be done for imported
10374         functions)
10376         * 5vtaprop.adb: Add several ??? for sections requiring more comments
10377         Minor reformatting throughout
10379         * 5zinit.adb: Minor reformatting
10380         Add 2004 to copyright date
10381         Minor changes to avoid -gnatwa warnings
10382         Correct some instances of using OR instead of OR ELSE (noted while
10383         doing reformatting)
10385         * sprint.adb: Minor updates to avoid -gnatwa warnings
10387         * s-secsta.ads, s-secsta.adb:
10388         (SS_Get_Max): New function to obtain high water mark for ss stack
10389         Default_Secondary_Stack is not a constant since it may be modified by
10390         the binder generated main program if the -D switch is used.
10392         * switch-b.adb: New -Dnnn switch for binder
10394         * switch-c.adb:
10395         Make -gnatg imply all warnings currently in -gnatwa
10397         * vms_conv.adb: Minor reformatting
10398         Add 2004 to copyright notice
10399         Add 2004 to printed copyright notice
10401         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
10402         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
10403         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
10404         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
10405         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
10406         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
10407         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
10408         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
10409         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
10410         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
10411         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
10412         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
10413         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
10414         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
10415         checks.adb, clean.adb, cstand.adb, einfo.ads,
10416         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
10417         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
10418         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
10419         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
10420         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
10421         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
10422         Minor reformatting and code clean ups.
10423         Minor changes to prevent -gnatwa warnings
10425         * ali.adb: Minor reformatting and cleanup of code
10426         Acquire new SS indication of secondary stack use from ali files
10428         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
10429         (since now we expect this to be done for imported functions)
10431         * bindgen.adb: Generate call to modify default secondary stack size if
10432         -Dnnn switch given
10434         * bindusg.adb: Add line for new -D switch
10436         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
10437         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
10438         Add circuitry for both records and arrays to avoid gigi
10439         processing if the type involved has non-bit-aligned components
10441         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
10442         N_String_Literal node always references an E_String_Literal_Subtype
10443         entity. This may not be true in the future.
10444         (Possible_Bit_Aligned_Component): Move processing of
10445         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
10447         * exp_ch6.adb (Expand_Thread_Body): Pick up
10448         Default_Secondary_Stack_Size as variable so that we get value modified
10449         by possible -Dnnn binder parameter.
10451         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
10452         (Type_May_Have_Bit_Aligned_Components): New function.
10454         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
10455         (Type_May_Have_Bit_Aligned_Components): New function.
10457         * fe.h: (Set_Identifier_Casing): Fix prototype.
10458         Add declaration for Sem_Elim.Eliminate_Error_Msg.
10459         Minor reformatting.
10461         * freeze.adb (Freeze_Entity): Add RM reference to error message about
10462         importing constant atomic/volatile objects.
10463         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
10464         unless explicit Pure_Function pragma given, to avoid insidious bug of
10465         call to non-pure imported function getting eliminated.
10467         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
10468         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
10469         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
10470         Add 2004 to printed copyright notice
10472         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
10473         stack used.
10475         * Makefile.rtl: Add entry for g-sestin.o
10476         g-sestin.ads: New file.
10478         * mdll.adb: Minor changes to avoid -gnatwa warnings
10480         * mlib-tgt.adb: Minor reformatting
10482         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
10483         New switch Sec_Stack_Used (GNAT, GNATBIND)
10484         Make Default_Secondary_Stack_Size a variable instead of a constant,
10485         so that it can be modified by the new -Dnnn bind switch.
10487         * rtsfind.adb (Load_Fail): Give full error message in configurable
10488         run-time mode if all_errors mode is set. This was not done in the case
10489         of a file not found, which was an oversight.
10490         Note if secondary stack unit is used by compiler.
10492         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
10493         ineffective elaborate all pragmas on non-visible packages (this
10494         happened when a renamed subprogram was called). Now the elaborate all
10495         always goes on the package containing the renaming rather than the one
10496         containing the renamed subprogram.
10498         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
10499         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
10501         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
10502         has an Etype that references an E_String_Literal.
10503         (Eval_String_Literal): Avoid assumption that N_String_Literal node
10504         always references an E_String_Literal_Subtype entity. This may not
10505         be true in the future.
10507         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
10508         pragma location.
10510         * sem_res.adb (Resolve): Specialize msg for function name used in proc
10511         call.
10513 2004-01-05  Ed Falis  <falis@gnat.com>
10515         * g-debuti.adb: Replaced direct boolean operator with short-circuit
10516         form.
10518 2004-01-05  Vincent Celier  <celier@gnat.com>
10520         * bld.adb: Minor comment updates
10521         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
10522         of Item_Name).
10524         * make.adb (Gnatmake): Special process for files to compile/check when
10525         -B is specified. Fail when there are only foreign mains in attribute
10526         Main of the project file and -B is not specified. Do not skip bind/link
10527         steps when -B is specified.
10529         * makeusg.adb: Document new switch -B
10531         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
10533         * switch-m.adb: (Scan_Make_Switches): Process -B switch
10535         * vms_data.ads: Add new GNAT PRETTY qualifier
10536         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
10538 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10540         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
10541         case.
10543         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
10544         Set_Identifier_Casing.
10546         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
10547         has size that overflows.
10549 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
10551         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
10552         -gnatwa warning on static condition.
10554 2004-01-05  Doug Rupp  <rupp@gnat.com>
10556         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
10558 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
10560         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
10561         all attributes, including read-only attribute.
10563 2004-01-05  Pascal Obry  <obry@gnat.com>
10565         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
10566         library naming scheme.
10568         * mlib-prj.adb (Build_Library): Generate different names for the static
10569         or dynamic version of the GNAT runtime. This is needed to support the
10570         new shared library naming scheme.
10571         (Process_Binder_File): Add detection of shared library in binder file
10572         based on the new naming scheme.
10574         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
10575         scheme for the shared runtime libraries.
10577         * Makefile.in:
10578         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
10579         scheme.
10580         (install-gnatlib): Do not create symlinks for shared libraries.
10581         (gnatlib-shared-default): Idem.
10582         (gnatlib-shared-dual-win32): New target. Not used for now as the
10583         auto-import feature does not support arrays/records.
10584         (gnatlib-shared-win32): Do not create copy for the shared libraries.
10585         (gnatlib-shared-vms): Fix shared runtime libraries names.
10587         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
10588         dependent runtime shared library name.
10590 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
10592         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
10593         than the object.
10595 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
10597         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
10598         protected objects when allocator has a subtype indication, not a
10599         qualified expression. Note that qualified expressions may have to be
10600         checked when limited aggregates are implemented.
10602         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
10603         pure, emit warning.
10604         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
10605         subprogram is imported, remove warning.
10607 2004-01-05  Geert Bosch  <bosch@gnat.com>
10609         * s-poosiz.adb: Update copyright notice.
10610         (Allocate): Use Task_Lock to protect against concurrent access.
10611         (Deallocate): Likewise.
10613 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
10615         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
10616         comment.
10618 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
10620         * gnat_ug.texi: Force a CVS commit by updating copyright.
10621         * gnat_ug_vxw.texi: Regenerate.
10622         * gnat_ug_wnt.texi: Regenerate.
10623         * gnat_ug_vms.texi: Regenerate.
10624         * gnat_ug_unx.texi: Regenerate.
10626 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
10628         * trans.c: Remove uses of "register" specifier in
10629         declarations of local variables.
10631 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
10633         * stamp-xgnatug: New stamp file.
10634         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
10635         (ada/doctools/xgnatug): Add $(build_exeext).
10636         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
10637         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
10639 2003-12-17  Ed Falis  <falis@gnat.com>
10641         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
10642         eliminate warning.
10644         * a-exextr.adb: Add context clause for
10645         Ada.Exceptions.Last_Chance_Handler.
10647 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
10649         * cstand.adb (Create_Standard): Change the way how the declaration of
10650         the Duration type is created (making it the same way as it is for all
10651         the other standard types).
10653 2003-12-17  Robert Dewar  <dewar@gnat.com>
10655         * s-crtl.ads: Fix header format
10656         Change Pure to Preelaborate
10658 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
10660         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
10661         the expression type only if it is declared in the current unit.
10663         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
10664         are universal and already analyzed, as can occur in constrained
10665         subcomponents that depend on discriminants, when one constraint is a
10666         subtype mark.
10668         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
10669         type Any_Fixed is legal as the argument of a conversion, if only one
10670         fixed-point type is in context.
10672 2003-12-17  GNAT Script  <nobody@gnat.com>
10674         * Make-lang.in: Makefile automatically updated
10676 2003-12-15  Robert Dewar  <dewar@gnat.com>
10678         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
10679         sec stack size.
10681 2003-12-15  Vincent Celier  <celier@gnat.com>
10683         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
10684         (Gnatchop): Do not set failure status when reporting the number of
10685         warnings.
10687 2003-12-15  Doug Rupp  <rupp@gnat.com>
10689         * s-ctrl.ads: New file.
10691         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
10693         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
10694         (GNATBIND_OBJS): Add ada/s-crtl.o.
10696         * Makefile.in [VMS]: Clean up ifeq rules.
10698         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
10699         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
10700         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
10701         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
10702         s-tasdeb.adb: Update copyright.
10703         Import System.CRTL.
10704         Make minor modifications to use System.CRTL declared functions instead
10705         of importing locally.
10707 2003-12-15  GNAT Script  <nobody@gnat.com>
10709         * Make-lang.in: Makefile automatically updated
10711 2003-12-11  Ed Falis  <falis@gnat.com>
10713         * 5zinit.adb: Clean up.
10715         * 5zintman.adb (Notify_Exception): replaced case statement with a call
10716         to __gnat_map_signal, imported from init.c to support
10717         signal -> exception mappings that depend on the vxWorks version.
10719         * init.c:
10720         Created and exported __gnat_map_signal to support signal -> exception
10721         mapping that is dependent on the VxWorks version.
10722         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
10724 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
10726         * 5wosinte.ads: Link with -mthreads switch.
10728 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
10730         * init.c (__gnat_install_handler [NetBSD]): Set
10731         __gnat_handler_installed, as done on all other platforms.
10732         Remove duplicated code.
10734 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
10736         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
10738 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
10740         * sinfo.ads: Fix inconsistent example code in comment.
10742 2003-12-11  Robert Dewar  <dewar@gnat.com>
10744         * a-tiinau.adb: Add a couple of comments
10746         * sem_ch3.adb: Minor reformatting
10748         * sem_prag.adb:
10749         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
10750         Minor reformatting throughout
10752 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
10754         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
10755         bounds of a loop, create a separate block in order to generate proper
10756         cleanup actions to prevent memory leaks.
10758         * sem_res.adb (Resolve_Call): After a call to
10759         Establish_Transient_Scope, the call may be rewritten and relocated, in
10760         which case no further processing is needed.
10762         * sem_util.adb: (Wrong_Type): Refine previous fix.
10763          Fixes ACATS regressions.
10765         PR ada/13353
10767         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
10768         be inlined.
10770 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
10772         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
10773         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
10774         obsolete files.
10776         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
10777         (rts-zfp): Ditto.
10779 2003-12-08  Robert Dewar  <dewar@gnat.com>
10781         * 7sintman.adb: Minor reformatting
10783         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
10784         standard linker options to get standard libraries linked. We now plan
10785         to provide dummy versions of these libraries to match the appropriate
10786         configurable run-time (e.g. if a library is not needed at all, provide
10787         a dummy empty library).
10789         * targparm.ads: Configurable_Run_Time mode no longer affects linker
10790         options (-L parameters and standard libraries). What we plan to do is
10791         to provide dummy libraries where the libraries are not required.
10793         * gnatbind.adb: Minor comment improvement
10795 2003-12-08  Javier Miranda  <miranda@gnat.com>
10797         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
10798         aggregate in the parent. Otherwise constants with limited aggregates
10799         are not supported. Add new formal to pass the component type (Ctype).
10800         It is required to call the corresponding IP subprogram in case of
10801         default initialized components.
10802         (Gen_Assign): In case of default-initialized component, generate a
10803         call to the IP subprogram associated with the component.
10804         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
10805         of aggregate with default initialized components.
10806         (Has_Default_Init_Comps): Improve implementation to recursively check
10807         all the present expressions.
10809         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
10810         to indicate that the initialization call corresponds to a
10811         default-initialized component of an aggregate.
10812         In case of default initialized aggregate with tasks this parameter is
10813         used to generate a null string (this is just a workaround that must be
10814         improved later). In case of discriminants, this parameter is used to
10815         generate a selected component node that gives access to the discriminant
10816         value.
10818         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
10819         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
10820         allocated aggregates with default-initialized components.
10822         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
10823         the box notation is used in positional aggregates.
10825 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
10827         * lib.ads: Fix typo in comment
10829 2003-12-08  Vincent Celier  <celier@gnat.com>
10831         * prj.adb (Project_Empty): New component Unkept_Comments
10832         (Scan): Remove procedure; moved to Prj.Err.
10834         * prj.ads (Project_Data): New Boolean component Unkept_Comments
10835         (Scan): Remove procedure; moved to Prj.Err.
10837         * prj-dect.adb: Manage comments for the different declarations.
10839         * prj-part.adb (With_Record): New component Node
10840         (Parse): New Boolean parameter Store_Comments, defaulted to False.
10841         Set the scanner to return ends of line and comments as tokens, if
10842         Store_Comments is True.
10843         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
10844         comments are associated with these nodes. Store the node IDs in the
10845         With_Records.
10846         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
10847         With_Records.
10848         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
10849         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
10850         current project. Call Tree.Restore afterwards. Set the various nodes
10851         for comment storage (Next_End, End_Of_Line, Previous_Line,
10852         Previous_End).
10854         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
10855         defaulted to False.
10857         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
10858         to False. When Truncated is True, truncate the string, never go to the
10859         next line.
10860         (Write_End_Of_Line_Comment): New procedure
10861         (Print): Process comments for nodes N_With_Clause,
10862         N_Package_Declaration, N_String_Type_Declaration,
10863         N_Attribute_Declaration, N_Typed_Variable_Declaration,
10864         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
10865         Process nodes N_Comment.
10867         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
10868         without comments and there are some comments, set the flag
10869         Unkept_Comments to True.
10870         (Scan): If there are comments, set the flag Unkept_Comments to True and
10871         clear the comments.
10872         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
10873         (Next_End_Nodes: New table
10874         (Comment_Zones_Of): New function
10875         (Scan): New procedure; moved from Prj. Accumulate comments in the
10876         Comments table and set end of line comments, comments after, after end
10877         and before end.
10878         (Add_Comments): New procedure
10879         (Save, Restore, Seset_State): New procedures
10880         (There_Are_Unkept_Comments): New function
10881         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
10882         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
10883         procedures.
10884         (First_Comment_After, First_Comment_After_End): New functions
10885         (First_Comment_Before, First_Comment_Before_End): New functions
10886         (Next_Comment): New function
10887         (End_Of_Line_Comment, Follows_Empty_Line,
10888         Is_Followed_By_Empty_Line): New functions
10889         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
10890         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
10891         (Set_Next_Comment): New procedure
10892         (Default_Project_Node): Associate comment before if the node can store
10893         comments.
10895         * scans.ads (Token_Type): New enumeration value Tok_Comment
10896         (Comment_Id): New global variable
10898         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
10899         defaulted to False.
10900         (Scan): Store position of start of comment. If comments are tokens, set
10901         Comment_Id and set Token to Tok_Comment when scanning a comment.
10902         (Set_Comment_As_Token): New procedure
10904         * sinput-p.adb: Update Copyright notice
10905         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
10906         that no longer exists.
10908 2003-12-08  Javier Miranda  <miranda@gnat.com>
10910         * sem_aggr.adb: Add dependence on Exp_Tss package
10911         Correct typo in comment
10912         (Resolve_Aggregate): In case of array aggregates set the estimated
10913         type of the aggregate before calling resolve. This is needed to know
10914         the name of the corresponding IP in case of limited array aggregates.
10915         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
10916         in case of default initialized array components.
10918         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
10919         types. Required to give support to limited aggregates in generic
10920         formals.
10922 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
10924         * sem_ch3.adb (Check_Initialization): For legality purposes, an
10925         inlined body functions like an instantiation.
10926         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
10927         until bounds are analyzed, to diagnose premature use of type.
10929         * sem_util.adb (Wrong_Type): Improve error message when the type of
10930         the expression is used prematurely.
10932 2003-12-08  GNAT Script  <nobody@gnat.com>
10934         * Make-lang.in: Makefile automatically updated
10936 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
10938         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
10939         they are automatically generated by Make-lang.in and cause nothing but
10940         maintenance troubles.
10942 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
10944         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
10945         version of this unit).
10947 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
10949         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
10950         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
10951         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
10952         the body of System.Interrupt_Management common to several targets.
10953         Update copyright notice when appropriate.
10955         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
10956         constant.
10958         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
10959         to ensure that the kernel fills in the interrupted context structure
10960         before calling a signal handler, which is necessary to be able to
10961         unwind past it. Update the copyright notice.
10963 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
10965         * a-elchha.ads: New file.
10967         * a-elchha.adb: New default last chance handler. Contents taken from
10968         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
10970         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
10971         is moved to a-elchha.adb to provide a target-independent default last
10972         chance handler.
10974         * Makefile.rtl: Add a-elchha.o
10976         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
10978 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
10980         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
10981         declared in an instance, do not inline the call if the instance is not
10982         frozen yet, to prevent order of elaboration problems.
10984         * sem_prag.adb: Add comments for previous fix.
10986 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
10988         * g-table.adb: Use the right variable in Set_Item.
10989         Update copyright notice.
10991 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
10993         * Makefile.in: Remove unused rules.
10995 2003-12-05  Vincent Celier  <celier@gnat.com>
10997         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
10998         -nostdlib. Not needed here after all.
11000 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
11002         PR ada/11724
11004         * adaint.h, adaint.c, g-os_lib.ads:
11005         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
11006         on some platforms (including FreeBSD), it is a 64 bit value.
11007         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
11009 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
11011         * gnatvsn.ads (Library_Version): Now contain only the relevant
11012         version info.
11013         (Verbose_Library_Version): New constant.
11015         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
11016         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
11017         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
11019         * gnatlbr.adb: Clean up: replace Library_Version by
11020         Verbose_Library_Version.
11022         * make.adb, lib-writ.adb, exp_attr.adb:
11023         Clean up: replace Library_Version by Verbose_Library_Version.
11025         * 5lintman.adb: Removed.
11027         * Makefile.in:
11028         Update and simplify computation of LIBRARY_VERSION.
11029         Fix computation of GSMATCH_VERSION.
11030         5lintman.adb is no longer used: replaced by 7sintman.adb.
11032 2003-12-03  Robert Dewar  <dewar@gnat.com>
11034         * exp_ch5.adb:
11035         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
11036         name. Modified to consider small non-bit-packed arrays as troublesome
11037         and in need of component-by-component assigment expansion.
11039 2003-12-03  Vincent Celier  <celier@gnat.com>
11041         * lang-specs.h: Process nostdlib as nostdinc
11043         * back_end.adb: Update Copyright notice
11044         (Scan_Compiler_Arguments): Process -nostdlib directly.
11046 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
11048         * Makefile.in:
11049         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
11050         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
11051         included in HIE_NONE_TARGET_PAIRS.
11053 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
11055         * sem_attr.adb:
11056         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
11057         is legal in an instance, because legality is cheched in the template.
11059         * sem_prag.adb:
11060         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
11061         appplied to an unchecked conversion of a formal parameter.
11063         * sem_warn.adb:
11064         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
11065         variables.
11067 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
11069         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
11070         routines. The second one is new functionality to deal with backtracing
11071         through signal handlers.
11072         (unwind): Split into the two separate subroutines above.
11073         Update the documentation, and deal properly with sizeof (REG) different
11074         from sizeof (void*).
11076 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
11078         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
11079         so that the debugger can reliably access the value of the parameter,
11080         and therefore is able to display the exception name when an exception
11081         breakpoint is reached.
11083 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
11085         * fmap.adb: Fix typo in warning message.
11087         * g-socket.ads, g-socket.adb: Make Free a visible instance of
11088         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
11090 2003-12-01  Vincent Celier  <celier@gnat.com>
11092         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
11093         ther is no Afile.
11094         (Build_Library): Get the switches only if Default_Switches is declared
11095         in package Binder.
11097 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
11099         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
11100         actuals that are indexed components, reanalyze actual to ensure that
11101         packed array references are properly expanded.
11103         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
11104         attempted assignment to a discriminant.
11106 2003-12-01  Robert Dewar  <dewar@gnat.com>
11108         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
11109         reformatting.
11111         * switch-c.adb: Minor reformatting of comments
11113 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
11115         * Makefile.in: Clean ups.
11117 2003-12-01  GNAT Script  <nobody@gnat.com>
11119         * Make-lang.in: Makefile automatically updated
11121 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
11123         * 5wsystem.ads: Disable zero cost exception, not ready yet.
11125 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
11127         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
11128         to force serialization.
11130 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
11132         * g-socket.ads, g-socket.adb:
11133         Clarify documentation of function Stream. Introduce a Free procedure
11134         to release the returned Stream once it becomes unused.
11136         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
11138 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
11140         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
11141         since NT 4 cannot handle timeout values that are too large,
11142         e.g. DWORD'Last - 1.
11144 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
11146         * exp_ch4.adb:
11147         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
11148         in procedure calls and whose expansion must be deferred.
11150         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
11151         is in exp_ch4.
11153         * sem_ch3.adb:
11154         (Build_Derived_Array_Type): Create operator for unconstrained type
11155         if ancestor is unconstrained.
11157 2003-11-26  Vincent Celier  <celier@gnat.com>
11159         * make.adb (Project_Object_Directory): New global variable
11160         (Change_To_Object_Directory): New procedure
11161         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
11162         of Change_Dir directly. Do not change working directory to object
11163         directory of main project after each compilation.
11164         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
11165         directly.
11166         Change to object directory of main project before binding step.
11167         (Initialize): Initialize Project_Object_Directory to No_Project
11169         * mlib-prj.adb:
11170         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
11171         binding a Stand-Alone Library.
11173         * output.adb: Update Copyright notice
11174         (Write_Char): Output buffer when full
11176 2003-11-26  Robert Dewar  <dewar@gnat.com>
11178         * sem_ch13.adb: (Check_Size): Reset size if size is too small
11180         * sem_ch13.ads:
11181         (Check_Size): Fix documentation to include bit-packed array case
11183         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
11185         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
11187         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
11189 2003-11-24  Arnaud Charlet <charlet@act-europe.fr>
11191         PR ada/13142
11192         * utils.c (init_gigi_decls): Change name of built-in setjmp to
11193         __builtin_setjmp, since this is apparently needed by recent
11194         non Ada changes.
11196 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11198         * adadecode.c: Only include ctype.h if not IN_GCC.
11199         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
11201 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
11203         * Makefile.in:
11204         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
11205         signals and interrupts.
11207         * 5zintman.ads: New File.
11209         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
11210         add exception signals to the set of unmasked signals.
11212         * 5ztaprop.adb:
11213         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
11214         between signals and interrupts.
11215         Add to Unblocked_Signal_Mask the set of signals that are in
11216         Keep_Unmasked.
11218         * 7sinmaop.adb:
11219         Adding a check to see whether the Interrupt_ID we want to unmask is in
11220         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
11221         reason is that the index type of the Keep_Unmasked array is not always
11222         Interrupt_ID; it may be a subtype of Interrupt_ID.
11224 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
11226         * exp_util.adb:
11227         (Remove_Side_Effects): Condition constantness of object created for a
11228          an unchecked type conversion on the constantness of the expression
11229          to ensure the correct value for 'Constrained when passing components
11230          of view-converted class-wide objects.
11232 2003-11-24  Robert Dewar  <dewar@gnat.com>
11234         * par-load.adb (Load): Improve handling of misspelled and missing units
11235         Removes several cases of compilation abandoned messages
11237         * lib.adb: (Remove_Unit): New procedure
11239         * lib.ads: (Remove_Unit): New procedure
11241         * lib-load.adb: Minor reformatting
11243 2003-11-24  Vincent Celier  <celier@gnat.com>
11245         * make.adb:
11246         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
11247         (Marking_Label): Label to mark processed source files. Incremented for
11248         each executable.
11249         (Gnatmake): Increase Marking_Labet for each executable
11250         (Is_Marked): Compare against marking label
11251         (Mark): Mark with marking label
11253 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
11255         * s-thread.ads:
11256         Move the declaration of the TSD for System.Threads to System.Soft_Links.
11257         Add some comments.
11259         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
11260         (rts-cert): build a single relocatable object for the run-time lib.
11261         Fix perms.
11263 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
11265         * Make-lang.in:
11266         Use gnatls rather than gcc to obtain the location of GNAT RTL for
11267         crosstools build.
11269 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
11271         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
11272         can not use it as before (that is, as a variable) when dumping it into
11273         the tree file. Add a local variable to store the result of this
11274         function and to be used as the string to be written into the tree.
11276         * scn.adb (Initialize_Scanner): Add comments explaining the recent
11277         changes.
11279         * sinput.adb (Source_First, Source_Last): In case of
11280         Internal_Source_File, replace returning attributes of
11281         Internal_Source_Ptr (which is wrong) with returning attributes of
11282         Internal_Source.
11284 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
11286         * sem_ch3.adb:
11287         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
11288         used for implicit concatenation operators.
11289         Code cleanup.
11291         * sem_elab.adb:
11292         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
11293         task bodies that are in the scope of a Suppress pragma.
11294         (Check_A Call): Use the flag to prevent spurious elaboration checks.
11296         * sinfo.ads, sinfo.adb:
11297         New flag No_Elaboration_Check on function/procedure calls, to properly
11298         suppress checks on calls in task bodies that are within a local suppress
11299         pragma.
11301         * exp_ch4.adb:
11302         (Expand_Concatenate_Other): Use the proper integer type for the
11303         expression for the upper bound, to avoid universal_integer computations
11304         when possible.
11306 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
11308         * .cvsignore: Delete.
11310 2003-11-21  Andreas Schwab  <schwab@suse.de>
11312         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
11314 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
11316         * 5wsystem.ads: Enable zero cost exception.
11318 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
11320         * 5ztiitho.adb: Remove an unreferenced variable.
11322 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
11324         * adaint.c: For FreeBSD, use mkstemp.
11326 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
11328         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
11330 2003-11-21  Robert Dewar  <dewar@gnat.com>
11332         * bld.adb: Remove useless USE of gnatvsn
11334         * gnatchop.adb: Minor reformatting
11335         Clean up version handling to be more consistent
11337         * gnatxref.adb: Minor reformatting
11339         * gprcmd.adb: Minor reformatting
11340         Fix output of copyright to be more consistent with other tools
11342 2003-11-21  Vincent Celier  <celier@gnat.com>
11344         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
11346 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
11348         * atree.adb (Initialize): Add initializations for global variables
11349         used in New_Copy_Tree.
11351         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
11352         Internal_Source_File as the actual).
11353         Put the set of statements creating Any_Character before the set of
11354         statements creating Any_Array to have Any_Character fully initialized
11355         when it is used in creating Any_Array.
11357         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
11358         not call Scan in case if the actual is Internal_Source_File
11359         Add 2003 to copyright note.
11361         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
11362         processing Internal_Source_File.
11364         * types.ads: Add the constant Internal_Source_File representing the
11365         source buffer for artificial source-code-like strings created within
11366         the compiler (the definition of Source_File_Index is changed).
11368 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
11370         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
11371         56system.ads: New file, FreeBSD version.
11373 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
11375         * Make-lang.in (ada.extraclean): Delete.
11377 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
11379         * gnatmem.adb: Clean up verbose output.
11381         * gprcmd.adb: Change copyright to FSF.
11383 2003-11-19  Vincent Celier  <celier@gnat.com>
11385         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
11386         and Version (ignored).
11388         * symbols.ads: (Policy): New type
11389         (Initialize): New parameter Reference, Symbol_Policy and
11390         Library_Version.
11391         Remove parameter Force.
11392         Minor reformatting.
11394         * snames.ads, snames.adbadb: New standard names
11395         Library_Reference_Symbol_File and Library_Symbol_Policy
11397         * mlib-prj.adb:
11398         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
11399         project.
11401         * mlib-tgt.adb:
11402         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
11404         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
11406         * prj.adb: (Project_Empty): New component Symbol_Data
11408         * prj.ads: (Policy, Symbol_Record): New types
11409         (Project_Data): New component Symbol_Data
11411         * prj-attr.adb:
11412         New attributes Library_Symbol_File, Library_Symbol_Policy and
11413         Library_Reference_Symbol_File.
11415         * prj-nmsc.adb:
11416         (Ada_Check): When project is a Stand-Alone library project, process
11417         attribute Library_Symbol_File, Library_Symbol_Policy and
11418         Library_Reference_Symbol_File.
11420         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
11421         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
11422         5sml-tgt.adb (Build_Dynamic_Library): New parameter
11423         Symbol_Data (ignored).
11425         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
11426         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
11427         functions Option_File_Name and Version_String. Set new options of
11428         gnatsym related to symbol file, symbol policy and reference symbol
11429         file.
11431         * 5vsymbol.adb:
11432         Extensive modifications to take into account the reference symbol file,
11433         the symbol policy, the library version and to put in the symbol file the
11434         minor and major IDs.
11436         * bld.adb (Process_Declarative_Items): Put second argument of
11437         gprcmd to_absolute between single quotes, to avoid problems with
11438         Windows.
11440         * bld-io.adb: Update Copyright notice.
11441         (Flush): Remove last character of a line, if it is a back slash, to
11442         avoid make problems.
11444         * gnatsym.adb:
11445         Implement new scheme with reference symbol file and symbol policy.
11447         * g-os_lib.ads: (Is_Directory): Clarify comment
11449 2003-11-19  Robert Dewar  <dewar@gnat.com>
11451         * atree.adb: Move New_Copy_Tree global variables to head of package
11453         * errout.adb: Minor reformatting
11455 2003-11-19  Javier Miranda  <miranda@gnat.com>
11457         * sem_ch4.adb: (Diagnose_Call): Improve error message.
11458         Add reference to Ada0Y (AI-50217)
11460         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
11461         sem_util.adb: Add reference to AI-50217
11463         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
11465         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
11467         * sem_aggr.adb: Complete documentation of AI-287 changes
11469         * par-ch4.adb: Document previous changes.
11471         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
11472         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
11473         Ada0Y (AI-50217)
11475         * exp_aggr.adb: Add references to AI-287 in previous changes
11477 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
11479         * exp_ch6.adb:
11480         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
11481         in the rewriting is the result of an inlined call.
11483         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
11484         parameter is a type conversion, use original node to construct the
11485         post-call assignment, because expression may have been rewritten, e.g.
11486         if it is a packed array.
11488         * sem_attr.adb:
11489         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
11490         body, just as it is in an instance.
11491         Categorization routines
11493         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
11494         Instantiate_Object): Set proper sloc reference for message on missing
11495         actual.
11497 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
11499         * Makefile.in: Add FreeBSD libgnat pairs.
11501         * usage.adb: Fix typo in usage message.
11503 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
11505         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
11506         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
11507         pragma Thread_Body.
11508         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
11510         * s-thread.adb: This file is now a dummy implementation of
11511         System.Thread.
11513 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
11515         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
11517 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
11519         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
11520         instanciation references in the parent type description.
11522 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11524         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
11526         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
11527         TYPE_PRECISION directly from esize.
11529 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
11531         * cstreams.c:
11532         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
11534         * init.c: Initialization routines for FreeBSD
11536         * link.c: Link info for FreeBSD
11538         * sysdep.c: Add the case of FreeBSD
11540 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
11542         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
11543         already called in System.Threads.
11545         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
11546         environment task, as it has been moved to System.Threads.Initialization.
11548 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
11550         * adaint.c (__gnatlib_install_locks): Only reference
11551         __gnat_install_locks on VMS, since other platforms can avoid using
11552         --enable-threads=gnat
11554 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11556         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
11558         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
11559         TYPE_PACKED_ARRAY_TYPE_P.
11560         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
11562         Part of PR ada/12806
11563         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
11564         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
11566 2003-11-17  Vincent Celier  <celier@gnat.com>
11568         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
11569         to False.
11570         Do not set exit status to Failure when Warning is True.
11571         (Gnatchop): Make errors "no compilation units found" and
11572         "no source files written" warnings only.
11574         * make.adb (Gnatmake): When using a project file, set
11575         Look_In_Primary_Dir to False.
11576         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
11577         and Local_Configuration_Pragmas in the project where they are declared
11578         not an extending project which might have inherited them.
11580         * osint.adb (Locate_File): If Name is already an absolute path, do not
11581         look for a directory.
11583         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
11584         -gnats (Check_Syntax) is used, issue only a warning, not an error.
11586         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
11587         in objects of type Variable_Value.
11589         * prj.ads: (Variable_Value): New component Project
11591         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
11592         is in a project extended by Project.
11594         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
11595         Project of Variable_Values to this new parameter value.
11596         (Expression): Set component Project of Variable_Values.
11597         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
11598         Set the component Project in array elements.
11600 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
11602         * errout.adb: (Initialize): Add initialization for error nodes.
11604         * sem_ch12.adb (Initialize): Add missing initializations for
11605         Exchanged_Views and Hidden_Entities.
11607 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
11609         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
11610         already instantiated tree for use in subsequent inlining.
11611         (Analyze_Associations, Instantiate_Formal_Subprogram,
11612         Instantiate_Object): improve error message for mismatch in
11613         instantiations.
11615         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
11616         instantiations of subprograms declared in instances.
11618 2003-11-17  Javier Miranda  <miranda@gnat.com>
11620         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
11621         executed only under the Extensions_Allowed flag.
11623 2003-11-17  Robert Dewar  <dewar@gnat.com>
11625         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
11626         zeroes suppressed.
11627         (Address_Image): Fix bug of returning 0x instead of 0x0
11628         Minor reformatting (function specs).
11630         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
11631         (missed case of 33-63)
11633         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
11635         * s-thread.adb: Add comments for pragma Restriction
11637         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
11638         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
11640 2003-11-17  Ed Falis  <falis@gnat.com>
11642         * s-thread.adb: Added No_Tasking restriction for this implementation.
11644 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
11646         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
11647         instanciation references in the parent type description.
11649 2003-11-17  GNAT Script  <nobody@gnat.com>
11651         * Make-lang.in: Makefile automatically updated
11653 2003-11-16  Jason Merrill  <jason@redhat.com>
11655         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
11656         and TAGS files that include them for each front end.
11658 2003-11-14  Andreas Jaeger  <aj@suse.de>
11660         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
11661         is the canonical version.
11662         * misc.c (gnat_handle_option): Likewise.
11664         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
11666         * 5nsystem.ads: New file for x86_64-linux-gnu.
11668 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
11670         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
11672         * comperr.adb: Fix logic in previous change.
11674 2003-11-13  Vincent Celier  <celier@gnat.com>
11676         * 5bml-tgt.adb (Build_Dynamic_Library): Use
11677         Osint.Include_Dir_Default_Prefix instead of
11678         Sdefault.Include_Dir_Default_Name.
11680         * gnatlbr.adb: Update Copyright notice
11681         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
11682         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
11683         instead of Sdefault.Object_Dir_Default_Name
11685         * gnatlink.adb:
11686         (Process_Binder_File): Never suppress the option following -Xlinker
11688         * mdll-utl.adb:
11689         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
11690         Sdefault.Object_Dir_Default_Name.
11692         * osint.ads, osint.adb:
11693         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
11694         Minor reformatting.
11696         * vms_conv.ads: Minor reformating
11697         Remove GNAT STANDARD and GNAT PSTA
11699         * vms_conv.adb:
11700         Allow GNAT MAKE to have several files on the command line.
11701         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
11702         Sdefault.Object_Dir_Default_Name.
11703         Minor Reformating
11704         Remove data for GNAT STANDARD
11706         * vms_data.ads:
11707         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
11708         Remove data for GNAT STANDARD
11709         Remove options and documentation for -gnatwb/-gnatwB: these warning
11710         options no longer exist.
11712 2003-11-13  Ed Falis  <falis@gnat.com>
11714         * 5zthrini.adb: (Init_RTS): Made visible
11716         * 5zthrini.adb:
11717         (Register): Removed unnecessary call to taskVarGet that checked whether
11718          an ATSD was already set as a task var for the argument thread.
11720         * s-thread.adb:
11721         Updated comment to reflect that this is a VxWorks version
11722         Added context clause for System.Threads.Initialization
11723         Added call to System.Threads.Initialization.Init_RTS
11725 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
11727         * 5zthrini.adb:
11728         (Init_RTS): New procedure, for the initialization of the run-time lib.
11730         * s-thread.adb:
11731         Remove dependancy on System.Init, so that this file can be used in the
11732         AE653 sequential run-time lib.
11734 2003-11-13  Robert Dewar  <dewar@gnat.com>
11736         * bindgen.adb: Minor reformatting
11738 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
11740         * checks.adb:
11741         (Apply_Discriminant_Check): Do no apply check if target type is derived
11742         from source type with no applicable constraint.
11744         * lib-writ.adb:
11745         (Ensure_System_Dependency): Do not apply the style checks that may have
11746         been specified for the main unit.
11748         * sem_ch8.adb:
11749         (Find_Selected_Component): Further improvement in error message, with
11750         RM reference.
11752         * sem_res.adb:
11753         (Resolve): Handle properly the case of an illegal overloaded protected
11754         procedure.
11756 2003-11-13  Javier Miranda  <miranda@gnat.com>
11758         * exp_aggr.adb:
11759         (Has_Default_Init_Comps): New function to check the presence of
11760         default initialization in an aggregate.
11761         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
11762         extension aggregate of a limited record. In addition, a new formal
11763         was added to do not initialize the record controller (if any) during
11764         this recursive expansion of ancestors.
11765         (Init_Controller): Add support for limited record components.
11766         (Expand_Record_Aggregate): In case of default initialized components
11767         convert the aggregate into a set of assignments.
11769         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
11770         describing the new syntax.
11771         Nothing else needed to be done because this subprogram delegates part of
11772         its work to P_Precord_Or_Array_Component_Association.
11773         (P_Record_Or_Array_Component_Association): Give support to the new
11774         syntax for default initialization of components.
11776         * sem_aggr.adb:
11777         (Resolve_Aggregate): Relax the strictness of the frontend in case of
11778         limited aggregates.
11779         (Resolve_Record_Aggregate): Give support to default initialized
11780         components.
11781         (Get_Value): In case of default initialized components, duplicate
11782         the corresponding default expression (from the record type
11783         declaration). In case of default initialization in the *others*
11784         choice, do not check that all components have the same type.
11785         (Resolve_Extension_Aggregate): Give support to limited extension
11786         aggregates.
11788         * sem_ch3.adb:
11789         (Check_Initialization): Relax the strictness of the front-end in case
11790         of aggregate and extension aggregates. This test is now done in
11791         Get_Value in a per-component manner.
11793         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
11794         expression corresponds to a limited aggregate. This test is now done
11795         in Get_Value.
11797         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
11798         Box_Present flag.
11800         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
11801         present in an N_Component_Association node
11803 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
11805         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
11806         type-conformant entry only if they are homographs.
11808 2003-11-13  GNAT Script  <nobody@gnat.com>
11810         * Make-lang.in: Makefile automatically updated
11812 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11814         * adadecode.c: Use <> form of include for ctype.h.
11815         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
11817 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11819         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
11820         Works around PR middle-end/6552.
11822 2003-11-10  Ed Falis  <falis@gnat.com>
11824         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
11826         * 5zinit.adb: (Install_Handler): Moved back to spec
11827         (Install_Signal_Handlers): Deleted
11829         * 5zthrini.adb: Added context clause for System.Storage_Elements
11830         (Register): Only handles creation of taskVar; initialization moved to
11831         Thread_Body_Enter.
11832         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
11833         Added declaration of environment task secondary stack and
11834         initialization.
11836         * s-thread.adb: Implement bodies for thread body processing
11838         * s-thread.ads:
11839         Added comment identifying supported targets for pragma Thread_Body.
11841 2003-11-10  Pascal Obry  <obry@gnat.com>
11843         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
11844         GNAT_MAX_PATH_LEN.
11846         * s-fileio.adb:
11847         (Open): Properly check for string length before copying into the buffer.
11848         Raises Name_Error if buffer is too small. Note that this was a potential
11849         buffer overflow.
11851 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
11853         * bindgen.adb, comperr.adb: Code clean ups.
11854         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
11856 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
11858         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
11860 2003-11-10  Vincent Celier  <celier@gnat.com>
11862         * gprcmd.adb:
11863         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
11864         installation.
11866         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
11868         * prj.adb: (Project_Empty): Add new boolean component Virtual
11870         * prj.ads: (Virtual_Prefix): New constant string
11871         (Project_Data): New boolean component Virtual
11873         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
11874         a library project is extended by a virtual extending project.
11876         * prj-part.adb:
11877         Modifications throughout to implement extending-all project, including:
11878         (Virtual_Hash, Processed_Hash): New hash tables
11879         (Create_Virtual_Extending_Project): New procedure
11880         (Look_For_Virtual_Projects_For): New procedure
11882         * prj-proc.adb:
11883         (Process): After checking the projects, if main project is an
11884         extending-all project, set the object directory of all virtual extending
11885         project to the object directory of the main project.
11886         Adjust error message when a virtual extending project has the same
11887         object directory as an project being extended.
11888         (Recursive_Process): If name starts with the virtual prefix, set Virtual
11889         to True in the project data.
11891         * prj-tree.adb:
11892         (Default_Project_Node): Add new boolean component Extending_All
11893         (Is_Extending_All): New function
11894         (Set_Is_Extending_All): New procedure
11896         * prj-tree.ads: (Is_Extending_All): New function
11897         (Set_Is_Extending_All): New procedure
11898         (Project_Node_Record): New boolean component Extending_All
11900         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
11902         * vms_data.ads:
11903         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
11905         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
11906         "gprcmd prefix" to define it.
11908 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
11910         * einfo.ads: Fix a typo and remove an extraneous word in comments.
11912         * lib-load.adb:
11913         (Create_Dummy_Package_Unit): Set the scope of the entity for the
11914         created dummy package to Standard_Standard, not to itself, to
11915         defend other parts of the front-end against encoutering a cycle in
11916         the scope chain.
11918         * sem_ch10.adb:
11919         (Analyze_With_Clause): When setting the entities for the successive
11920         N_Expanded_Names that constitute the name of a child unit, do not
11921         attempt to go further than Standard_Standard in the chain of scopes.
11922         This case arises from the placeholder units created by
11923         Create_Dummy_Package_Unit in the case of a with_clause for a
11924         nonexistent child unit.
11926 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
11928         * exp_ch6.adb:
11929         (Expand_Thread_Body): Place subprogram on scope stack, so that new
11930         declarations are given the proper scope.
11932         * sem_ch13.adb:
11933         (Check_Expr_Constants): Reject an expression that contains a constant
11934         created during expansion, and that appears after the object to which
11935         the address clause applies.
11937         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
11938         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
11939         that uses 'Range of a function call with controlled components, so
11940         that the function result can be finalized before starting the loop.
11942         * sem_ch8.adb:
11943         (Find_Selected_Component): Improve error message when prefix is
11944         an implicit dereference of an incomplete type.
11946 2003-11-10  Robert Dewar  <dewar@gnat.com>
11948         * opt.ads: New Print_Standard flag for -gnatS switch
11950         * sem_ch13.adb: Remove some additional checks for unaligned arrays
11952         * cstand.adb (Create_Standard): Print out package standard if -gnatS
11953         switch set
11955         * debug.adb: Update doc for -gnatds to discuss relationship with new
11956         -gnatS flag
11958         * sinfo.adb: Add new field Entity_Or_Associated_Node
11960         * sinfo.ads: Add new field Entity_Or_Associated_Node
11961         Update documentation for Associated_Node and Entity fields to clarify
11962         relationship and usage.
11964         * sprint.adb:
11965         (Write_Id): Properly process Associated_Node field in generic template
11967         * switch-c.adb:
11968         Recognize new -gnatS switch for printing package Standard
11969         This replaces gnatpsta
11971         * usage.adb:
11972         Add line for  new -gnatS switch for printing package Standard
11973         This replaces gnatpsta
11975 2003-11-10  Andreas Jaeger  <aj@suse.de>
11977         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
11978         integer.
11980 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
11982         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
11983         by gnat1.
11985 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
11987         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
11988         no longer needed.
11990         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
11992         * sysdep.c: Add handling of cygwin.
11994 2003-11-10  GNAT Script  <nobody@gnat.com>
11996         * Make-lang.in: Makefile automatically updated
11998 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
12000         PR 12950
12001         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
12002         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
12003         Replace GNAT_ROOT by GCC_ROOT.
12005         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
12007 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
12009         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
12010         and update for changed meaning of GET_MODE_BITSIZE.
12012 2003-11-04  Doug Rupp  <rupp@gnat.com>
12014         * sysdep.c: Problem discovered during IA64 VMS port.
12015         [VMS] #include <unixio.h> to get proper prototypes.
12017         * adaint.c:
12018         Issues discovered/problems fixed during IA64 VMS port.
12019         [VMS] #define _POSIX_EXIT for proper semantics.
12020         [VMS] #include <unixio.h> for proper prototypes.
12021         [VMS] (fork): #define IA64 version.
12022         (__gnat_os_exit): Remove unnecessary VMS specific code.
12024 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12026         Part of PR ada/12806
12028         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
12029         tree, not integer.
12031         * decl.c:
12032         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
12033         not integer.
12035         * targtyps.c, decl.c, misc.c,
12036         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
12037         routines to work around change in FP sizing semantics in GCC.
12039         * utils.c:
12040         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
12042         * gigi.h: (enumerate_modes): New function.
12044         * Make-lang.in: (ada/misc.o): Add real.h.
12046         * misc.c: (enumerate_modes): New function.
12048 2003-11-04  Robert Dewar  <dewar@gnat.com>
12050         * 3vtrasym.adb: Minor reformatting
12051         Use terminology encoded/decoded name, rather than C++ specific notion
12052         of mangling (this is the terminology used throughout GNAT).
12054         * einfo.h: Regenerated
12056         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
12058         * exp_ch6.adb:
12059         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
12061         * par-prag.adb: Add dummy entry for Thread_Body pragma
12063         * rtsfind.ads:
12064         Add entries for System.Threads entities for thread body processing
12066         * sem_attr.adb:
12067         (Analyze_Pragma, Access attributes): Check these are not applied to a
12068         thread body, since this is not permitted
12070         * sem_prag.adb: Add processing for Thread_Body pragma.
12071         Minor comment fix.
12073         * sem_res.adb:
12074         (Resolve_Call): Check for incorrect attempt to call a thread body
12075          procedure with a direct call.
12077         * snames.ads, snames.adb: Add entry for Thread_Body pragma
12078         Add names associated with thread body expansion
12080         * snames.h: Add entry for Thread_Body pragma
12082         * s-thread.adb: Add entries for thread body processing
12083         These are dummy bodies so far
12085         * s-thread.ads: Add documentation on thread body handling.
12086         Add entries for thread body processing.
12088 2003-11-04  Javier Miranda  <miranda@gnat.com>
12090         * sem_ch10.adb:
12091         (Build_Limited_Views): Return after posting an error in case of limited
12092         with_clause on subprograms, generics, instances or generic renamings
12093         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
12094         on subprograms, generics, instances or generic renamings
12096 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
12098         * raise.c (setup_to_install): Correct mistake in last revision; two
12099         arguments out of order.
12101         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
12102         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
12103         notice, missed in previous change.
12104         Remove trailing blanks and other style errors introduced in previous
12105         change.
12107 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
12109         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
12110         rid of the wrapper for a LJM type, ensuring we don't do that if the
12111         field is addressable.  This avoids potential low level type view
12112         mismatches later on, for instance in a by-reference argument passing
12113         process.
12115 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12117         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
12118         aligned at byte boundary.
12120 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
12122         * decl.c (components_to_record): Do not delete the empty variants from
12123         the end of the union type.
12125 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
12127         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
12128         operation for a derived type, an explicit declaration may use a local
12129         subtype of Boolean.
12131 2003-11-04  Vincent Celier  <celier@gnat.com>
12133         * make.adb (Gnatmake): Allow main sources on the command line with a
12134         library project when it is only for compilation (no binding or
12135         linking).
12137 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12139         * Makefile.in: Remove many duplicate variables.
12141 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
12143         * Make-lang.in (dvi): Move targets to $(docobjdir).
12144         (gnat_ug_vms.dvi): Simplify rule and adjust target.
12145         (gnat_ug_wnt.dvi): Likewise.
12146         (gnat_ug_unx.dvi): Likewise.
12147         (gnat_ug_vxw.dvi): Likewise.
12148         (gnat_rm.dvi): Likewise.
12149         (gnat-style.dvi): Likewise.
12151 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
12153         * gigi.h: Missed commit from update for C90.
12155 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
12157         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
12159 2003-10-31  Andreas Schwab  <schwab@suse.de>
12161         * raise.c (get_action_description_for): Fix typo in last change.
12163 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
12165         PR ada/12761
12166         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
12167         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
12169 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
12171         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
12172         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
12173         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
12174         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
12175         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
12177 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
12179         * 3vtrasym.adb:
12180         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
12181         numbers when symbol name is too long.
12183 2003-10-30  Ed Falis  <falis@gnat.com>
12185         * g-signal.ads, g-signal.adb: New files
12187         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
12189         * Makefile.rtl: Introduce GNAT.Signals
12191 2003-10-30  Robert Dewar  <dewar@gnat.com>
12193         * freeze.adb: Minor reformatting
12195         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
12197         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
12198         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
12199         New handling of Id_Check parameter to improve recognition of keywords
12200         used as identifiers.
12201         Update copyright notice to include 2003
12203 2003-10-29  Robert Dewar  <dewar@gnat.com>
12205         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
12206         sem_ch10.adb: Minor reformatting
12208         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
12209         (Expand_Assign_Record): Test right hand side for bit unaligned as well
12211 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
12213         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
12214         Support for TBK$SYMBOLIZE-based symbolic traceback.
12216 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
12218         * exp_disp.adb:
12219         Revert previous change, that did not work well when pragma No_Run_Time
12220         was used in conjunction with a run-time other than ZFP.
12222 2003-10-29  Vincent Celier  <celier@gnat.com>
12224         * make.adb:
12225         (Gnatmake): When there are no Ada mains in attribute Main, disable the
12226          bind and link steps only is switch -z is not used.
12228 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
12230         * Makefile.generic: Remove duplicated setting of CC.
12232         * Makefile.prolog: Set CC to gcc by default, to override make's
12233         default (cc).
12235         * einfo.h: Regenerated.
12237 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
12239         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
12240         current body, after compiling subunit.
12242         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
12243         when in deleted code, because gigi needs properly ordered freeze
12244         actions to annotate types.
12246         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
12247         prevent the premature freezing of record type that contains
12248         subcomponents with a private type that does not yet have a completion.
12250 2003-10-29  Javier Miranda  <miranda@gnat.com>
12252         * sem_ch12.adb:
12253         (Analyze_Package_Instantiation): Check that instances can not be used in
12254         limited with_clauses.
12256         * sem_ch8.adb:
12257         (Analyze_Package_Renaming): Check that limited withed packages cannot
12258         be renamed. Improve text on error messages related to limited
12259         with_clauses.
12261         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
12263         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
12264         Update copyright notice.
12266         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
12267         (Install_Limited_Context_Clauses): New subprogram that isolates all the
12268         checks required for limited context_clauses and installs the limited
12269         view.
12270         (Install_Limited_Withed_Unit): Complete its documentation.
12271         (Analyze_Context): Check that limited with_clauses are only allowed in
12272         package specs.
12273         (Install_Context): Call Install_Limited_Context_Clauses after the
12274         parents have been installed.
12275         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
12276         package as 'From_With_Type'; this mark indicates that the limited view
12277         is installed. Used to check bad usages of limited with_clauses.
12278         (Build_Limited_Views): Do not add shadow entities to the scope's list
12279         of entities. Do not add real entities to the Non_Limited_Views chain.
12280         Improve error notification.
12281         (Remove_Context_Clauses): Remove context clauses in two phases:
12282         limited views first and regular views later (to maintain the
12283         stack model).
12284         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
12285         its visible entities.
12287 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
12289         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
12290         with any type that Is_Fixed_Point_Type.
12292         * sinfo.ads: Fix documentation for Associated_Node attribute.
12294 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
12296         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
12297         both '-gnatc' and '-gnatt' are specified.
12299         * atree.adb (Initialize): Add initialization for Node_Count (set to
12300         zero).
12302 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12304         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
12305         do not consider as Pure.
12307         Part of implementation of function-at-a-time:
12309         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
12310         (tree_transform): Add new argument to build_component_ref.
12311         (tree_transform, case N_Assignment_Statement): Make and return an
12312         EXPR_STMT.
12313         (tree_transform): If result IS_STMT, set flags and return it.
12314         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
12316         * utils2.c (build_simple_component_ref, build_component_ref): Add new
12317         arg, NO_FOLD_P.
12318         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
12319         (build_allocator): Likewise.
12321         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
12322         Add new arg to build_component_ref.
12323         (maybe_unconstrained_array, unchecked_convert): Likewise.
12325         * ada-tree.def (EXPR_STMT): New code.
12327         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
12329         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
12330         build_component_ref calls.
12332         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
12334         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
12335         (build_component_ref): Add new argument, NO_FOLD_P.
12337 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
12339         * Makefile.generic: Add missing substitution on object_deps handling.
12341         PR ada/5909:
12342         * Make-lang.in (check-ada): Enable ACATS test suite.
12344 2003-10-27  Robert Dewar  <dewar@gnat.com>
12346         * exp_ch3.adb:
12347         (Freeze_Array_Type): We do not need an initialization routine for types
12348         derived from String or Wide_String. They should be treated the same
12349         as String and Wide_String themselves. This caused problems with the
12350         use of Initialize_Scalars.
12352         * exp_ch5.adb:
12353         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
12354         composites. This allows use of component clauses that are not byte
12355         aligned.
12357         * sem_prag.adb:
12358         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
12359         is an attempt to pack an array of atomic objects.
12361         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
12363 2003-10-27  Pascal Obry  <obry@gnat.com>
12365         * g-dirope.adb:
12366         (Basename): Check for drive letters in a pathname only on DOS based OS.
12368 2003-10-27  Vincent Celier  <celier@gnat.com>
12370         * make.adb:
12371         (Gnatmake): When unable to change dir to the object dir, display the
12372         content of the parent dir of the obj dir, to try to understand why this
12373         happens.
12375 2003-10-27  GNAT Script  <nobody@gnat.com>
12377         * Make-lang.in: Makefile automatically updated
12379 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
12381         * sem_ch12.adb:
12382         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
12383         should not be done in Save/Restore_Scope_Stack, because it is performed
12384         locally.
12386         * sem_ch8.adb:
12387         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
12388         whether use clauses should be removed/restored.
12390         * sem_ch8.ads:
12391         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
12392         whether use clauses should be removed/restored.
12394 2003-10-26  Andreas Jaeger  <aj@suse.de>
12396         * Makefile.in: Remove duplicated lines.
12398 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
12400         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
12401         minimize the differences with ACT tree.
12403         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
12404         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
12405         Gnatvsn.Gnat_Static_Version_String to reduce differences between
12406         ACT and FSF trees.
12408 2003-10-24  Pascal Obry  <obry@gnat.com>
12410         * adadecode.c (ostrcpy): New function.
12411         (__gnat_decode): Use ostrcpy of strcpy.
12412         (has_prefix): Set first parameter a const.
12413         (has_suffix): Set first parameter a const.
12414         Update copyright notice. Fix source name in header.
12415         Removes a trailing space.
12416         PR ada/12014.
12418 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
12420         * exp_disp.adb:
12421         Remove the test against being in No_Run_Time_Mode before generating a
12422         call to Register_Tag. It is redundant with the test against the
12423         availability of the function Register_Tag.
12425 2003-10-24  Vincent Celier  <celier@gnat.com>
12427         * g-catiio.adb: (Month_Name): Correct spelling of February
12429         * make.adb: (Mains): New package
12430         (Initialize): Call Mains.Delete
12431         (Gnatmake): Check that each main on the command line is a source of a
12432         project file and, if there are several mains, each of them is a source
12433         of the same project file.
12434         (Gnatmake): When a foreign language is specified in attribute Languages,
12435         no main is specified on the command line and attribute Mains is not
12436         empty, only build the Ada main. If there is no Ada main, just compile
12437         the Ada sources and their closure.
12438         (Gnatmake): If a main is specified on the command line with directory
12439         information, check that the source exists and, if it does, that the path
12440         is the actual path of a source of a project.
12442         * prj-env.adb:
12443         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
12444         Full_Path is True, return the full path instead of the simple file name.
12445         (Project_Of): New function
12447         * prj-env.ads:
12448         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
12449         defaulted to False.
12450         (Project_Of): New function
12452 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
12454         * Makefile.generic:
12455         Ensure objects of main project are always checked and rebuilt if needed.
12456         Set CC to gcc by default.
12457         Prepare new handling of link by creating a global archive (not activated
12458         yet).
12460         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
12461         stringt.h: Update copyright notice. Remove trailing blanks.
12462         Fix source name in header.
12464 2003-10-24  Robert Dewar  <dewar@gnat.com>
12466         * sem_ch12.adb: Minor reformatting
12468         * sem_ch3.adb:
12469         Minor reformatting (including new function return style throughout)
12471         * sem_ch3.ads:
12472         Minor reformatting (including new function return style throughout)
12474 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
12476         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
12477         stringt.h: Update copyright notice. Remove trailing blanks.
12478         Fix source name in header.
12480 2003-10-24  GNAT Script  <nobody@gnat.com>
12482         * Make-lang.in: Makefile automatically updated
12484 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
12486         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
12487         stringt.h: Convert to ISO C90 declarations and definitions.
12489 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
12491         PR ada/11978:
12492         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
12493         External_Tag attribute definition clauses.
12495 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
12497         PR ada/7613:
12498         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
12499         child unit, generate a fully qualified name to avoid spurious errors
12500         when the context contains renamings of different child units with
12501         the same simple name.
12503         * exp_dbug.ads: Add documentation on name qualification for renamings
12504         of child units.
12506 2003-10-23  Robert Dewar  <dewar@gnat.com>
12508         * g-regpat.ads, g-regpat.adb: Minor reformatting
12510 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
12512         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
12514 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12516         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
12517         Machine call.
12519         * urealp.h: (Machine): Update to proper definition.
12521 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
12523         * init.c, adaint.c: Minor reformatting.
12525 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
12527         * adaint.c (w32_epoch_offset): Define static const at file level.
12528         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
12529         rather than t_create, t_access in call to GetFileTime. Use union
12530         to convert between FILETIME and  unsigned long long.
12531         (__gnat_file_time_name): Test for invalid file handle.
12532         (__gnat_set_filetime_name): Support win32 targets using
12533         w32api SetFileTime.
12535 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
12537         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
12539         * ctrl_c.c (__gnat_int_handler): Remove declaration.
12541         * decl.c (creat_concat_name):  Const-ify prefix.
12543         * adaint.c: Include ctype.h if __MINGW32__.
12544         (__gnat_readlink): Mark arguments as possibly unused.
12545         (__gnat_symlink): Likewise.
12546         (__gnat_is_symbolic_link): Likewise.
12547         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
12548         declaration
12549         (__gnat_file_time_name): Don't declare struct stat statbuf when
12550         not needed.
12551         (__gnat_is_absolute_path): Add parenthesis around condition of
12552         'if' statement to avoid warning.
12553         (__gnat_plist_init): Specify void as parameter.
12554         (plist_enter): Likewise.
12555         (plist_leave): Likewise.
12556         (remove_handle): Make static. Initialize prev.
12558 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
12560         * Makefile.in: Disable build of gnatpsta. PR ada/10110.
12561         * cstreams.c (__gnat_full_name): Minor improvements and clean up
12562         of previous change.
12564 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12566         * tracebak.c (MAX): Avoid redefinition warning.
12568         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
12569         Change msg to const char *.
12570         (__gnat_install_handler): Remove ss, unused.
12571         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
12572         to const char *.
12573         * cstreams.c (__gnat_full_name): Declare p only when used.
12574         (__gnat_full_name) [sgi] Return buffer.
12576 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
12578         * mingw32.h: New file.
12579         * gnat_wrapper.adb: New file.
12581 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
12583         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
12584         string match a pre compiled regular expression (the corresponding
12585         version of the function working on a raw regular expression)
12586         Fix typos in various comments
12587         Update copyright notice in spec
12589 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
12591         * exp_ch3.adb:
12592         (Component_Needs_Simple_Initialization): Return False when the type is a
12593         packed bit array. Revise spec comments to document this case.
12595         * exp_prag.adb:
12596         (Expand_Pragma_Import): Set any expression on the imported object to
12597         empty to avoid initializing imported objects (in particular this
12598         covers the case of zero-initialization of bit arrays).
12599         Update copyright notice.
12601 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
12603         * sem_ch12.adb:
12604         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
12605         a subunit is missing.
12606         (Instantiate_Subprogram_Body): If body of function is missing, set type
12607         of return expression explicitly in dummy body, to prevent cascaded
12608         errors when a subunit is missing.
12609         Fixes PR 5677.
12611         * sem_ch3.adb:
12612         (Access_Subprogram_Declaration): Verify that return type is valid.
12613         Fixes PR 8693.
12615         * sem_elab.adb:
12616         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
12617         generic.
12618         Fixes PR 12318.
12620         * sem_util.adb:
12621         (Corresponding_Discriminant): If the scope of the discriminant is a
12622         private type without discriminant, use its full view.
12623         Fixes PR 8247.
12625 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
12627         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
12628         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
12629         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
12630         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
12631         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
12632         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
12633         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
12634         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
12635         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
12636         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
12637         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
12638         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
12639         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
12640         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
12641         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
12642         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
12643         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
12644         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
12645         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
12646         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
12647         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
12648         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
12649         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
12650         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
12651         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
12652         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
12653         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
12654         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
12655         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
12656         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
12657         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
12658         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
12659         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
12660         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
12661         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
12662         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
12663         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
12664         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
12665         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
12666         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
12667         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
12668         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
12669         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
12670         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
12671         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
12672         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
12673         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
12674         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
12675         vms_conv.ads, vms_conv.adb, vms_data.ads,
12676         vxaddr2line.adb: Files added. Merge with ACT tree.
12678         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
12679         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
12680         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
12681         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
12682         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
12683         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
12684         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
12685         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
12686         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
12687         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
12689         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
12690         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
12691         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
12692         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
12693         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
12694         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
12695         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
12696         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
12697         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
12698         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
12699         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
12700         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
12701         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
12702         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
12703         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
12704         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
12705         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
12706         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
12707         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
12708         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
12709         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
12710         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
12711         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
12712         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
12713         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
12714         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
12715         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
12716         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
12717         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
12718         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
12719         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
12720         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
12721         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
12722         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
12723         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
12724         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
12725         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
12726         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
12727         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
12728         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
12729         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
12730         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
12731         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
12732         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
12733         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
12734         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
12735         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
12736         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
12737         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
12738         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
12739         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
12740         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
12741         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
12742         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
12743         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
12744         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
12745         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
12746         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
12747         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
12748         checks.adb, checks.ads, cio.c, comperr.adb,
12749         comperr.ads, csets.adb, cstand.adb, cstreams.c,
12750         debug_a.adb, debug_a.ads, debug.adb, decl.c,
12751         einfo.adb, einfo.ads, errout.adb, errout.ads,
12752         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
12753         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
12754         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
12755         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
12756         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
12757         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
12758         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
12759         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
12760         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
12761         fe.h, fmap.adb, fmap.ads, fname.adb,
12762         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
12763         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
12764         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
12765         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
12766         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
12767         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
12768         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
12769         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
12770         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
12771         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
12772         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
12773         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
12774         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
12775         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
12776         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
12777         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
12778         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
12779         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
12780         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
12781         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
12782         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
12783         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
12784         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
12785         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
12786         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
12787         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
12788         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
12789         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
12790         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
12791         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
12792         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
12793         layout.adb, lib.adb, lib.ads, lib-list.adb,
12794         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
12795         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
12796         link.c, live.adb, make.adb, make.ads,
12797         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
12798         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
12799         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
12800         misc.c, mkdir.c, mlib.adb, mlib.ads,
12801         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
12802         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
12803         namet.adb, namet.ads, namet.h, nlists.ads,
12804         nlists.h, nmake.adt, opt.adb, opt.ads,
12805         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
12806         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
12807         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
12808         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
12809         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
12810         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
12811         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
12812         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
12813         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
12814         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
12815         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
12816         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
12817         prj-util.adb, prj-util.ads, raise.c, raise.h,
12818         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
12819         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
12820         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
12821         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
12822         scans.ads, scn.adb, scn.ads, s-crc32.adb,
12823         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
12824         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
12825         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
12826         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
12827         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
12828         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
12829         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
12830         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
12831         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
12832         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
12833         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
12834         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
12835         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
12836         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
12837         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
12838         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
12839         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
12840         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
12841         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
12842         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
12843         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
12844         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
12845         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
12846         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
12847         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
12848         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
12849         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
12850         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
12851         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
12852         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
12853         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
12854         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
12855         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
12856         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
12857         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
12858         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
12859         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
12860         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
12861         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
12862         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
12863         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
12864         stringt.adb, stringt.ads, stringt.h, style.ads,
12865         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
12866         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
12867         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
12868         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
12869         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
12870         table.adb, table.ads, targparm.adb, targparm.ads,
12871         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
12872         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
12873         ttypes.ads, types.ads, types.h, uintp.adb,
12874         uintp.ads, uintp.h, uname.adb, urealp.adb,
12875         urealp.ads, urealp.h, usage.adb, utils2.c,
12876         utils.c, validsw.adb, validsw.ads, widechar.adb,
12877         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
12878         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
12879         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
12880         gnatvsn.ads: Merge with ACT tree.
12882         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
12884 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
12886         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
12887         (gnat_ug_vmx.info): Likewise.
12888         (gnat_ug_vxw.info): Likewise.
12889         (gnat_ug_wnt.info): Likewise.
12890         (gnat_rm.info): Likewise.
12891         (gnat-style.info): Likewise.
12893         * Make-lang.in (ada.install-info): Remove target.
12894         (info): New target.
12895         (install-info): Likewise.
12896         (gnat_ug_unx.info): Simplify rule.
12897         (gnat_ug_vmx.info): Likewise.
12898         (gnat_ug_vxw.info): Likewise.
12899         (gnat_ug_wnt.info): Likewise.
12900         (gnat_rm.info): Likewise.
12901         (gnat-style.info): Likewise.
12903 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
12905         * Make-lang.in: Replace uses of $(target_alias) with
12906         $(target_noncanonical).
12907         * ada/Makefile.in: Remove unused mention of $(target_alias).
12909 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
12911         * Make-lang.in (ada.info): Replace with ...
12912         (info): ... this.
12913         (ada.dvi): Replace with ...
12914         (dvi): ... this.
12916 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
12918         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
12919         initialize dconstp5 and dconstmp5.
12921 2003-09-28  Richard Henderson  <rth@redhat.com>
12923         * trans.c (tree_transform): Update call to expand_asm_operands.
12925 2003-09-21  Richard Henderson  <rth@redhat.com>
12927         * trans.c, utils.c: Revert.
12929 2003-09-21  Richard Henderson  <rth@redhat.com>
12931         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
12932         change to const.
12934 2003-09-04  Michael Matz  <matz@suse.de>
12936         * misc.c: Include "target.h".
12937         * Make-lang.in (misc.o): Add dependency on target.h.
12939 2003-09-03  DJ Delorie  <dj@redhat.com>
12941         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
12942         hook.
12944 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
12946         * Makefile.in: Update substitutions to match changes to
12947         configure.  Use include directives instead of @-insertions
12948         to read in host and target fragments.  Add a rule to
12949         regenerate ada/Makefile.
12951 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
12953         * lang-options.h: Remove.
12954         * lang.opt: Add help text.
12956 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
12958         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
12959         calls.
12961 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
12963         * misc.c (gnat_handle_option): Don't handle filenames.
12965 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
12967         * Make-lang.in: Replace PWD with PWD_COMMAND.
12968         * Makefile.adalib: Likewise.
12969         * Makefile.in: Likewise.
12971 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
12973         * misc.c (gnat_argv): Revert last change.
12974         (gnat_handle_option, gnat_init_options): Copy arguments.
12976 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
12978         * misc.c (gnat_argv): Make const.
12980 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
12982         * misc.c (save_argc, save_argv): Keep non-static!
12984 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
12986         * misc.c (save_argc, save_argv): Make static.
12987         (gnat_init_options): New prototype.
12988         (gnat_init_options): Update.
12990 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
12992         * gnat_ug.texi: Remove unlikely characters from @vars.
12993         * gnat_ug_vms.texi: Regenerate.
12995 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
12997         * misc.c (record_code_position): Adjust emit_note call.
12999 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
13001         * misc.c (gnat_handle_option): Don't check for missing arguments.
13003 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
13005         * utils.c (end_subprog_body): Adjust expand_function_end call.
13007 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
13009         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
13010         Bind_Main_Program.
13012 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
13014         * lang.opt: Declare Ada.
13015         * misc.c (gnat_init_options): Update.
13017 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
13019         * utils.c (begin_subprog_body): Adjust init_function_start call.
13021 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
13023         * Make-lang.in: Update to use options.c and options.h.
13024         * misc.c: Include options.h not aoptions.h.
13025         (gnat_handle_option): Abort on unrecognized switch.
13026         (gnat_init_options): Request Ada switches.
13028 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
13030         * lang.opt: Add -Wall.
13031         * misc.c (gnat_handle_option): Handle it.
13033 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
13035         * misc.c (gnat_handle_option): Fix warnings.
13037 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
13039         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
13041 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
13043         * Make-lang.in: Update to handle command-line options.
13044         * lang.opt: New file.
13045         * misc.c: Include aoptions.h.
13046         (cl_options_count, cl_options): Remove.
13047         (gnat_handle_option): New.
13048         (gnat_decode_option): Remove.
13049         (LANG_HOOKS_DECODE_OPTION): Remove.
13050         (LANG_HOOKS_HANDLE_OPTION): Override.
13052 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
13054         * init.c, misc.c, trans.c, utils.c: Remove dead code.
13056 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
13058         * Makefile.in: Replace "host_canonical" with "host" for autoconf
13059         substitution.
13061 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
13063         * Make-lang.in: Update.
13064         * misc.c: Include opts.h. Define cl_options_count and cl_options.
13066 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
13068         * misc.c (gnat_init_options): Update.
13070 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
13072         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
13073         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
13074         __attribute__ ((__unused__)).
13076 2003-06-05  Jan Hubicka  <jh@suse.cz>
13078         * Make-lang.in:  Add support for stageprofile and stagefeedback
13080 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
13082         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
13083         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
13085 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
13087         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
13088         Remove non-VMS directive.
13089         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
13090         alternatives.
13091         (Examples of gnatls Usage): Remove VMS alternative.
13093 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
13095         PR ada/9953:
13096         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
13097         and turn ZCX_By_Default back to False since the underlying support
13098         is not quite there yet.
13100 2003-06-01  Andreas Jaeger  <aj@suse.de>
13102         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
13103         and ROUND_TYPE_SIZE_UNIT.
13105 2003-05-22   Geert Bosch <bosch@gnat.com>
13107         * gnat_rm.texi : Remove reference to Ada Core Technologies.
13109 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
13111         * trans.c (tree_transform): Use location_t and input_location
13112         directly.
13113         (build_unit_elab): Likewise.
13114         * utils.c (create_label_decl): Likewise.
13116 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
13118         * trans.c (tree_transform, build_unit_elab,
13119         set_lineno): Rename lineno to input_line.
13120         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
13121         end_subprog_body): Likewise.
13122         * utils2.c (build_call_raise): Likewise.
13124 2003-05-01  Laurent Guerby <guerby@acm.org>
13126         PR ada/10546
13127         * 5iosinte.ads: Increase pthread_cond_t size to match recent
13128         LinuxThread and NPTL version, merge from ACT.
13130 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
13132         * utils.c (convert): No need to clear TREE_CST_RTL.
13134 2003-04-23   Geert Bosch <bosch@gnat.com>
13136         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
13137         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
13138         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
13139         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
13140         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
13141         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
13142         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
13143         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
13144         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
13145         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
13146         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
13147         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
13148         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
13149         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
13150         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
13151         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
13152         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
13153         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
13154         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
13155         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
13156         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
13157         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
13158         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
13159         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
13160         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
13161         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
13162         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
13163         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
13164         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
13165         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
13166         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
13167         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
13168         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
13169         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
13170         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
13171         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
13172         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
13173         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
13174         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
13175         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
13176         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
13177         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
13178         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
13179         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
13180         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
13181         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
13182         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
13183         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
13184         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
13185         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
13186         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
13187         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
13188         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
13189         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
13190         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
13191         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
13192         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
13193         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
13194         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
13195         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
13196         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
13197         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
13198         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
13199         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
13200         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
13201         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
13202         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
13203         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
13204         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
13205         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
13206         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
13207         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
13208         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
13209         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
13210         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
13211         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
13212         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
13213         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
13214         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
13215         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
13216         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
13217         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
13218         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
13219         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
13220         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
13221         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
13222         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
13223         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
13224         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
13225         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
13226         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
13227         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
13228         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
13229         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
13230         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
13231         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
13232         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
13233         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
13234         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
13235         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
13236         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
13237         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
13238         ali.adb, ali.ads, alloc.ads, argv.c,
13239         atree.adb, atree.ads, atree.h, aux-io.c,
13240         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
13241         binde.adb, binde.ads, binderr.adb, binderr.ads,
13242         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
13243         butil.adb, butil.ads, cal.c, calendar.ads,
13244         casing.adb, casing.ads, ceinfo.adb, checks.adb,
13245         checks.ads, cio.c, comperr.adb, comperr.ads,
13246         config-lang.in, csets.adb, csets.ads, csinfo.adb,
13247         cstand.adb, cstand.ads, cuintp.c, debug.adb,
13248         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
13249         dec-io.ads, dec.ads, deftarg.c, directio.ads,
13250         einfo.adb, einfo.ads, elists.adb, elists.ads,
13251         elists.h, errno.c, errout.adb, errout.ads,
13252         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
13253         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
13254         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
13255         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
13256         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
13257         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
13258         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
13259         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
13260         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
13261         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
13262         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
13263         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
13264         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
13265         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
13266         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
13267         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
13268         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
13269         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
13270         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
13271         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
13272         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
13273         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
13274         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
13275         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
13276         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
13277         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
13278         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
13279         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
13280         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
13281         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
13282         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
13283         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
13284         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
13285         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
13286         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
13287         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
13288         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
13289         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
13290         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
13291         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
13292         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
13293         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
13294         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
13295         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
13296         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
13297         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
13298         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
13299         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
13300         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
13301         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
13302         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
13303         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
13304         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
13305         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
13306         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
13307         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
13308         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
13309         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
13310         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
13311         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
13312         lib.adb, lib.ads, live.adb, live.ads,
13313         machcode.ads, make.adb, make.ads, makeusg.adb,
13314         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
13315         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
13316         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
13317         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
13318         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
13319         mlib.ads, namet.adb, namet.ads, nlists.adb,
13320         nlists.ads, opt.adb, opt.ads, osint-b.adb,
13321         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
13322         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
13323         osint.ads, output.adb, output.ads, par-ch10.adb,
13324         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
13325         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
13326         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
13327         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
13328         par-tchk.adb, par-util.adb, par.adb, par.ads,
13329         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
13330         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
13331         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
13332         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
13333         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
13334         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
13335         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
13336         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
13337         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
13338         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
13339         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
13340         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
13341         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
13342         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
13343         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
13344         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
13345         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
13346         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
13347         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
13348         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
13349         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
13350         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
13351         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
13352         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
13353         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
13354         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
13355         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
13356         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
13357         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
13358         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
13359         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
13360         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
13361         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
13362         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
13363         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
13364         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
13365         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
13366         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
13367         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
13368         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
13369         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
13370         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
13371         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
13372         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
13373         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
13374         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
13375         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
13376         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
13377         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
13378         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
13379         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
13380         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
13381         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
13382         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
13383         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
13384         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
13385         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
13386         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
13387         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
13388         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
13389         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
13390         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
13391         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
13392         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
13393         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
13394         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
13395         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
13396         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
13397         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
13398         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
13399         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
13400         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
13401         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
13402         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
13403         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
13404         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
13405         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
13406         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
13407         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
13408         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
13409         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
13410         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
13411         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
13412         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
13413         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
13414         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
13415         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
13416         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
13417         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
13418         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
13419         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
13420         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
13421         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
13422         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
13423         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
13424         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
13425         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
13426         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
13427         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
13428         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
13429         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
13430         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
13431         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
13432         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
13433         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
13434         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
13435         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
13436         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
13437         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
13438         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
13439         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
13440         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
13441         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
13442         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
13443         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
13444         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
13445         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
13446         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
13447         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
13448         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
13449         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
13450         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
13451         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
13452         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
13453         snames.ads, sprint.adb, sprint.ads, stand.adb,
13454         stand.ads, stringt.adb, stringt.ads, style.adb,
13455         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
13456         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
13457         switch-m.ads, switch.adb, switch.ads, system.ads,
13458         table.adb, table.ads, targparm.adb, targparm.ads,
13459         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
13460         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
13461         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
13462         ttypef.ads, ttypes.ads, types.adb, types.ads,
13463         uintp.adb, uintp.ads, uname.adb, uname.ads,
13464         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
13465         usage.adb, usage.ads, validsw.adb, validsw.ads,
13466         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
13467         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
13468         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
13469         formatting and other trivial changes from ACT.
13471 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
13473         * gigi.h, utils2.c (build_constructor):
13474         Rename gnat_build_constructor. Use build_constructor.
13475         * decl.c (gnat_to_gnu_entity)
13476         * trans.c (tree_transform, pos_to_constructor, extract_values)
13477         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
13478         (unchecked_convert)
13479         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
13480         (fill_vms_descriptor):
13481         Update to match.
13483 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
13485         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
13486         * misc.c (gnat_tree_size): New function.
13487         (LANG_HOOKS_TREE_SIZE): Override.
13489 2003-04-03  Jason Merrill  <jason@redhat.com>
13491         * misc.c (gnat_adjust_rli): #if 0.
13493 2003-03-31   Geert Bosch <bosch@gnat.com>
13495         PR ada/10020
13496         * link.c : Fix misspelled "const" keyword
13498 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
13500         PR c++/7086
13501         * utils2.c: Adjust calls to put_var_into_stack.
13503 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
13505         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
13507 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
13509         * misc.c (gnat_init): Update for new prototype.
13511 2003-03-05  Olivier Hainque  <hainque@gnat.com>
13513         ada/9961
13514         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
13515         warning, and fix return type for the IN_RTS && !SJLJ case.
13517 2003-03-04  Tom Tromey  <tromey@redhat.com>
13519         * Make-lang.in (ada.tags): New target.
13521 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
13523         ada/9911
13524         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
13525         wrapper, which name remains constant whatever underlying GCC
13526         scheme.
13528         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
13529         the stable interface needed for a-except.
13531 2003-03-02  Andreas Jaeger  <aj@suse.de>
13533         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
13534         gnat_ug_wnt.texi: Regenerate.
13536 2003-03-02  Laurent Guerby <guerby@acm.org>
13538         * Makefile.in (install-gnatlib): Match previous change there
13539         so it works.
13541 2003-02-28  Andreas Schwab  <schwab@suse.de>
13543         * Make-lang.in (install-gnatlib): Change to ada directory before
13544         running make instead of using ada/Makefile directly.
13546 2003-02-18  Ben Elliston  <bje@redhat.com>
13548         Part of fix for PR ada/9406
13549         * gnat_ug.texi (Binder output file): Grammar fix.
13551 2003-02-18  Ben Elliston  <bje@redhat.com>
13553         PR other/7350
13554         * 5qtaprop.adb (Sleep): Fix typo in comment.
13556 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
13558         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
13559         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
13560         gnat_ug_wnt.texi: Regenerate.
13562 2003-02-03  Christian Cornelssen <ccorn@cs.tu-berlin.de>
13564         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
13565         be created if necessary.
13566         (ada.install-common): Let $(DESTDIR)$(bindir) be created
13567         if necessary.  Remove erroneous and redundant gnatchop
13568         installation commands.  Test for gnatdll before attempting
13569         to install it.
13570         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
13571         and gnatdll from all plausible locations.
13573 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
13575         * utils2.c (build_unary_op): Don't check flag_volatile.
13576         * gnat_ug.texi: Remove -fvolatile from example.
13577         * gnat_ug_vxw.texi: Likewise.
13579 2003-01-29  Laurent Guerby <guerby@acm.org>
13581         PR ada/8344
13582         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
13583         * Makefile.in: match previous change.
13584         * Make-lang.in: match previous change.
13586 2003-01-29      Joel Sherrill <joel@OARcorp.com>
13588         * 5rosinte.ads: Add SIGXCPU.
13589         * 5rtpopsp.adb: New file.
13590         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
13591         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
13592         specific file 5rtpopsp.adb.
13593         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
13594         is likely needed for all newlib targets.
13595         * init.c: Add RTEMS specific version of __gnat_initialize().
13597 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13599         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
13601 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13603         * init.c (__gnat_error_handler): Make msg const.
13605         * gmem.c (convert_addresses): Move declaration ...
13606         * adaint.h: ... here.
13607         * adaint.c (convert_addresses): Adapt addrs type to match
13608         prototype.
13610         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
13612 2003-01-24  Andreas Schwab  <schwab@suse.de>
13614         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
13615         size_t to avoid warning.
13617 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
13619         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
13621 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
13623         * gnat_rm.texi: Remove RCS version number.
13625         * ada-tree.h (union lang_tree_node): Add chain_next option.
13627 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
13629         * Make-lang.in (ada.install-info, ada.install-common,
13630         ada.uninstall): Prepend $(DESTDIR) to the destination
13631         directory in all (un)installation commands.
13632         * Makefile.in (install-gnatlib, install-rts): Ditto.
13634 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
13636         * gnat_rm.texi, gnat_ug.texi: Use @copying.
13637         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
13638         gnat_ug_wnt.texi: Regenerate.
13640 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
13642         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
13643         only.
13644         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
13645         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
13646         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
13647         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
13648         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
13649         $(srcdir)/doc/include/gcc-common.texi.
13651 2002-12-15   Geert Bosch <bosch@gnat.com>
13653         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
13655 2002-12-14   Geert Bosch <bosch@gnat.com>
13657         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
13658         case of a body created for a Renaming_As_Body, on which
13659         conformance checks are not performed. Fixes PR ada/5690.
13661 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
13663         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
13664         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
13665         not already included.
13666         * Make-lang.in: Update dependencies.
13668 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
13669         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
13670         solution to buffer overflow bug on GNU/Linux.
13672 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
13673         Closes PR ada/5856 and PR ada/6919 !
13674         * bindgen.adb: Remove all references to Public_Version.
13675         * comperr.adb: Remove all references to Public_Version and
13676         GNATPRO_Version; correct bug reporting instructions.
13677         * comperr.ads: Change to match bug box.
13678         * gnatvsn.ads: Remove all references to Public version and
13679         GNATPRO version.
13681 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
13682         PR ada/6919
13683         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
13684         GNU/Linux.
13686         PR ada/6558
13687         * config-lang.in: Remove diff_excludes.
13689 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
13690         PR ada/8358
13691         * trans.c (gnu_pending_elaboration_lists): New GC root.
13692         (build_unit_elab): Use..
13694 2002-10-30   Geert Bosch <bosch@gnat.com>
13695         PR ada/6558
13696         * misc.c : Include optabs.h
13698         * Make-lang.in (misc.o): Add dependency on optabs.h
13700 2002-10-29   Geert Bosch <bosch@gnat.com>
13701         PR ada/6558
13702         * Make-lang.in (gnatbind): Depend on CONFIG_H
13704 2002-10-29  Geert bosch  <bosch@gnat.com>
13705         PR ada/6558
13706         * misc.c: Unrevert misc.c (1.13)
13708 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
13710         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
13711         maintainership comments.
13713 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
13714         PR ada/5904
13715         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
13716         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
13717         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
13718         7staprop.adb: Correct statements in comments about
13719         maintainership of GNAT.
13721         PR ada/5904
13722         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
13723         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
13724         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
13725         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
13726         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
13727         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
13728         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
13729         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
13730         comments about maintainership of GNAT.
13732         PR ada/6919 (forward port of patch for PR ada/5904)
13733         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
13734         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
13735         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
13736         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
13737         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
13738         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
13739         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
13740         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
13741         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
13742         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
13743         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
13744         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
13745         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
13746         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
13747         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
13748         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
13749         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
13750         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
13751         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
13752         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
13753         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
13754         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
13755         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
13756         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
13757         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
13758         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
13759         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
13760         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
13761         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
13762         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
13763         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
13764         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
13765         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
13766         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
13767         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
13768         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
13769         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
13770         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
13771         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
13772         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
13773         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
13774         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
13775         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
13776         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
13777         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
13778         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
13779         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
13780         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
13781         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
13782         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
13783         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
13784         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
13785         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
13786         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
13787         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
13788         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
13789         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
13790         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
13791         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
13792         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
13793         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
13794         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
13795         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
13796         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
13797         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
13798         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
13799         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
13800         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
13801         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
13802         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
13803         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
13804         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
13805         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
13806         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
13807         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
13808         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
13809         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
13810         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
13811         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
13812         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
13813         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
13814         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
13815         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
13816         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
13817         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
13818         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
13819         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
13820         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
13821         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
13822         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
13823         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
13824         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
13825         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
13826         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
13827         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
13828         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
13829         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
13830         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
13831         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
13832         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
13833         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
13834         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
13835         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
13836         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
13837         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
13838         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
13839         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
13840         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
13841         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
13842         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
13843         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
13844         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
13845         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
13846         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
13847         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
13848         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
13849         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
13850         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
13851         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
13852         par-endh.adb par-labl.adb par-load.adb par-prag.adb
13853         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
13854         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
13855         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
13856         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
13857         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
13858         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
13859         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
13860         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
13861         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
13862         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
13863         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
13864         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
13865         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
13866         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
13867         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
13868         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
13869         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
13870         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
13871         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
13872         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
13873         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
13874         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
13875         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
13876         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
13877         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
13878         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
13879         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
13880         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
13881         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
13882         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
13883         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
13884         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
13885         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
13886         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
13887         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
13888         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
13889         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
13890         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
13891         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
13892         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
13893         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
13894         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
13895         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
13896         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
13897         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
13898         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
13899         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
13900         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
13901         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
13902         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
13903         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
13904         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
13905         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
13906         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
13907         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
13908         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
13909         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
13910         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
13911         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
13912         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
13913         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
13914         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
13915         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
13916         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
13917         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
13918         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
13919         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
13920         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
13921         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
13922         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
13923         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
13924         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
13925         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
13926         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
13927         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
13928         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
13929         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
13930         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
13931         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
13932         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
13933         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
13934         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
13935         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
13936         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
13937         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
13938         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
13939         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
13940         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
13941         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
13942         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
13943         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
13944         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
13945         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
13946         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
13947         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
13948         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
13949         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
13950         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
13951         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
13952         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
13953         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
13954         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
13955         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
13956         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
13957         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
13958         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
13959         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
13960         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
13961         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
13962         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
13963         stringt.ads stringt.h style.adb style.ads stylesw.adb
13964         stylesw.ads switch.adb switch.ads sysdep.c system.ads
13965         table.adb table.ads targparm.adb targparm.ads targtyps.c
13966         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
13967         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
13968         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
13969         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
13970         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
13971         usage.ads utils.c utils2.c validsw.adb validsw.ads
13972         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
13973         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
13974         xtreeprs.adb: Correct statements in comments about maintainership
13975         of GNAT.
13977 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
13979         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
13980         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
13981         * gnatvsn.ads: Gnat_Version_String is now a function.
13982         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
13983         copy the C version_string into a String and return it.
13984         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
13985         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
13986         Remove pragma Ident (Gnat_Version_String).  If this was the
13987         sole use of package Gnatvsn, remove the with statement too.
13988         * gnat1drv.adb: Tweak -gnatv output.
13990 2002-09-17  Richard Henderson  <rth@redhat.com>
13992         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
13993         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
13994         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
13995         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
13996         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
13997         and real_2expN instead of a loop.
13998         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
13999         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
14001 2002-08-25  Andre Leis <a.leis@gmx.net>
14002             David Billinghurst (David.Billinghurst@riotinto.com>
14004         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
14006 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14008         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
14009         Remove $(CONFIG_H) dependency.
14011 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
14013         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
14015 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14017         * adadecode.c (ada_demangle): Use xstrdup in lieu of
14018         xmalloc/strcpy.
14019         * misc.c (gnat_decode_option): Likewise.
14021 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
14023         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
14024         function approach did not work well because of a side effect (the
14025         function call could reallocate the table which was being indexed
14026         using its result). Fixes ada/4851. [RESURRECTED]
14028 2002-07-01  Roger Sayle  <roger@eyesopen.com>
14030         * ada/utils.c (builtin_function): Accept an additional parameter.
14032 2002-06-28  Andreas Jaeger  <aj@suse.de>
14034         PR ada/7144
14035         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
14036         <adi@thur.de>.
14038 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14040         * Makefile.in (SHELL): Set to @SHELL@.
14042 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14044         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
14045         array size calculation.
14047 2002-06-04  Andreas Jaeger  <aj@suse.de>
14049         * Make-lang.in (gnatbind): Readd rule that has been lost in last
14050         patch.
14052 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
14054         Merge from pch-branch:
14056         * config-lang.in (gtfiles): Add ada-tree.h.
14057         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
14058         (SET_TYPE_MODULUS): New.
14059         (SET_TYPE_INDEX): New.
14060         (SET_TYPE_DIGITS_VALUE): New.
14061         (SET_TYPE_RM_SIZE): New.
14062         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
14063         (SET_TYPE_ADA_SIZE): New.
14064         (SET_TYPE_ACTUAL_BOUNDS): New.
14065         (SET_DECL_CONST_CORRESPONDING_VAR): New.
14066         (SET_DECL_ORIGINAL_FIELD): New.
14067         (TREE_LOOP_ID): Correct typo.
14068         * decl.c: Use new macros.
14069         * utils.c: Include debug.h, use new macros.
14070         * utils2.c: Use new macros.
14072         * ada-tree.h: Update all macros for new tree description.
14073         (struct tree_loop_id): New.
14074         (union lang_tree_node): New.
14075         (struct lang_decl): New.
14076         (struct lang_type): New.
14077         * misc.c (gnat_mark_tree): Delete.
14078         (LANG_HOOKS_MARK_TREE): Delete.
14079         * trans.c (tree_transform): No longer any need to cast
14080         for TREE_LOOP_ID.
14082         * utils.c (struct language_function): New dummy structure.
14084         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
14085         (misc.o): Likewise.
14086         (utils.o): Likewise; also gtype-ada.h.
14087         * Make-lang.in (gnat1): Add dependency on s-gtype.
14088         (gnatbind): Add dependency on $(CONFIG_H).
14089         * utils.c: Correct last #include.
14090         (stuct e_stack): Remove unnecessary 'static'.
14091         (mark_e_stack): Remove unused prototype.
14093         * scn-nlit.adb: Remove whitespace after version number to
14094         keep lines under 80 chars.
14095         * snames.adb: Likewise.
14096         * treepr.ads: Likewise.
14098         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
14099         (misc.o): Likewise.
14100         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
14101         * config-lang.in (gtfiles): New.
14102         * decl.c: Use gengtype for roots.
14103         * gigi.h: Use gengtype for roots.
14104         * trans.c: Use gengtype for roots.
14105         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
14107 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
14109         * misc.c (gnat_init): Adjust setting of internal_error_function.
14111 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
14113         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
14114         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
14115         gnat_ug_wnt.texi: Regenerate.
14117 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
14119         * 5ntaprop.adb (with System.OS_Primitives): Remove.
14121         * cstreams.c (max_path_len): Move from here ...
14122         * adaint.c (__gnat_max_path_len): ... to here.
14123         * adaint.c (__gnat_max_path_len): Declare.
14124         * g-dirope.adb (Max_Path): Adjust.
14125         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
14126         * i-cstrea.ads (max_path_len): Adjust.
14127         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
14128         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
14130         * Makefile.in, Make-lang.in: Documentation is now built in
14131         Make-lang.in.  Store Info and generated Texinfo files in the
14132         source directory.
14133         * gnat_ug.texi: Remove CVS keywords, correct version number.
14134         Set file name correctly.
14136         * gnat_ug_*.texi: Add.
14137         * .cvsignore: Ignore generated Texinfo files.
14139 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
14141         * ada.h: Add MI guard macro.
14142         (SUBTYPE): Define constants with an anonymous enum, not static
14143         const variables.
14144         (IN): Cast constants to appropriate type before use.
14146 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
14148         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
14149         (experimental)".
14151 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14153         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
14154         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
14155         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
14156         (ALL_ADA_CFLAGS): Likewise.
14157         (ADA_INCLUDES): Likewise.
14158         Adapt for new working dir.
14159         (GNATBIND): Use Makefile.in version.
14160         (.SUFFIXES): Copy from Makefile.in.
14161         (ada-warn): Define.
14162         (.adb.o, .ads.o): Copy from Makefile.in.
14163         Added $(OUTPUT_OPTION).
14164         (GNAT1_C_OBJS): Moved from Makefile.in.
14165         Prefix with ada subdir.
14166         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
14167         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
14168         Adapt for new working dir.
14169         (EXTRA_GNATBIND_OBJS): Likewise.
14170         (ADA_BACKEND): Moved from Makefile.in.
14171         Renamed to avoid conflict with global BACKEND.
14172         Use that one.
14173         (TARGET_ADA_SRCS): Moved from Makefile.in.
14174         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
14175         Use ADA_BACKEND.
14176         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
14177         (ada_extra_files): Moved from Makefile.in.
14178         Prefix with ada subdir.
14179         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
14180         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
14181         (ada/nmake.ads): Likewise.
14182         (update-sources): Moved from Makefile.in.
14183         Prefix with ada subdir.
14184         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
14185         (ADA_TREE_H): Likewise.
14186         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
14187         (ada/memtrack.o): Likewise.
14188         (ada/adadecode.o): Likewise.
14189         Update dependencies.
14190         (ada/adaint.o): New.
14191         (ada/argv.o): Moved from Makefile.in.
14192         Prefix with ada subdir.
14193         Update dependencies.
14194         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
14195         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
14196         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
14197         Prefix with ada subdir.
14198         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
14199         (GNAT DEPENDENCIES): Regenerate.
14200         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
14201         toplevel Makefile.in.
14202         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
14203         (TARGET_ADA_SRCS): Removed.
14204         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
14205         (GNATBIND_OBJS): Likewise.
14206         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
14207         (BACKEND): Removed.
14208         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
14209         (TREE_H): Likewise.
14210         (ada_extra_files): Likewise.
14211         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
14212         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
14213         (update-sources): Likewise.
14214         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
14215         (ADA_TREE_H): Likewise.
14216         (adadecoce.o): Likewise.
14217         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
14218         (GNAT DEPENDENCIES): Likewise.
14220 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14222         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
14223         * Makefile.in: Likewise.
14225 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14227         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
14228         Restore $(CONFIG_H) and prefix.o dependencies.
14229         (ada.stage[1-4]): Depend on stage?-start.
14231         * Makefile.in (b_gnatb.c): Depend on interfac.o.
14233 2002-05-02  Jim Wilson  <wilson@redhat.com>
14235         * utils.c (finish_record_type): Change record_size to record_type.
14237 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14239         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
14240         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
14241         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
14243 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
14245         * misc.c (gnat_parse_file): Update.
14247 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
14249         * misc.c (gnat_init): Don't set lang_attribute_common.
14251 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
14253         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
14255 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
14257         * gnat_ug.texi: New file.
14259         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
14260         instead of gfdl.texi
14262         * xgnatug.adb, ug_words: New files.
14264         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
14265         gnat_rm and gnat-style manuals.
14267 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
14269         * gigi.h (incomplete_type_error): Remove.
14270         * utils.c (incomplete_type_error): Remove.
14272 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
14274         * trans.c (tree_transform): Add has_scope argument to
14275         expand_start_stmt_expr.
14277 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
14279         * gigi.h (truthvalue_conversion): Rename.
14280         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
14281         * trans.c (tree_transform): Update.
14282         * utils2.c (truthvalue_conversion): Rename, update.
14283         (build_binary_op, build_unary_op): Update.
14285 2002-04-04  Laurent Guerby  <guerby@acm.org>
14287         * make.adb: Implement -margs, remove restriction about file name placement.
14288         * makeusg.adb: Documentation update.
14289         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
14290         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
14292 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
14294         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
14295         (builtin_function): Similarly.
14297 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
14299         * decl.c (gnat_to_gnu_entity): Update.
14300         * gigi.h (mark_addressable): Rename.
14301         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
14302         * trans.c (tree_transform): Update.
14303         * utils.c (create_var_decl): Update.
14304         * util2.c (build_binary_op, build_unary_op,
14305         fill_vms_descriptor): Update.
14306         (mark_addressable): Rename, update.
14308 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
14310         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
14311         Rename.
14312         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
14313         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
14314         * trans.c (tree_transform, convert_with_check): Update.
14315         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
14316         Rename.
14318 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
14320         * gigi.h (finish_incomplete_decl): Rename.
14321         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
14322         * utils.c (gnat_init_decl_processing): Don't set hook.
14323         (finish_incomplete_decl): Rename.
14325 2002-03-29  Andreas Schwab  <schwab@suse.de>
14327         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
14328         directory.
14330 2001-03-28  Robert Dewar <dewar@gnat.com>
14332         * checks.ads:
14333         (Remove_Checks): New procedure
14335         * checks.adb:
14336         (Remove_Checks): New procedure
14338         * exp_util.adb:
14339         Use new Duplicate_Subexpr functions
14340         (Duplicate_Subexpr_No_Checks): New procedure
14341         (Duplicate_Subexpr_No_Checks_Orig): New procedure
14342         (Duplicate_Subexpr): Restore original form (checks duplicated)
14343         (Duplicate_Subexpr): Call Remove_Checks
14345         * exp_util.ads:
14346         (Duplicate_Subexpr_No_Checks): New procedure
14347         (Duplicate_Subexpr_No_Checks_Orig): New procedure
14348         Add 2002 to copyright notice
14350         * sem_util.adb: Use new Duplicate_Subexpr functions
14352         * sem_eval.adb:
14353         (Eval_Indexed_Component): This is the place to call
14354         Constant_Array_Ref and to replace the value. We simply merge
14355         the code of this function in here, since it is now no longer
14356         used elsewhere. This fixes the problem of the back end not
14357         realizing we were clever enough to see that this was
14358         constant.
14359         (Expr_Val): Remove call to Constant_Array_Ref
14360         (Expr_Rep_Val): Remove call to Constant_Array_Ref
14361         Minor reformatting
14362         (Constant_Array_Ref): Deal with string literals (patch
14363         suggested by Zack Weinberg on the gcc list)
14365 2001-03-28  Ed Schonberg <schonber@gnat.com>
14367         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
14368         Duplicate_Subexpr_Move_Checks.
14370         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
14371         Duplicate_Subexpr_Move_Checks.
14373         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
14374         value of array exists before retrieving it (it may a private
14375         protected component in a function).
14377 2002-03-28   Geert Bosch <bosch@gnat.com>
14379         * prj-pp.adb : New file.
14381         * prj-pp.ads : New file.
14383 2002-03-28  Andreas Jaeger  <aj@suse.de>
14385         * Makefile.in (stamp-sdefault): Fix path for Makefile.
14387 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
14389         * misc.c (gnat_expand_expr): Move prototype.
14391 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
14393         * misc.c (insert_default_attributes): Remove.
14395 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
14397         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14398         (gnat_init): Don't set hook.
14399         (gnat_expand_expr): Fix prototype.
14401 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
14403         * misc.c (ggc_p): Remove.
14405 2002-03-27  Geert Bosch  <bosch@gnat.com>
14407         * prj-makr.ads, prj-makr.adb : New files.
14409 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
14411         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
14412         (lang_mark_tree): Make static, rename.
14414 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
14416         * misc.c (maybe_build_cleanup): Remove.
14418 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
14420         * gigi.h (yyparse): Remove.
14422 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
14424         * gnat_rm.texi: Sync with ACT version.
14425           (From Ben Brosgol <brosgol@gnat.com>)
14427 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
14429         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
14430         (gnat_init): Remove old hook.
14432 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
14434         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
14435         (yyparse): Rename gnat_parse_file.
14437 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
14439         Delete all lines containing "$Revision:".
14440         * xeinfo.adb: Don't look for revision numbers.
14441         * xnmake.adb: Likewise.
14442         * xsinfo.adb: Likewise.
14443         * xsnames.adb: Likewise.
14444         * xtreeprs.adb: Likewise.
14446 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14448         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
14449         gnat_tree_code_name): Delete.
14450         (tree_code_type, tree_code_length, tree_code_name): Define.
14451         (gnat_init): Don't try to copy into the various tree_code
14452         arrays.
14454 2002-03-11  Richard Henderson  <rth@redhat.com>
14456         * Makefile.in (.NOTPARALLEL): Add fake tag.
14458 2002-03-07  Geert Bosch  <bosch@gnat.com>
14460         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
14461         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
14462         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
14463         switch-m.adb, switch-m.ads : New files.
14465 2002-03-07  Geert Bosch  <bosch@gnat.com>
14467         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
14468         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
14469         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
14470         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
14471         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
14472         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
14473         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
14474         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
14475         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
14476         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
14477         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
14478         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
14479         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
14480         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
14481         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
14482         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
14483         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
14484         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
14485         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
14486         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
14487         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
14488         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
14489         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
14490         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
14491         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
14492         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
14493         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
14494         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
14495         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
14496         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
14497         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
14498         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
14499         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
14500         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
14501         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
14502         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
14503         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
14504         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
14505         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
14506         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
14507         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
14508         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
14509         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
14510         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
14511         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
14512         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
14513         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
14514         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
14515         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
14516         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
14517         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
14518         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
14519         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
14520         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
14521         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
14522         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
14523         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
14524         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
14525         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
14526         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
14527         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
14528         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
14529         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
14530         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
14531         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
14532         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
14533         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
14534         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
14535         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
14536         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
14537         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
14538         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
14539         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
14540         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
14541         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
14542         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
14543         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
14544         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
14545         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
14546         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
14547         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
14548         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
14549         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
14550         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
14551         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
14552         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
14553         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
14554         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
14555         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
14556         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
14557         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
14558         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
14559         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
14560         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
14561         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
14562         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
14563         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
14565         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
14566         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
14567         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
14568         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
14570         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
14571         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
14573         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
14574         to mdll-fil.ad[bs] and mdll-util.ad[bs]
14576         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
14577         from mdllfile.ad[bs] and mdlltool.ad[bs]
14579 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14581         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
14582         lieu of explicit sizeof/sizeof.
14584 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
14586         * misc.c (copy_lang_decl): Remove.
14588 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
14590         * misc.c: Delete traditional-mode-related code copied from the
14591         C front end but not used, or used only to permit the compiler
14592         to link.
14594 2002-02-07  Richard Henderson  <rth@redhat.com>
14596         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
14597         * adaint.h (__gnat_to_gm_time): Update prototype.
14599 2002-01-30  Richard Henderson  <rth@redhat.com>
14601         * trans.c (tree_transform) [N_Loop_Statement]: Use
14602         expand_exit_loop_top_cond.
14604 2001-12-23  Richard Henderson  <rth@redhat.com>
14606         * utils.c (end_subprog_body): Push GC context around
14607         rest_of_compilation for nested functions.
14609 2001-12-23  Richard Henderson  <rth@redhat.com>
14611         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
14613 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
14615         * gnat-style.texi (Declarations and Types): Remove ancient style
14616         rule which was mandated by code generation issues.
14618         * gnat-style.texi (header): Add @dircategory, @direntry.
14619         (title page): Remove date.
14620         (general) Add @./@: where approriate, and two spaces after the
14621         full stop at the end of a sentence.  Use @samp markup when
14622         referring concrete lexical entities (keywords, attribute names
14623         etc.), and @syntax for ARM grammar elements. Use @r for English
14624         text in comments.  Use @emph for emphasis.  Change "if-statements"
14625         etc. to "if statements" (without @samp). Break long lines.  Make
14626         casing of section names consistent.
14627         (Identifiers): Use @samp markup for variable names.
14628         (Comments): Use @samp markup for comment characters. Line-end
14629         comments may follow any Ada code, not just statements.  Fix
14630         misspelling of "Integer" as "integer".
14631         (Loop statements): Do not use variable name "I", use "J".
14632         (Subprogram Declarations): Document alignment.
14633         (Subprogram Bodies, Block statements): Document empty line before
14634         "begin".
14636 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
14638         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
14639         function approach did not work well because of a side effect (the
14640         function call could reallocate the table which was being indexed
14641         using its result). Fixes ada/4851.
14643 2001-12-19  Robert Dewar <dewar@gnat.com>
14645         * bindgen.adb: Minor reformatting
14647         * cstand.adb: Minor reformatting
14649         * fmap.adb: Minor reformatting
14650         Change name from Add for Add_To_File_Map (Add is much too generic)
14651         Change Path_Name_Of to Mapped_Path_Name
14652         Change File_Name_Of to Mapped_File_Name
14653         Fix copyright dates in header
14655         * fmap.ads:
14656         Change name from Add for Add_To_File_Map (Add is much too generic)
14657         Change Path_Name_Of to Mapped_Path_Name
14658         Change File_Name_Of to Mapped_File_Name
14659         Fix copyright dates in header
14661         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
14662         Add use clause for Fmap.
14664         * make.adb: Minor reformatting
14666         * osint.adb: Minor reformatting.  Change of names in Fmap.
14667         Add use clause for Fmap.
14669         * prj-env.adb: Minor reformatting
14671         * prj-env.ads: Minor reformatting
14673         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
14674         error found (there were odd exceptions to this general rule in
14675         -gnatec/-gnatem processing)
14677 2001-12-19  Olivier Hainque <hainque@gnat.com>
14679         * raise.c (__gnat_eh_personality): Exception handling personality
14680         routine for Ada.  Still in rough state, inspired from the C++ version
14681         and still containing a bunch of debugging artifacts.
14682         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
14683         inspired from the C++ library.
14685         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
14686         exception handling integration.
14688 2001-12-19  Arnaud Charlet <charlet@gnat.com>
14690         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
14691         (HIE_SOURCES): Add s-secsta.ad{s,b}.
14692         (HIE_OBJS): Add s-fat*.o
14693         (RAVEN_SOURCES): Remove files that are no longer required. Add
14694         interrupt handling files.
14695         (RAVEN_MOD): Removed, no longer needed.
14697 2001-12-19  Robert Dewar <dewar@gnat.com>
14699         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
14700         Add 2001 to copyright date
14702         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
14703         need to force universal inlining for these cases.
14705 2001-12-19  Arnaud Charlet <charlet@gnat.com>
14707         * s-taprob.adb: Minor clean ups so that this unit can be used in
14708         Ravenscar HI.
14710         * exp_ch7.adb: Allow use of secondary stack in HI mode.
14711         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
14713 2001-12-19  Vincent Celier <celier@gnat.com>
14715         * prj-tree.ads (Project_Node_Record): Add comments for components
14716         Pkg_Id and Case_Insensitive.
14718 2001-12-19  Pascal Obry <obry@gnat.com>
14720         * g-socket.adb: Minor reformatting. Found while reading code.
14722 2001-12-19  Robert Dewar <dewar@gnat.com>
14724         * prj-tree.ads: Minor reformatting
14726 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
14728         * config-lang.in (diff_excludes): Remove.
14730 2001-12-17  Ed Schonberg <schonber@gnat.com>
14732         * sem_res.adb (Resolve_Selected_Component): do not generate a
14733         discriminant check if the selected component is a component of
14734         the argument of an initialization procedure.
14736         * trans.c (tree_transform, case of arithmetic operators): If result
14737         type is private, the gnu_type is the base type of the full view,
14738         given that the full view itself may be a subtype.
14740 2001-12-17  Robert Dewar <dewar@gnat.com>
14742         * sem_res.adb: Minor reformatting
14744         * trans.c (tree_transform, case N_Real_Literal): Add missing third
14745         parameter in call to Machine (unknown horrible effects from this
14746         omission).
14748         * urealp.h: Add definition of Round_Even for call to Machine
14749         Add third parameter for Machine
14751 2001-12-17  Ed Schonberg <schonber@gnat.com>
14753         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
14754         predefined units in No_Run_Time mode.
14756 2001-12-17  Richard Kenner <kenner@gnat.com>
14758         * misc.c (insn-codes.h): Now include.
14760 2001-12-17  Olivier Hainque <hainque@gnat.com>
14762         * a-except.adb: Preparation work for future integration of the GCC 3
14763         exception handling mechanism
14764         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
14765         to factorize previous code sequences and make them externally callable,
14766         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
14767         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
14768         Use the new notification routines.
14770 2001-12-17  Emmanuel Briot <briot@gnat.com>
14772         * prj-tree.ads (First_Choice_Of): Document the when others case
14774 2001-12-17  Arnaud Charlet <charlet@gnat.com>
14776         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
14777         HI-E mode, in order to support Ravenscar profile properly.
14779         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
14780         mode on 32 bits targets.
14782 2001-12-17  Vincent Celier <celier@gnat.com>
14784         * fmap.adb: Initial version.
14786         * fmap.ads: Initial version.
14788         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
14789         If search is successfully done, add to mapping.
14791         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
14793         * make.adb:
14794         (Gnatmake): Add new local variable Mapping_File_Name.
14795          Create mapping file when using project file(s).
14796          Delete mapping file before exiting.
14798         * opt.ads (Mapping_File_Name): New variable
14800         * osint.adb (Find_File): Use path name found in mapping, if any.
14802         * prj-env.adb (Create_Mapping_File): New procedure
14804         * prj-env.ads (Create_Mapping_File): New procedure.
14806         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
14807         (Mapping_File)
14809         * usage.adb: Add entry for new switch -gnatem.
14811         * Makefile.in: Add dependencies for fmap.o.
14813 2001-12-17  Ed Schonberg <schonber@gnat.com>
14815         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
14816         is a package instantiation rewritten as a package body.
14817         (Install_Withed_Unit): Undo previous change, now redundant.
14819 2001-12-17  Gary Dismukes <dismukes@gnat.com>
14821         * layout.adb:
14822         (Compute_Length): Move conversion to Unsigned to callers.
14823         (Get_Max_Size): Convert Len expression to Unsigned after calls to
14824         Compute_Length and Determine_Range.
14825         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
14826         Compute_Length and Determine_Range.
14827         Above changes fix problem with length computation for supernull arrays
14828         where Max (Len, 0) wasn't getting applied due to the Unsigned
14829         conversion used by Compute_Length.
14831 2001-12-17  Arnaud Charlet <charlet@gnat.com>
14833         * rtsfind.ads:
14834         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
14835          System.Secondary_Stack.
14836         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
14837          in HI-E mode.
14838         Remove unused entity RE_Exception_Data.
14840         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
14842         * rident.ads (No_Secondary_Stack): New restriction.
14844 2001-12-17  Joel Brobecker <brobecke@gnat.com>
14846         * gnat_rm.texi: Fix minor typos. Found while reading the section
14847         regarding "Bit_Order Clauses" that was sent to a customer.
14848         Very interesting documentation!
14850 2001-12-17  Robert Dewar <dewar@gnat.com>
14852         * sem_case.adb (Choice_Image): Avoid creating improper character
14853         literal names by using the routine Set_Character_Literal_Name. This
14854         fixes bombs in certain error message cases.
14856 2001-12-17  Arnaud Charlet <charlet@gnat.com>
14858         * a-reatim.adb: Minor reformatting.
14860 2001-12-17  Ed Schonberg <schonber@gnat.com>
14862         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
14863         case where the formal is an extension of another formal in the current
14864         unit or in a parent generic unit.
14866 2001-12-17  Arnaud Charlet <charlet@gnat.com>
14868         * s-tposen.adb: Update comments.  Minor reformatting.
14869         Minor code clean up.
14871         * s-tarest.adb: Update comments.  Minor code reorganization.
14873 2001-12-17  Gary Dismukes <dismukes@gnat.com>
14875         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
14876         when Java_VM.
14878 2001-12-17  Robert Dewar <dewar@gnat.com>
14880         * exp_attr.adb: Minor reformatting
14882 2001-12-17  Ed Schonberg <schonber@gnat.com>
14884         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
14885         derivations nested within a child unit: verify that the parent
14886         type is declared in an outer scope.
14888 2001-12-17  Robert Dewar <dewar@gnat.com>
14890         * sem_ch12.adb: Minor reformatting
14892 2001-12-17  Ed Schonberg <schonber@gnat.com>
14894         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
14895         warning if current unit is a predefined one, from which bodies may
14896         have been deleted.
14898 2001-12-17  Robert Dewar <dewar@gnat.com>
14900         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
14901         Fix header format. Add 2001 to copyright date.
14903         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
14904         which caused CE during compilation if checks were enabled.
14906 2001-12-17  Vincent Celier <celier@gnat.com>
14908         * make.adb:
14909         (Switches_Of): New function
14910         (Test_If_Relative_Path): New procedure
14911         (Add_Switches): Use new function Switches_Of
14912         (Collect_Arguments_And_Compile): Use new function Switches_Of.
14913         When using a project file, test if there are any relative
14914         search path. Fail if there are any.
14915         (Gnatmake): Only add switches for the primary directory when not using
14916         a project file. When using a project file, change directory to the
14917         object directory of the main project file. When using a project file,
14918         test if there are any relative search path. Fail if there are any.
14919         When using a project file, fail if specified executable is relative
14920         path with directory information, and prepend executable, if not
14921         specified as an absolute path, with the exec directory.  Make sure
14922         that only one -o switch is transmitted to the linker.
14924         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
14926         * prj-nmsc.adb:
14927         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
14928         when using a non standard naming scheme.
14929         (Check_Ada_Naming_Scheme): Make sure that error messages
14930         do not raise exceptions.
14931         (Is_Illegal_Append): Return True if there is no dot in the suffix.
14932         (Language_Independent_Check): Check the exec directory.
14934         * prj.adb (Project_Empty): Add new component Exec_Directory
14936         * prj.ads:
14937         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
14938         (Project_Data): Add component Exec_Directory
14940         * snames.adb: Updated to match snames.ads revision 1.215
14942         * snames.ads: Added Exec_Dir
14944 2001-12-17  Robert Dewar <dewar@gnat.com>
14946         * make.adb: Minor reformatting
14948         * prj-nmsc.adb: Minor reformatting
14950         * snames.adb: Updated to match snames.ads
14952         * snames.ads: Alphebetize entries for project file
14954 2001-12-17  Ed Schonberg <schonber@gnat.com>
14956         * trans.c (process_freeze_entity): Do nothing if the entity is a
14957         subprogram that was already elaborated.
14959 2001-12-17  Richard Kenner <kenner@gnat.com>
14961         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
14962         and Esize if object is referenced via pointer.
14964 2001-12-17  Ed Schonberg <schonber@gnat.com>
14966         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
14967         is discrete before analyzing choices.
14969 2001-12-17  Joel Brobecker <brobecke@gnat.com>
14971         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
14972         containing the name of the Ada Main Program. This string is mainly
14973         intended for the debugger.
14974         (Gen_Output_File_C): Do the equivalent change when generating a C file.
14976 2001-12-17  Robert Dewar <dewar@gnat.com>
14978         * ali.adb: Set new Dummy_Entry field in dependency entry
14980         * ali.ads: Add Dummy_Entry field to source dependency table
14982         * bcheck.adb (Check_Consistency): Ignore dummy D lines
14984         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
14986         * lib-writ.ads: Document dummy D lines for missing files.
14988         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
14990 2001-12-17  Robert Dewar <dewar@gnat.com>
14992         * ali.adb: Type reference does not reset current file.
14994         * ali.adb: Recognize and scan renaming reference
14996         * ali.ads: Add spec for storing renaming references.
14998         * lib-xref.ads: Add documentation for handling of renaming references
15000         * lib-xref.adb: Implement output of renaming reference.
15002         * checks.adb:
15003         (Determine_Range): Document local variables
15004         (Determine_Range): Make sure Hbound is initialized. It looks as though
15005          there could be a real problem here with an uninitialized reference
15006          to Hbound, but no actual example of failure has been found.
15008 2001-12-17  Laurent Pautet <pautet@gnat.com>
15010         * g-socket.ads:
15011         Fix comment of Shutdown_Socket and Close_Socket. These functions
15012         should not fail silently because if they are called twice, this
15013         probably means that there is a race condition in the user program.
15014         Anyway, this behaviour is consistent with the rest of this unit.
15015         When an error occurs, an exception is raised with the error message
15016         as exception message.
15018 2001-12-17  Robert Dewar <dewar@gnat.com>
15020         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
15021         that it happens before modification of Sloc values for -gnatD.
15023         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
15024         so that it happens before modification of Sloc values for -gnatD.
15026         * switch.adb: Minor reformatting
15028 2001-12-15  Richard Henderson  <rth@redhat.com>
15030         * sem_ch7.adb: Wrap comment.
15032 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
15034         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
15035         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
15036         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
15037         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
15038         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
15039         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
15040         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
15041         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
15042         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
15043         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
15044         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
15045         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
15046         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
15047         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
15048         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
15049         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
15050         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
15051         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
15052         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
15053         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
15054         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
15055         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
15056         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
15057         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
15058         spelling errors.
15060 2001-12-14  Vincent Celier <celier@gnat.com>
15062         * osint.adb(Create_Debug_File): When an object file is specified,
15063         put the .dg file in the same directory as the object file.
15065 2001-12-14  Robert Dewar <dewar@gnat.com>
15067         * osint.adb: Minor reformatting
15069         * lib-xref.adb (Output_Instantiation): New procedure to generate
15070         instantiation references.
15072         * lib-xref.ads: Add documentation of handling of generic references.
15074         * ali.adb (Read_Instantiation_Ref): New procedure to read
15075         instantiation references
15077         * ali.ads: Add spec for storing instantiation references
15079         * bindusg.adb: Minor reformatting
15081         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
15083         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
15085         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
15087         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
15089         * csets.ads:
15090         Fix header format
15091         Add 2001 to copyright date
15092         Add entry for Latin-5 (Cyrillic ISO-8859-5)
15094 2001-12-14  Matt Gingell <gingell@gnat.com>
15096         * adaint.c: mktemp is a macro on Lynx and can not be used as an
15097         expression.
15099 2001-12-14  Richard Kenner <kenner@gnat.com>
15101         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
15102         if operand is CONSTRUCTOR.
15104 2001-12-14  Ed Schonberg <schonber@gnat.com>
15106         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
15107         before emiting check on right-hand side, so that exception information
15108         is correct.
15110 2001-12-14  Richard Kenner <kenner@gnat.com>
15112         * utils.c (create_var_decl): Throw away initializing expression
15113         if just annotating types and non-constant.
15115 2001-12-14  Vincent Celier <celier@gnat.com>
15117         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
15118         Default_Ada_...
15120         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
15121         Remove functions.
15122         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
15124         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
15125         Remove functions.
15126         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
15128 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
15130         * ChangeLog: Remove piece of diff output.
15132 2001-12-14  Geert Bosch <bosch@gnat.com>
15134         * config-lang.in: Update copyright notice
15136         * layout.adb: Remove commented out code.
15138         * mdllfile.ads: Update copyright notice. Fix header format.
15140         * sem_case.ads: Likewise.
15142         * sem_ch3.adb: Minor reformatting.
15144 2001-12-12  Geert Bosch <bosch@gnat.com>
15146         * freeze.ads: Update copyright date.
15148         * g-comlin.ads: Minor reformatting.
15150         * gnat-style.texi: Fix typo.
15152 2001-12-12  Geert Bosch <bosch@gnat.com>
15154         *  einfo.h: Regenerate.
15156 2001-12-12  Ed Schonberg <schonber@gnat.com>
15158         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
15159         on known node types, rather than untyped fields. Further cleanups.
15161 2001-12-12  Robert Dewar <dewar@gnat.com>
15163         * sem_ch12.adb:
15164         (Save_Entity_Descendant): Minor comment update.
15165         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
15166          of an N_Attribute_Reference node. As per note below, this does not
15167         eliminate need for Associated_Node in attribute ref nodes.
15168         (Associated_Node): Documentation explicitly mentions attribute
15169         reference nodes, since this field is used in such nodes.
15171         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
15173 2001-12-12  Robert Dewar <dewar@gnat.com>
15175         * s-stalib.adb: Add more comments on with statements being needed
15177         * par-ch12.adb: Minor reformatting
15179         * prj-dect.ads: Fix copyright header
15181         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
15182         inputs fit in 32 bits, but the result still overflows.
15184         * s-fatgen.ads: Minor comment improvement
15186 2001-12-12  Ed Schonberg <schonber@gnat.com>
15188         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
15189         formal derived type, look for an inherited component from the full
15190         view of the parent, if any.
15192 2001-12-12  Robert Dewar <dewar@gnat.com>
15194         * checks.ads (Apply_Alignment_Check): New procedure.
15196         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
15197         ensure that the alignment of objects with address clauses is
15198         appropriate, and raise PE if not.
15200         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
15201         Exp_Pakd.Known_Aligned_Enough
15203         * mdllfile.ads: Minor reformatting
15205         * mlib-fil.ads: Minor reformatting
15207 2001-12-12  Ed Schonberg <schonber@gnat.com>
15209         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
15210         fix to any component reference if enclosing record has non-standard
15211         representation.
15213 2001-12-12  Vincent Celier <celier@gnat.com>
15215         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
15216         Iteration
15218 2001-12-12  Ed Schonberg <schonber@gnat.com>
15220         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
15221         sem_attr.
15223 2001-12-12  Robert Dewar <dewar@gnat.com>
15225         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
15227 2001-12-12  Emmanuel Briot <briot@gnat.com>
15229         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
15230         and it adds dependencies to system.io.
15232 2001-12-12  Pascal Obry <obry@gnat.com>
15234         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
15235         variable name.
15237 2001-12-11  Ed Schonberg <schonber@gnat.com>
15239         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
15240         that is the parent of other generics, the instance body replaces the
15241         instance node.  Retrieve the instance of the spec, which is the one
15242         that is visible in clients and within the body.
15244 2001-12-11  Vincent Celier <celier@gnat.com>
15246         * gnatmain.adb: Initial version.
15248         * gnatmain.ads: Initial version.
15250         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
15252         * snames.adb: Updated to match snames.ads.
15254         * snames.ads: Added Gnatstub.
15256 2001-12-11  Vincent Celier <celier@gnat.com>
15258         * prj-attr.adb (Initialization_Data): Change name from
15259         Initialisation_Data.
15261 2001-12-11  Emmanuel Briot <briot@gnat.com>
15263         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
15264         + and * applied to backslashed expressions like \r.
15266 2001-12-11  Vasiliy Fofanov <fofanov@gnat.com>
15268         * g-os_lib.ads: String_List type added, Argument_List type is now
15269         subtype of String_List.
15271 2001-12-11  Robert Dewar <dewar@gnat.com>
15273         * g-os_lib.ads: Change copyright to FSF
15274         Add comments for String_List type
15276 2001-12-11  Vincent Celier <celier@gnat.com>
15278         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
15279         string to the buffer).
15281 2001-12-11  Ed Schonberg <schonber@gnat.com>
15283         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
15284         sem_attr.
15286         * sem_attr.adb: Simplify previous fix for Address.
15287         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
15288         to avoid anomalies where the bound of the type appears to raise
15289         constraint error.
15291 2001-12-11  Robert Dewar <dewar@gnat.com>
15293         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
15294         handled.
15296 2001-12-11  Ed Schonberg <schonber@gnat.com>
15298         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
15299         renamed unit before checking for recursive instantiations.
15301 2001-12-11  Emmanuel Briot <briot@gnat.com>
15303         * prj.ads: Add comments for some of the fields.
15305 2001-12-11  Robert Dewar <dewar@gnat.com>
15307         * lib-xref.adb (Output_Refs): Don't output type references outside
15308         the main unit if they are not otherwise referenced.
15310 2001-12-11  Ed Schonberg <schonber@gnat.com>
15312         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
15313         code and diagnose additional illegal uses
15315         * sem_util.adb (Is_Object_Reference): An indexed component is an
15316         object only if the prefix is.
15318 2001-12-11  Vincent Celier <celier@gnat.com>
15320         * g-diopit.adb: Initial version.
15322         * g-diopit.ads: Initial version.
15324         * g-dirope.adb:
15325         (Expand_Path): Avoid use of Unbounded_String
15326         (Find, Wildcard_Iterator): Moved to child package Iteration
15328         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
15330 2001-12-11  Robert Dewar <dewar@gnat.com>
15332         * sem_attr.adb: Minor reformatting
15334 2001-12-11  Ed Schonberg <schonber@gnat.com>
15336         * sem_ch3.adb: Clarify some ???.
15338 2001-12-11  Robert Dewar <dewar@gnat.com>
15340         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
15341         Exp_Pakd.Known_Aligned_Enough
15343         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
15344         version is moved to Exp_Ch13.
15346 2001-12-11  Robert Dewar <dewar@gnat.com>
15348         * einfo.ads: Minor reformatting
15350         * exp_ch5.adb: Add comment for previous.change
15352         * ali.adb: New interface for extended typeref stuff.
15354         * ali.ads: New interface for typeref stuff.
15356         * checks.adb (Apply_Alignment_Check): New procedure.
15358         * debug.adb: Add -gnatdM for modified ALI output
15360         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
15362         * lib-xref.adb: Extend generation of <..> notation to cover
15363         subtype/object types. Note that this is a complete rewrite,
15364         getting rid of the very nasty quadratic algorithm previously
15365         used for derived type output.
15367         * lib-xref.ads: Extend description of <..> notation to cover
15368         subtype/object types. Uses {..} for these other cases.
15369         Also use (..) for pointer types.
15371         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
15373         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
15374         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
15376 2001-12-11  Vincent Celier <celier@gnat.com>
15378         * gnatcmd.adb:
15379         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
15380         Changed /BIND_ONLY to /ACTIONS=BIND
15381         Changed /LINK_ONLY to /ACTIONS=LINK
15383 2001-12-11  Ed Schonberg  <schonber@gnat.com>
15385         * sem_ch8.adb (Find_Selected_Component): improved search for a
15386         candidate package in case of error.
15388         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
15389         chain back on scope stack before reinstalling use clauses.
15391         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
15392         is enabled, do not kill the code for the condition, to preserve
15393         warning.
15395 2001-12-11  Robert Dewar <dewar@gnat.com>
15397         * checks.adb (Insert_Valid_Check): Apply validity check to expression
15398         of conversion, not to result of conversion.
15400 2001-12-11  Ed Schonberg <schonber@gnat.com>
15402         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
15403         before freezing parent. If the declarations are mutually recursive,
15404         an access to the current record type may be frozen before the
15405         derivation is complete.
15407 2001-12-05  Vincent Celier <celier@gnat.com>
15409         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
15410         -c /COMPILE_ONLY, -l /LINK_ONLY
15412         * opt.ads:
15413         (Bind_Only): New Flag
15414         (Link_Only): New flag
15416         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
15417         and -l (Link_Only)
15419         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
15421         * make.adb:
15422         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
15423         (Gnatmake): Set the step flags. Only perform a step if the
15424         corresponding step flag is True.
15425         (Scan_Make_Arg): Reset the bind and link step flags when -u
15426         or -gnatc has been specified.
15428 2001-12-05  Ed Schonberg <schonber@gnat.com>
15430         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
15431         get bounds from right operand.
15433         * sem_eval.adb: Minor reformatting
15435         * exp_util.adb (Make_Literal_Range): use bound of literal rather
15436         than Index'First, its lower bound may be different from 1.
15438         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
15439         and C48009J
15441 2001-12-05  Vincent Celier <celier@gnat.com>
15443         * prj-nmsc.adb Minor reformatting
15445         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
15446         set and libraries are not supported.
15448 2001-12-05  Ed Schonberg <schonber@gnat.com>
15450         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
15451         private view explicitly, so the back-end can treat as a global
15452         when appropriate.
15454 2001-12-05  Ed Schonberg <schonber@gnat.com>
15456         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
15457          unit, always replace instance node with new body, for ASIS use.
15459 2001-12-05  Vincent Celier <celier@gnat.com>
15461         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
15462         libraries are not supported and both attributes Library_Name and
15463         Library_Dir are specified.
15465         * prj-proc.adb (Expression): Set location of Result to location of
15466         first term.
15468         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
15469         (prj-nmsc is now importing MLib.Tgt)
15471         * prj-proc.adb: Put the change indicated above that was forgotten.
15473 2001-12-05  Robert Dewar <dewar@gnat.com>
15475         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
15477 2001-12-05  Ed Schonberg <schonber@gnat.com>
15479         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
15480         constraint, introduce explicit subtype declaration and derive from it.
15482         * sem_ch3.adb: Minor reformatting
15484 2001-12-05  Robert Dewar <dewar@gnat.com>
15486         * checks.adb (Determine_Range): Increase cache size for checks.
15487         Minor reformatting
15489         * exp_ch6.adb: Minor reformatting
15490         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
15491         a parameter whose root type is System.Address, since treating such
15492         subprograms as pure in the code generator is almost surely a mistake
15493         that will lead to unexpected results.
15495         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
15496         change handling of conversions.
15498         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
15500 2001-12-05  Ed Schonberg <schonber@gnat.com>
15502         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
15503         aggregate with static wrong size, attach generated Raise node to
15504         declaration.
15506 2001-12-05  Robert Dewar <dewar@gnat.com>
15508         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
15509         Fixes compilation abandoned bomb in B24009B.
15511 2001-12-05  Ed Schonberg <schonber@gnat.com>
15513         * sem_ch12.adb:
15514         Document use of Associated_Node on Selected_Components.
15515         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
15516         to clarify use of untyped descendant fields.
15518 2001-12-05  Robert Dewar <dewar@gnat.com>
15520         * prj-dect.ads: Add ??? comment
15521         Add 2001 to copyright notice (was not done in after all)
15523         * prj-part.adb: Minor reformatting. Reword one awkward error message.
15525         * prj.ads: Minor reformatting throughout, and add some ??? comments
15527         * snames.ads: Minor reformatting
15529 2001-12-05  Geert Bosch <bosch@gnat.com>
15531         * snames.adb: Autoupdate
15533 2001-12-05  Vincent Celier <celier@gnat.com>
15535         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
15537         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
15539         * prj-env.adb: Minor comment changes (modifying -> extends).
15541         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
15543         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
15544         Tok_Extends.
15546         * prj.adb (Initialize): Change Modifying to Extends.
15548         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
15550         * prj.ads: Minor comment change (Modifying -> extending).
15552         * snames.ads: Change modifying to extends.
15554 2001-12-05  Robert Dewar <dewar@gnat.com>
15556         * sem_warn.adb: Remove stuff for conditionals, we are not going to
15557         do this after all.
15559         * sem_warn.ads: Remove stuff for conditionals, we are not going to
15560         do this after all.  Add 2001 to copyright notice
15562 2001-12-04  Geert Bosch <bosch@gnat.com>
15564         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
15566 2001-12-04  Robert Dewar <dewar@gnat.com>
15568         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
15569         location if we already have errors. Stops some cases of cascaded
15570         errors.
15572         * errout.adb: Improve comment.
15574 2001-12-04  Robert Dewar <dewar@gnat.com>
15576         * sem_ch12.adb:
15577         (Analyze_Formal_Type_Definition): Defend against Error.
15578         (Analyze_Formal_Subprogram): Defend against Error.
15580         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
15581         remove following semicolon if present. Removes cascaded error.
15583 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
15585         * bindgen.adb:
15586         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
15587          exceptions equals 0.
15588         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
15589         Fixes PIWG E tests (which have to be run with -gnatL).
15591 2001-12-04  Robert Dewar <dewar@gnat.com>
15593         * einfo.ads: Minor reformatting
15595 2001-12-04  Ed Schonberg <schonber@gnat.com>
15597         * einfo.ads: Block_Node points to the identifier of the block, not to
15598         the block node itself, to preserve the link when the block is
15599         rewritten, e.g. within an if-statement with a static condition.
15601         * inline.adb (Cleanup_Scopes): recover block statement from block
15602         entity using new meaning of Block_Node.
15604         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
15605         identifier of block node, rather than to node itself.
15607 2001-12-04  Gary Dismukes <dismukes@gnat.com>
15609         * layout.adb:
15610         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
15611         (Discrimify): Go back to setting the Etypes of the selected component
15612         because the Vname component does not exist at this point and will
15613         fail name resolution. Also set Analyzed.
15614         Remove with and use of Sem_Res.
15616 2001-12-04  Arnaud Charlet <charlet@gnat.com>
15618         * Makefile.in: (HIE_SOURCES): add s-fat*.
15620 2001-12-04  Robert Dewar <dewar@gnat.com>
15622         * sem_attr.adb:
15623         (Compile_Time_Known_Attribute): New procedure.
15624         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
15625          proper range check.
15627 2001-12-04  Ed Schonberg <schonber@gnat.com>
15629         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
15630         processing discriminants to diagnose illegal default values.
15632 2001-12-04  Ed Schonberg <schonber@gnat.com>
15634         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
15635         access discriminant within a type extension that constrains its
15636         parent discriminants.
15638 2001-12-04  Ed Schonberg <schonber@gnat.com>
15640         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
15641         is malformed, use instance of Any_Id to allow analysis to proceed.
15643         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
15644         type definition is illegal.
15645         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
15646         misplaced.
15648 2001-12-04  Ed Schonberg <schonber@gnat.com>
15650         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
15651         constants.
15653 2001-12-04  Robert Dewar <dewar@gnat.com>
15655         * errout.adb: Minor reformatting
15657 2001-12-04  Robert Dewar <dewar@gnat.com>
15659         * exp_util.adb: Minor reformatting from last change
15661         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
15662         which is a rewriting of an expression, traverse the original
15663         expression to remove warnings that may have been posted on it.
15665 2001-12-04  Ed Schonberg <schonber@gnat.com>
15667         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
15668         record that has other packed components.
15670 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
15672         * adaint.c: Minor cleanups.
15674 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
15676         * adaint.c: Do not use utime.h on vxworks.
15678 2001-12-04  Arnaud Charlet <charlet@gnat.com>
15680         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
15681         more confusion than it solves.
15683 2001-12-04  Geert bosch <bosch@gnat.com>
15685         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
15687 2001-12-04  Geert Bosch  <bosch@gnat.com>
15689         * Makefile.in (update-sources): New target.
15690         For use by gcc_release script.
15692 2001-12-04  Ed Schonberg <schonber@gnat.com>
15694         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
15695         a configuration pragma, it is now legal wherever a pragma can appear.
15697 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
15699         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
15700         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
15701         is now @CROSS@ -DIN_GCC; update comment.
15703 2001-12-04  Robert Dewar <dewar@gnat.com>
15705         * einfo.adb (Has_Pragma_Pure_Function): New flag.
15706         Fix problem that stopped ceinfo from working
15708         * einfo.ads (Has_Pragma_Pure_Function): New flag.
15710         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
15712 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
15714         * gnatchop.adb:
15715         (File_Time_Stamp): New procedure.
15716         (Preserve_Mode): New boolean.
15717         (Write_Unit): Pass time stamp.
15718         Implement -p switch (preserve time stamps).
15720         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
15722         * gnatchop.adb: Do usage info for -p switch
15724         * adaint.h (__gnat_set_file_time_name): New function
15726         * adaint.c (__gnat_set_file_time_name): Implement
15728         * adaint.h: Fix typo
15730 2001-12-03  Robert Dewar <dewar@gnat.com>
15732         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
15733         have Associated_Node.
15735 2001-12-03  Robert Dewar <dewar@gnat.com>
15737         * prj-proc.adb: Minor reformatting
15739         * make.adb: Minor reformatting
15741 2001-12-03  Geert Bosch <bosch@gnat.com>
15743         * make.adb: Minor reformatting.
15745 2001-12-03 Robert Dewar  <dewar@gnat.com>
15747         * sem_ch12.adb: Minor reformatting
15749 2001-12-03  Ed Schonberg <schonber@gnat.com>
15751         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
15752         push Standard on the stack before analyzing the instance body,
15753         in order to have a clean visibility environment.
15755         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
15757 2001-12-03  Ed Schonberg <schonber@gnat.com>
15759         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
15760         instantiation of a body that contains an inlined body.
15762 2001-12-03  Ed Schonberg <schonber@gnat.com>
15764         * sem_ch12.adb:
15765         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
15766         to prevent freezing within formal packages.
15767         (Freeze_Subprogram_Body): If body comes from another instance that
15768         appeared before its own body, place freeze node at end of current
15769         declarative part, to prevent a back-end crash.
15770         (Inline_Instance_Body): Handle properly a package instance within
15771         a subprogram instance that is a child unit.
15773 2001-12-01  Graham Stott  <grahams@redhat.com>
15775         * Makefile.in (misc.o): Add missing $(srcdir) prefix
15776         and add optabs.h dependency.
15778         * misc.c: Include optabs.h
15779         (gnat_tree_code_type): Make static and const.
15780         (gnat_tree_code_length): Likewise.
15781         (gnat_tree_code_name): Likewise.
15782         (update_setjmp_buf): Obtain operands mode from insn_data.
15784 2001-11-29  Richard Henderson  <rth@redhat.com>
15786         * init.c: Remove obsolete dwarf2 frame.h section.
15788 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
15790         * Make-lang.in (ada.generated-manpages): New dummy target.
15792 2001-11-29  Ed Schonberg <schonber@gnat.com>
15794         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
15795         into Command, an array conversion is illegal here. Uncovered by
15796         ACATS B460005.
15798 2001-11-28  Geert Bosch <bosch@gnat.com>
15800         * init.c: Minor whitespace changes.
15802 2001-11-28  Doug Rupp <rupp@gnat.com>
15804         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
15805         signal stack.
15807 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
15809         * misc.c (gnat_expand_constant): Move declaration above
15810         definition of lang_hooks.
15811         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
15812         (gnat_init): lang_expand_constant no longer exists.
15814         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
15815         always have vprintf.
15816         (gnat_init): Always call set_internal_error_function.
15818 2001-11-27  Andreas Jaeger  <aj@suse.de>
15820         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
15822 2001-11-27  Laurent Guerby  <guerby@acm.org>
15824         * Makefile.in: Regenerate Ada dependencies.
15826 2001-11-26  Richard Henderson  <rth@redhat.com>
15828         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
15829         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
15830         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
15832 2001-11-25  Laurent Guerby  <guerby@acm.org>
15834         * sysdep.c (rts_get_*): Fix style.
15836 2001-11-19  Laurent Guerby  <guerby@acm.org>
15838         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
15839         since it is of no apparent use and cause warnings.
15841 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
15843         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
15844         static too.
15845         (gnat_init): Don't return NULL.
15846         (finish_parse): Remove.
15848 2001-11-17  Laurent Guerby  <guerby@acm.org>
15850         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
15851         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
15852         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
15853         * lang-spec.h: Add missing struct field to silence warnings.
15854         * sysdep.c (rts_get_*): Provide K&R prototype.
15855         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
15856         * traceback.c (Unlock_Task, Lock_Task): Likewise.
15857         * tracebak.c (__gnat_backtrace): Remove unused variable.
15858         * utils.c (end_subprog_body): Move to K&R style.
15860 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15862         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
15864 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
15866         * misc.c (gnat_init): Change prototype.  Include the
15867         functionality of the old init_parse and init_decl_processing.
15868         (gnat_init_decl_processing): New prototype.
15869         (init_parse): Remove.
15870         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
15872 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
15874         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
15875         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
15876         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
15877         set_yydebug): Remove.
15879 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
15881         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
15882         (struct lang_hooks): Constify.
15883         (language_string, lang_identify): Remove.
15884         * utils.c (init_decl_processing): Update.
15886 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
15888         * misc.c: Include langhooks-def.h.
15889         * Makefile.in: Update.
15891 2001-10-30  Robert Dewar <dewar@gnat.com>
15893         * style.adb:
15894         (Check_Identifier): Rewrite circuit to be compatible with use of letters
15895         in the upper half of ASCII.
15896         (Check_Identifier): Minor reformatting
15898 2001-10-30  Geert Bosch <bosch@gnat.com>
15900         * (Associated_Node, Set_Associated_Node): Do not check for
15901         Freeze_Entity.
15903 2001-10-30  Robert Dewar <dewar@gnat.com>
15905         * a-reatim.ads: Minor reformatting
15907 2001-10-30  Robert Dewar <dewar@gnat.com>
15909         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
15910         undocumented declarations.
15912 2001-10-30  Pascal Obry <obry@gnat.com>
15914         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
15915         to the binder and linker.
15916         Minor style fix.
15918         * mdll.ads: Fix layout.  Update copyright notice.
15920         * mdll.adb: Fix layout.  Update copyright notice.
15922 2001-10-30  Robert Dewar <dewar@gnat.com>
15924         * usage.adb: Minor fix to output for -gnaty.
15926 2001-10-30  Ed Schonberg <schonber@gnat.com>
15928         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
15929         to accommodate all its possible values.
15931         * a-reatim.adb (Split): Special-case handling of Time_Span_First
15932         and of small absolute values of T.
15934 2001-10-30  Richard Kenner <kenner@gnat.com>
15936         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
15937         set_mem_attributes since not needed and wrong if RESULT if a REG;
15938         fixes ACATS failures.
15940 2001-10-30  Geert Bosch <bosch@gnat.com>
15942         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
15943         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
15945 2001-10-30  Robert Dewar <dewar@gnat.com>
15947         * bindusg.adb: Undocument -f switch.
15949         * gnatcmd.adb: Remove /FULL_ELABORATION.
15951         * opt.ads (Force_RM_Elaboration_Order): Document that this is
15952         obsolescent.
15954         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
15956         * gnatbind.adb: Minor update of warning msg.
15958 2001-10-30  Vincent Celier <celier@gnat.com>
15960         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
15961         for project file switches (-P (/PROJECT_FILE=),
15962          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
15963         or MEDIUM or HIGH)
15965 2001-10-30  Geert Bosch <bosch@gnat.com>
15967         * decl.c: Minor whitespace fixes.
15969 2001-10-30  Richard Kenner <kenner@gnat.com>
15971         * utils2.c (build_allocator): Test for SIZE overflow in array case too
15973 2001-10-30  Geert Bosch <bosch@gnat.com>
15975         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
15976         Found due to GCC 3.0 warning of using uninitialized value.
15978         * layout.adb:
15979         (Get_Max_Size): Use variant record for tracking value/expression.
15980          Makes logic clearer and prevents warnings for uninitialized variables.
15981         (Layout_Array_Type): Use variant record for tracking value/expression.
15982          Makes logic clearer and prevents warnings for uninitialized variables.
15984 2001-10-30  Robert Dewar <dewar@gnat.com>
15986         * lib.adb: Minor reformatting
15988         * s-taprop.ads: Minor reformatting
15990 2001-10-29  Laurent Guerby  <guerby@acm.org>
15992         * init.c:
15993         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
15994         const.
15995         (_gnat_error_handler): Make MSG const.
15997 2001-10-29  Richard Kenner <kenner@gnat.com>
15999         * sysdep.c: Fix localtime_r problem on LynxOS.
16000         Also remove #elif to avoid warnings.
16002         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
16003         used by this.
16005         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
16007 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
16009         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
16010         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
16011         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
16012         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
16013         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
16014         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
16015         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
16016         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
16017         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
16018         types.ads, urealp.adb: Fix spelling errors.
16020 2001-10-27  Laurent Guerby <guerby@acm.org>
16022         * trans.c (gigi): Fix non determinism leading to bootstrap
16023         comparison failures for debugging information.
16025 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
16027         * gnat_rm.texi: Use @./@: where appropriate.
16029 2001-10-26  Robert Dewar <dewar@gnat.com>
16031         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
16033 2001-10-26  Richard Kenner <kenner@gnat.com>
16035         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
16037 2001-10-26  Richard Kenner <kenner@gnat.com>
16039         * decl.c (validate_size): Modify message for bad size to avoid
16040         implication that compiler is modifying the size.
16042 2001-10-26  Robert Dewar <dewar@gnat.com>
16044         * prj-util.adb: Minor reformatting. Fix bad header format.
16046 2001-10-26  Robert Dewar <dewar@gnat.com>
16048         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
16050         * sinfo.ads: Clarify use of Associated_Node (documentation only).
16052         * sem_ch12.adb: Change Node4 to Associated_Node. Change
16053         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
16054         much more narrowly in places where needed. These are cleanups.
16056 2001-10-26  Joel Brobecker <brobecke@gnat.com>
16058         * 5zosinte.ads (null_pthread): new constant.
16060         * 5ztaprop.adb:
16061         (Initialize_TCB): Initialize thread ID to null, to be able to verify
16062          later that this field has been set.
16063         (Finalize_TCB): ditto.
16064         (Suspend_Task): Verify that the thread ID is not null before using it.
16065         (Resume_Task): ditto.
16067         * s-tasdeb.adb:
16068         (Resume_All_Tasks): Lock the tasks list before using it.
16069         (Suspend_All_Tasks): ditto.
16071 2001-10-26  Richard Kenner <kenner@gnat.com>
16073         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
16074         Make constant variant of designated type for Is_Access_Constant.
16075         Call update_pointer_to with main variant.
16077         * trans.c (process_freeze_entity, process_type):
16078         Call update_pointer_to on main variant.
16080         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
16081         If main variant, update all other variants.
16083         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
16084         TREE_STATIC.
16086 2001-10-26  Robert Dewar <dewar@gnat.com>
16088         * prj-util.adb: Minor reformatting
16090 2001-10-26  Robert Dewar <dewar@gnat.com>
16092         * prj-util.adb: Minor reformatting
16094 2001-10-26  Robert Dewar <dewar@gnat.com>
16096         * prj-attr.adb: Minor reformatting throughout
16098 2001-10-26  Robert Dewar <dewar@gnat.com>
16100         * prj-attr.ads: Minor reformatting
16101         Add ??? comment (this whole spec has almost no comments)
16103 2001-10-26  Vincent Celier <celier@gnat.com>
16105         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
16106         ("//") that precede the drive letter on Interix.
16108 2001-10-26  Geert Bosch <bosch@gnat.com>
16110         * gnat_rm.texi: Add GNAT Reference Manual.
16112 2001-10-25  Robert Dewar <dewar@gnat.com>
16114         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
16115         is Error. Similar change for other renaming cases.
16117 2001-10-25  Robert Dewar <dewar@gnat.com>
16119         * s-atacco.ads: Add pragma Inline_Always for functions.
16120         Fix header format. Add copyright 2001
16122 2001-10-25  Ed Schonberg <schonber@gnat.com>
16124         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
16125         return Error rather than Empty so that analysis can proceed.
16127 2001-10-25  Ed Schonberg <schonber@gnat.com>
16129         * sem_util.adb (Enter_Name): better handling of cascaded error
16130         messages when a unit appears in its own context.
16132 2001-10-25  Ed Schonberg <schonber@gnat.com>
16134         * sem_util.adb (Defining_Entity): in case of error, attach created
16135         entity to specification, so that semantic analysis can proceed.
16137 2001-10-25  Robert Dewar <dewar@gnat.com>
16139         * sem_util.adb
16140         (Defining_Entity): Deal with Error.
16141         (Process_End_Label): Deal with bad end label for.
16143 2001-10-25  Ed Schonberg <schonber@gnat.com>
16145         * sem_elab.adb (Check_A_Call): refine message when call is in an
16146         instance but callee is not declared in the generic unit.
16148 2001-10-25  Ed Schonberg <schonber@gnat.com>
16150         * sem_elab.adb (Check_A_Call): check for renaming before finding the
16151         enclosing unit, which may already be different from the calling unit.
16153 2001-10-25  Geert Bosch <bosch@gnat.com>
16155         * 4gintnam.ads: fix header format.
16157 2001-10-25  Ed Schonberg <schonber@gnat.com>
16159         * sem_res.adb (Resolve_Call): if the call is actually an indexing
16160         operation on the result of a parameterless call, perform elaboration
16161         check after the node has been properly rewritten.
16163         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
16164         inlined within the generic tree, the defining identifier is not a
16165         compilation_unit.
16167 2001-10-25  Ed Schonberg <schonber@gnat.com>
16169         * sem_res.adb (Resolve): special-case resolution of Null in an
16170          instance or an inlined body to avoid view conflicts.
16172         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
16173          compatibility by retrieving the access type of the generic copy.
16175 2001-10-25  Robert Dewar <dewar@gnat.com>
16177         * sem_ch3.adb:
16178         (Analyze_Number_Declaration): Handle error expression.
16179         (Signed_Integer_Type_Declaration): Handle error bound.
16180         (Analyze_Subtype_Indication): Handle error range.
16182         * sem_util.adb (Get_Index_Bounds): Check for Error.
16184 2001-10-25  Robert Dewar <dewar@gnat.com>
16186         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
16187         in no run time mode.
16189 2001-10-25  Pascal Obry <obry@gnat.com>
16191         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
16192         mode case for ALLOC case.
16194         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
16195         all platforms. Improvement of last change.
16197 2001-10-25  Robert Dewar <dewar@gnat.com>
16199         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
16201 2001-10-25  Geert Bosch  <bosch@gnat.com>
16203         * osint.adb (Is_Relative): Remove duplicate.
16205 2001-10-25  Pascal Obry <obry@gnat.com>
16207         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
16208         pathnames in UNIX and DOS style with drive letter.
16209         (Is_Relative): new routine.
16211         * osint.adb: Minor reformatting
16213         * osint.adb (Is_Relative): implementation using
16214         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
16216 2001-10-25  Pascal Obry <obry@gnat.com>
16218         * g-dirope.adb (Basename): correctly compute offset between the
16219         original Path and the translated one.
16221         * g-dirope.adb: (Base_Name): add some comments.
16223 2001-10-25  Robert Dewar <dewar@gnat.com>
16225         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
16226         in HIE mode, avoids compilation abandoned message
16228         * exp_imgv.adb: Correct typo in previous change
16230         * exp_imgv.adb: Correct typo in previous change (not my day!)
16232 2001-10-25  Robert Dewar <dewar@gnat.com>
16234         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
16236 2001-10-25  Pascal Obry <obry@gnat.com>
16238         * g-awk.ads: Move all pragma inlines next to the routine
16239          declarations. This is more uniform with other GNAT spec.
16241 2001-10-22  Geert Bosch  <bosch@gnat.com>
16243         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
16245 2001-10-19  Geert Bosch  <bosch@gnat.com>
16247         * Makefile.in (tools, gnattools): Remove gnatmem.
16249 2001-10-17  Richard Henderson  <rth@redhat.com>
16251         * Makefile.in (misc.o): Depend on langhooks.h.
16252         * misc.c: Include it.
16253         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
16254         (LANG_HOOKS_DECODE_OPTION): New.
16255         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
16257 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
16259         * trans.c (tree_transform): Adjust to recent change in
16260         expand_asm_operands to implement named asm operands.
16262 2001-10-11  Ed Schonberg  <schonber@gnat.com>
16264         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
16265         renaming of discriminant for mutable record type.
16267 2001-10-11  Robert Dewar  <dewar@gnat.com>
16269         * validsw.adb: Properly save -gnatVn status.
16271 2001-10-11  Robert Dewar <dewar@gnat.com>
16273         * usage.adb: Add lines for V switch.
16275         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
16276         (/VALIDITY_CHECKING).
16278 2001-10-11  Ed Schonberg <schonber@gnat.com>
16280         * sem_type.adb (Add_One_Interp): an operator for a type declared in
16281         an extension of System is known to be visible.
16283 2001-10-11  Ed Schonberg <schonber@gnat.com>
16285         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
16286         properly. Fixes regression on ACATS C34005G.
16288 2001-10-11  Robert Dewar <dewar@gnat.com>
16290         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
16291         loop in generic instance, since this is likely not very useful.
16293 2001-10-11  Robert Dewar <dewar@gnat.com>
16295         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
16296         the error message for high integrity mode.
16298         * rtsfind.adb (RTE): Give message if we try to find an entity that
16299         is not available in high integrity mode.
16301         * rtsfind.ads:
16302         (OK_To_Use_In_HIE_Mode): New array.
16303         (RTE): May return Empty in high integrity mode.
16305         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
16306         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
16308         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
16309         unit if not inlined always and in no runtime mode. Fixes problem
16310         caused by new Rtsfind changes.
16312         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
16313         body is deleted.
16315         * rtsfind.adb (RTE): Make sure we do not try to load unit after
16316         giving message for entity not available in high integrity mode.
16318 2001-10-11  Pascal Obry <obry@gnat.com>
16320         * impunit.adb: Add GNAT.CRC32.
16322 2001-10-11  Ed Schonberg <schonber@gnat.com>
16324         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
16325         properly the case where one universal operand in a non-static
16326         exponentiation of a real literal.
16328 2001-10-11  Ed Schonberg <schonber@gnat.com>
16330         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
16331         clause, return the gobal finalization list, for lack of anthing else.
16333 2001-10-11  Ed Schonberg <schonber@gnat.com>
16335         * exp_ch7.adb (Make_Transient_Block): if statement is within
16336         exception handler, always use new transient scope to place Clean
16337         procedure.
16339 2001-10-11  Pascal Obry <obry@gnat.com>
16341         * Makefile.in:
16342         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
16343         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
16344         (GNATLS_RTL_OBJS): add g-crc32.o
16345         (GNATMAKE_RTL_OBJS): add g-crc32.o
16347         * ali-util.adb:
16348         (CRC_Match): new function.
16349         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
16350         instead of the previous simple checksum algorithm.
16351         (Time_Stamp_Mismatch): use CRC_Match for comparison.
16352         (Set_Source_Table): idem.
16354         * ali-util.ads:
16355         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
16356         instead of simple checksum.
16357         (CRC_Match): new function.
16358         (CRC_Error): new constant.
16360         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
16361         a CRC now and not a simple checksum. A CRC uses lower-case hex
16362         letters, fixes ambiguity in parsing.
16364         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
16365         is what this variable will store.
16367         * bcheck.adb: Change reference to chechsum in comments by CRC.
16368         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
16369         rename All_Checksum_Match to All_CRC_Match. Change due to API
16370         renaming since now GNAT does not use a simple checksum but a
16371         CRC using GNAT.CRC32.
16373         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
16374         now and not anymore a simple checksum.
16376         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
16377         places.
16379         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
16381         * scans.adb:
16382         (Restore_Scan_State): rename Checksum to CRC.
16383         (Save_Scan_State): idem.
16385         * scans.ads:
16386         With GNAT.CRC32.
16387         (Checksum): rename to CRC.
16388         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
16390         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
16391         GNAT.CRC32).  Update copyright notice.
16393         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
16394         GNAT.CRC32).  Update copyright notice.
16396         * scn.adb:
16397         (Accumulate_Checksum): removed.
16398         (Update): new procedure. Add a wide-character into the CRC.
16400         * sinput-l.adb:
16401         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
16402         (Load_File): fix initialization of S (change Source_Checksum to
16403         Source_CRC)
16405         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
16406         Source_CRC in S initialization.
16408         * sinput.adb (Source_Checksum): renamed to Source_CRC.
16410         * sinput.ads (Source_Checksum): renamed to Source_CRC.
16411         Update comments for the CRC.
16413         * types.adb (Hex): Use lowercase for the letter part.
16415         * types.ads (Get_Hex_String): Returns the hexadecimal representation
16416         for a word. This is currently used only for CRC. In previous version,
16417         the checksum was using a representation with all letter being
16418         upper-case. With the new implementation (using CRC) we do not remove
16419         the 32th bit of the CRC, so we can have an upper-case starting letter
16420         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
16421         It is ambigous since the CRC was optional and could be followed by
16422         options like EB, EE. So now this routines uses lower-case letter for
16423         the hexadecimal representation. Strange enough only lower case letters
16424         where checked in Scan_ALI (even if this was not a possible case).
16426         * gnatvsn.ads (Library_Version): changed to 3.15a.
16428         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
16429         for the compiler.
16431         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
16432         for the compiler.
16434         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
16435         Add 2001 to copyright notice
16436         (Accumulate_Checksum): Modify to use System.CRC32.
16438         * ali-util.ads: Redo changes of previous revision to continue to use
16439         the word Checksum. Add 2001 to copyright notice.
16441         * ali.adb: Undo some of previous changes, not needed.
16442         Keep the change for lower case letters in the checksum.
16444         * ali.ads: Undo previous change not needed.
16446         * bcheck.adb: Undo most of previous change, not needed.
16447         But do use Checksums_Match for checksum comparison.
16449         * gnatls.adb: Undo most of previous change, not needed.
16450         But do use Checksums_Match for comparing checksums.
16452         * lib-load.adb: Undo previous change, not needed.
16454         * lib-writ.adb: Undo previous change, not needed.
16456         * lib-writ.ads: Document that checksums use lower case,
16457         not upper case letters.
16459         * scans.adb: Undo previous change, not needed
16461         * scans.ads: Undo previous change, not needed.
16463         * scn-nlit.adb: Undo previous changes, not needed.
16465         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
16467         * scn.adb:
16468         (Accumulate_Checksum): Use System.CRC32.
16469         (Initialize_Checksum): New procedure.
16470         Remove other changes of previous revision.
16472         * sinput-p.adb: Undo previous change, not needed.
16474         * sinput.adb: Undo previous change, not needed.
16476         * sinput-l.adb: Undo previous change, not needed.
16478         * sinput.ads: Undo previous change, not needed.  Keep only comment
16479         on new checksum algorithm
16481         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
16482         Also remove a-tags and a-stream from GNAT sources.
16484         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
16486         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
16488 2001-10-11  Geert Bosch  <bosch@gnat.com>
16490         * einfo.h: Regenerate.
16492         * nmake.ads: Regenerate.
16494         * nmake.adb: Regenerate.
16496         * sinfo.h: Regenerate.
16498         * treeprs.adb: Regenerate.
16500 2001-10-10  Geert Bosch  <bosch@gnat.com>
16502         * gnat-style.texi: New file describing coding guidelines for Ada.
16504 2001-10-10  Ed Schonberg <schonber@gnat.com>
16506         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
16507         is Flag174.
16509 2001-10-10  Geert Bosch  <bosch@gnat.com>
16511         * snames.ads: Add new names for project facility.
16513         * snames.adb: Update to reflect snames.ads changes.
16515         * snames.h: Update to reflect snames.ads changes.
16517 2001-10-10  Vincent Celier <celier@gnat.com>
16519         * make.adb:
16520         (Add_Switches): reflect the changes for the switches attributes
16521         Default_Switches indexed by the programming language,
16522         Switches indexed by the file name.
16523         (Collect_Arguments_And_Compile): Idem.
16524         Reflect the attribute name changes.
16526         * prj-attr.adb:
16527         (Initialisation_Data): Change the names of some packages and
16528         attributes.
16529         (Initialize): process case insensitive associative arrays.
16531         * prj-attr.ads:
16532         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
16534         * prj-dect.adb:
16535         (Parse_Attribute_Declaration): For case insensitive associative
16536          arrays, set the index string to lower case.
16538         * prj-env.adb:
16539         Reflect the changes of the project attributes.
16541         * prj-nmsc.adb:
16542         Replace Check_Naming_Scheme by Ada_Check and
16543         Language_Independent_Check.
16545         * prj-nmsc.ads:
16546         Replaced Check_Naming_Scheme by 2 procedures:
16547         Ada_Check and Language_Independent_Check.
16549         * prj-proc.adb:
16550         (Process_Declarative_Items): For case-insensitive associative
16551         arrays, set the index string to lower case.
16552         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
16553         Prj.Nmsc.Check_Naming_Scheme.
16555         * prj-tree.adb:
16556         (Case_Insensitive): New function
16557         (Set_Case_Insensitive): New procedure
16559         * prj-tree.ads:
16560         (Case_Insensitive): New function
16561         (Set_Case_Insensitive): New procedure
16562         (Project_Node_Record): New flag Case_Insensitive.
16564         * prj-util.adb:
16565         (Value_Of): new function to get the string value of a single
16566         string variable or attribute.
16568         * prj-util.ads:
16569         (Value_Of): new function to get the string value of a single
16570         string variable or attribute.
16572         * prj.adb:
16573         (Ada_Default_Spec_Suffix): New function
16574         (Ada_Default_Impl_Suffix): New function
16575         Change definitions of several constants to reflect
16576         new components of record types.
16578         * prj.ads:
16579         (Naming_Data): Change several components to reflect new
16580         elements of naming schemes.
16581         (Project_Data): New flags Sources_Present and
16582         Language_Independent_Checked.
16583         (Ada_Default_Spec_Suffix): New function.
16584         (Ada_Default_Impl_Suffix): New function.
16586         * snames.ads:
16587         Modification of predefined names for project manager: added
16588         Implementation, Specification_Exceptions, Implementation_Exceptions,
16589         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
16590         Default_Switches, _Languages, Builder, Cross_Reference,
16591         Finder. Removed Body_Part, Specification_Append, Body_Append,
16592         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
16593         Gnatlink.
16595         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
16596         Add comments.
16598         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
16599         not that it is Nil_Variable_Value.
16601         * prj.ads: Add ??? for uncommented declarations
16603 2001-10-10  Ed Schonberg <schonber@gnat.com>
16605         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
16606         constant, do not indicate possible modification, so that gigi can
16607         treat it as a bona fide constant.
16609 2001-10-10  Robert Dewar <dewar@gnat.com>
16611         * sem_prag.adb: Add processing for pragma External.
16613         * snames.ads: Add entry for pragma External.
16615         * par-prag.adb: Add pragma External.
16617         * snames.adb: Updated to match snames.ads.
16619 2001-10-10  Ed Schonberg <schonber@gnat.com>
16621         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
16622         a dynamic task if the allocator appears in an indexed assignment
16623         or selected component assignment.
16625         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
16626         For a dynamic task in an assignment statement, use target of
16627         assignment to generate meaningful name.
16629 2001-10-10  Ed Schonberg <schonber@gnat.com>
16631         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
16632         a generic package.
16634         * einfo.ads: Body_Entity is also defined for generic package.
16635         Documentation change only
16637         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
16638         others_choice for a discriminated component initialization,
16639         convert discriminant references into the corresponding discriminals.
16641         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
16642         only if original type is private and expression has to be wrapped
16643         in a conversion.
16645         * checks.adb:
16646         (Apply_Constraint_Check): Do not perform length check
16647         if expression is an aggregate with only an others_choice.
16648         (Length_N_Cond): two references to the same in_parameter
16649         (typically the discriminal in an init_proc) denote the same value.
16650         Two useful optimization uncovered by bugfixes above.
16652 2001-10-10  Robert Dewar <dewar@gnat.com>
16654         * xeinfo.adb: Change int to char in translation of enumeration types.
16655         This fixes a problem in the C representation of component alignment.
16656         Add 2001 to copyright notice
16658 2001-10-10  Richard Kenner <kenner@gnat.com>
16660         * decl.c: (validate_size): Do check size of object of integral type
16661         if it is a packed array type.
16663 2001-10-10  Richard Kenner <kenner@gnat.com>
16665         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
16666         VAR_DECL for constant if not Is_Public but -O0.
16668 2001-10-10  Richard Kenner  <kenner@gnat.com>
16670         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
16672 2001-10-10  Geert Bosch  <bosch@gnat.com>
16674         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
16675         use '/' as switch character, allowing for absolute file names.
16677 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
16679         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
16680         FSF address.
16682 2001-10-08  Geert Bosch  <bosch@gnat.com>
16684         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
16685         Automatically build utilities when files need to be regenerated.
16687 2001-10-08  Geert Bosch  <bosch@gnat.com>
16689         * xsnames.adb: New utility for updating snames.ads and snames.adb
16691 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
16693         * Make-lang.in (ADAFLAGS): Add -W -Wall.
16694         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
16695         (gnat1): Also depend on attribs.o.
16696         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
16697         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
16698         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
16699         (ADAFLAGS): Add -W -Wall.
16700         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
16701         take out CFLAGS.
16703         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
16704         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
16705         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
16706         Use $(ADAC), not $(CC), as compilation command.
16708         (gnattools): Depend directly on tools to build, don't use
16709         recursive make.
16710         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
16712         * einfo.h, sinfo.h: New files (autogenerated).
16714 2001-10-08  Richard Henderson  <rth@redhat.com>
16716         * comperr.adb (Abort_In_Progress): New.
16717         (Compiler_Abort): Use it to prevent recursion.
16719 2001-10-08  Robert Dewar <dewar@gnat.com>
16721         * atree.adb: Set Error_Posted in Error node, helps error recovery.
16723         * par-endh.adb (Output_End_Expected): We should also not test
16724         Error_Posted on the Error node, since now it is always set.
16726         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
16727         to help error recovery. Part of general work on 9407-004.
16729         * par.adb: Add ??? for misuse of error
16731         * sem_res.adb:
16732         (Resolve): Defend against Error, fixes 9407-003.
16733         (Resolve_Discrete_Subtype_Indication): Defend against Error.
16735         * sinfo.ads (N_Error): Now has Etype field (which will be set
16736         to Any_Type to help error recovery).
16738 2001-10-08  Richard Kenner (kenner@gnat.com)
16740         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
16741         Consistently set MEM attributes from expression; fixes
16742         bootstrap failure on x86.
16744 2001-10-08  Geert Bosch  (bosch@gnat.com)
16746         * 5oosinte.adb: Add 2001 to copyright notice.
16748 2001-10-08  Geert Bosch  (bosch@gnat.com)
16750         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
16752         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
16754 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
16756         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
16758 2001-10-05  Geert Bosch  (bosch@gnat.com)
16760         * adaint.h: Small formatting fix.
16762 2001-10-04  Geert Bosch  <bosch@gnat.com>
16764         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
16765         Arg is int, not FILE *, in dummy version of functions.
16767         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
16768         Arg is int, not FILE *.
16770 2001-10-04  Geert Bosch  <bosch@gnat.com>
16772         * 3lsoccon.ads: Added file, missed with initial check ins.
16774         * 4lintnam.ads: Fix header format.
16775         Change Linux to GNU/Linux.
16777         * 5iosinte.adb: Change Linux to GNU/Linux.
16779         * 5iosinte.ads: Change Linux to GNU/Linux.
16781         * 5itaprop.adb: Change Linux to GNU/Linux.
16783         * 5itaspri.ads: Change Linux to GNU/Linux.
16784         Update copyright notice.
16786         * 5lintman.adb: Change Linux to GNU/Linux.
16788         * 5lml-tgt.adb: Change Linux to GNU/Linux.
16790         * 5losinte.ads: Change Linux to GNU/Linux.
16792         * 5lsystem.ads: Change Linux to GNU/Linux.
16794         * 5qosinte.adb: Change Linux to GNU/Linux.
16796         * 5qosinte.ads: Change Linux to GNU/Linux.
16798         * 5qparame.ads: Change Linux to GNU/Linux.
16800         * 5qtaprop.adb: Change Linux to GNU/Linux.
16802         * 5qtaspri.ads: Change Linux to GNU/Linux.
16803         Add 2001 to copyright notice.
16805         * 5vintman.ads: Change Linux to GNU/Linux.
16806         Fix header format.  Add 2001 to copyright notice.
16808         * g-soccon.ads: Change Linux to GNU/Linux.
16810         * g-trasym.ads: Change Linux to GNU/Linux.
16811         Add 2001 to copyright notice.
16813         * memtrack.adb: Change Linux to GNU/Linux.
16815         * s-intman.ads: Change Linux to GNU/Linux.
16816         Add 2001 to copyright notice.  Fix header format.
16818         * s-stache.adb: Change Linux to GNU/Linux.
16820         * adaint.c: Change Linux to GNU/Linux.
16822         * cio.c: Change Linux to GNU/Linux.
16824         * cstreams.c: Change Linux to GNU/Linux.
16826         * init.c: Change Linux to GNU/Linux.
16828         * gmem.c: Change Linux to GNU/Linux.
16830         * tracebak.c: Change Linux to GNU/Linux.
16833 2001-10-02  Geert Bosch  <bosch@gnat.com>
16835         * misc.c (insert_default_attributes): Add dummy version.