PR ada/24533
[official-gcc.git] / gcc / ada / ChangeLog
blobbc2e38c1ced75a571d644fbb6af724dca999fe94
1 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3         PR ada/24533
4         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
6 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
10 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
12         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
13         needed.
15 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
17         * Make-lang.in: Update dependencies
19 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
21         * Make-lang.in: Add rule for ada/exp_sel.o
23 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
25         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
27 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
29         * gnatvsn.ads (Library_Version): Bump to version 4.2
30         (ASIS_Version_Number): Bumped.
32 2005-12-09  Doug Rupp  <rupp@adacore.com>
34         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
35         Ada bind file prefix on VMS from b$ to b__.
36         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
37         __init.
39         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
40         Targparm.OpenVMS_On_Target.
41         (Object_Suffix): Initialize with target object suffix.
42         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
44         * butil.adb: Change some Hostparm.OpenVMS checks to
45         Targparm.OpenVMS_On_Target.
47         * clean.adb: Change some Hostparm.OpenVMS checks to
48         Targparm.OpenVMS_On_Target.
49         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
50         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
51         Ada bind file prefix on VMS from b$ to b__.
53         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
54         --GCC so that Get_Target_Parameters can find system.ads.
55         (Gnatlink): Call Get_Target_Parameters in mainline.
56         Initialize standard packages for Targparm.
57         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
58         (Process_Args): Also Check for object files with target object
59         extension.
60         (Make_Binder_File_Names): Create with target object extension.
61         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
62         to b__.
64         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
65         Targparm.OpenVMS_On_Target.
66         ({declaration},Build_Library,Check_Library): Change Ada bind file
67         prefix on VMS from b$ to b__.
69         * osint-b.adb: Change some Hostparm.OpenVMS checks to
70         Targparm.OpenVMS_On_Target.
71         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
72         b__.
74         * targext.c: New file.
76         * Makefile.in: add support for vxworks653 builds
77         (../../vxaddr2line): gnatlink with targext.o.
78         (TOOLS_LIBS): Move targext.o to precede libgnat.
79         (init.o, initialize.o): Minor clean up in dependencies.
80         (GNATLINK_OBJS): Add targparm.o, snames.o
81         Add rules fo building targext.o and linking it explicitly with all
82         tools.
83         Also add targext.o to gnatlib.
85         * Make-lang.in: Add rules for building targext.o and linking it in
86         with gnat1 and gnatbind.
87         Add entry for exp_sel.o.
89         * osint.adb Change some Hostparm.OpenVMS checks to
90         Targparm.OpenVMS_On_Target.
91         (Object_File_Name): Use target object suffix.
93         * osint.ads (Object_Suffix): Remove, no longer used.
94         (Target_Object_Suffix): Initialize with target object suffix.
96         * rident.ads: Add special exception to license.
98         * targparm.adb (Get_Target_Parameters): Set the value of
99         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
100         value.
101         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
102         
103         * targparm.ads: Add special exception to license.
105         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
106         function.
107         (Copy_File): Make sure from file is closed if error on to file
108         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
110         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
111         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
113         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
114         target object suffix.
116 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
117             Quentin Ochem  <ochem@adacore.com>
118             Florian Villoing  <villoing@adacore.com>
120         * a-taster.ads, a-taster.adb: New files.
122         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
123         link to the version that does nothing. This way the task termination
124         routine is not executed twice for the environment task when finishing
125         because of an unhandled exception.
127         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
128         handler because of an unhandled exception.
130         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
131         System.Tasking.Utilities instead of that in System.Tasking.Stages.
133         * s-finimp.adb (initialization code): Modify the soft link for the
134         finalization of the global list instead of Adafinal.
136         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
137         non-tasking version of the soft link for task termination. We do
138         nothing since if we are using the non-tasking version it
139         means that the task termination functionality is not used.
140         (Null_Finalize_Global_List): Add this null version for the procedure
141         in charge of finalizing the global list for controlled objects.
142         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
143         instead for handling run-time termination in a more flexible way.
144         (Adafinal_NT): This new procedure will take care of finalizing the
145         global list for controlled objects if needed, but no tasking
146         finalization.
148         * s-tarest.adb (Task_Lock): Do not try to lock again the
149         Global_Task_Lock if we already own it. Otherwise, we get blocked in
150         some run-time operations.
151         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
152         until all nested locks have been released.
153         (Task_Wrapper): Call the fall-back task termination handler. It
154         applies to all tasks but the environment task.
155         (Finalize_Global_Tasks): Add the call for the task termination
156         procedure for the environment task.
157         (Task_Wrapper): suppress warnings around declaration of
158         Secondary_Stack_Address.
160         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
161         moved to the Common_ATCB record.
162         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
163         Common_ATCB record.
164         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
165         Common_ATCB record.
167         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
168         Fall_Back_Handler, and Specific_Handler.
170         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
171         defined in Ada.Task_Termination, to avoid circular dependencies.
172         (Termination_Handler): Redefine this type here, alredy defined in
173         Ada.Task_Termination, for avoiding circular dependencies.
174         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
175         for storing task termination handlers. In addition,
176         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
177         Common_ATCB because it is used by both the regular and the restricted
178         run times.
179         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
180         Common_ATCB because it is used by both the regular and the restricted
181         run times.
182         (Common_ATCB): Added a dynamic task analyzer field.
184         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
185         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
186         (Task_Wrapper): Call the task termination handler. It applies to all
187         tasks but the environment task.
188         (Finalize_Global_Tasks): Call the task termination procedure for the
189         environment task. The call to Finalize_Global_List is now performed
190         using the soft links mechanism.
191         (Task_Wrapper): added dynamic stack analysis.
193         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
194         potentially blocking operations has been moved from
195         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
196         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
197         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
198         this run-time check.
200         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
201         of task termination procedure.
202         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
203         link for the task termination procedure.
205         * bindusg.adb: (Bindusg): Added documentation for -u option.
207         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
208         (Get_Main_C): Add handling of dynamic stack analysis.
209         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
211         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
212         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
213         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
215         * opt.ads: Added flags used by dynamic stack measurement.
216         (Max_Line_Length): Remove (not used anymore)
218         * s-io.ads, s-io.adb (Standard_Error): new subprogram
219         (Standart_Output): new subprogram
220         (Set_Output): new subprogram
221         (Put): now uses the value of Current_Out to know if the output has to be
222         send to stderr or stdout.
223         
224         * s-stausa.ads: Complete implementation.
226         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
227         
228         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
229         list of Ada 05 files.
230         (GNAT Library Units): Add AltiVec files.
232         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
233         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
234         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
236 2005-12-09  Nicolas Setton  <setton@adacore.com>
238         * adaint.c (__gnat_locate_regular_file): Return immediately if
239         file_name is empty.
241 2005-12-09  Javier Miranda  <miranda@adacore.com>
242             Hristian Kirtchev  <kirtchev@adacore.com>
244         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
245         to the specification because the frontend generates code that uses this
246         subprogram.
247         (Set_Interface_Table): Add missing assertion.
248         Update documentation describing the run-time structure.
249         (Displace): New subprogram that displaces the pointer to the object
250         to reference one of its secondary dispatch tables.
251         (IW_Membership): Modified to use the new table of interfaces.
252         (Inherit_TSD): Modified to use the new table of interfaces.
253         (Register_Interface_Tag): Use the additional formal to fill the
254         contents of the new table of interfaces.
255         (Set_Interface_Table): New subprogram that stores in the TSD the
256         pointer to the table of interfaces.
257         (Set_Offset_To_Top): Use the additional formal to save copy of
258         the offset value in the table of interfaces.
259         Update structure of GNAT Primary and Secondary dispatch table diagram.
260         Add comment section on GNAT dispatch table prologue.
261         (Offset_To_Signature): Update the constant value of the Signature field.
262         (Dispatch_Table): Update comment on hidden fields in the prologue.
263         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
264         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
265         the type of formal parameter T to Tag, introduce additional assertions.
266         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
267         conversion.
268         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
270         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
271         in all the calls to Expand_Interface_Thunk. Instead of referencing the
272         record component containing the tag of the secondary dispatch table we
273         have to use the Offset_To_Top run-time function to get this information;
274         otherwise if the pointer to the base of the object has been displace
275         we get a wrong value if we use the 'position attribute.
277         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
278         all the calls to Expand_Interface_Thunk.
279         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
280         interfaces; hence the call to Set_Interface_Table was clearly wrong.
281         (Collect_All_Interfaces): Modify the internal subprogram Collect to
282         ensure that the interfaces implemented by the ancestors are placed
283         at the header of the generated list.
284         (Expand_Interface_Conversion): Handle the case in which the displacement
285         associated with the interface conversion is not statically known. In
286         this case we generate a call to the new run-time subprogram Displace.
287         (Make_DT): Generate and fill the new table of interfaces.
288         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
289         Get_Tagged_Kind and Set_Tagged_Kind.
290         (Tagged_Kind): New function that determines the tagged kind of a type
291         with respect to limitedness and concurrency and returns a reference to
292         RE_Tagged_Kind.
293         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
294         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
295         primary dispatch table for a type.
296         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
297         secondary dispatch table respectively of a tagged type.
299         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
300         (Expand_Interface_Conversion): New subprogram to indicate if the
301         displacement of the type conversion is statically known.
302         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
304         * rtsfind.ads (RE_Offset_To_Top): New entity
305         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
306         accessible to users.
307         (Re_Displace): New entity
308         (RE_Interface_Data): New entity
309         (RE_Set_Interface_Data): New_Entity
310         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
311         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
312         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
313         RE_TK_Tagged, RE_TK_Task.
315         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
316         Init_Secondary_Tags_Internal to allow its use with interface types and
317         also to generate the code for the new additional actual required
318         by Set_Offset_To_Top.
319         (Build_Init_Statements): In case of components associated with abstract
320         interface types there is no need to generate a call to its IP.
321         (Freeze_Record_Type): Generate Select Specific Data tables only for
322         concurrent types.
323         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
324         the bodies and specifications of the predefined primitive operations
325         dealing with dispatching selects and abort, 'Callable, 'Terminated only
326         for concurrent types.
328         * exp_sel.ads, exp_sel.adb: New files.
330         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
331         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
332         properly protected objects and attach handler in the case of the
333         restricted profile.
334         Move embeded package Select_Expansion_Utilities into a separate external
335         package.
336         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
337         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
338         (Build_K, Build_S_Assignment): New subprograms, part of the select
339         expansion utilities.
340         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
341         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
342         where the trigger is a dispatching procedure of a limited tagged type.
344 2005-12-09  Olivier Hainque  <hainque@adacore.com>
346         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
347         pointer initialization values. Make a SAVE_EXPR instead. Add comments
348         about the use and expansion of SAVE_EXPRs in the various possible
349         renaming handling cases.
350         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
351         abusing DECL_FCONTEXT.
353 2005-12-09  Matthew Heaney  <heaney@adacore.com>
355         * a-convec.adb (Merge): Added assertions to check whether vector params
356         are sorted.
358         * a-coinve.adb (Merge): Added assertions to check whether vector params
359         are sorted.
361         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
362         draft.
363         (Cursor'Read): raises PE
365         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
366         to its default value.
368         * a-cihama.adb: Manually check whether cursor's key and elem are
369         non-null
371         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
372         (Merge): Assert that target and source lists are in order
373         (Swap): Declare non-const temporaries, to pass to Splice
375         * a-cdlili.ads: (Splice): Changed param name and param mode
377         * a-cdlili.adb: (Splice): Changed param name and param mode
378         (Merge): Assert that target and source lists are in order
379         (Swap): Declare non-const temporaries, to pass to Splice
381         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
382         (Write): declare Stream param as not null
384         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
385         an exception message.
387 2005-12-09  Thomas Quinot  <quinot@adacore.com>
388             Robert Dewar  <dewar@adacore.com>
390         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
391         which is the absolute maximum length we can support.
393         * frontend.adb: For the processing of configuration pragma files,
394         remove references to Opt.Max_Line_Length, which is not checked anymore.
396         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
397         length.
399         * scn.adb, scng.adb: 
400         Always check line length against the absolute supported maximum,
401         Hostparm.Max_Line_Length.
403         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
404         value for the maximum line length is Max_Line_Length (not
405         Column_Number'Last).
406         Minor error msg update
407         (Set_Style_Check_Options): New interface returning error msg
408         Minor code reorganization (processing for 'M' was out of alpha order)
410         * switch-c.adb: New interface for Set_Style_Check_Options
412         * stylesw.ads (Set_Style_Check_Options): New interface returning error
413         msg.
415 2005-12-09  Javier Miranda  <miranda@adacore.com>
417         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
418         with IP subprogram were only supported if there were limited types.
420         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
421         records with IP subprogram were only supported if there were limited
422         types.
424 2005-12-09  Olivier Hainque  <hainque@adacore.com>
425             Eric Botcazou  <ebotcazou@adacore.com>
427         * trans.c (tree_transform, emit_check): Adjust calls to
428         build_call_raise, passing the now expected GNAT_NODE argument.
430         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
431         source line information than what the current global locus indicates
432         when appropriate.
434         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
435         field has overflowed.
436         (build_call_raise): Add a GNAT_NODE argument to convey better source
437         line information than what the current global locus indicates when
438         appropriate.
439         (build_component_ref): Adjust call to build_call_raise.
441 2005-12-09  Pascal Obry  <obry@adacore.com>
443         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
444         the iterator is quitting iteration on parent directory.
446 2005-12-09  Javier Miranda  <miranda@adacore.com>
448         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
449         and the assignment to a class-wide object, before the assignment we
450         generate a run-time check to ensure that the tag of the Target is
451         covered by the tag of the source.
453 2005-12-09  Robert Dewar  <dewar@adacore.com>
455         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
456         parameter in call to Image_Wide_Character.
458         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
459         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
460         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
461         annoying FFFE/FFFF inconsistency.
463 2005-12-09  Robert Dewar  <dewar@adacore.com>
464             Javier Miranda  <miranda@adacore.com>
465             Ed Schonberg  <schonberg@adacore.com>
467         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
468         of type conversion.
469         (Find_Interface): New subprogram that given a tagged type and one of its
470         component associated with the secondary table of an abstract interface
471         type, return the entity associated with such abstract interface type.
472         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
473         base type to create anonymous subtype, because entity may be a locally
474         declared subtype or generic actual.
475         (Find_Interface): New subprogram that given a tagged type and one of its
476         component associated with the secondary table of an abstract interface
477         type, return the entity associated with such abstract interface type.
479         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
480         conversion cannot be handled at compile time. In this case we pass this
481         information to the expander to generate the appropriate code.
483 2005-12-09  Robert Dewar  <dewar@adacore.com>
484             Ed Schonberg  <schonberg@adacore.com>
485             Gary Dismukes  <dismukes@adacore.com>
486             Javier Miranda  <miranda@adacore.com>
487             Hristian Kirtchev  <kirtchev@adacore.com>
489         * einfo.adb (Itype_Printed): New flag
490         (Is_Limited_Type): Derived types do not inherit limitedness from
491         interface progenitors.
492         (Is_Return_By_Reference_Type): Predicate does not apply to limited
493         interfaces.
495         * einfo.ads (Itype_Printed): New flag
496         Move Is_Wrapper_Package to proper section
497         Add missing Inline for Is_Volatile
499         * output.ads, output.adb (Write_Erase_Char): New procedure
500         (Save/Restore_Output_Buffer): New procedures
501         (Save/Restore_Output_Buffer): New procedures
503         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
504         Add missing support for anonymous access type
505         (Write_Id): Insert calls to Write_Itype
506         (Write_Itype): New procedure to output itypes
508         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
509         use of "limited" in declaration.
511         * sinfo.ads, sinfo.adb: 
512         Formal derived types can carry an explicit "limited" indication.
514         * sem_ch3.adb: Add with and use of Targparm.
515         (Create_Component): If Frontend_Layout_On_Target is True and the
516         copied component does not have a known static Esize, then reset
517         the size and positional fields of the new component.
518         (Analyze_Component_Declaration): A limited component is
519         legal within a protected type that implements an interface.
520         (Collect_Interfaces): Do not add to the list the interfaces that
521         are implemented by the ancestors.
522         (Derived_Type_Declaration): If the parent of the full-view is an
523         interface perform a transformation of the tree to ensure that it has
524         the same parent than the partial-view. This simplifies the job of the
525         expander in order to generate the correct object layout, and it is
526         needed because the list of interfaces of the full-view can be given in
527         any order.
528         (Process_Full_View): The parent of the full-view does not need to be
529         a descendant of the parent of the partial view if both parents are
530         interfaces.
531         (Analyze_Private_Extension_Declaration): If declaration has an explicit
532         "limited" the parent must be a limited type.
533         (Build_Derived_Record_Type): A derived type that is explicitly limited
534         must have limited ancestor and progenitors.
535         (Build_Derived_Type): Ditto.
536         (Process_Full_View): Verify that explicit uses of "limited" in partial
537         and full declarations are consistent.
538         (Find_Ancestor_Interface): Remove function.
539         (Collect_Implemented_Interfaces): New procedure used to gather all
540         implemented interfaces by a type.
541         (Contain_Interface): New function used to check whether an interface is
542         present in a list.
543         (Find_Hidden_Interface): New function used to determine whether two
544         lists of interfaces constitute a set equality. If not, the first
545         differing interface is returned.
546         (Process_Full_View): Improve the check for the "no hidden interface"
547         rule as defined by AI-396.
549 2005-12-09  Robert Dewar  <dewar@adacore.com>
551         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
552         types, not on record subtypes.
553         (Freeze_Entity): Code cleanup. Add barrier to the loop
554         that generates the references for primitive operations. This allows to
555         remove an unnecessary exception handler.
556         Code reformatting and comment clean ups.
558 2005-12-09  Vincent Celier  <celier@adacore.com>
560         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
561         If GNAT CHECK is called with a project file, but with no
562         source on the command line, call gnatcheck with all the compilable
563         sources of the project.
564         Take into account the new command Check, for gnatcheck. Treat as for
565         other ASIS tools: take into account project, specific package Check and
566         Compiler switches.
567         For ASIS tools, add the switches in package Compiler for
568         the invocation of the compiler.
570         * prj-attr.adb: Add package Check and its attributes
572         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
574         * vms_conv.adb (Initialize): Change Params of command Check to
575         unlimited files.
576         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
577         Add data for new command Check
579         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
580         ELIM.
581         Add qualifiers for Check command options
582         (Command_Type): New command Check
584 2005-12-09  Thomas Quinot  <quinot@adacore.com>
586         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
587         command line switch overruns the output buffer.
589 2005-12-09  Robert Dewar  <dewar@adacore.com>
591         * sem_prag.adb: Processing for new pragma Complete_Representation
592         (Analyze_Pragma, case Debug): Implement two argument form.
594         * par-prag.adb: Entry for new pragma Complete_Representation
595         (Prag, case Debug): Recognize two argument form of pragma Debug
596         New interface for Set_Style_Check_Options.
598         * sem_ch13.adb: Implement new pragma Complete_Representation.
600         * snames.adb, snames.ads, snames.h: Entry for new pragma
601         Complete_Representation.
603 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
605         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
606         available user-specified stream attributes on limited parameters to
607         also test the type directly rather than only its underlying type (for
608         Ada 95) and, in the case of Ada 2005, to check that the user-specified
609         attributes are visible at the point of the subprogram declaration.
610         For Ada 2005, the error message is modified to indicate that the
611         type's stream attributes must be visible (again, only for -gnat05).
613 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
615         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
616         anonymous access types.
618         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
619         matching of anonymous access types and anonymous access to subprogram
620         types. 'R'M 4.9.1 (2/2).
622 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
624         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
625         rule prematurely when operands are universal, remaining ambiguities
626         will be removed during resolution.
627         Code cleanup.
629         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
630         that are Ada 2005 functions.
631         (Has_Abstract_Interpretation): Subsidiary to
632         Remove_Conversions, to remove ambiguities caused by abstract operations
633         on numeric types when operands are universal.
635 2005-12-09  Robert Dewar  <dewar@adacore.com>
637         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
638         for case where spec is categorized.
640 2005-12-09  Javier Miranda  <miranda@adacore.com>
642         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
643         types use the corresponding record type. This was not needed before
644         the implementation of Ada 2005 synchronized types because
645         concurrent types were never tagged types in Ada 95.
647 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
649         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
650         first subtype of the type of the expression to verify that it is a
651         legal Time type.
653 2005-12-09  Robert Dewar  <dewar@adacore.com>
655         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
656         decoded names.
658 2005-12-09  Quentin Ochem  <ochem@adacore.com>
659             Robert Dewar  <dewar@adacore.com>
660             Ed Falis  <falis@adacore.com>
661             Florian Villoing  <villoing@adacore.com>
662             Thomas Quinot  <quinot@adacore.com>
663             Arnaud Charlet  <charlet@adacore.com>
665         * gnat_ugn.texi: Created section "Stack Related Tools"
666         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
667         "Stack Related Tools"
668         Added subsection "Static Stack Usage Analysis"
669         Added subsection "Dynamic Stack Usage Analysis"
670         Include documentation of itypes in sprint listing (-gnatG)
671         Documented gnatbind -D switch (default sec stack size for fixed sec
672         stacks).
673         Added Interrupt_State and Persistent_BSS to list of configuration
674         pragmas.
675         Add missing doc for maximum value of nnn in -gnatyMnnn
677         * gnat_rm.texi: Document the AltiVec binding.
678         Add documentation for pragma Complete_Representation
679         Shortened an overly long line (> 79 chars)
680         Clarify documentation of unchecked conversion in implementation
681         defined cases.
682         Document two argument form of pragma Debug
684         * types.ads (Column_Number): Update documentation.
686         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
687         library level Finalize_Storage_Only objects (these are not attached to
688         any finalization list).
690         * system-mingw.ads: (Underlying_Priorities): Update comment.
692 2005-12-09  Robert Dewar  <dewar@adacore.com>
694         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
695         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
696         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
697         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
698         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
699         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
700         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
701         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
702         reformatting.
704 2005-12-09  Robert Dewar  <dewar@adacore.com>
706         * s-vaflop-vms-alpha.adb: (Ne_F): New function
707         (Ne_G): New function
709         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
710         for tag assignment.
711         (Rewrite_Comparison): Handle case where operation is not a comparison
712         and ignore, and also handle type conversion case.
714 2005-12-09  Thomas Quinot  <quinot@adacore.com>
716         * exp_aggr.ads: Fix typo in comment.
717         ???-mark Convert_Aggr_In_Assignment as needing documentation.
719 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
721         * layout.adb: Replace various uses of byte by storage unit throughout.
722         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
723         static size, convert to storage units before returning, to conform to
724         spec.
726 2005-12-09  Matthew Gingell  <gingell@adacore.com>
728         * g-exctra.ads: Fix typo in comment.
730 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
732         * utils.c: Minor reformatting.
734 2005-12-09  Robert Dewar  <dewar@adacore.com>
736         * g-soccon.ads: 
737         Further comment fixes to make the status of the default file clear
739         * s-bitops.adb: Clarify comment for Bits_Array
741 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
743         * Make-lang.in (ada.install-normal): Remove.
745 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
747         * Make-lang.in: Remove all dependencies on s-gtype.
749 2005-12-05  Richard Guenther  <rguenther@suse.de>
751         * utils.c (convert): Use fold_convert where appropriate.
753 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
755         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
756         a period is meant.
758 2005-12-02  Richard Guenther  <rguenther@suse.de>
760         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
762 2005-12-01  Roger Sayle  <roger@eyesopen.com>
764         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
765         nodes.
767 2005-11-23  Laurent GUERBY  <laurent@guerby.net>
769         * mlib-prj.adb (Build_Library): Initialize Delete.
771 2005-11-21  Joel Sherrill <joel.sherrill@oarcorp.com>
773         * socket.c: Add extern int h_errno for rtems since networking header
774         files are not available at this point in a tool bootstrap. Newlib
775         only has basic C library header files.
777 2005-11-19  Richard Guenther  <rguenther@suse.de>
778         Roger Sayle  <roger@eyesopen.com>
780         PR ada/23717
781         * misc.c (internal_error_function): Don't use vsprintf to format
782         the error message text, instead use pp_format_text and the new
783         pretty printer APIs.  This allows handling of %qs, %w, etc.
785 2005-11-18  Laurent GUERBY  <laurent@guerby.net>
787         PR ada/24857
788         * Makefile.in: Use s-auxdec-empty for RTEMS.
790 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
792         PR ada/22333
793         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
794         a temporary if taking the address of something that is neither
795         reference, declaration, or constant, since the gimplifier
796         can't handle that case.
798 2005-11-17  Laurent GUERBY  <laurent@guerby.net>
800         PR ada/24857
801         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
802         
803 2005-11-16  Richard Guenther  <rguenther@suse.de>
805         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
807 2005-11-16  Joel Sherrill <joel.sherrill@oarcorp.com>
809         PR ada/24855
810         * raise-gcc.c: Add missing stdarg.h include.
812 2005-11-16  Richard Guenther  <rguenther@suse.de>
814         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
815         (ada/misc.o): Likewise.
817 2005-11-14  Thomas Quinot  <quinot@adacore.com>
819         * g-soccon.ads: Minor reformatting. Update comments.
821         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
822         gain visibility on the declaration of struct timeval.
824         * g-soccon-freebsd.ads,
825         g-soccon-darwin.ads,
826         g-soccon-tru64.ads,
827         g-soccon-aix.ads,
828         g-soccon-irix.ads,
829         g-soccon-hpux.ads,
830         g-soccon-solaris.ads,
831         g-soccon-vms.ads,
832         g-soccon-mingw.ads,
833         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
835         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
836         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
837         g-soccon-linux-x86.ads: New files.
839         * g-socthi-mingw.adb: 
840         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
842         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
843         (time_t, suseconds_t): New types constructed to match the tv_sec
844         and tv_usec fields of C struct timeval.
845         (Timeval): Construct structure in terms of the new types.
846         (Host_Errno): New function (imported from socket.c), returns last hosts
847         database error.
849         * g-socthi-vxworks.adb:  Add error handling circuitry.
851         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
852         components of struct timeval.
853         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
854         (Check_Selector): In error conditions, clear internal socket sets to
855         avoid a memory leak.
856         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
857         Send_Timeout, Receive_Timeout.
859         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
860         the tv_sec and tv_usec fields of C struct timeval.
861         (Timeval): Construct structure in terms of the new types.
862         (Host_Errno): New function (imported from socket.c), returns last hosts
863         database error.
865         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
866         hosts database last error code.
868         * gen-soccon.c: Complete value expansion should not be performed on
869         TARGET, as it has the form of a math expression, and some components
870         may be platform-defined macros.
871         For VxWorks, generate the OK and ERROR values.
872         New constants giving the sizes of the components of C struct timeval.
874 2005-11-14  Robert Dewar  <dewar@adacore.com>
875             Ed Schonberg  <schonberg@adacore.com>
877         PR ada/18434
879         * types.ads: Include All_Checks in Suppress_Array
881         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
882         not(a=b), since we no longer do this rewriting, and hence it is not
883         needed.
884         (Elaboration_Checks_Suppressed): Add special casing to
885         deal with different cases of static and dynamic elaboration checks (all
886         checks does not count in the first case, but does in the second).
887         (Expr_Known_Valid): Do not assume that the result of any arbitrary
888         function call is valid, since this is not the case.
889         (Ensure_Valid): Do not apply validity check to a real literal
890         in a universal or fixed context
892         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
893         elementary types using the operator in standard. It is cleaner not to
894         modify the programmers intent, especially in the case of floating-point.
895         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
896         it did not matter because we always rewrote a/=b to not(a=b).
897         (Expand_Allocator_Expression): For an allocator expression whose nominal
898         subtype is an unconstrained packed type, convert the expression to its
899         actual constrained subtype.
900         Implement warning for <= or >= where < or > not possible
901         Fix to Vax_Float tests (too early in many routines, causing premature
902         Vax_Float expansions.
904         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
905         to be used with packages and generic packages as well as with
906         subprograms.
907         (Suppress): Set All_Checks, but not Elaboration_Check, for case
908         of pragma Suppress (All_Checks)
909         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
910         a string literal for precise control over warnings.
911         Avoid raise of pragma in case of unrecognized pragma and just return
912         instead.
914         * sem_prag.ads: Minor reformatting
916         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
917         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
918         Switch. Do not handle any exception.
919         Include -gnatwx as part of -gnatg (warn on redundant parens)
920         Allow optional = after -gnatm
921         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
922         longer sets Elaboration_Checks.
923         Code to set warning mode moved to Sem_Warn
924         so that it can be shared by pragma processing.
926         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
927         statement.
929         * s-taprop-solaris.adb: 
930         Change some <= to =, to avoid new warning
932         * a-exexda.adb, prj-proc.adb: 
933         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
934         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
936 2005-11-14  Robert Dewar  <dewar@adacore.com>
938         * exp_vfpt.adb: Handle /= case
939         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
940         so that we do not get duplicate scaling for fixed point conversions.
942         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
944 2005-11-14  Matthew Gingell  <gingell@adacore.com>
946         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
947         Increase default priority on Lynx from 15 to 17, and meet the Ada
948         requirement that Default_Priority be ((Priority'First +
949         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
951 2005-11-14  Vincent Celier  <celier@adacore.com>
953         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
954         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
955         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
956         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
957         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
958         mlib-tgt-lynxos.adb (DLL_Prefix): New function
960 2005-11-14  Doug Rupp  <rupp@adacore.com>
962         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
963         private part.
965 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
967         * s-traces-default.adb, s-trafor-default.ads,
968         s-tratas-default.adb: Fix compilation errors.
970 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
972         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
973         raising the exception so the memory used is freed.
975 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
977         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
978         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
979         (convert_address): Update comments and list of platforms using this.
981         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
982         no longer used.
984 2005-11-14  Pascal Obry  <obry@adacore.com>
985             Vincent Celier  <celier@adacore.com>
987         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
988         GNAT.Command_Line.
990         * memroot.adb: Remove redundant with/use clause on
991         System.Storage_Elements.
993 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
995         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
996         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
997         related code to a-exexpr.adb
998         (Save_Occurrence_And_Private): Move GCC EH related code to
999         a-exexpr-gcc.adb
1000         (Raise_Current_Excep): Add new variable Id with pragma
1001         volatile, to ensure that the variable lives on stack.
1003         * a-exexpr-gcc.adb, raise-gcc.c: New file.
1005         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
1006         from a-except.adb.
1007         Move GCC EH related code to a-exexpr-gcc.adb
1009         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
1010         64-bit Solaris
1011         Split the Linux version of g-soccon into separate variants for 32 and 64
1012         bit platforms.
1013         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
1014         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
1015         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
1016         of host variable $(RANLIB_FLAGS).
1017         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
1018         Code clean up: remove unused/obsolete targets.
1019         (EH_MECHANISM): New variable introduced to differenciate between the
1020         two EH mechanisms statically.
1021         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
1022         (LIBGNAT_OBJS): Add raise-gcc.o
1023         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
1024         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
1025         supports VxWorks 6 RTPs.
1026         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
1027         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
1029         * raise.c: Move all GCC EH-related routines to raise-gcc.c
1031 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
1033         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
1034         deferral level, when abort is not allowed, to a later stage (the
1035         Task_Wrapper).
1036         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
1037         it will not get changed by the generated code. It was previously done
1038         in Create_Task.
1040 2005-11-14  Thomas Quinot  <quinot@adacore.com>
1041             Olivier Hainque  <hainque@adacore.com>
1042             Eric Botcazou  <ebotcazou@adacore.com>
1044         * decl.c:
1045         Factor common code to build a storage type for an unconstrained object
1046         from a fat or thin pointer type and a constrained object type.
1047         (annotate_value): Handle BIT_AND_EXPR.
1048         (annotate_rep): Don't restrict the back annotation of inherited
1049         components to the type_annotate_only case.
1050         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
1051         we are not defining the type.
1052         <E_Record_Type>: Likewise.
1053         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
1054         to get advantage of the new maybe_stabilize_reference interface, to
1055         ensure that what we reference is indeed stabilized instead of relying
1056         on assumptions on what the stabilizer does.
1057         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
1058         type imported through a limited_with clause, use its non-limited view.
1059         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
1060         differentiation.
1061         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
1062         of #if sections + explicit comparisons of convention identifiers.
1063         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
1064         before early-returning for certain types when code generation is
1065         disabled.
1066         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
1067         nullification of gnu_expr we do for objects with address clause and
1068         that we are not defining.
1069         (elaborate_expression_1): Do not create constants when creating
1070         variables needed by the debug info: the dwarf2 writer considers that
1071         CONST_DECLs is used only to represent enumeration constants, and emits
1072         nothing for them.
1073         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
1074         object with an address clause into an indirect reference, drop the
1075         initializing expression.
1076         Include "expr.h".
1077         (STACK_CHECK_BUILTIN): Delete.
1078         (STACK_CHECK_PROBE_INTERVAL): Likewise.
1079         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
1080         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
1081         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
1082         corresponding to the renamed object as ignored for debugging purposes.
1084         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
1085         related): For a prefix that is a dereference of a fat or thin pointer,
1086         if there is an actual subtype provided by the front-end, use that
1087         subtype to build an actual type with bounds template.
1088         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
1089         is provided by the front-end, use that subtype to compute the size of
1090         the deallocated object.
1091         (gnat_to_gnu): When adding a statement into an elaboration procedure,
1092         check for a potential violation of a No_Elaboration_Code restriction.
1093         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
1094         with extra arguments to control whether to recurse through non-values
1095         and to let the caller know if the stabilization has succeeded.
1096         (gnat_stabilize_reference): Now a simple wrapper around
1097         maybe_stabilize, for common uses without restriction on lvalues and
1098         without need to check for the success indication.
1099         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
1100         pass false instead of 0 as the FORCE argument which is a bool.
1101         (Identifier_to_gnu): Remove checks ensuring that an renamed object
1102         attached to a renaming pointer has been properly stabilized, as no such
1103         object is attached otherwise.
1104         (call_to_gnu): Invoke create_var_decl to create the temporary when the
1105         function uses the "target pointer" return mechanism.
1106         Reinstate conversion of the actual to the type of the formal
1107         parameter before any other specific treatment based on the passing
1108         mechanism. This turns out to be necessary in order for PLACEHOLDER
1109         substitution to work properly when the latter type is unconstrained.
1111         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
1112         common pattern.
1113         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
1114         with extra arguments to control whether to recurse through non-values
1115         and to let the caller know if the stabilization has succeeded.
1117         * utils2.c (gnat_build_constructor): Only sort the fields for possible
1118         static output of record constructor if all the components are constant.
1119         (gnat_build_constructor): For a record type, sort the list of field
1120         initializers in increasing bit position order.
1121         Factor common code to build a storage type for an unconstrained object
1122         from a fat or thin pointer type and a constrained object type.
1123         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
1124         types variants, and process special cases of VIEW_CONVERT expressions
1125         as their NOP_EXPR counterpart to ensure we get to the
1126         CORRESPONDING_VARs associated with CONST_DECls.
1127         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
1128         on the right-hand side.
1130         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
1131         a common pattern.
1132         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
1133         are converting back to its original type.
1134         (convert) <JM input>: Fallthrough regular conversion code instead of
1135         extracting the object if converting to a type variant.
1136         (create_var_decl): When a variable has an initializer requiring code
1137         generation and we are at the top level, check for a potential violation
1138         of a No_Elaboration_Code restriction.
1139         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
1140         SIZE and SIZE_UNIT which we need for later back-annotations.
1141         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
1142         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
1143         is an unchecked union.
1144         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
1145         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
1146         main variant, just replace the VIEW_CONVERT_EXPR.
1147         <UNION_TYPE>: Revert 2005-03-02 change.
1149         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
1151         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
1153 2005-11-14  Matthew Heaney  <heaney@adacore.com>
1155         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
1156         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
1157         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
1158         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
1159         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
1160         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
1161         Compiles against the spec for ordered maps described in sections
1162         A.18.6 of the most recent (August 2005) AI-302 draft.
1164 2005-11-14  Olivier Hainque  <hainque@adacore.com>
1166         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
1167         to ensure bias adjustments take place when need be and to prevent
1168         occurrences of intermediate overflows.
1170 2005-11-14  Matthew Gingell  <gingell@adacore.com>
1171             Olivier Hainque  <hainque@adacore.com>
1173         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
1174         ia64 HP-UX.
1176         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
1177         tracebacks on ia64 HP-UX and provide explanatory comment.
1178         Enable backtraces on ia64 GNU/Linux.
1179         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
1180         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
1182 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
1183             Javier Miranda  <miranda@adacore.com>
1185         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
1186         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
1187         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
1188         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
1190         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
1191         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
1192         assertions).
1194         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
1195         subprogram that generates the external name associated with a
1196         secondary dispatch table.
1197         (Get_Secondary_DT_External_Name): New subprogram that generates the
1198         external name associated with a secondary dispatch table.
1200 2005-11-14  Emmanuel Briot  <briot@adacore.com>
1202         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
1203         line in the ALI file to include both an instantiation reference, and a
1204         returned value.
1206 2005-11-14  Vincent Celier  <celier@adacore.com>
1208         * clean.adb (Check_Project): Look for Ada code in extending project,
1209         even if Ada is not specified as a language.
1210         Use new function DLL_Prefix for DLL_Name
1211         (Clean_Interface_Copy_Directory): New procedure
1212         (Clean_Library_Directory): New procedure
1213         (Clean_Directory): Remove procedure, no longer used
1214         (Clean_Project): Do not delete any file in an externally built project
1216         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
1217         directory of an extending project, even when there are no Ada source
1218         present.
1219         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
1220         (Set_Ada_Paths.Add.Recursive_Add): Ditto
1222         * mlib-prj.adb (Check_Library): For all library projects, get the
1223         library file timestamp.
1224         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
1225         (Build_Library): Use new function DLL_Prefix for the DLL_Name
1226         (Clean): Remove procedure, no longer used
1227         (Ultimate_Extension_Of): New function
1228         (Build_Library): When cleaning the library directory, only remove an
1229         existing library file and any ALI file of a source of the project.
1230         When cleaning the interface copy directory, remove any source that
1231         could be a source of the project.
1233         * prj.ads, prj.adb (Project_Empty): Add values of new components
1234         Library_TS and All_Imported_Projects.
1235         (Project_Empty): Add values for new components of Project_Data:
1236         Library_ALI_Dir and Display_Library_ALI_Dir
1238         * prj-attr.adb: New project level attribute name Library_ALI_Dir
1240         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
1241         attribute Library_ALI_Dir.
1242         (Check_Library_Attributes): The library directory cannot be the same as
1243         any source directory of the project tree.
1244         (Check_Stand_Alone_Library): The interface copy directory cannot be
1245         the same as any source directory of the project tree.
1247         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
1248         all temporary files.
1250 2005-11-14  Robert Dewar  <dewar@adacore.com>
1251             Ed Schonberg  <schonberg@adacore.com>
1253         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
1254         (Check_Elab_Call): A call within a protected body is never an
1255         elaboration call, and does not require checking.
1256         (Same_Elaboration_Scope): Take into account protected types for both
1257         entities.
1258         (Activate_Elaborate_All_Desirable): New procedure
1260         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
1261         desirable
1263         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
1264         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
1266         * lib-writ.ads, lib-writ.adb: 
1267         Implement new AD/ED for Elaborate_All/Elaborate desirable
1268         Use new Elaborate_All_Desirable flag in N_With_Clause node
1270         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
1271         N_Free_Statement nodes.
1272         Define new class N_Subprogram_Instantiation
1273         Add Elaborate_Desirable flag to N_With_Clause node
1274         Add N_Delay_Statement (covering two kinds of delay)
1276         * debug.adb: Introduce d.f flag for compiler
1277         Add -da switch for binder
1279 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
1280             Cyrille Comar  <comar@adacore.com>
1282         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
1283         for task component, in the case of a limited aggregate. The enclosed
1284         object declaration will create it earlier. Otherwise, in the case of a
1285         nested aggregate, the object may appear in the wrong scope.
1286         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
1287         (Gen_Assign): If the component being assigned is an array type and the
1288         expression is itself an aggregate, wrap the assignment in a block to
1289         force finalization actions on the temporary created for each row of the
1290         enclosing object.
1291         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
1292         structures are initialized after all discriminants are set so that
1293         they can be accessed even when their offset is dynamic.
1295 2005-11-14  Robert Dewar  <dewar@adacore.com>
1296             Hristian Kirtchev  <kirtchev@adacore.com>
1298         * sem_attr.adb: Implement Machine_Rounding attribute
1299         (Analyze_Access_Attribute): The access attribute may appear within an
1300         aggregate that has been expanded into a loop.
1301         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
1302         'Terminated whenever the prefix is of a task interface class-wide type.
1303         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
1304         the prefix is of a task interface class-wide type.
1306         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
1307         to avoid warnings.
1309         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
1310         Remove pragma Inline for [Unaligned_]Valid.
1311         Add comments that Valid routines do not work for Vax_Float
1313         * exp_attr.adb: Implement Machine_Rounding attribute
1315         * snames.h: Add entry for Machine_Rounding attribute
1317 2005-11-14  Javier Miranda  <miranda@adacore.com>
1318             Robert Dewar  <dewar@adacore.com>
1319             Hristian Kirtchev  <kirtchev@adacore.com>
1321         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
1322         and related): For a prefix that is an explicit dereference of an
1323         access to unconstrained packed array type, annotate the dereference
1324         with an actual subtype so GIGI can make a correct size computation.
1325         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
1326         'Unrestricted_Access, if the designated type is an interface we
1327         add a type conversion to force the displacement of the pointer
1328         to the secondary dispatch table.
1329         Use Universal_Real instead of Long_Long_Float when we need a high
1330         precision float type for the generated code (prevents gratuitous
1331         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
1332         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
1333         'Terminated for task interface class-wide objects. Generate a call to
1334         the predefined dispatching routine used to retrieve the _task_id from
1335         a task corresponding record.
1336         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
1338         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
1339         (Check_Dispatching_Operation): Protect the frontend againts
1340         previously detected errors.
1342         * Makefile.rtl: Add new instantiations of system.fat_gen
1344         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
1345         Change name of instantiated package for better consistency
1346         with newly added system.fat_gen instantiations.
1348         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
1349         s-fvagfl.ads: New files.
1351 2005-11-14  Cyrille Comar  <comar@adacore.com>
1352             Thomas Quinot  <quinot@adacore.com>
1354         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
1355         assignment of a value of a tagged type that has been rewritten to a
1356         block statement, it is known by construction that no checks are
1357         necessary for the statements within the block: analyze it with checks
1358         suppressed.
1359         (Expand_N_If_Statement): When killing a dead then-branch in an
1360         if-statement that has elsif_parts, recompute the Current_Value node
1361         for any entity whose value is known from the condition of the first
1362         elsif_part.
1363         (Expand_N_Return_Statement): When returning a mutable record, convert
1364         the return value into its actual subtype in order to help the backend
1365         to return the actual size instead of the maximum. This is another
1366         aftermath of not returning mutable records on the sec-stack anymore.
1368         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
1369         handling of error msg for suspicious reverse range iteration.
1370         (Check_Possible_Current_Value_Condition): Move declaration from body to
1371         spec, to allow this subprogram to be called from exp_ch5.
1373 2005-11-14  Thomas Quinot  <quinot@adacore.com>
1375         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
1376         generate a set of nested array aggregates instead of a single flat
1377         aggregate for multi-dimensional arrays.
1379 2005-11-14  Pascal Obry  <obry@adacore.com>
1381         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
1382         by spawnve is a process handle, no need to convert. Add a parameter
1383         close to control wether the process handle must be closed.
1384         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
1385         a process handle, not need to convert.
1386         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
1388         * g-expect.adb: (Kill): Document the new close parameter.
1389         (Close): Do not release the process handle in the kill there as
1390         waitpid() is using it.
1391         (Send_Signal): Release the process handle.
1393 2005-11-14  Robert Dewar  <dewar@adacore.com>
1395         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
1396         need a high precision float type for the generated code (prevents
1397         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
1398         used).
1400         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
1401         need a high precision float type for the generated code (prevents
1402         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
1403         used).
1404         (Expand_Width_Attribute): In configurable run-time, the attribute is not
1405         allowed on non-static enumeration subtypes. Force a load error to emit
1406         the correct diagnostic.
1408 2005-11-14  Thomas Quinot  <quinot@adacore.com>
1409             Robert Dewar  <dewar@adacore.com>
1410             Ed Schonberg  <schonberg@adacore.com>
1412         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
1413         subtype to compute the size of the designated object at run-time,
1414         create such a subtype and store it in the Actual_Designated_Subtype
1415         attribute of the N_Free_Statement.
1416         Generate itype for classwide designated object in both cases of
1417         user-specified storage pool: specific and class-wide, not only in the
1418         specific case.
1419         Raise CE when trying to set a not null access type object to null.
1420         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
1421         an explicit loop, because freeze nodes make its position variable.
1423         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
1424         null object.
1426 2005-11-14  Javier Miranda  <miranda@adacore.com>
1428         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
1429         Build_Stream_Procedure): Add the null-excluding attribute to the first
1430         formal.
1431         This has no semantic meaning under Ada95 mode but it is a
1432         requirement under Ada05 mode.
1434         * par-ch3.adb (P_Access_Definition): Addition of warning message if
1435         the null exclusion is used under Ada95 mode
1436         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
1437         (P_Access_Definition): Remove assertion that forbids the use of
1438         the null-exclusion feature in Ada95.
1440 2005-11-14  Robert Dewar  <dewar@adacore.com>
1442         * impunit.adb: Exclude container helper units not intended for use by
1443         users.
1445 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
1447         * freeze.adb (Freeze_Entity): For an access formal that is an access
1448         to subprogram, freeze the anonymous subprogram type at the same time,
1449         to prevent later freezing in the wrong scope, such as the enclosing
1450         subprogram body.
1451         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
1452         subprogram whenever available.
1454 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
1456         PR ada/23732
1457         * gnatvsn.ads (Library_Version): Bump to 4.1
1459 2005-11-14  Robert Dewar  <dewar@adacore.com>
1461         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
1462         Storage_Offset to avoid wrap around causing invalid results.
1464 2005-11-14  Pascal Obry  <obry@adacore.com>
1466         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
1467         cross-compiler.
1468         (Scan_Bind_Arg): Fail with an error message if -M option is used
1469         on a native compiler.
1471 2005-11-14  Robert Dewar  <dewar@adacore.com>
1472             Vincent Celier  <celier@adacore.com>
1474         * gprep.adb: Implement -C switch to scan comments
1476         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
1478         * scans.ads: Comment updates (including new use of Tok_Comment in
1479         preprocessing)
1481         * opt.ads: Add documentation for flags that are used by gprmake,
1482         currently and in the next version of gprmake.
1483         (Verbosity_Level): New variable
1484         Add Replace_In_Comments switch
1486         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
1487         and -vm.
1488         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
1490 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
1492         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
1493         message, friendlier.
1495 2005-11-14  Robert Dewar  <dewar@adacore.com>
1497         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
1499 2005-11-14  Doug Rupp  <rupp@adacore.com>
1501         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
1503 2005-11-14  Robert Dewar  <dewar@adacore.com>
1505         * interfac.ads: Change declarations of IEEE float types so that we no
1506         longer need a separate version of this package for VMS.
1508 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
1510         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
1511         internal entity created for the declaration of a child subprogram body
1512         with no spec as coming from source, to generate proper cross-reference
1513         information.
1515 2005-11-14  Vincent Celier  <celier@adacore.com>
1517         * make.adb (Compile_Sources): Change verbose message to minimum
1518         verbosity level High for "is in an Ada library", "is a read-only
1519         library" and "is an internal library",
1520         (Create_Binder_Mapping_File): Path name of ALI file for library project
1521         must include the library directory, not the object directory.
1522         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
1523         for new switches -vl, -vm and -vh.
1524         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
1525         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
1526         (Compile_Sources): Do not attempt to compile if an ALI file is missing
1527         in a project that is externally built.
1528         (Compute_All_Imported_Projects): New procedure
1529         (Gnatmake): Check if importing libraries should be regenerated because
1530         at least an imported library is more recent.
1531         (Initialize): For each project compute the list of the projects it
1532         imports directly or indirectly.
1533         (Add_Library_Search_Dir): New procedure, used in place of
1534         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
1535         put in the search paths.
1536         (Add_Source_Search_Dir): New procedure, used in place of
1537         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
1538         put in the search paths.
1539         (Mark_Directory): Resolve the absolute path the directory before marking
1540         it.
1542         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
1543         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
1544         Switch. Do not handle any exception.
1545         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
1546         so that the switch is recognized as valid.
1547         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
1549 2005-11-14  GNAT Script  <nobody@adacore.com>
1551         * Make-lang.in: Makefile automatically updated
1553 2005-11-14  Pascal Obry  <obry@adacore.com>
1555         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
1556         used.
1557         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
1558         In both cases the last argument was dropped.
1560 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
1562         * namet.h: (Column_Numbe): New type.
1563         (Get_Column_Number): Define to sinput__get_column_number.
1564         (Instantiation): Define to sinput__instantiation.
1565         (Get_Column_Number): Declare.
1566         (Instantiation): Likewise.
1568 2005-11-14  Robert Dewar  <dewar@adacore.com>
1570         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
1571         syntax, which could cause compiler hangs.
1573 2005-11-14  Vincent Celier  <celier@adacore.com>
1575         * prj-ext.adb: Take into account new environment variable
1576         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
1577         are defined.
1578         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
1579         normalize its path name, making it absolute and resolving symbolic
1580         links, and replace the original if resolved path is different.
1582 2005-11-14  Vincent Celier  <celier@adacore.com>
1584         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
1585         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
1587 2005-11-14  Emmanuel Briot  <briot@adacore.com>
1589         * prj-pp.adb (Print): Do not output the with statement if the
1590         associated name is empty, which happens for virtual extending projects.
1591         (Print): Preserve the "extends all" attribute when printing the project.
1593         * prj-tree.ads (String_Value_Of): Add comment about returned value for
1594         a virtual extending project.
1596 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
1598         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
1599         rhs of an assignment even if the type is unconstrained, when the
1600         context is non-expanding.
1601         In an inlined body, if the context type is private,
1602         resolve with its full view, which must be a composite type.
1604 2005-11-14  Robert Dewar  <dewar@adacore.com>
1605             Ed Schonberg  <schonberg@adacore.com>
1607         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
1608         Do not give obsolescent warning on with of subprogram (since we
1609         diagnose calls)
1610         (Analyze_With_Clause): Add test for obsolescent package
1611         (Install_Context_Clauses): If the unit is the body of a child unit, do
1612         not install twice the private declarations of the parents, to prevent
1613         circular lists of Use_Clauses in a parent.
1614         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
1615         compiling body of child unit.
1616         Use new class N_Subprogram_Instantiation
1617         (Expand_With_Clause): If this is a private with_clause for a child unit,
1618         appearing in the context of a package declaration, then the implicit
1619         with_clauses generated for parent units are private as well.
1620         (License_Check): Do not generate message if with'ed unit is internal
1622 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
1623             Ed Schonberg  <schonberg@adacore.com>
1624             Thomas Quinot  <quinot@adacore.com>
1626         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
1627         names are internal, because they will not have a corresponding partner
1628         in the actual package.
1629         (Analyze_Formal_Package): Move the setting of the formal package spec's
1630         Generic_Parent field so that it occurs prior to analyzing the package,
1631         to allow proper operation of Install_Parent_Private_Declarations.
1632         (Analyze_Package_Instantiation): Set the instantiated package entity's
1633         Package_Instantiation field.
1634         (Get_Package_Instantiation_Node): Move declaration to package spec.
1635         Retrieve the N_Package_Instantiation node when the Package_Instantiation
1636         field is present.
1637         (Check_Generic_Child_Unit): Within an inlined call, the only possible
1638         instantiation is Unchecked_Conversion, for which no parents are needed.
1639         (Inline_Instance_Body): Deinstall and record the use_clauses for all
1640         parent scopes of a scope being removed prior to inlining an instance
1641         body.
1642         (Analyze_Package_Instantiation): Do not perform front-end inlining when
1643         the current context is itself an instance within a non-instance child
1644         unit, to prevent scope stack errors.
1645         (Save_References): If the node is an aggregate that is an actual in a
1646         call, rewrite as a qualified expression to preserve some type
1647         information, to resolve possible ambiguities in the instance.
1648         (Instance_Parent_Unit): New global variable to record the ultimate
1649         parent unit associated with a generic child unit instance (associated
1650         with the existing Parent_Unit_Visible flag).
1651         (type Instance_Env): New component Instance_Parent_Unit for stacking
1652         parents recorded in the global Instance_Parent_Unit.
1653         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
1654         stack.
1655         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
1656         it's not a top-level unit, and only do this if Instance_Parent_Unit is
1657         not already set. Replace test of Is_Child_Unit with test of parent's
1658         scope against package Standard. Add comments and a ??? comment.
1659         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
1660         on a child instance parent to test that the parent equals
1661         Instance_Parent rather than simply checking that the unit is not a
1662         child unit.
1663         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
1664         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
1665         a formal interface are ancestors of the corresponding actual.
1666         (Validate_Formal_Interface_Type): Additional legality checks.
1667         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
1668         interface types with ancestors.
1669         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
1670         to diagnose attempts to use generic within its own declaration.
1672 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
1673             Javier Miranda  <miranda@adacore.com>
1675         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
1676         discriminant.
1677         (Build_Private_Derived_Type): The entity of the created full view of the
1678         derived type does not come from source. If after installing the private
1679         declarations of the parent scope the parent is still private, use its
1680         full view to construct the full declaration of the derived type.
1681         (Build_Derived_Record_Type): Relax the condition that controls the
1682         execution of the check that verifies that the partial view and
1683         the full view agree in the set of implemented interfaces. In
1684         addition, this test now only takes into account the progenitors.
1685         (Derive_Interface_Subprograms): No need to derive subprograms
1686         of ancestors that are interfaces.
1687         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
1688         associated code.
1689         Change name Is_Package to Is_Package_Or_Generic_Package
1690         (Complete_Subprograms_Derivation): Handle the case in which the full
1691         view is a transitive derivation of the ancestor of the partial view.
1692         (Process_Full_View): Rename local subprogram Find_Interface_In_
1693         Descendant to Find_Ancestor_Interface to leave the code more clear.
1694         Remove wrong code that avoids the generation of an error message
1695         when the immediate ancestor of the partial view is an interface.
1696         In addition some minor reorganization of the code has been done to
1697         leave it more clear.
1698         (Analyze_Type_Declaration): If type has previous incomplete tagged
1699         partial view, inherit properly its primitive operations.
1700         (Collect_Interfaces): Make public, for analysis of formal
1701         interfaces.
1702         (Analyze_Interface_Declaration): New procedure for use for regular and
1703         formal interface declarations.
1704         (Build_Derived_Record_Type): Add support for private types to the code
1705         that checks if a tagged type implements abstract interfaces.
1706         (Check_Aliased_Component_Type): The test applies in the spec of an
1707         instance as well.
1708         (Access_Type_Declaration): Clean up declaration of malformed type
1709         declared as an access to its own classwide type, to prevent cascaded
1710         crash.
1711         (Collect_Interfaces): For private extensions and for derived task types
1712         and derived protected types, the parent may be an interface that must
1713         be included in the interface list.
1714         (Access_Definition): If the designated type is an interface that may
1715         contain tasks, create Master_Id for it before analyzing the expression
1716         of the declaration, which may be an allocator.
1717         (Record_Type_Declaration): Set properly the interface kind, for use
1718         in allocators, the creation of master id's for task interfaces, etc.
1720 2005-11-14  Javier Miranda  <miranda@adacore.com>
1721             Ed Schonberg  <schonberg@adacore.com>
1723         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
1724         omitted in case of stream attribute subprograms.
1725         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
1726         appear immediately after a subprogram body, when there is no previous
1727         subprogram declaration.
1728         Change name Is_Package to Is_Package_Or_Generic_Package
1729         (Process_Formals): A non null qualifier on a non null named access
1730         type is not an error, and is a warning only if Redundant_Constructs
1731         are flagged.
1733 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
1734             Ed Schonberg  <schonberg@adacore.com>
1736         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
1737         nested within Analyze_Package_Specification to install the private
1738         declarations and use clauses within each of the parent units of a
1739         package instance of a generic child package.
1740         (Analyze_Package_Specification): When entering a private part of a
1741         package associated with a generic instance or formal package, the
1742         private declarations of the parent must be installed (by calling new
1743         procedure Install_Parent_Private_Declarations).
1744         Change name Is_Package to Is_Package_Or_Generic_Package
1745         (Preserve_Full_Attributes): For a synchronized type, the corresponding
1746         record is absent in a generic context, which does not indicate a
1747         compiler error.
1749 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
1751         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
1752         not try to rewrite a renamed stream attribute, because the operations
1753         on the type may not have been generated.
1754         Handle properly a renaming_as_body generated for a stream operation
1755         whose default is abstract because the object type itself is abstract.
1756         (Find_Type): If the type is incomplete and appears as the prefix of a
1757         'Class reference, it is tagged, and its list of primitive operations
1758         must be initialized properly.
1759         (Chain_Use_Clauses): When chaining the use clauses that appear in the
1760         private declaration of a parent unit, prior to compiling the private
1761         part of a child unit, find on the scope stack the proper parent entity
1762         on which to link the use clause.
1763         (Note_Redundant_Use): Emit a warning when a redundant use clause is
1764         detected.
1765         (Analyze_Object_Renaming): An attribute reference is not a legal object
1766         if it is not a function call.
1768 2005-11-14  Robert Dewar  <dewar@adacore.com>
1769             Ed Schonberg  <schonberg@adacore.com>
1771         * sem_eval.adb: Implement d.f flag
1772         (Subtype_Statically_Match): A generic actual type has unknown
1773         discriminants when the corresponding actual has a similar partial view.
1774         If the routine is called to validate the signature of an inherited
1775         operation in a child instance, the generic actual matches the full view,
1777 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
1778             Ed Schonberg  <schonberg@adacore.com>
1779             Robert Dewar  <dewar@adacore.com>
1780             Thomas Quinot  <quinot@adacore.com>
1782         * sem_res.adb (Resolve_Call): Provide a better error message whenever
1783         a procedure call is used as a select statement trigger and is not an
1784         entry renaming or a primitive of a limited interface.
1785         (Valid_Conversion): If the operand has a single interpretation do not
1786         remove address operations.
1787         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
1788         statement to inhibit warning.
1789         (Resolve_Unary_Op): Do not produce a warning when
1790         processing an expression of the form -(A mod B)
1791         Use Universal_Real instead of Long_Long_Float when we need a high
1792         precision float type for the generated code (prevents gratuitous
1793         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
1794         (Resolve_Concatenation_Arg): Improve error message when argument is an
1795         ambiguous call to a function that returns an array.
1796         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
1797         there is an implicit operator in the given scope if we are within an
1798         instance: legality check has been performed on the generic.
1799         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
1800         after resolving operand, to avoid false warnings on overloaded calls.
1802 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
1803             Javier Miranda  <miranda@adacore.com>
1805         PR ada/15604
1807         * sem_type.adb (Covers): In an inlined body, a composite type matches
1808         a private type whose full view is a composite type.
1809         (Interface_Present_In_Ancestor): Protect the frontend against
1810         previously detected errors to ensure that its compilation
1811         with assertions enabled gives the same output that its
1812         compilation without assertions.
1813         (Interface_Present_In_Ancestor): Add support for private types.
1814         Change name In_Actual to In_Generic_Actual (clean up)
1815         (Disambiguate): New predicate In_Actual, to recognize expressions that
1816         appear in the renaming declaration generated for generic actuals, and
1817         which must be resolved in the outer context.
1819 2005-11-14  Robert Dewar  <dewar@adacore.com>
1820             Thomas Quinot  <quinot@adacore.com>
1821             Hristian Kirtchev  <kirtchev@adacore.com>
1822             Ed Schonberg  <schonberg@adacore.com>
1824         * sem_util.ads, sem_util.adb: Change name Is_Package to
1825         Is_Package_Or_Generic_Package.
1826         (Check_Obsolescent): New procedure.
1827         (Set_Is_Public): Remove obsolete junk test.
1828         (Set_Public_Status): Do not set Is_Public on an object whose declaration
1829         occurs within a handled_sequence_of_statemets.
1830         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
1831         for a parameterless procedure.
1832         (Enter_Name): Recognize renaming declarations created for private
1833         component of a protected type within protected operations, so that
1834         the source name of the component can be used in the debugger.
1836 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
1837             Robert Dewar  <dewar@adacore.com>
1839         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
1840         of a generic subprogram are not visible outside the body.
1841         (Set_Warning_Switch): New procedure (code to set warning mode moved
1842         here from Switch.C so that it can be shared by pragma processing.
1843         (Check_References): Special case warning for non-modified non-imported
1844         volatile objects.
1845         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
1846         form with a string literal argument
1848 2005-11-14  Javier Miranda  <miranda@adacore.com>
1850         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
1851         anonymous access.
1852         (Write): Addition of "not null" to the anonymous access.
1853         (Read): Addition of "not null" to the anonymous access.
1854         (Write): Addition of "not null" to the anonymous access.
1856         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
1857         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
1858         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
1859         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
1860         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
1861         "not null" to the anonymous access.
1863 2005-11-14  Robert Dewar  <dewar@adacore.com>
1865         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
1866         offset values
1868 2005-11-14  Vincent Celier  <celier@adacore.com>
1870         * switch.adb (Bad_Switch): New procedure
1871         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
1872         message when in error.
1874         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
1875         Too_Many_Output_Files): Remove declarations, no longer used.
1876         (Scan_Nat): New parameter Switch
1877         (Scan_Pos): Ditto
1878         (Bad_Switch): New procedure
1880         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
1881         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
1882         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
1883         to Osint.Fail. Do not handle any exception.
1885 2005-11-14  Vincent Celier  <celier@adacore.com>
1887         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
1888         designates a non existent directory.
1890 2005-11-14  Robert Dewar  <dewar@adacore.com>
1892         * xgnatugn.adb: Replace invalid membership test by 'Valid
1894 2005-11-14  Vincent Celier  <celier@adacore.com>
1896         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
1897         there is no object directory.
1899 2005-11-14  Robert Dewar  <dewar@adacore.com>
1901         * usage.adb: Minor adjustment to output format, use nn instead of nnn
1902         (so that -gnateInnn does not run into next column)
1904 2005-11-14  Ed Falis  <falis@adacore.com>
1906         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
1907         "constrained"
1909 2005-11-14  Cyrille Comar  <comar@adacore.com>
1911         * s-chepoo.ads: Add comments on Dereference.
1912         Remove unnecessary inherited abstract primitives.
1913         Cosmetic cleanup.
1915 2005-11-14  Robert Dewar  <dewar@adacore.com>
1917         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
1918         node parameter, not needed, since it is available as Declaration_Node.
1920 2005-11-14  Geert Bosch  <bosch@adacore.com>
1922         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
1923         grammatically correct.
1925 2005-11-14  Vincent Celier  <celier@adacore.com>
1927         * s-fileio.ads: Correct spelling error in comment
1929 2005-11-14  Cyrille Comar  <comar@adacore.com>
1930             Robert Dewar  <dewar@adacore.com>
1931             Vincent Celier  <celier@adacore.com>
1932             Ben Brosgol  <brosgol@adacore.com>
1933             Jose Ruiz  <ruiz@adacore.com>
1934             Pascal Obry  <obry@adacore.com>
1936         * gnat_ugn.texi: 
1937         Document that -fstack-check is needed for strict compliance with the
1938         Ada 95 Reference Manual.
1939         Correct reference to VAX systems to meet HP guidelines
1940         Add documentation for new gnatmake switches -vl, -vm and -vh
1941         Replace DEC Ada by HP Ada
1942         Replace DIGITAL by HP
1943         Remove empty section on tools in compatibility section
1944         Clarify the Windows convention semantics.
1945         Document the Win32 calling convention.
1946         The Stdcall, Win32 and DLL convention are synonyms.
1947         Add a note in -gnatR description about zero size record components
1948         Note on new >= and <= warnings for -gnatwc
1949         Document that equal sign after -gnatm is optional.
1950         Note that strip is working fine on DLL built with a Library
1951         Project. The restriction apply only to DLL built with gnatdll.
1952         Update section about the way to debug a DLL.
1953         Update information about the DLL convention.
1954         Document -C switch for gnatprep
1955         Document new attribute Library_ALI_Dir
1956         Update elaboration doc to include implicit Elaborate pragmas now
1957         generated for subprogram instantiations.
1958         Document limitation on executable names that include spaces for --GCC,
1959         --GNATBIND, and --GNATLINK switches.
1960         Document that -w causes -gnatws to be added at start of gcc switches
1962         * gnat_rm.texi: Document that -mieee is needed for generating infinite
1963         and NaN values in case of overflow on machines that are not fully
1964         compliant with the IEEE floating-point standard.
1965         Create a section describing the set of compiler options needed for
1966         strict compliance with the Ada 95 Reference Manual.
1967         Add documentation for pragma Obsolescent applied to a package
1968         Clarify potential issues of mixed language programs related to the
1969         I/O buffering enabling in the elaboration of the GNAT runtime.
1970         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
1971         This documentation only patch adds extra documentsion for pragma
1972         Restrictions (No_Elaboration_Code), explaining why it is not possible
1973         to document this restriction in terms of allowed source constructs.
1974         Document string literal form of pragma Warnings
1975         Document new attribute Library_ALI_Dir
1976         Add documentation on stable attributes in project files that was missing
1978         * gnat-style.texi: Indicate that paragraphs within a single comment
1979         should be separated by empty comment lines
1981         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
1982         /05 respectively)
1984         * bindusg.adb: Minor cleanup, put -m before -M for consistency
1986 2005-11-14  Robert Dewar  <dewar@adacore.com>
1988         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
1989         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
1990         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
1991         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
1992         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
1993         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
1994         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
1995         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
1996         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
1997         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
1998         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
1999         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
2000         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
2001         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
2002         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
2003         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
2004         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
2005         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
2006         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
2007         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
2008         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
2009         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
2010         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
2011         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
2012         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
2013         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
2014         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
2015         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
2016         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
2017         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
2018         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
2019         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
2020         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
2021         system-interix.ads, system-solaris-sparc.ads,
2022         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
2023         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
2024         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
2025         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
2026         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
2027         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
2028         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
2029         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
2030         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
2031         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
2032         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
2033         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
2034         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
2035         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
2036         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
2037         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
2038         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
2039         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
2040         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
2041         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
2042         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
2043         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
2044         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
2045         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
2046         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
2047         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
2048         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
2049         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
2050         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
2051         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
2052         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
2053         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
2054         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
2055         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
2056         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
2057         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
2058         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
2059         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
2060         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
2061         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
2062         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
2063         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
2064         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
2065         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
2066         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
2067         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
2068         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
2069         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
2070         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
2071         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
2072         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
2073         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
2074         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
2075         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
2076         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
2077         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
2078         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
2079         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
2080         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
2081         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
2082         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
2083         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
2084         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
2085         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
2086         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
2087         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
2088         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
2089         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
2090         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
2091         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
2092         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
2093         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
2094         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
2095         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
2096         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
2097         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
2098         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
2099         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
2100         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
2101         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
2102         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
2103         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
2104         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
2105         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
2106         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
2107         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
2108         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
2109         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
2110         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
2111         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
2112         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
2113         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
2114         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
2115         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
2116         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
2117         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
2118         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
2119         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
2120         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
2121         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
2122         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
2123         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
2124         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
2125         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
2126         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
2127         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
2128         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
2129         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
2130         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
2131         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
2132         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
2133         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
2134         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
2135         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
2136         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
2137         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
2138         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
2139         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
2140         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
2141         a-numaux-darwin.ads, a-numaux-darwin.adb,
2142         a-swuwha.ads, a-stunha.ads: Minor reformatting
2144 2005-11-14  Robert Dewar  <dewar@adacore.com>
2146         PR ada/18434
2147         * osint-m.adb: Add pragma Elaborate_All for Osint
2149 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2151         PR ada/23995
2152         * trans.c (call_to_gnu): Restore statement lost in translation.
2154 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
2156         * init.c: Use the Linux-specific section for the IA-64/Linux target.
2157         (__gnat_adjust_context_for_raise): Add conditional code so that the
2158         IA-64 is also supported.
2160 2005-11-03  James E Wilson  <wilson@specifix.com>
2162         PR ada/23427
2163         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
2164         TREE_OVERFLOW check.
2166 2005-09-21  Olivier Hainque  <hainque@adacore.com>
2168         PR ada/22418
2169         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
2170         as we create them to store a size in bits.
2172 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
2174         PR ada/21937
2175         PR ada/22328
2176         PR ada/22381
2177         PR ada/22383
2178         PR ada/22419
2179         PR ada/22420
2180         * utils2.c (build_return_expr): New helper function.
2181         * gigi.h (build_return_expr): Declare it.
2182         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
2183         of manually building the RETURN_EXPR tree.
2184         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
2185         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
2186         build_binary_op for the "target pointer" case.  Use build_return_expr
2187         instead of manually building the RETURN_EXPR tree.
2189 2005-09-16  Laurent GUERBY  <laurent@guerby.net>
2191         PR ada/23788
2192         * s-tpinop.ads: Make this unit Preelaborate.
2194 2005-09-16  Andreas Jaeger  <aj@suse.de>
2196         * socket.c: Add string.h for memcpy.
2198 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
2200         * dec-io.ads, dec-io.adb: Removed, no longer used.
2202 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
2204         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
2206         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
2207         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
2208         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
2209         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
2210         dependent units are Preelaborate.
2211         (Initialize): Call Interrupt_Managemeent.Initialize and
2212         OS_Primitives.Initialize to ensure proper initialization of this unit.
2213         Remove use of System.Soft_Links
2214         Make this unit Preelaborate.
2216         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
2217         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
2218         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
2219         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
2220         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
2221         s-tratas.ads, s-tasinf.ads: Minor reformatting.
2222         Add pragma Preelaborate, since these packages are suitable for this
2223         categorization.
2224         Update comments.
2226         * s-traent-vms.ads, s-intman-dummy.adb,
2227         s-taprop-dummy.adb: Make this unit Preelaborate.
2229         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
2230         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
2231         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
2232         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
2233         s-intman-solaris.adb, s-intman-irix-athread.adb,
2234         s-intman-irix.adb: Mark this unit Preelaborate.
2235         (Initialize): New procedure.
2236         Update comments.
2238         * s-taspri-linux.ads: Removed.
2240         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
2241         as done by other implementations (e.g. posix).
2243         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
2244         responsible for deferring abort.
2245         Mark this unit Preelaborate.
2247         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
2248         proper initialization of the tasking run-time.
2250         * s-tasdeb.ads: Mark this unit Preelaborate.
2251         (Known_Tasks): Add explicit default value to avoid elaboration code.
2253         * s-inmaop-vms.adb (Elaboration code): Add call to
2254         Interrupt_Management.Initialize since the elaboration code depends on
2255         proper initialization of this package.
2257         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
2258         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
2259         s-osprim-posix.adb: Make this unit Preelaborate.
2261         * a-calend.adb: Add call to OS_Primitives.Initialize
2263         * a-elchha.adb: Update use of Except.Id.Full_Name.
2264         Minor reformatting.
2265         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
2267         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
2268         Move with clauses outside Warnings Off now that dependent units are
2269         Preelaborate.
2270         Use raise xxx with "..."; Ada 2005 form.
2272         * a-taside.ads, a-taside.adb:
2273         Remove some dependencies, to make it easier to make this unit truly
2274         Preelaborate.
2275         Rewrite some code to be conformant with Preelaborate rules.
2277         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
2278         marked Preelaborate in the future.
2280         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
2281         these units Preelaborate.
2283         * s-exctab.adb: Update use of Except.Id.Full_Name.
2285         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
2286         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
2287         Set_Exc_Stack_Addr): Removed, no longer used.
2288         Remove reference to *Machine_State_Addr*, no longer needed.
2290         * s-stalib.ads: Mark this unit as Preelaborate[_05].
2291         (Exception_Data): Full_Name is now a System.Address so that this unit
2292         can be made Preelaborate.
2293         Clean up/simplify code thanks to Full_Name being a System.Address.
2294         Remove obsolete pragma Suppress (All_Checks), no longer needed.
2296         * s-taskin.ads, s-taskin.adb:
2297         Move with clauses outside Warnings Off now that dependent units are
2298         Preelaborate.
2299         Make this unit Preelaborate.
2300         (Initialize): New proceduure, replace elaboration code and makes the
2301         set up of the tasking run-time cleaner.
2302         (Detect_Blocking): Now a function instead of a deferred boolean, to
2303         obey Preelaborate rules.
2305         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
2306         soft links, no longer used.
2308         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
2309         packages are suitable for this categorization.
2311         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
2312         since we compile run-time sources in Ada 2005 mode.
2313         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
2314         avoid having s-taprop*.adb depend on s-soflin and to avoid code
2315         duplication.
2316         Remove reference to *Machine_State_Addr*, no longer needed.
2318 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
2320         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
2321         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
2322         Remove reference to System.Exceptions.
2324         * s-mastop-x86.adb: Removed, no longer used.
2326         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
2328         * a-excach.adb: Minor reformatting.
2330         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
2331         instead fix new warnings that were hidden by this change.
2332         (AAA, ZZZ): Removed, replaced by...
2333         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
2334         are used instead of constants, to help make Ada.Exception truly
2335         preelaborate.
2336         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
2337         Raise_Storage_Error): File is now a System.Address, to simplify code.
2338         (Elab code): Removed, no longer used.
2339         (Null_Occurrence): Remove Warnings Off and make this construct
2340         preelaborate.
2341         Remove code related to front-end zero cost exception handling, since
2342         it is no longer used.
2343         Remove -gnatL/-gnatZ switches.
2345         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
2346         Update use of Except.Msg.
2348         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
2349         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
2350         to front-end zero cost exception handling, since it is no longer used.
2351         Remove -gnatL/-gnatZ switches.
2353         * lib-writ.ads: Minor reformatting
2354         Remove doc of UX
2356         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
2358         * Make-lang.in: Remove references to s-except.ads
2360         * s-except.ads: Removed, no longer used.
2362         * s-mastop.ads, s-mastop.adb:
2363         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
2364         Remove reference to System.Exceptions.
2366         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
2367         switch-b.adb: Remove code related to front-end zero cost exception
2368         handling, since it is no longer used.
2369         Remove -gnatL/-gnatZ switches.
2371 2005-09-01  Robert Dewar  <dewar@adacore.com>
2372             Gary Dismukes  <dismukes@adacore.com>
2373             Javier Miranda  <miranda@adacore.com>
2375         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
2376         type by valid test and generate warning.
2377         (Tagged_Membership): Generate call to the run-time
2378         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
2379         Change formal name Subtype_Mark to Result_Definition in several calls to
2380         Make_Function_Specification.
2381         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
2382         check for proper accessibility of the operand of a class-wide allocator.
2383         The check can be left out if checks are suppressed or if the expression
2384         has a specific tagged type whose level is known to be safe.
2386         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
2387         generates the run-time check associated with null-excluding entities.
2388         (Expand_N_Return_Statement): Add tests to determine if the accessibility
2389         check on the level of the return expression of a class-wide function
2390         can be elided. The check usually isn't needed if the expression has a
2391         specific type (unless it's a conversion or a formal parameter). Also
2392         add a test for whether accessibility checks are suppressed. Augment
2393         the comments to describe the conditions for performing the check.
2395 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
2396             Javier Miranda  <miranda@adacore.com>
2397             Gary Dismukes  <dismukes@adacore.com>
2398             Ed Schonberg  <schonberg@adacore.com>
2400         * a-tags.adb (IW_Membership): Give support to
2401         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
2402         subprogram has been extended to look for the tag in the ancestors tag
2403         table.
2404         Update the structure of the GNAT Dispatch Table to reflect the
2405         additional two tables used in dispatching selects.
2406         Introduce appropriate array types and record components in
2407         Type_Specific_Data to reflect the two tables.
2408         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
2409         the TSD of a tag, indexed by position.
2410         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
2411         operation kind in the TSD of a tag, indexed by position.
2413         * a-tags.ads: Introduce an enumeration type to capture different
2414         primitive operation kinds. Define a constant reflecting the number of
2415         predefined primitive operations.
2416         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
2417         of an entry wrapper.
2418         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
2419         callable entity of a primitive operation.
2421         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
2422         primitive operations used in dispatching selects for limited
2423         interfaces, limited tagged, task and protected types what implement a
2424         limited interface.
2425         (Freeze_Type): Generate the bodies of the primitive operations used in
2426         dispatching selects for limited tagged, task and protected types that
2427         implement a limited interface. Generate statements to populate the two
2428         auxiliary tables used for dispatching in select statements.
2429         (Freeze_Record_Type): Add call to initialize the dispatch table entries
2430         associated with predefined interface primitive operations.
2431         (Build_Dcheck_Function): Change Set_Subtype_Mark to
2432         Set_Result_Definition.
2433         (Build_Variant_Record_Equality): Change Subtype_Mark to
2434         Result_Definition.
2435         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
2436         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
2437         (Build_Assignment): Simplify the code that adds the run-time-check.
2438         (Expand_N_Object_Declaration): Code cleanup.
2440         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
2441         entries when there is a protected type that implements a limited
2442         interface.
2444         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
2445         common routines used in expansion of dispatching selects.
2446         (Add_Private_Declarations): Select the appropriate protection type when
2447         there is a protected type that implements a limited interface.
2448         (Build_Parameter_Block): Generate a wrapped parameter block.
2449         (Build_Protected_Subprogram_Body): Select the appropriate type for
2450         locking entries when there is a protected type that implements a
2451         limited interface.
2452         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
2453         classified as entry wrappers.
2454         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
2455         asynchronous selects.
2456         (Expand_N_Conditional_Entry_Call): Add support for expansion of
2457         dispatching conditional selects.
2458         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
2459         protection when there is a protected type that implements limited
2460         interfaces.
2461         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
2462         timed selects.
2463         (Extract_Dispatching_Call): Extract the entity of the name of a
2464         dispatching call, the object parameter, actual parameters and
2465         corresponding formals.
2466         (Make_Initialize_Protection): Correct logic of protection initialization
2467         when there is a protected type that implements a limited interface.
2468         (Parameter_Block_Pack): Populate a wrapped parameter block with the
2469         values of actual parameters.
2470         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
2471         block and assign them to the original actual parameters.
2473         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
2474         (Build_Protected_Sub_Specification): Change the type and name of the
2475         last formal to account for the increased variety of protection modes.
2477         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
2478         entities. Used to save the value of the Is_Hidden attribute when the
2479         limited-view is installed.
2480         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
2481         the attribute of procedures classified as entry wrappers.
2482         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
2483         entity of a primitive wrapper.
2484         (Write_Entity_Flags): Output the name and value of the
2485         Is_Primitive_Wrapper attribute.
2486         (Write_Field27_Name): Output the name and entity of the field Wrapped_
2487         Entity.
2488         (Underlying_Type): If we have an incomplete entity that comes from
2489         the limited view then we return the Underlying_Type of its non-limited
2490         view if it is already available.
2491         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
2492         including operators.
2493         (Write_Field26_Name): Add entry for Overridden_Operation
2494         (Overridden_Operation): New attribute of functions and procedures.
2496         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
2497         predefined position in the dispatch table for the primitive operations
2498         used in dispatching selects.
2499         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
2500         predefined primitive operations and replace it with
2501         Default_Prim_Op_Count.
2502         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
2503         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
2504         the names of the generated primitive operations used in dispatching
2505         selects.
2506         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
2507         case of abstract interface types. They will be inherit by the objects
2508         implementing the interface.
2509         (Make_DT): There is no need to inherit the dispatch table of the
2510         ancestor interface for the elaboration of abstract interface types.
2511         The dispatch table will be inherited by the object implementing the
2512         interface.
2513         (Copy_Secondary_DTs): Add documentation.
2514         (Validate_Position): Improve this static check in case of
2515         aliased subprograms because aliased subprograms must have
2516         the same position.
2517         (Init_Predefined_Interface_Primitives): New subprogram that initializes
2518         the entries associated with predefined primitives of all the secondary
2519         dispatch tables.
2520         (Build_Anonymous_Access_Type): Removed.
2521         (Expand_Interface_Actuals): With the previous cleanup there is no need
2522         to build an anonymous access type. This allows further cleanup in the
2523         code generated by the expander.
2524         (Expand_Interface_Conversion): If the actual is an access type then
2525         build an internal function to handle the displacement. If the actual
2526         is null this function returns null because no displacement is
2527         required; otherwise performs a type conversion that will be
2528         expanded in the code that returns the value of the displaced actual.
2529         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
2530         conversions that have no effect in the generated code because no
2531         displacement is required. Code cleanup; use local variables to
2532         avoid repeated calls to the subprogram directly_designated_type().
2534         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
2535         Classify the primitive operations used in dispatching selects as
2536         predefined.
2537         (Implements_Limited_Interface): Determine whether some type either
2538         directly implements a limited interface or extends a type that
2539         implements a limited interface.
2540         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
2541         (Expand_Subtype_From_Expr): Do not build actual subtype if the
2542         expression is limited.
2543         (Find_Interface_Tag): Add code to handle class-wide types and
2544         entities from the limited-view.
2546         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
2547         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
2548         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
2549         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
2550         Set_Prim_Op_Kind.
2552         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
2553         of procedure name or prefix that appears as a trigger in a triggering
2554         alternative.
2556         * uintp.ads: Introduce constants Uint_11 and Uint_13.
2558 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
2560         * s-tataat.adb, a-tasatt.adb:
2561         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
2563         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
2564         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
2565         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
2566         longer used.
2568 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
2569             Jose Ruiz  <ruiz@adacore.com>
2571         * s-taprop-vxworks.adb:
2572         Move with clauses outside Warnings Off now that dependent units are
2573         Preelaborate.
2574         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
2575         initialization of this unit.
2576         (Specific): Add new procedures Initialize and Delete so that this
2577         package can be used for VxWorks 5.x and 6.x
2578         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
2579         differences between VxWorks 5.x and 6.x
2580         Minor reformatting.
2581         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
2582         caller.
2583         Use only Preelaborate-compatible constructs.
2585         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
2586         Primitives.Operations.
2587         (Delete, Initialize): New procedures.
2589         * s-osinte-vxworks.adb: Body used to handle differences between
2590         VxWorks 5.x and 6.x
2591         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
2593         * s-osinte-vxworks.ads: Minor reformatting.
2594         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
2595         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
2596         and 6.
2597         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
2598         between Vxworks 5 and 6.
2599         (taskLock, taskUnlock): Removeed, no longer used.
2601         * adaint.c: The wait.h header is not located in the sys directory on
2602         VxWorks when using RTPs.
2603         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
2604         using RTPs.
2605         (__gnat_dup): dup is available on Vxworks when using RTPs.
2606         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
2608         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
2610         * expect.c: The wait.h header is not located in the sys directory on
2611         VxWorks when using RTPs.
2613 2005-09-01  Thomas Quinot  <quinot@adacore.com>
2615         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
2617         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
2619         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
2620         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
2621         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
2622         g-soccon-freebsd.ads: Add new constants:
2623          IP_MULTICAST_IF
2624          SO_RCVTIMEO/SO_SNDTIMEO
2625          IOV_MAX
2627         * gen-soccon.c:
2628         Move all target-specific file inclusions and macro definitions to
2629         gsocket.h, in order to ensure that any C code in socket.c will see a
2630         set of constants that is consistent with the contents of g-soccon.ads.
2632         * gsocket.h: Code imported from gen-soccon.c:
2633         Move all target-specific file inclusions and macro definitions to
2634         gsocket.h, in order to ensure that any C code in socket.c will see a set
2635         of constants that is consistent with the contents of g-soccon.ads.
2636         This change also makes gen-soccon self-contained (removing dependencies
2637         upon GCC internal headers).
2639         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
2640         iovecs at a time.
2641         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
2643         * socket.c: Minor reformatting.
2645 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
2646             Thomas Quinot  <quinot@adacore.com>
2648         * fname-sf.adb, mlib-tgt.ads,
2649         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
2650         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
2651         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
2652         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
2653         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
2654         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
2655         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
2656         makegpr.adb: Remove redundant use_clauses.
2658 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
2660         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
2661         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
2662         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
2663         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
2664         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
2665         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
2666         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
2667         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
2668         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
2669         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
2670         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
2671         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
2672         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
2673         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
2674         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
2675         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
2676         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
2677         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
2678         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
2679         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
2680         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
2681         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
2682         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
2683         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
2684         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
2685         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
2686         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
2687         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
2688         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
2689         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
2690         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
2691         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
2692         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
2693         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
2694         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
2695         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
2696         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
2697         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
2698         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
2699         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
2700         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
2701         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
2702         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
2703         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
2704         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
2705         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
2706         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
2707         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
2708         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
2709         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
2710         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
2711         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
2712         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
2713         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
2714         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
2715         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
2716         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
2717         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
2718         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
2719         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
2720         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
2721         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
2722         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
2723         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
2724         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
2725         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
2726         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
2727         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
2728         and always use the no parameter form for consistency.
2730         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
2732 2005-09-01  Robert Dewar  <dewar@adacore.com>
2734         * binde.adb: Minor reformatting
2735         (Find_Elab_Order): Output warning if -p used with static elab order
2737 2005-09-01  Robert Dewar  <dewar@adacore.com>
2739         * checks.adb (Check_Needed): New procedure, deals with removing checks
2740         based on analysis of short-circuited forms. Also generates warnings for
2741         improper use of non-short-circuited forms.
2742         Code clean ups.
2744 2005-09-01  Robert Dewar  <dewar@adacore.com>
2746         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
2747         with 'Valid tests.
2749 2005-09-01  Robert Dewar  <dewar@adacore.com>
2751         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
2752         spec.
2753         Implement new insertion char < (conditional warning)
2754         * errutil.adb, erroutc.adb: Implement new insertion char <
2755         (conditional warning).
2756         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
2757         (Error_Msg_Warn): New variable for < insertion char.
2758         * prj-nmsc.adb: Implement new errout insertion char < (conditional
2759         warning).
2760         (Check_For_Source): Change value of Source_Id only after the current
2761         source has been dealt with.
2763 2005-09-01  Robert Dewar  <dewar@adacore.com>
2764             Doug Rupp  <rupp@adacore.com>
2766         * exp_attr.adb: Handle vax fpt for 'Valid attribute
2767         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
2768         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
2769         (Valid_D, Valid_F, Valid_G): New functions
2771 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
2772             Hristian Kirtchev  <kirtchev@adacore.com>
2773             Javier Miranda  <miranda@adacore.com>
2775         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
2776         from object notation, the original node is unanalyzed and carries no
2777         semantic information, so that accessiblity checks must be performed on
2778         the type of the actual itself.
2779         (Expand_N_Subprogram_Declaration): Change last actual parameter for
2780         compatibility with Build_Protected_Sub_Specification.
2781         (Check_Overriding_Inherited_Interfaces): Add suport to handle
2782         overloaded primitives.
2783         (Register_Interface_DT_Entry): Use the new name of the formal
2784         the the calls to Expand_Interface_Thunk
2786         * exp_dbug.ads: Augment comments on encoding of protected types to
2787         include the generation of dispatching subprograms when the type
2788         implements at least one interface.
2790         * lib.ads: Extend information in Load_Stack to include whether a given
2791         load comes from a Limited_With_Clause.
2793         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
2794         whether a potential circularity is harmless, because it includes units
2795         loaded through a limited_with clause. Extends previous treatment which
2796         did not handle properly arbitrary combinations of limited and
2797         non-limited clauses.
2799 2005-09-01  Nicolas Setton  <setton@adacore.com>
2801         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
2802         to be encoded as typ___XBLU_lowerbound__upperbound instead of
2803         typ___XB_lowerbound__upperbound.
2805 2005-09-01  Thomas Quinot  <quinot@adacore.com>
2807         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
2808         dummy access formal for RACW/RAS TypeCode TSS.
2809         (Build_TypeCode_Call): Do not generate dummy null access actual for
2810         calls to the TypeCode TSS.
2812 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
2814         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
2815         fully qualified name, to distinguish instances with the same local name.
2817         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
2818         fully qualified.
2820 2005-09-01  Robert Dewar  <dewar@adacore.com>
2822         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
2823         packed arrays.
2825 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
2827         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
2828         (Free): New deallocation procedure for filter elements
2829         (Close): Deallocate any existing filter for the concerned connection
2831 2005-09-01  Laurent Pautet  <pautet@adacore.com>
2833         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
2834         position set is provided, we compute one in order to reduce the maximum
2835         length of the keys.  This computation first selects a character
2836         position between 1 and the minimum length of the keys in order to
2837         avoid reducing one of the keys to an empty string.
2838         (Initialize, Compute): When the ratio V to K is too low, the algorithm
2839         does not converge. The initialization procedure now comes with a
2840         maximum number of iterations such that when exceeded, an exception is
2841         raised in Compute. The user can initialize this ratio to another value
2842         and try again
2843         Reformating and updated headers.
2845 2005-09-01  Javier Miranda  <miranda@adacore.com>
2847         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
2848         that given an entity T creates and returns an Itype that duplicates the
2849         contents of T. The returned Itype has the null-exclusion
2850         attribute set to True, and its Etype attribute references T
2851         to keep the association between the two entities.
2852         Update copyright notice
2854         * sem_aggr.adb (Check_Can_Never_Be_Null,
2855         Aggregate_Constraint_Checks, Resolve_Aggregate,
2856         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
2858         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
2860 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
2861             Robert Dewar  <dewar@adacore.com>
2862             Hristian Kirtchev  <kirtchev@adacore.com>
2864         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
2865         Result_Definition.
2867         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
2868         function specs.
2869         Call Set_Result_Definition instead of Set_Subtype_Mark.
2870         (P_Subprogram_Specification): Add parsing of anonymous access result
2871         plus null exclusions. Call Set_Result_Definition instead of
2872         Set_Subtype_Mark.
2874         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
2875         (P_Access_Type_Definition): Add parsing for an anonymous access result
2876         subtype, plus parsing for null exclusions. Call Set_Result_Definition
2877         instead of Set_Subtype_Mark.
2879         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
2880         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
2881         (Result_Definition): New function for N_Function_Specifications.
2882         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
2883         N_Function_Specification.
2884         (Set_Null_Exclusion_Present): Allow this flag for
2885         N_Function_Specification.
2886         (Set_Result_Definition): New procedure for N_Function_Specifications.
2887         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
2888         and N_Function_Specification.
2890         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
2891         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
2892         Add support for LIMITED NEW for Ada 2005 AI-419
2893         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
2894         syntax for anonymous access results.
2895         Replace Subtype_Mark field by Result_Definition in
2896         N_Function_Specification and N_Access_Definition specs.
2897         Add Null_Exclusion_Present to spec of N_Function_Specification.
2898         (Result_Definition): New function for N_Function_Specification and
2899         N_Access_Function_Definition.
2900         (Set_Result_Definition): New procedure for N_Function_Specification and
2901         N_Access_Function_Definition.
2903         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
2904         Result_Definition for cases of N_Access_Function_Definition and
2905         N_Function_Specification.
2906         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
2908 2005-09-01  Vincent Celier  <celier@adacore.com>
2910         * lib-writ.adb: Update Copyright notice
2911         (Write_With_Lines): On platforms where file names are case-insensitive,
2912         record the file names in lower case.
2913         (Write_ALI): For D lines, on platforms where file names are
2914         case-insensitive, record the file names in lower case.
2916 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
2917             Emmanuel Briot  <briot@adacore.com>
2919         * lib-xref.adb (Output_Overridden_Op): Display information on
2920         overridden operation.
2922         * lib-xref.ads: Add documentation on overridden operations.
2924         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
2925         information.
2927         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
2928         overriding entity information.
2930 2005-09-01  Vincent Celier  <celier@adacore.com>
2932         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
2933         including those that are inherited.
2935 2005-09-01  Robert Dewar  <dewar@adacore.com>
2937         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
2939         * par-prag.adb: Implement new pragma Debug_Policy
2941         * sem_prag.adb Implement new pragma Debug_Policy
2942         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
2943         Component_Size attribute specification. Give warning for ignored pragma
2944         Pack.
2946         * snames.h, snames.ads, snames.adb: Introduce entries in
2947         Preset_Names for Name_Disp_Asynchronous_Select,
2948         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
2949         Name_Disp_Timed_Select.
2950         New pragma Debug_Policy
2952         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
2953         explicitly.
2954         Switch -gnata also sets Debug_Pragmas_Enabled
2956         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
2957         handle an explicit -gnata when compiling predefined files.
2959 2005-09-01  Vincent Celier  <celier@adacore.com>
2961         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
2962         directories of projects that have no Ada sources.
2964 2005-09-01  Robert Dewar  <dewar@adacore.com>
2966         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
2967         (makes a difference for wide characters)
2969         * widechar.adb, widechar.ads:
2970         Add Wide_Char_Byte_Count feature to count chars vs bytes
2972 2005-09-01  Thomas Quinot  <quinot@adacore.com>
2973             Ed Schonberg  <schonberg@adacore.com>
2974             Robert Dewar  <dewar@adacore.com>
2976         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
2977         'Address attribute reference with an overloaded prefix, use the
2978         location of the prefix (not the location of the attribute reference) as
2979         the error location.
2980         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
2981         a function renaming thereof, is a valid prefix for 'Size (where it is
2982         intepreted as a function call).
2983         (Statically_Denotes_Entity): New predicate to determine whether the
2984         prefix of an array attribute can be considered static.
2986         PR ada/9087
2987         (Eval_Attr): Fix failure to evaluate Component_Size for
2988         unconstrained arrays (resulted in wrong value in packed case, since
2989         back end cannot handle this case)
2991 2005-09-01  Robert Dewar  <dewar@adacore.com>
2993         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
2994         error msgs for most common cases.
2995         Use new errout insertion char < (conditional warning)
2997 2005-09-01  Javier Miranda  <miranda@adacore.com>
2998             Ed Schonberg  <schonberg@adacore.com>
3000         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
3001         become local to the whole package.
3002         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
3003         the package was already analyzed the new algorithm "replaces" the
3004         real entities by the shadow ones. This is required to ensure that
3005         the order of these entities in the homonym chains does not change;
3006         otherwise we can have undefined references at linking time because
3007         in case of conflicts the external name of the entities will have
3008         a suffix that depends on the order of the entities in the chain.
3009         (Remove_Limited_With_Clause): Complementary code that completes the
3010         new algorithm and replaces the shadow entities by the real ones.
3011         (Install_Limited_Withed_Unit): When unchaining entities before the
3012         installation of the shadow entities, only regular entities of the
3013         public part must be taken into account. This is required to
3014         keep this routine in synch with the work done by Remove_Limited_
3015         With_Clause
3016         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
3017         even if unit is analyzed, because the analysis of the unit is
3018         idempotent in any case, and the limited view of the unit may have to
3019         be installed for proper visibility.
3020         (Expand_Limited_With_Clause): Even if the unit in the implicit
3021         with_clause has been analyzed already, a limited view of the package
3022         must be built for the current context, if it does not exist yet.
3024 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
3025             Javier Miranda  <miranda@adacore.com>
3026             Gary Dismukes  <dismukes@adacore.com>
3028         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
3029         defining entity for the instance body, make a new defining identifier
3030         rather than copying the entity of the spec, to prevent accidental
3031         sharing of the entity list.
3032         (Check_Private_View): When exchanging views of private types, build the
3033         list of exchanged views as a stack, to ensure that on exit the exchanges
3034         are undone in the proper order.
3035         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
3036         Restore the compilation environment in case of instantiation_error.
3037         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
3038         for an anonymous access result.
3039         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
3040         (Formal_Entity): Handle properly the case of a formal package that
3041         denotes a generic package renaming.
3043 2005-09-01  Thomas Quinot  <quinot@adacore.com>
3045         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
3046         clause if the array aggregate is surrounded by parentheses.
3048 2005-09-01  Cyrille Comar  <comar@adacore.com>
3049             Gary Dismukes  <dismukes@adacore.com>
3050             Ed Schonberg  <schonberg@adacore.com>
3051             Javier Miranda  <miranda@adacore.com>
3053         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
3054         underlying type
3055         to check if a type is Constrained in cases related to code generation
3056         (rather than semantic checking) since otherwise we do not generate
3057         similar code for mutable private types depending if their
3058         discriminants are visible or not.
3059         (Check_Abstract_Overriding): Do not complain about failure to override
3060         the primitive operations used in dispatching selects since they will
3061         always be overriden at the freeze point of the type.
3062         (Access_Definition): Separate out handling for resetting the scope
3063         of an anonymous access function result type. Retrieve the scope
3064         of the associated function rather than using Current_Scope, which
3065         does not have a consistent value (depends on whether we're in the
3066         middle of analyzing formal parameters). Add ??? comment about
3067         finding a cleaner way to handle the special cases of scope setting.
3068         (Process_Incomplete_Dependents): A protected operation is never a
3069         dispatching operation (only its wrapper may be).
3070         (Build_Derived_Record_Type): In case of tagged private types that
3071         implement interfaces add derivation of predefined primitive
3072         operations.
3073         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
3074         by two parameters that are used in case of derivation from abstract
3075         interface types: No_Predefined_Prims is used to avoid the derivation
3076         of predefined primitives from the interface, and Predefined
3077         Prims_Only is used to complete the derivation predefined primitives
3078         in case of private tagged types implementing interfaces.
3079         Fix typo in comments
3080         (Find_Interface_In_Descendant): Protect the frontend against
3081         wrong code with large circularity chains.
3082         (Is_Private_Overriding): Add support for entities overriding interface
3083         subprograms. The test failed because Entities associated with overriden
3084         interface subprograms are always marked as hidden (and used to build
3085         the secondary dispatch table); in this case the overriden entity is
3086         available through the field abstract_interface_alias (cf. override_
3087         dispatching_operation)
3088         (Access_Definition): Set the scope of the type to Current_Scope for the
3089         case of a function with an anonymous access result type.
3090         (Access_Subprogram_Declaration): Handle creation of the type entity for
3091         an access-to-function type with an anonymous access result.
3092         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
3093         in handling for N_Access_Function_Definition.
3094         (Analyze_Subtype_Declaration): Modify the text of error message.
3095         (Derived_Type_Declaration): Modify the text of error message.
3096         (Process_Subtype): Modify the text of error message plus cleanup
3097         of one redundant error message.
3098         (Analyze_Component_Declaration): Code cleanup.
3099         (Analyze_Object_Declaration): Code cleanup.
3100         (Analyze_Subtype_Declaration): Propagate the null-exclusion
3101         attribute in case of access types. Code cleanup.
3102         (Array_Type_Declaration): Code cleanup.
3103         (Process_Discriminants): Create the new null-excluding itype
3104         if required. Code cleanup.
3105         (Process_Subtype): Create the new null-excluding itype if
3106         required. Code cleanup.
3107         (Build_Derived_Record_Type): Code cleanup to avoid calling
3108         twice the subprogram derive_subprograms in case of private
3109         types that implement interfaces. In this particular case the
3110         subprogram Complete_Subprograms_Derivation already does the
3111         job associated with the second call.
3113         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
3114         conversion to the full view when generating an operation for a
3115         discriminant whose type may currently be private.
3117 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
3118             Javier Miranda  <miranda@adacore.com>
3120         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
3121         V (Obj.F), the rewriting does not involve the indexed component, but
3122         only the selected component itself.
3123         Do not apply the transformation if the analyzed node is an actual of a
3124         call to another subprogram.
3125         (Complete_Object_Operation): Retain the entity of the
3126         dispatching operation in the selector of the rewritten node. The
3127         entity will be used in the expansion of dispatching selects.
3128         (Analyze_One_Call): Improve location of the error message associated
3129         with interface.
3130         (Analyze_Selected_Component): No need to resolve prefix when it is a
3131         function call, resolution is done when parent node is resolved, as
3132         usual.
3133         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
3134         when attempting to resolve a call transformed from its object notation.
3135         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
3136         of the argument list for each interpretation of the operation.
3137         (Try_Object_Operation): The designated type of an access parameter may
3138         be an incomplete type obtained through a limited_with clause, in which
3139         case the primitive operations of the type are retrieved from its full
3140         view.
3141         (Analyze_Call): If this is an indirect call, and the return type of the
3142         access_to_subprogram is incomplete, use its full view if available.
3144 2005-09-01  Javier Miranda  <miranda@adacore.com>
3145             Gary Dismukes  <dismukes@adacore.com>
3147         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
3148         access types the null-exclusion and access-to-constant attributes must
3149         also match.
3150         (Analyze_Return_Statement): When the result type is an anonymous access
3151         type, apply a conversion of the return expression to the access type
3152         to ensure that appropriate accessibility checks are performed.
3153         (Analyze_Return_Type): For the case of an anonymous access result type,
3154         generate the Itype and set Is_Local_Anonymous_Access on the type.
3155         Add ??? placeholder for check to disallow returning a limited object
3156         in Ada 2005 unless it's an aggregate or a result of a function call.
3157         Change calls from Subtype_Mark to Result_Definition.
3158         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
3159         Result_Definition in call to Make_Function_Specification.
3160         (Build_Body_To_Inline): Change Set_Subtype_Mark to
3161         Set_Result_Definition.
3162         (Make_Inequality_Operator): Change formal Subtype_Mark to
3163         Result_Definition in call to Make_Function_Specification.
3164         (Process_Formals): Create the new null-excluding itype if required.
3165         (New_Overloaded_Entity): For an entity overriding an interface primitive
3166         check if the entity also covers other abstract subprograms in the same
3167         scope. This is required to handle the general case, that is, overriding
3168         other interface primitives and overriding abstract subprograms inherited
3169         from some abstract ancestor type.
3170         (New_Overloaded_Entity): For an overriding entity that comes from
3171         source, note the operation that it overrides.
3172         (Check_Conformance, Type_Conformant): Addition of one new formal
3173         to skip controlling formals in the analysis. This is used to
3174         handle overloading of abstract interfaces.
3175         (Base_Types_Match): Add missing case for types imported from
3176         limited-with clauses
3177         (New_Overloaded_Entity): Add barrier to protect the use of
3178         the "alias" attribute.
3180 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
3182         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
3183         verify that the procedure and the entry are mode conformant.
3184         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
3185         as a different operator, which is often a cut-and-paste error.
3187 2005-09-01  Javier Miranda  <miranda@adacore.com>
3188             Ed Schonberg  <schonberg@adacore.com>
3190         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
3191         used in controlling parameters exclude null because it is necessary to
3192         read the tag to dispatch, and null has no tag.
3193         (Override_Dispatching_Operation): If the previous operation is inherited
3194         from an interface, it becomes hidden  and does not participate in later
3195         name resolution.
3197 2005-09-01  Javier Miranda  <miranda@adacore.com>
3198             Ed Schonberg  <schonberg@adacore.com>
3199             Gary Dismukes  <dismukes@adacore.com>
3201         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
3202         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
3203         the expander will generate the corresponding run-time check to evaluate
3204         the expression.
3205         (Resolve_Call): Check for legal type of procedure name or prefix that
3206         appears as a trigger in a triggering alternative.
3207         (Valid_Conversion): If expression is ambiguous and the context involves
3208         an extension of System, remove System.Address interpretations.
3209         (Resolve_Qualified_Expression): Reject the case of a specific-type
3210         qualification applied to a class-wide argument. Enhance comment
3211         to explain checking of Original_Node.
3212         (Resolve_Type_Conversion): The location of the error message was not
3213         general enough to handle the general case and hence it has been removed.
3214         In addition, this patch improves the text of the message.
3215         (Resolve_Type_Conversion): Add missing support for access to interface
3216         types.
3217         (Resolve_Type_Conversion): If the target is a class-wide interface type,
3218         do not expand if the expression is the actual in a call, because proper
3219         expansion will take place when the call itself is expanded.
3220         (Resolve_Allocator): If the context is an unchecked conversion, the
3221         allocator inherits its storage pool, if any, from the target type of
3222         the conversion.
3224 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
3225             Javier Miranda  <miranda@adacore.com>
3227         * sem_type.adb (Add_One_Interp): If a candidate operation is an
3228         inherited interface operation that has an implementation, use the
3229         implementation to avoid spurious ambiguities.
3230         (Interface_Present_In_Ancestor): In case of concurrent types we can't
3231         use the Corresponding_Record_Typ attribute to look for the interface
3232         because it is set by the expander (and hence it is not always
3233         available). For this reason we traverse the list of interfaces
3234         (available in the parent of the concurrent type).
3235         (Interface_Present_In_Ancestor): Handle entities from the limited view
3237 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
3239         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
3240         from the list of required components.
3241         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
3242         primitive procedure of a limited interface with a controlling first
3243         parameter.
3244         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
3245         of an entry.
3246         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
3247         capture if it is generated in the second operand of a short-circuit
3248         operation.
3249         Do not capture values for variables with address clauses.
3250         (Is_Object_Reference): Treat a function call as an object reference only
3251         if its type is not Standard_Void_Type.
3253 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
3255         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
3256         to a variable that is statically known to be constant.
3258 2005-09-01  Geert Bosch  <bosch@adacore.com>
3259             Robert Dewar  <dewar@adacore.com>
3261         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
3262         (VAXGF_Safe_First): Idem.
3264 2005-09-01  Robert Dewar  <dewar@adacore.com>
3265             Arnaud Charlet  <charlet@adacore.com>
3267         * g-dirope.ads: Minor reformatting
3268         Document that bounds of result of Base_Name match the input index
3269         positions.
3270         Add documentation on environment variable syntax for Expand_Path
3272         * gnat_ugn.texi: Update documentation to include mention of -m switches
3273         Document new treatment of wide characters in max line length
3274         style check.
3275         Remove -gnatL/-gnatZ switches, no longer used.
3276         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
3277         of -gnata switch.
3279         * gnat_rm.texi: Add doc for two argument form of pragma
3280         Float_Representation.
3281         Add documentation for pragma No_Strict_Aliasing
3282         Add note that explicit component clause overrides pragma Pack.
3283         Add documentation of pragma Debug_Policy
3285 2005-09-01  Matthew Heaney  <heaney@adacore.com>
3287         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
3288         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
3289         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
3290         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
3291         draft (Draft 13, August 2005) of Ada Amendment 1.
3293 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
3295         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
3296         Note that the platform-specific version of g-soccon.ads for VMS is now
3297         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
3298         really is a package spec).
3299         Replace s-taspri-linux.ads by s-taspri-posix.ads
3300         Remove references to s-mastop-x86.adb
3302         * system-vxworks-xscale.ads: Removed, no longer used.
3303         * s-vxwork-xscale.ads: Removed, no longer used.
3305 2005-09-01  Robert Dewar  <dewar@adacore.com>
3307         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
3308         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
3309         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
3310         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
3311         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
3312         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
3313         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
3314         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
3315         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
3316         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
3317         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
3318         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
3319         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
3320         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
3321         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
3322         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
3323         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
3324         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
3325         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
3326         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
3327         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
3329 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
3331         PR ada/23187
3332         * adaint.c
3333         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
3335 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
3336             Doug Rupp  <rupp@adacore.com>
3338         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
3339         when needed.
3340         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
3341         this code in the GNAT run-time.
3343         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
3345         PR ada/21053
3346         * init.c (__gnat_error_handler [many]): Mark "msg" as const
3347         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
3349         (__gnat_inside_elab_final_code): Moved here from
3350         Standard_Library and only defined for the compiler.
3351         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
3352         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
3353         using RTPs because directly vectored Interrupt routines are not
3354         supported on this configuration.
3355         (getpid): Do not redefine this function on VxWorks when using RTPs
3356         because this primitive is well supported by the RTP libraries.
3357         (copy_msg): Correct the code that checks for buffer overflow.
3358         Discovered during code reading.
3360 2005-08-29  Olivier Hainque  <hainque@adacore.com>
3362         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
3363         a library level mutable variable with an initializer, tell
3364         build_allocator to ignore the initializer's size. It may not be large
3365         enough for all the values that might be assigned to the variable later
3366         on.
3368 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
3369             Eric Botcazou  <ebotcazou@adacore.com>
3371         * trans.c: Protect < in error msg with quote
3372         Replace GCC_ZCX by Back_End_Exceptions.
3373         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
3374         has been sufficiently aligned in the record.
3376 2005-08-15  James E. Wilson  <wilson@specifix.com>
3378         * system-linux-alpha.ads: Change ia64 to alpha.
3380 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
3382         * decl.c, utils.c: Fix comment typos.
3384 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
3386         * decl.c, init.c, initialize.c: Fix comment typos.
3388 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
3390         Make CONSTRUCTOR use VEC to store initializers.
3391         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
3392         CONSTRUCTOR_ELTS.
3393         * trans.c (extract_values): Likewise.
3394         * utils.c (convert, remove_conversions): Likewise.
3395         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
3396         gnat_build_constructor): Likewise.
3398 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
3400         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
3401         DECL_SECTION_NAME.
3402         (compare_field_bitpos): Likewise.
3404 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
3406         * utils.c (create_var_decl): Only set DECL_COMMON on
3407         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
3408         VAR_OR_FUNCTION_DECL_P.
3410 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
3412         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
3413         removed.
3415 2005-07-07  Pascal Obry  <obry@adacore.com>
3417         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
3418         returned type on Windows.
3420         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
3421         routine.
3423         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
3424         exception in this case.
3425         Simplify the code as "Image (Image'Range)" = "Image".
3427 2005-07-07  Vincent Celier  <celier@adacore.com>
3429         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
3430         the destructor/constructor attributes for <lib>final/<lib>init.
3432         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
3434 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
3436         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
3437         type if the parameter is not passed by copy but reference by default.
3439 2005-07-07  Javier Miranda  <miranda@adacore.com>
3441         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
3442         Reimplementation of the support for abstract interface types in order
3443         to leave the code more clear and easy to maintain.
3445         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
3446         abstract interface types in order to leave the code clearer and easier
3447         to maintain.
3449         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
3450         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
3451         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
3452         appropriate entry of the secondary dispatch table.
3453         (Make_DT): Add code to inherit the secondary dispatch tables of
3454         the ancestors.
3456         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
3457         implementing both functionalities by means of a common routine, each
3458         routine has its own code.
3460 2005-07-07  Javier Miranda  <miranda@adacore.com>
3462         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
3464         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
3465         types:
3466         --
3467           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3468         --
3470         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
3471         use of tag incomplete types.
3473         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
3474         give support to tagged incomplete types.
3476         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
3477         expression is a discriminant reference and its type is private, as can
3478         happen within a stream operation for a mutable record, use the full
3479         view of the type to resolve the case alternatives.
3480         (Analyze_Assignment): Check wrong dereference of incomplete types.
3482         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
3483         types.
3485         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
3486         incomplete types.
3488         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
3489         N_Incomplete_Type_Declaration nodes.
3491         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
3492         Tag_Present to give support to tagged incomplete types:
3493         --
3494           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3495         --
3497 2005-07-07  Olivier Hainque  <hainque@adacore.com>
3499         PR ada/22301
3501         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
3502         definitions for the Unwind wrappers in the compiler case.
3504 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
3505             Javier Miranda  <miranda@adacore.com>
3507         * par-load.adb (Load): If a child unit is loaded through a limited_with
3508         clause, each parent must be loaded as a limited unit as well.
3510         * sem_ch10.adb (Previous_Withed_Unit): Better name for
3511         Check_Withed_Unit. Return true if there is a previous with_clause for
3512         this unit, whether limited or not.
3513         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
3514         the current unit.
3515         (Is_Visible_Through_Renamings): New local subprogram of install_limited
3516         _withed_unit that checks if some package installed through normal with
3517         clauses has a renaming declaration of package whose limited-view is
3518         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
3519         of the current Draft document for Ada 2005.
3520         (Analyze_Context): Complete the list of compilation units that
3521         are allowed to contain limited-with clauses. It also contains
3522         checks that were previously done by Install_Limited_Context_Clauses.
3523         This makes the code more clear and easy to maintain.
3524         (Expand_Limited_With_Clause) It is now a local subprogram of
3525         Install_Limited_Context_Clauses, and contains the code that adds
3526         the implicit limited-with clauses for parents of child units.
3527         This functionality was prevously done by Analyze_Context.
3529         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
3530         incomplete type.
3532         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
3533         been erroneously named in a limited-with clause of its own context.
3534         In this case the error has been previously notified by Analyze_Context.
3536 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
3538         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
3539         generic package that contains local declarations with the same name.
3540         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
3542 2005-07-07  Bernard Banner  <banner@adacore.com>
3544         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
3545         ia64 platform only on platforms that you the GCC unwind library
3546         rather than the system unwind library.
3548 2005-07-07  Thomas Quinot  <quinot@adacore.com>
3550         * expect.c: Minor reformatting
3552 2005-07-07  Sergey Rybin  <rybin@adacore.com>
3554         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
3555         --no-separate-is
3557         * gnat_ugn.texi: Add description for new gnatpp option
3558         (--no-separate-is)
3560 2005-07-04  Thomas Quinot  <quinot@adacore.com>
3562         * g-expect-vms.adb, g-expect.ads, g-expect.adb
3563         (Get_Command_Output): New subprogram to launch a process and get its
3564         standard output as a string.
3566 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
3567             Olivier Hainque  <hainque@adacore.com>
3569         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
3570         fetch a code-range descriptor associated with the machine state. On
3571         failure set the machine state's PC to 0; on success, pass the
3572         descriptor to exc_virtual_unwind.
3574         * init.c (Tru64 section): New function __gnat_set_code_loc.
3576 2005-07-04  Vincent Celier  <celier@adacore.com>
3578         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3579         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
3580         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
3581         Remove all auto-initialization code, as this is now done through the
3582         constructor mechanism.
3584         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
3585         __gnat_sals_init_using_constructors): New functions.
3587         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
3588         Linker_Constructor and Linker_Destructor when switch -a is used.
3590         * bindusg.adb: Add line for new switch -a
3592         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
3593         (Gnatbind): When switch -a is used, check if it is allowed
3595         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
3597 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
3599         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
3600         This prevents us from hitting a limitation during the debug info
3601         generation when using stabs.
3602         (Prims_Ptr): Likewise.
3604 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
3605             Ed Schonberg  <schonberg@adacore.com>
3606             Javier Miranda  <miranda@adacore.com>
3608         * checks.adb (Null_Exclusion_Static_Checks): In the case of
3609         N_Object_Declaration, only perform the checks if the Object_Definition
3610         is not an Access_Definition.
3612         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
3613         where the parent of an the access definition is an N_Object_Declaration
3614         when determining the Associated_Node_For_Itype and scope of an
3615         anonymous access-to-subprogram type.
3617         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
3618         Corresponding_Spec on the body created for a null procedure. Add ???
3619         comment. Remove New_Copy_Tree call on body argument to
3620         Set_Body_To_Inline.
3622         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
3623         discriminants, use the type of the actual as well, because the
3624         discriminants may be read by the called subprogram.
3626         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
3627         access type we do not need to handle non-limited views.
3628         (Build_Derived_Record_Type): Additional check to check that in case of
3629         private types, interfaces are only allowed in private extensions.
3631 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
3633         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
3634         <Pragma_Linker_Destructor>: Likewise.
3636         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
3637         Pragma_Linker_Destructor.
3639         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
3640         ATTR_LINK_DESTRUCTOR.
3641         (static_ctors, static_dtors): New variables.
3643         * misc.c (gnat_expand_body): Output current function as constructor
3644         and destructor if requested.
3646         * par-prag.adb: Add processing for pragma Linker_Constructor and
3647         Linker_Destructor.
3649         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
3650         extracted from Check_Interrupt_Or_Attach_Handler.
3651         (Check_Interrupt_Or_Attach_Handler): Invoke it.
3652         Implement pragma Linker_Constructor and Linker_Destructor with the
3653         help of Find_Unique_Parameterless_Procedure.
3654         Replace Name_Alias with Name_Target for pragma Linker_Alias.
3656         * snames.h, snames.ads, snames.adb:
3657         Add Name_Linker_Constructor and Name_Linker_Destructor.
3658         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
3659         * snames.adb: Remove Name_Alias.
3661         * trans.c: Include cgraph.h.
3662         (build_global_cdtor): New function.
3663         (Compilation_Unit_to_gnu): Build global constructor and destructor if
3664         needed.
3665         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
3666         of objects too.
3667         (addressable_p) <COMPONENT_REF>: Unconditionally test
3668         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
3670         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
3671         variable if it is external.
3673         (static_ctors, static_dtors): New global variables.
3674         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
3675         <ATTR_LINK_DESTRUCTOR>: Likewise.
3676         (end_subprog_body): Chain function as constructor and destructor
3677         if requested.
3679         * exp_util.adb (Force_Evaluation): Unconditionally invoke
3680         Remove_Side_Effects with Variable_Ref set to true.
3681         (Remove_Side_Effects): Handle scalar types first. Use a renaming
3682         for non-scalar types even if Variable_Ref is true and for class-wide
3683         expressions.
3685 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
3687         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
3688         to prevent spurious warnings.
3690 2005-07-04  Thomas Quinot  <quinot@adacore.com>
3692         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
3693         Itypes. Itypes are really unexpected there.
3694         (Build_TypeCode_Function): Generalise special processing for Itypes to
3695         handle the case of numeric implicit base types as well as enumerated
3696         ones.
3698 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
3700         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
3701         controlled, indicate the expected type of the dereference that is
3702         created for the call to Deep_Finalize, to prevent spurious errors when
3703         the designated type is private and completed with a derivation from
3704         another private type.
3706 2005-07-04  Vincent Celier  <celier@adacore.com>
3708         * make.adb (Change_To_Object_Directory): When unable to change the
3709         current dir to the object directory, output the full path of the
3710         directory.
3712 2005-07-04  Matthew Gingell  <gingell@adacore.com>
3714         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
3716         * indepsw-linux.adb: Replace by...
3718         * indepsw-gnu.adb: ...this new file
3720 2005-07-04  Vincent Celier  <celier@adacore.com>
3722         * mlib-prj.adb (Auto_Initialize): New constant String
3723         (SALs_Use_Constructors): New Boolean function
3724         (Build_Library): Call gnatbind with Auto_Initialize switch when
3725         SALs_Use_Constructors returns True.
3727         * mlib-tgt.ads: Minor reformatting
3729         * mlib-utl.ads: Minor reformatting
3731         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
3733 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
3735         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
3736         single protected declarations can have an interface list.
3737         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
3738         with seriously malformed entry declarations, and lead to compilation
3739         abandoned messages.
3741 2005-07-04  Javier Miranda  <miranda@adacore.com>
3743         * par-load.adb: Load the context items in two rounds.
3745 2005-07-04  Robert Dewar  <dewar@adacore.com>
3747         * scng.adb: Do not consider Mod used as an attribute to be a keyword
3749 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
3750             Javier Miranda  <miranda@adacore.com>
3752         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
3753         type extension needs a limited view.
3754         Remove previous restriction on private types available through the
3755         limited-view (only tagged private types were previously allowed).
3756         (Install_Withed_Unit): In the code that implements the
3757         legality rule given in AI-377, exclude a child unit with the name
3758         Standard, because it is a homonym of the Standard environment package.
3760 2005-07-04  Thomas Quinot  <quinot@adacore.com>
3762         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
3763         overloaded function call, carry interpretations from the original tree
3764         to the copy.
3766 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
3768         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
3769         types check whether some designated type is a limited view, and use
3770         the non-limited view if available.
3772 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
3774         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
3775         constraint of full view of a private view T1 if present, when T2 is a
3776         discriminated full view.
3778 2005-07-04  Thomas Quinot  <quinot@adacore.com>
3780         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
3781         actual that is a view conversion of a bit packed array reference.
3783 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
3785         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
3786         present before checking whether an interface type covers a synchronized
3787         type.
3789 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
3791         * sem_util.adb (Is_Object_Reference): An indexed or selected component
3792         whose prefix is an implicit dereference is an object reference. Removes
3793         spurious errors when compiling with -gnatc.
3795 2005-07-04  Robert Dewar  <dewar@adacore.com>
3797         PR ada/22039
3799         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
3801 2005-07-04  Matthew Gingell  <gingell@adacore.com>
3803         * tracebak.c: Enable tracebacks on ia64 platforms
3805 2005-07-04  Vincent Celier  <celier@adacore.com>
3807         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
3808         the GNAT BIND command, as gnatbind accepts multiples ALI files with
3809         the -L or -n switches.
3811 2005-07-04  Vincent Celier  <celier@adacore.com>
3813         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
3814         correctly computed and the main project data is not modified while
3815         doing so.
3816         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
3817         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
3818         c++linker as this does not work on some platforms.
3820 2005-07-04  Matthew Heaney  <heaney@adacore.com>
3822         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
3823         was changed.
3824         * a-coinve.adb: Perform constraint checks explicitly.
3826 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3827             Thomas Quinot  <quinot@adacore.com>
3829         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
3830         new target gen-soccon.
3832 2005-07-04  Robert Dewar  <dewar@adacore.com>
3834         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
3836 2005-07-04  Thomas Quinot  <quinot@adacore.com>
3838         * g-socket.ads (Check_Selector): Minor rewording of comment.
3840 2005-07-04  Vincent Celier  <celier@adacore.com>
3842         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
3844 2005-07-04  Thomas Quinot  <quinot@adacore.com>
3846         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
3848 2005-07-04  Sergey Rybin  <rybin@adacore.com>
3850         * gnat_ugn.texi: Add description of --eol gnatpp option
3852 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
3853             Thomas Quinot  <quinot@adacore.com>
3855         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
3856         if the user wants all calls of a subprogram to be flagged,
3857         independently of whether they are made from within the same unit or
3858         another unit.
3859         Mention restriction for pragma Linker_Alias on some platforms.
3860         Document pragma Linker_Constructor and Linker_Destructor.
3861         Rewrite documentation of Weak_External, Linker_Section and
3862         Linker_Alias pragmas.
3864 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
3866         * s-stausa.ads, s-stausa.adb: New files.
3868 2005-06-30  Kelley Cook
3870         * all files:  Update FSF address in copyright headers.
3871         * gen-soccon.co (main): Output new FSF address in generated files.
3873 2005-06-28  Paul Brook  <paul@codesourcery.com>
3875         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
3877 2005-06-14  Olivier Hainque  <hainque@adacore.com>
3878             Eric Botcazou  <ebotcazou@adacore.com>
3880         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
3881         exc_unwind, now that we are generating proper .debug_frame output for
3882         that target.
3884         * tracebak.c: Remove the mips-irix section, as we are now using the
3885         s-mastop based unwinder again.
3886         Under SPARC/Solaris, take into account the stack bias to compute the
3887         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
3888         ABI.
3890 2005-06-14  Doug Rupp  <rupp@adacore.com>
3892         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
3894         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
3896 2005-06-14  Pascal Obry  <obry@adacore.com>
3898         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
3899         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
3900         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
3901         package name).
3903         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
3904         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
3905         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
3906         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
3907         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
3908         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
3909         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
3910         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
3911         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
3912         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
3913         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
3914         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
3915         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
3916         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
3917         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
3918         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
3919         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
3920         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
3921         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
3922         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
3923         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
3924         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
3925         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
3926         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
3927         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
3928         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
3929         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
3930         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
3931         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
3932         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
3933         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
3934         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
3935         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
3936         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
3937         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
3938         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
3939         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
3940         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
3941         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
3942         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
3943         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
3944         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
3945         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
3946         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
3947         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
3948         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
3949         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
3950         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
3951         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
3952         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
3953         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
3954         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
3955         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
3956         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
3957         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
3958         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
3959         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
3960         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
3961         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
3962         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
3963         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
3964         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
3965         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
3966         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
3967         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
3968         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
3969         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
3970         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
3971         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
3972         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
3973         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
3974         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
3975         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
3976         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
3977         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
3978         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
3979         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
3980         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
3981         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
3982         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
3983         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
3984         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
3985         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
3986         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
3987         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
3988         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
3989         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
3990         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
3991         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
3992         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
3993         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
3994         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
3995         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
3996         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
3997         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
3998         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
3999         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
4000         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
4001         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
4002         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
4003         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
4004         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
4005         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
4006         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
4007         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
4008         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
4009         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
4010         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
4011         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
4012         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
4013         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
4014         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
4015         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
4016         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
4017         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
4018         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
4019         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
4020         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
4021         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
4022         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
4023         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
4024         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
4025         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
4026         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
4027         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
4028         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
4029         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
4030         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
4031         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
4032         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
4033         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
4034         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
4035         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
4037 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
4038             Arnaud Charlet  <charlet@adacore.com>
4040         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
4041         longer protected objects. They have been replaced by lower-level
4042         suspension objects made up by a mutex and a condition variable (or
4043         their equivalent given a particular OS) plus some internal data to
4044         reflect the state of the suspension object.
4045         (Initialize, Finalize): Add this initialization procedure for
4046         Suspension_Object, which is a controlled type.
4047         (Finalize): Add the finalization procedure for Suspension_Object,
4048         which is a controlled type.
4050         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
4051         Ada.Synchronous_Task_Control because there is no longer a need for a
4052         VxWorks specific version of this package. Target dependencies
4053         has been moved to System.Task_Primitives.Operations.
4055         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
4056         longer needed.
4057         (InitializeCriticalSection, EnterCriticalSection,
4058         LeaveCriticalSection, DeleteCriticalSection): Replace the type
4059         pCriticalSection by an anonymous access type so that we avoid problems
4060         of accessibility to local objects.
4062         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
4063         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
4064         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
4065         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
4066         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
4067         set the environment task mask here.
4068         (Current_State): Add this function that returns the state of the
4069         suspension object.
4070         (Set_False): Add this procedure that sets the state of the suspension
4071         object to False.
4072         (Set_True): Add this procedure that sets the state of the suspension
4073         object to True, releasing the task that was suspended, if any.
4074         (Suspend_Until_True): Add this procedure that blocks the calling task
4075         until the state of the object is True. Program_Error is raised if
4076         another task is already waiting on that suspension object.
4077         (Initialize): Add this procedure for initializing the suspension
4078         object. It initializes the mutex and the condition variable which are
4079         used for synchronization and queuing, and it sets the internal state
4080         to False.
4081         (Finalize): Add this procedure for finalizing the suspension object,
4082         destroying the mutex and the condition variable.
4084         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
4085         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
4086         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
4087         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
4088         which provides a low-level abstraction (using operating system
4089         primitives) for Ada.Synchronous_Task_Control.
4090         This object is made up by a mutex (for ensuring mutual exclusion), a
4091         condition variable (for queuing threads until the condition is
4092         signaled), a Boolean (State) indicating whether the object is open,
4093         and a Boolean (Waiting) reflecting whether there is a task already
4094         suspended on this object.
4096         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
4097         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
4098         s-intman-vms.ads, s-intman-mingw.adb,
4099         (Initialize_Interrupts): Removed, no longer used.
4101         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
4102         (Setup_Interrupt_Mask): New procedure.
4104         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
4106         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
4108         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
4109         this is no longer done in the body of s-taprop
4110         (Server_Task): Explicitely test for Pending_Action in case
4111         System.Parameters.No_Abort is True.
4113         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
4114         is no longer done in the body of s-taprop
4116 2005-06-14  Robert Dewar  <dewar@adacore.com>
4118         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
4119         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
4120         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
4121         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
4122         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
4123         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
4124         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
4125         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
4126         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
4127         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
4128         system-linux-hppa.ads, system-vms_64.ads,
4129         system-vxworks-alpha.ads: Minor comment update for
4130         AI-362 (unit is Pure).
4132         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
4133         Add pragma Pure_05 for AI-362
4134         Make remaining conversion functions obsolescent in Ada 95
4136         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
4137         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
4138         Add entries for a-wichun and a-zchuni
4139         Add a-widcha a-zchara for AI-395
4140         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
4142         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
4143         Add entries for a-wichun.o and a-zchuni.o
4144         Entries for a-widcha.o and a-zchara.o
4145         Add entry for a-chacon.o
4147         * a-ztenau.adb: Add with of Ada.Characters.Conversions
4149         * a-chacon.ads, a-chacon.adb: New files.
4151         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
4152         categorization violations.
4154         * a-strmap.ads: Add pragma Pure_05 for AI-362
4155         * a-strmap.ads: Add note on implicit categorization for AI-362
4157         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
4159         * par-prag.adb: Dummy entry for pragma Persistent_BSS
4160         Set Ada_Version_Explicit, for implementation of AI-362
4161         Add processing for pragma Pure_05 and Preelaborate_05
4162         Add entry for Assertion_Policy pragma
4164         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
4165         when needed for proper processing of categorization stuff
4167         * sem_cat.adb:
4168         For several cases, make errors in preealborate units warnings,
4169         instead of errors, if GNAT_Mode is set. For AI-362.
4171         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
4172         preelaborate unit is now warning if in GNAT mode
4174         * s-stoele.ads: Document AI-362 for pragma preelaborate
4176 2005-06-14  Doug Rupp  <rupp@adacore.com>
4178         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
4179         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
4180         Default_Exception_Msg_Max_Length: new parameter.
4182         * a-except.ads: (Exception_Msg_Max_Length): Set to
4183         System.Parameters.Default_Exception_Msg_Max_Length
4184         Add pragma Preelaborate_05 for AI-362
4185         Add warnings off to allow categorization violations for AI-362
4187 2005-06-14  Vincent Celier  <celier@adacore.com>
4189         * gnatsym.adb: Adapt to modification of package Symbols: procedure
4190         Process is now in package Processing.
4192         * symbols.ads, symbols.adb:
4193         (Processing): New package, containing procedure Process
4195         * symbols-vms-alpha.adb:
4196         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
4198         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
4199         symbols-processing-vms-ia64.adb: New files.
4201 2005-06-14  Pascal Obry  <obry@adacore.com>
4203         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
4204         implementation. This new version generates the proper DllMain routine
4205         to initialize the SAL. The DllMain is generated in Ada and compiled
4206         before being added as option to the library build command.
4208 2005-06-14  Doug Rupp  <rupp@adacore.com>
4209             Pascal Obry  <obry@adacore.com>
4211         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
4212         call to decc$translate_vms.
4213         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
4214         need to remove those quotes before catenating the filename.
4215         (__gnat_locate_exec_on_path): improvements to the Win32 section:
4216         * avoid allocating the memory twice for better efficiency;
4217         * allocate 32K buffer for environment expansion as suggested by MSDN;
4218         * prepend ".;" to the path so that current directory is searched too.
4220 2005-06-14  Robert Dewar  <dewar@adacore.com>
4222         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
4223         instead of raising CE (AI-241)
4224         Add warnings off to allow categorization violations for AI-362
4226 2005-06-14  Robert Dewar  <dewar@adacore.com>
4228         * ali-util.adb, gnatbind.adb: Remove references to
4229         Force_RM_Elaboration_Order.
4231         * switch-b.adb: Remove recognition of -f switch
4233 2005-06-14  Pascal Obry  <obry@adacore.com>
4235         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
4236         implementation which is slightly more efficient.
4238 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
4239             Javier Miranda  <miranda@adacore.com>
4240             Ed Schonberg  <schonberg@adacore.com>
4241             Hristian Kirtchev  <kirtchev@adacore.com>
4243         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
4244         allocator's designated type is a class-wide type, and compiling for
4245         Ada 2005, emit a run-time check that the accessibility level of the
4246         type given in the allocator's expression is not deeper than the level
4247         of the allocator's access type.
4249         (Tagged_Membership): Modified to gives support to abstract interface
4250         types.
4252         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
4253         Access_Level.
4254         (Descendant_Tag): New predefined function
4255         (Is_Descendant_At_Same_Level): New predefined function
4256         (Get_Access_Level): New private function
4257         (Set_Access_Level): New private procedure
4258         (IW_Membership): New function. Given the tag of an object and the tag
4259         associated with an interface, evaluate if the object implements the
4260         interface.
4261         (Register_Interface_Tag): New procedure used to initialize the table of
4262         interfaces used by the IW_Membership function.
4263         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
4264         of the dispatch table.
4265         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
4266         table of interfaces of the parent.
4267         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
4268         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
4269         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
4270         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
4271         Ada 2005 semantics for the new predefined function.
4273         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
4274         call to Descendant_Tag rather than Internal_Tag.
4275         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
4276         the accessibility level of the attribute's Item parameter is not deeper
4277         than the level of the attribute's prefix type. Tag_Error is raised if
4278         the check fails. The check is only emitted for Ada_05.
4279         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
4280         requested stream attribute, use it.
4281         (Expand_N_Attribute_Reference): If the designated type is an interface
4282         then rewrite the referenced object as a conversion to force the
4283         displacement of the pointer to the secondary dispatch table.
4284         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
4285         is a dereference of an object with a constrained partial view.
4287         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
4288         type is a class-wide type, emit a run-time check that the accessibility
4289         level of the returned object is not deeper than the level of the
4290         function's master (only when compiling for Ada 2005).
4292         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
4293         Action_Nb_Arg): Add entries for new Get_Access_Level and
4294         Set_Access_Level routines in these tables.
4295         (Make_DT): Generate a call to set the accessibility level of the
4296         tagged type in its TSD.
4297         (Make_DT): Code cleanup. The functionality of generating all the
4298         secondary dispatch tables has been moved to freeze_record_type.
4299         (Make_Abstract_Interface_DT): Minor code cleanup.
4300         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
4301         this subprogram implements a new algorithm that provides the
4302         same functionality and it is more clear in case of primitives
4303         associated with abstract interfaces.
4304         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
4305         clean up, the functionality of this subprogram is now provided
4306         by Set_All_DT_Position.
4307         (Write_DT): New subprogram: a debugging procedure designed to be called
4308         within gdb to display the dispatch tables associated with a tagged
4309         type.
4310         (Collect_All_Interfaces): New subprogram that collects the whole list
4311         of interfaces that are directly or indirectly implemented by a tagged
4312         type.
4313         (Default_Prim_Op_Position): New subprogram that returns the fixed
4314         position in the dispatch table of the default primitive operations.
4315         (Expand_Interface_Actuals): New subprogram to generate code that
4316         displaces all the actuals corresponding to class-wide interfaces to
4317         reference the interface tag of the actual object.
4318         (Expand_Interface_Conversion): New subprogram. Reference the base of
4319         the object to give access to the interface tag associated with the
4320         secondary dispatch table.
4321         (Expand_Interface_Thunk): New subprogram that generates the code of the
4322         thunk. This is required for compatibility with the C+ ABI.
4323         (Make_Abstract_Interface_DT): New subprogram that generate the
4324         declarations for the secondary dispatch tables associated with an
4325         abstract interface.
4326         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
4327         attribute for each primitive operation covering interface subprograms
4328         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
4329         These subprograms were upgraded to give support to abstract interfaces
4331         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
4332         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
4333         RE_Set_Access_Level.
4334         (RE_Unit_Table): Add entries for new Ada.Tags operations.
4335         Add support to call the followig new run-time subprograms:
4336         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
4338         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
4339         match its full declaration when both have an access definition with
4340         statically matching designated subtypes.
4341         (Analyze_Component_Declaration): Delete commented out code that was
4342         incorrectly setting the scope of an anonymous access component's type.
4343         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
4344         an access discriminant when the containing type is nonlimited.
4345         (Make_Incomplete_Type_Declaration): Create an incomplete type
4346         declaration for a record type that includes self-referential access
4347         components.
4348         (Check_Anonymous_Access_Types): Before full analysis of a record type
4349         declaration, create anonymous access types for each self-referential
4350         access component.
4351         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
4352         an access component in this context is a Local_Anonymous_Access, for
4353         proper accessibility checks.
4354         (Access_Definition): Set properly the scope of the anonymous access type
4355         created for a stand-alone access object.
4356         (Find_Type_Of_Object): An object declaration may be given with an access
4357         definition.
4358         (Complete_Subprograms_Derivation): New subprogram used to complete
4359         type derivation of private tagged types implementing interfaces.
4360         In this case some interface primitives may have been overriden
4361         with the partial-view and, instead of re-calculating them, they
4362         are included in the list of primitive operations of the full-view.
4363         (Build_Derived_Record_Type): Modified to give support to private
4364         types implemening interfaces.
4365         (Access_Definition): Reject ALL on anonymous access types.
4366         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
4367         type derivation to occur at a deeper accessibility level than the
4368         parent type.
4369         For the case of derivation within a generic body however, disallow the
4370         derivation if the derived type has an ancestor that is a formal type
4371         declared in the formal part of an enclosing generic.
4372         (Analyze_Object_Declaration): For protected objects, remove the check
4373         that they cannot contain interrupt handlers if not declared at library
4374         level.
4375         (Add_Interface_Tag_Components): New subprogram to add the tag components
4376         corresponding to all the abstract interface types implemented by a
4377         record type or a derived record type.
4378         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
4379         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
4380         Process_Full_View, Record_Type_Declaration): Modified to give
4381         support to abstract interface types
4382         (Collect_Interfaces): New subprogram that collects the list of
4383         interfaces that are not already implemented by the ancestors
4384         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
4385         when partial view has no discriminants and full view has defaults.
4386         (Constrain_Access): Reject a constraint on a general access type
4387         if the discriminants of the designated type have defaults.
4388         (Access_Subprogram_Declaration): Associate the Itype node with the inner
4389         full-type declaration or subprogram spec. This is required to handle
4390         nested anonymous declarations.
4391         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
4392         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
4393         Process_Full_View, Record_Type_Declaration): Modified to give
4394         support to abstract interface types
4395         (Derive_Subprograms): Addition of a new formal to indicate if
4396         we are in the case of an abstact-interface derivation
4397         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
4398         to the specification because it is requied to analyze all the
4399         identifiers found in a list of interfaces
4401         * debug.adb: Complete documentation of flag "-gnatdZ"
4403         * exp_ch3.adb: Implement config version of persistent_bss pragma
4404         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
4405         testing for TSS presence to properly enforce visibility rules.
4406         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
4407         Make_Abstract_Interfaces_DT to generate the secondary tables
4408         associated with abstract interfaces.
4409         (Build_Init_Procedure): Modified to initialize all the tags
4410         corresponding.
4411         (Component_Needs_Simple_Initialization): Similar to other tags,
4412         interface tags do not need initialization.
4413         (Freeze_Record_Type): Modified to give support to abstract interface
4414         types.
4415         (Expand_N_Object_Declaration): Do not generate an initialization for
4416         a scalar temporary marked as internal.
4418         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
4419         in-out parameter that is a component in an initialization procedure,
4420         whose constraint might depend on discriminants, and that may be
4421         misaligned because of packing or representation clauses.
4422         (Is_Legal_Copy): New predicate to determine whether a possibly
4423         misaligned in-out actual can actually be passed by copy/return. This
4424         is an error in case the type is by_reference, and a warning if this is
4425         the consequence of a DEC import pragma on the subprogram.
4426         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
4427         interface types
4428         (Expand_Inlined_Call): Mark temporary generated for the return value as
4429         internal, so that no useless scalar normalization is generated for it.
4430         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
4431         null procedure can always be inlined.
4432         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
4433         procedure, generate an explicit empty body for it.
4435         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
4436         Given a type implementing an interface, returns the corresponding
4437         access_disp_table value.
4438         (Find_Interface_Tag): New subprogram. Given a type implementing an
4439         interface, returns the record component containing the tag of the
4440         interface.
4441         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
4442         previous ones that return the corresponding tag and access_disp_table
4443         entities.
4444         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
4445         is a predefined primitive operation.
4446         (Expand_Subtype_From_Expr): If the expression is a selected component
4447         within an initialization procedure, compute its actual subtype, because
4448         the component may depend on the discriminants of the enclosing record.
4450         * i-cpp.ads, i-cpp.adb:
4451         This package has been left available for compatibility with previous
4452         versions of the frontend. As part of the new layout this is now a
4453         dummy package that uses declarations available at a-tags.ads
4455         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
4456         "constant access" and "aliased [constant] access" when not compiling
4457         with -gnat05.
4458         Suppress Ada 2005 keyword warning if -gnatwY used
4459         (P_Identifier_Declarations): Add support for object declarations with
4460         access definitions.
4461         (Private_Extension_Declaration): Complete the documentation
4462         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
4463         attribute in case of private extension declaration
4464         (P_Type_Declaration): Mark as "abstract" the type declarations
4465         corresponding with protected, synchronized and task interfaces
4466         (P_Declarative_Items): "not" and "overriding" are overriding indicators
4467         for a subprogram or instance declaration.
4469         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
4470         instantiation that is a dispatching operation has controlling access
4471         parameters that are null excluding.
4472         Save and restore Ada_Version_Explicit, for implementation of AI-362
4473         (Validate_Derived_Type_Instance): Add check for abstract interface
4474         types.
4475         (Analyze_Formal_Package): Establish Instantiation source for the copy of
4476         the generic that is created to represent the formal package.
4477         (Analyze_Package_Instantiation): Instantiate body immediately if the
4478         package is a predefined unit that contains inlined subprograms, and
4479         we are compiling for a Configurable_Run_Time.
4480         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
4481         If the program has a null default, generate an empty body for it.
4483         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
4484         error message condition, null procedures are correctly detected now.
4485         (New_Overloaded_Entity): Bypass trivial overriding indicator check
4486         for subprograms in the context of protected types. Instead, the
4487         indicator is examined in Sem_Ch9 while analysing the subprogram
4488         declaration.
4489         (Check_Overriding_Indicator): Check consistency of overriding indicator
4490         on subprogram stubs as well.
4491         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
4492         the library level.
4493         (Analize_Subprogram_Specification): When analyzing a subprogram in which
4494         the type of the first formal is a concurrent type, replace this type
4495         by the corresponding record type.
4496         (Analyze_Subprogram_Body): Undo the previous work.
4497         (Analyze_Procedure_Call): If the call has the form Object.Op, the
4498         analysis of the prefix ends up analyzing the call itself, after which
4499         we are done.
4500         (Has_Interface_Formals): New subprogram subsidiary to analyze
4501         subprogram_specification that returns true if some non
4502         class-wide interface subprogram is found
4503         (New_Overloaded_Entity): Modified to give support to abstract
4504         interface types
4505         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
4506         access to subprograms must be recursive.
4507         (Is_Unchecked_Conversion): Improve the test that recognizes
4508         instantiations of Unchecked_Conversion, and allows them in bodies that
4509         are to be inlined by the front-end. When the body comes from an
4510         instantiation, a reference to Unchecked_Conversion will be an
4511         Expanded_Name, even though the body has not been analyzed yet.
4512         Replace Is_Overriding and Not_Overriding in subprogram_indication with
4513         Must_Override and Must_Not_Override, to better express intent of AI.
4514         (Analyze_Subprogram_Body): If an overriding indicator is given, check
4515         that it is consistent with the overrinding status of the subprogram
4516         at this point.
4517         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
4518         always inlined.
4519         If the subprogram is a null procedure, indicate that it does not need
4520         a completion.
4522         * sem_disp.adb (Check_Controlling_Type): Give support to entities
4523         available through limited-with clauses.
4524         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
4525         allowed as the last primitive of a tagged type if it has no previous
4526         spec.
4527         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
4528         to give support to abstract interface types
4530         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
4531         in the case where the target type is an anonymous access type of an
4532         object or component (that is, when Is_Local_Anonymous_Access is true).
4533         Prevent the special checks for conversions of access discriminants in
4534         the case where the discriminant belongs to a nonlimited type, since
4535         such discriminants have their accessibility level defined in the same
4536         way as a normal component of an anonymous access type.
4537         (Resolve_Allocator): When an allocator's designated type is a class-wide
4538         type, check that the accessibility level of type given in the
4539         allocator's expression or subtype indication is not statically deeper
4540         than the level of the allocator's access type.
4541         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
4542         name in a discriminant constraint of a record component.
4543         (Resolve_Explicit_Dereference): Do not check whether the type is
4544         incomplete when the dereference is a use of an access discriminant in
4545         an initialization procedure.
4546         (Resolve_Type_Conversion): Handle conversions to abstract interface
4547         types.
4548         (Valid_Tagged_Conversion): The conversion of a tagged type to an
4549         abstract interface type is always valid.
4550         (Valid_Conversion): Modified to give support to abstract interface types
4551         (Resolve_Actuals): Enable full error reporting on view conversions
4552         between unrelated by_reference array types.
4553         The rule for view conversions of arrays with aliased components is
4554         weakened in Ada 2005.
4555         Call to obsolescent subprogram is now considered to be a violation of
4556         pragma Restrictions (No_Obsolescent_Features).
4557         (Check_Direct_Boolean_Operator): If the boolean operation has been
4558         constant-folded, there is nothing to check.
4559         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
4560         check on possible violation of restriction No_Direct_Boolean_Operators
4561         until after expansion of operands, to prevent spurious errors when
4562         operation is constant-folded.
4564         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
4565         Has_Compatible_Type): Modified to give support to abstract interface
4566         types.
4567         (Interface_Present_In_Ancestor): New function to theck if some ancestor
4568         of a given type implements a given interface
4570         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
4571         prefix is a parameterless function that returns an access_to_procedure.
4572         (Transform_Object_Operation): Handle properly function calls of the
4573         form Obj.Op (X), which prior to analysis appear as indexed components.
4574         (Analyze_One_Call): Complete the error notification to help new Ada
4575         2005 users.
4576         (Analyze_Allocator): For an allocator without an initial value, where
4577         the designated type has a constrained partial view, a discriminant
4578         constraint is illegal.
4580 2005-06-14  Robert Dewar  <dewar@adacore.com>
4582         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
4583         do with treatment of Set_Col when positioned at end of line character.
4585 2005-06-14  Robert Dewar  <dewar@adacore.com>
4587         * atree.adb: (Elist*): Protect against uninitialized field
4589 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
4591         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
4592         for an attribute reference that returns an access type.
4593         (Apply_Discriminant_Check): No need for check if (designated) type has
4594         constrained partial view.
4596         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
4597         both bound checks, rather than a conjunction.
4598         (Insert_Valid_Check): If the expression is an actual that is an indexed
4599         component of a bit-packed array, force expansion of the packed element
4600         reference, because it is specifically inhibited elsewhere.
4602 2005-06-14  Vincent Celier  <celier@adacore.com>
4604         * clean.adb (Clean_Project): Correctly delete executable specified as
4605         absolute path names.
4607         * make.adb (Gnatmake): Allow relative executable path names with
4608         directory information even when project files are used.
4609         (Change_To_Object_Directory): Fail gracefully when unable to change
4610         current working directory to object directory of a project.
4611         (Gnatmake): Remove exception handler that could no longer be exercized
4612         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
4613         may be deallocated by Normalize_Arguments.
4614         (Collect_Arguments): Eliminate empty arguments
4616         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
4617         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
4618         (Check_Project): Return False when Project is No_Project. Return True
4619         when All_Projects is True.
4620         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
4621         All_Projects to True.
4622         Minor reformatting
4624 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
4625             Javier Miranda  <miranda@adacore.com>
4626             Thomas Quinot  <quinot@adacore.com>
4627             Robert Dewar  <dewar@adacore.com>
4628             Hristian Kirtchev  <kirtchev@adacore.com>
4629             Gary Dismukes  <dismukes@adacore.com>
4631         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
4632         anonymous access types, to indicate that the accessibility level of
4633         the type is determined by that of the enclosing declaration.
4634         (Has_Persistent_BSS): New flag
4635         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
4636         of this attribute with functions.
4637         (Is_Primitive_Wrapper): Remove the barrier.
4638         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
4639         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
4640         New subprograms.
4641         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
4642         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
4643         New subprograms.
4644         (Is_Pure_Unit_Access_Type): New flag
4645         (Abstract_Interfaces): Complete the assertion to cover all usages.
4646         (Set_Is_Interface): Complete the assertion to cover all usages.
4647         (Is_Primitive_Wrapper): New attribute.
4648         (Is_Obsolescent): Now applies to all entities (though it is only set
4649         for subprograms currently)
4650         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
4651         which solves various problems concerning access subtypes.
4652         (Has_Persistent_BSS): New flag
4653         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
4654         Remove these subprograms because this attribute is currently
4655         not used.
4656         New entity flags:
4657         Has_Specified_Stream_Input (Flag190)
4658         Has_Specified_Stream_Output (Flag191)
4659         Has_Specified_Stream_Read (Flag192)
4660         Has_Specified_Stream_Write (Flag193)
4661         Present in all type and subtype entities. Set for a given view if the
4662         corresponding stream-oriented attribute has been defined by an
4663         attribute definition clause. When such a clause occurs, a TSS is set
4664         on the underlying full view; the flags are used to track visibility of
4665         the attribute definition clause for partial or incomplete views.
4666         (Is_Pure_Unit_Access_Type): New flag
4667         Clarify use of Is_Internal.
4668         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
4669         internally generated to wrap the invocation of tasks and protected
4670         types that implement interfaces.
4671         (Implementation_Base_Type): Documentation correction
4672         (Is_Obsolescent): Now applies to all entities (though it is only set
4673         for subprograms currently)
4674         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
4675         which solves various problems concerning access subtypes.
4677         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
4678         for examined parameters. Identify unequal parameter list lengths as
4679         non-conformant parameters.
4680         (Overriding_Possible): Do not check for "All" qualifier in declaration
4681         of controlling access parameter, following prescription of AI-404.
4682         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
4683         that build the procedure body that wraps an entry invocation
4684         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
4685         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
4686         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
4687         give support to abstract interface types
4689         * freeze.adb (Freeze_Entity): Issue error message if
4690         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
4691         type has no storage pool (Ada 2005) AI-366.
4692         Also modified to give support to abstract interface types
4693         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
4694         Inline_Always pragma.
4696         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
4697         now begin an entry declaration.
4698         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
4699         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
4700         a subprogram declaration preceded by an overriding indicator.
4701         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
4702         declarations or subprogram declarations preceded by reserved words
4703         "not" or "overriding".
4704         (P_Entry_Declaration): Update comment. Parse and check overriding
4705         indicator, set semantic flags of entry declarations.
4706         (P_Task): New error message in case of private applied
4707         to a task type declaration.
4708         (P_Protected): New error message in case of private applied
4709         to a task type declaration.
4711         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
4712         in which the full view of a type implementing an interface is a
4713         concurrent type.
4714         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
4715         Declare_Inherited_Private_Subprograms): If an explicit operation
4716         overrides an operation that is inherited in the private part, mark the
4717         explicit one as overriding, to enable overriding indicator checks.
4718         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
4719         full view to partial view, to simplify handling in back-end.
4721         * sprint.adb: Print interface lists where needed: derived types,
4722         protected types, task types.
4723         output "is null" for null procedures. Part of implementation of
4725         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
4726         relaxation of rules for access types in pure, shared passive partitions.
4728         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
4729         first read discriminants into temporary objects, performing checks on
4730         the read values, then possibly performing discriminant checks on the
4731         actual (if it is constrained), and only finally reading the components
4732         into a constrained temporary object.
4733         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
4734         case of reading discriminants of a mutable record type to recognize
4735         the new form of the code generated by
4736         Build_Mutable_Record_Read_Procedure.
4738         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
4739         of a simple call to Make_TSS_Name.
4740         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
4741         buffer, in order for Is_TSS to work correctly on local TSS names.
4743         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
4744         Is_Local_Anonymous_Access to check legaliy of attributes in the
4745         context of  access components and stand-alone access objects.
4746         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
4747         treated as available for a limited private type if there is an
4748         attribute_definition_clause that applies to its full view, but not in
4749         other cases where the attribute is available for the full view
4750         (specifically, the sole fact that the full view is non-limited does not
4751         make the attribute available for the partial view).
4752         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
4753         non-overloaded intrinsic subprogram.
4754         (Check_Stream_Attribute): Reject an attribute reference for an
4755         unavailable stream attribute even if the prefix is not a limited type
4756         (case of a 'Input attribute reference for an abstract, non-classwide
4757         type)
4758         (Stream_Attribute_Available): New function to determine whether a stream
4759         attribute is available at a place.
4760         (Check_Attribute): Use Stream_Attribute_Available instead of just
4761         testing for TSS presence on the implementation base type.
4762         (Analyze_Attribute): Modified to give support to task interfaces.
4763         (Analyze_Access_Attribute): Add error check for use of an Access (or
4764         Unrestricted_Access) attribute with a subprogram marked as
4765         Inline_Always.
4766         (Analyze_Attribute, case Attribute_Address): Add error check for use of
4767         an Address attribute with a subprogram marked as Inline_Always.
4768         Update Eval_Attribute to handle new value of Width from AI-395
4770         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
4771         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
4772         Factor common code across the stream-oriented attribute circcuits into
4773         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
4774         processing is functionally identical to the previous duplicated one,
4775         except that an expression that denotes an abstract subprogram will now
4776         be rejected, as mandated by AI-195 item 5.
4778         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
4779         Is_Local_Anonymous_Access to apply accessibility checks to access
4780         components and stand-alone access objects.
4781         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
4782         elsewhere.
4783         (Is_Potentially_Persistent_Type): New function
4784         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
4785         a heap-object whose type has a constrained partial view, the object is
4786         unconstrained and the component may depend on a discriminant, making its
4787         renaming illegal.
4789         * sinfo.ads, sinfo.adb
4790         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
4791         (Must_Override): Flag applicable to N_Entry_Declaration.
4792         Indicate that interface_list can appear in single task and single
4793         protected declarations.
4794         Replace Is_Overriding and Not_Overriding with Must_Override and
4795         Must_Not_Override, to better express intent of AI.
4796         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
4797         of an overriding indicator in a subprogram or instance.
4798         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
4799         Add the overriding indicator [[not] overriding] construct to the
4800         following grammar productions:
4801          ENTRY_DECLARATION
4802          GENERIC_INSTANTIATION
4803          SUBPROGRAM_SPECIFICATION
4805         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
4806         can start with an overriding indicator.
4808         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
4809         flags accordingly on subrogram specifications or instances.
4811         * sem_ch8.adb:
4812         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
4813         overriding_indicator, if present, is consistent with status of spec.
4814         Improve error message for null-excluding checks on controlling access
4815         parameters.
4816         (Check_In_Previous_With_Clause): Protect the frontend against
4817         previously reported critical errors in the context clauses.
4818         Save and restore Ada_Version_Explicit, for implementation of AI-362
4819         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
4820         operation verify that controlling formals of the renamed entity that
4821         are access parameters are explicitly non-null.
4822         (Find_Expanded_Name): Improve error message when prefix is an illegal
4823         reference to a private child unit.
4825         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
4826         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
4827         Rewrite to correspond to new wide character names in AI-395
4829         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
4830         default procedures.
4832 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
4833             Robert Dewar  <dewar@adacore.com>
4835         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
4836         code, not on the bodies of predefined operations, to cut down on
4837         spurious noise.
4839 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
4841         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
4842         be expanded in place. The size computation does not require a
4843         subtraction, which would raise an exception on a compiler built with
4844         assertions when the upper bound is Integer'first.
4845         (Flatten): For an array of composite components, take into account the
4846         size of the components to determine whether it is safe to expand the
4847         array into a purely positional representation.
4849 2005-06-14  Thomas Quinot  <quinot@adacore.com>
4851         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
4852         denoting a formal parameter into account.
4854 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
4856         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
4857         the entry_call alternative of a conditional entry call, wrap the
4858         conditional entry call itself.
4860 2005-06-14  Nicolas Setton  <setton@adacore.com>
4861             Ed Schonberg  <schonberg@adacore.com>
4863         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
4864         the "simple_choice" member in a variant record, in accordance with the
4865         description in the package spec: the information output for a constant
4866         should be "S number", not "SS number".
4867         (Get_Encoded_Name): Return at once if not generating code. Avoids name
4868         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
4870 2005-06-14  Thomas Quinot  <quinot@adacore.com>
4872         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
4873         RACW without any primitives, do not generate the if statement for
4874         dispatching by name in the PolyORB/DSA case, as it would be malformed
4875         (it would have an Elsif_Parts list that is not No_List, but with a
4876         length of 0).
4878 2005-06-14  Robert Dewar  <dewar@adacore.com>
4880         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
4882 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
4884         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
4885         can determine whether pragma Suppress_Exception_Locations is in effect.
4887         * utils2.c (build_call_raise): Do not pass the file name to the
4888         exception handler if pragma Suppress_Exception_Locations is in effect.
4889         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
4891 2005-06-14  Emmanuel Briot  <briot@adacore.com>
4893         * g-debpoo.adb (Deallocate, Dereference): Improve output.
4895 2005-06-14  Nicolas Roche  <roche@adacore.com>
4897         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
4898         to ""
4899         (Next_Level): Fix minor bug in handling of ../dir case
4900         (Read): Add dir separator to Directory name so that "" is understood as
4901          "/"
4903 2005-06-14  Pascal Obry  <obry@adacore.com>
4905         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
4906         releasing the items.
4908 2005-06-14  Vincent Celier  <celier@adacore.com>
4909             Cyrille Comar  <comar@adacore.com>
4911         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
4912         with output file descriptor and with output file name.
4913         (Dup, Dup2): Now global procedures as they are used by two subprograms
4914         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
4916 2005-06-14  Thomas Quinot  <quinot@adacore.com>
4918         PR ada/6717
4920         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
4921         broadcast address.
4922         (Create_Selector): Bind listening socket used to create the signalling
4923         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
4924         Set listen backlog to 1 to ensure that we detect socket theft by a
4925         failure of our own connect(2) call.
4926         (Check_Selector): Improve documentation of the selector mechanism.
4927         (Broadcast_Inet_Addr): New constant.
4929 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
4931         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
4932         type which turns out to be an incomplete and incorrect fix.
4933         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
4934         of the type is declared in a record (for determination of insertion
4935         type).
4936         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
4937         a private type and ensure that the primary entity is used for the type
4938         of the newly created function's V formal by taking the Etype of the
4939         view.
4941 2005-06-14  Javier Miranda  <miranda@adacore.com>
4942             Jose Ruiz  <ruiz@adacore.com>
4943             Robert Dewar  <dewar@adacore.com>
4944             Ed Schonberg  <schonberg@adacore.com>
4946         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
4947         that indicates if we are parsing a compilation unit found in a
4948         limited-with clause.
4949         It is use to avoid the circularity check.
4951         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
4952         we are parsing a compilation unit found in a limited-with clause. This
4953         is use to avoid the circularity check.
4955         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
4956         unit as a consequence of parsing a limited-with clause. This is used
4957         to avoid the circularity check.
4959         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
4960         (Analyze_Context): Limited-with clauses are now allowed
4961         in more compilation units.
4962         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
4963         againts previously reported critical errors in context clauses
4964         (Install_Limited_Withed_Unit): Code cleanup plus static detection
4965         of two further errors: renamed subprograms and renamed packages
4966         are not allowed in limited with clauses.
4967         (Install_Siblings): Do not install private_with_clauses on the package
4968         declaration for a non-private child unit.
4969         (Re_Install_Parents): When a parent of the subunit is reinstalled,
4970         reset visibility of child units properly.
4971         (Install_Withed_Unit): When a child unit appears in a with_clause of its
4972         parent, it is immediately visible.
4974 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
4975             Emmanuel Briot  <briot@adacore.com>
4977         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
4978         declared within an inlined body as referenced, to prevent spurious
4979         warnings.
4980         (Output_One_Ref): If an entity renames an array component, indicate in
4981         the ALI file that this aliases (renames) the array. Capture as well
4982         function renamings that rename predefined operations.
4983         Add information about generic parent for package and subprogram
4984         instances.
4985         (Get_Type_Reference): For a subtype that is the renaming of an actual in
4986         an instantiation, use the first_subtype to ensure that we don't generate
4987         cross-reference information for internal types.
4988         For objects and parameters of a generic private type, retain the '*'
4989         indicator to distinguish such an entity from its type.
4991         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
4992         to store information about instantiated entities.
4994         * ali.adb (Scan_ALI): Add support for parsing the reference to the
4995         generic parent
4997         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
4998         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
4999         information.
5001 2005-06-10  Doug Rupp  <rupp@adacore.com>
5002             Arnaud Charlet  <charlet@adacore.com>
5003             Olivier Hainque  <hainque@adacore.com>
5004             Jose Ruiz  <ruiz@adacore.com>
5006         * Make-lang.in: Add initialize.o when needed.
5007         Remove obsolete references to RT_FLAGS.
5008         Add missing dependencies for sdefault.o
5010         * initialize.c: New file.
5012         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
5013         [VMS] cond_signal_table: Fix problem in declaration.
5014         [VMS] __gnat_error_handler: rewrite.
5015         Move all __gnat_initialize() routines to initialize.c
5016         Specialize the former "hpux" section to "hppa hpux", as this is what the
5017         section really is here for and we now have other hpux ports that need
5018         different contents.
5019         (__gnat_adjust_context_for_raise) i386-linux: First version of this
5020         function for this target. Adjust PC by one in the machine context. This
5021         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
5022         it is more reliable to do that in the signal handler itself.
5023         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
5024         flags, so that the handler is passed the context structure to adjust
5025         prior to the raise.
5026         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
5027         SA_SIGINFO sigaction should look like. Call
5028         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
5029         Machine_State_Operations stuff.
5030         Add conditional code so that the x86_64 is also supported.
5032 2005-06-14  Pascal Obry  <obry@adacore.com>
5034         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
5035         the library name.
5037 2005-06-14  Robert Dewar  <dewar@adacore.com>
5039         * opt.ads, opt.adb: New flags for persistent_bss mode
5040         Add Ada_Version_Explicit, for implementation of AI-362
5041         Add Assertions_Enabled_Config and associated handling
5042         Needed since setting can be changed with Assertion_Policy pragma
5043         Add new flag Warn_On_Ada_2005_Compatibility
5045         * switch-c.adb: Recognize -gnatwy/Y
5046         Set Ada_Version_Explicit, for implementation of AI-362
5047         The -gnatg switch now includes -gnatyu
5049         * usage.adb: Add -gnatwy/Y
5050         Remove wrong asterisk on -gnatwX line
5051         Add line for -gnatyu switch
5053 2005-06-14  Vincent Celier  <celier@adacore.com>
5055         * osint.adb (Add_Default_Search_Dirs): Put source and object
5056         directories of project files before directories coming from
5057         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
5059 2005-06-14  Robert Dewar  <dewar@adacore.com>
5061         PR ada/15613
5063         * par-ch2.adb (Scan_Pragma_Argument): New procedure
5064         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
5066 2005-06-14  Vincent Celier  <celier@adacore.com>
5068         * prep.adb (Preprocess): Ignore error when scanning the first token of
5069         a line.
5071 2005-06-14  Vincent Celier  <celier@adacore.com>
5073         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
5074         (Check_Stand_Alone_Library): If the specified reference symbol file does
5075         not exist, only issue a warning when the symbol policy is not
5076         Controlled. And, when symbol policy is Compliant, set the symbol
5077         policy to Autonomous.
5079 2005-06-14  Vincent Celier  <celier@adacore.com>
5081         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
5082         when the project file in a with clause is not the last one, that is the
5083         project file name is followed by a comma.
5084         * prj-pp.adb: (First_With_In_List): New Boolean global variable
5085         (Print): Issue list of project files separated by commas in with clauses
5086         according to the values returned by Is_Not_Last_In_List.
5087         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
5088         (Set_Is_Not_Last_In_List): New procedure
5090 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
5092         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
5094 2005-06-14  Robert Dewar  <dewar@adacore.com>
5096         * scng.adb: Add call to new Check_EOF routine
5097         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
5098         Add some comments regarding wide character handling
5100         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
5102         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
5104         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
5105         characters are now considered graphic characters and hence yield false
5106         in this call.
5108         * nmake.adt: Modify header so that xnmake does not generate output
5109         files with multiple blank lines.
5111         * treeprs.adt: Remove a blank line so that output from xtreeprs does
5112         not have an extra blank line
5114 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
5116         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
5117         expression when the component type is an anonymous access type to
5118         ensure that appropriate accessibility checks are done.
5120         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
5121         expression of an assignment when the target object is of an anonymous
5122         access type. This ensures that required accessibility checks are done.
5123         (One_Bound): Move the check for type Universal_Integer to
5124         Process_Bounds.
5125         (Process_Bounds): Check whether the type of the preanalyzed range is
5126         Universal_Integer, and in that case set Typ to Integer_Type prior
5127         to setting the type of the original range and the calls to One_Bound.
5129 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
5131         * sem_case.adb (Expand_Others_Choice): Improve warning.
5133 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
5135         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
5136         constraint of full view if present, when other type is discriminated.
5137         (Eval_Relational_Op): Recognize tests of pointer values against Null,
5138         when the pointer is known to be non-null, and emit appropriate warning.
5140 2005-06-14  Robert Dewar  <dewar@adacore.com>
5141             Ed Schonberg  <schonberg@adacore.com>
5143         PR ada/10671
5145         * sem_prag.adb: Implement pragma Persistent_BSS
5146         Remove obsolete pragma Persistent_Data, Persistent_Object
5147         Set Ada_Version_Explicit, for implementation of AI-362
5148         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
5149         Add processing for pragma Pure_05 and Preelaborate_05
5150         Add processing for Assertion_Policy pragma
5151         Add pragma identifiers for Assert
5152         (Analyze_Pragma, case Assert): Check number of arguments
5153         (Process_Inline): Additional guard against an illegal program, where the
5154         argument of the pragma is undefined, and warnings on redundant
5155         constructs are enabled.
5156         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
5157         Ada_05 to this pragma, specifying that the pragma is only active in
5158         Ada_05 mode.
5159         (Check_Arg_Order): New procedure
5160         Add appropriate calls to this procedure throughout
5161         Also throughout, check entity name before doing any other checks
5163         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
5164         Remove obsolete pragma Persistent_Data, Persistent_Object
5165         Add entries for pragma Pure_05 and Preelaborate_05
5166         Add entries for Assertion_Policy pragma and associated names
5167         Add some names for pragma argument processing
5169         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
5171 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
5173         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
5174         appears within a negation (either from source or as a rewriting of
5175         inequality) adjust text of warning accordingly.
5177 2005-06-14  Thomas Quinot  <quinot@adacore.com>
5179         * s-strxdr.adb: Follow AI95-00132
5181 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
5183         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
5185 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
5186             Jose Ruiz  <ruiz@adacore.com>
5188         * s-tposen.adb, s-tpobop.adb
5189         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
5190         the exception id.
5191         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
5192         there is no violation of the Max_Entry_Queue_Length restriction (if it
5193         has been set); Program_Error is raised otherwise.
5194         (Requeue_Call): Before requeuing the task on the target entry queue we
5195         check that there is no violation of the Max_Entry_Queue_Length
5196         restriction (if it has been set); Program_Error is raised otherwise.
5198 2005-06-14  Robert Dewar  <dewar@adacore.com>
5200         * styleg.adb: Fix several remaining problems in -gnatyu switch
5201         Blank line count not reset at start
5202         Scanning outside source buffer in some cases
5203         Confusing message for blanks at end of file
5204         Non-empty blank lines not recognized
5206         * nmake.adt: Modify header so that xnmake does not generate output
5207         files with multiple blank lines.
5209         * treeprs.adt: Remove a blank line so that output from xtreeprs does
5210         not have an extra blank line
5212 2005-06-14  Sergey Rybin  <rybin@adacore.com>
5214         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
5216 2005-06-14  Doug Rupp  <rupp@adacore.com>
5217             Vincent Celier  <celier@adacore.com>
5219         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
5220         Update copyright.
5222         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
5223         Remove "Library" command.
5224         Change keyword for style check -gnatyd from NOCRLF to
5225         DOS_LINE_ENDINGS.
5226         Remove useless second style check keyword NONE
5227         Remove help documentation for inexistent style check keyword
5228         RM_COLUMN_LAYOUT.
5229         Add help documentation for style check keywords DOS_LINE_ENDINGS,
5230         UNNECESSARY_BLANK_LINES and XTRA_PARENS
5231         Add UNNECESSARY_BLANK_LINES for -gnatyu
5232         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
5234         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
5236 2005-06-14  Vincent Celier  <celier@adacore.com>
5238         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
5239         gprmake was invoked with -d.
5240         (Compile_Sources): If -d was used, output the "completed ..." message
5241         for each compilation.
5242         (Scan_Arg): Recognize new switch -d
5243         When -c and at least one main is specified, set
5244         Unique_Compile to True to guarantee that no other sources will be
5245         compiled.
5247 2005-06-14  Matthew Heaney  <heaney@adacore.com>
5249         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
5250         * a-swuwha.ads, a-swuwha.adb: New files
5252         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
5253         * a-szuzha.ads, a-szuzha.adb: New files.
5255         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
5256         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
5257         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
5258         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
5259         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
5260         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
5261         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
5262         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
5263         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
5264         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
5265         Ada 2005 RM.
5267 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
5268             Olivier Hainque  <hainque@adacore.com>
5269             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5270             Pascal Obry  <obry@adacore.com>
5272         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
5274         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
5275         making a temporary around a procedure call because of non-addressable
5276         actual parameter.
5277         (process_freeze_entity): If entity is a private type, capture size
5278         information that may have been computed for the full view.
5279         (tree_transform, case N_Allocator): If have initializing expression,
5280         check type for Has_Constrained_Partial_View and pass that to
5281         build_allocator.
5282         (tree_transform, case N_Return_Statement): Pass extra arg to
5283         build_allocator.
5285         * decl.c (annotate_value): Remove early return if -gnatR is not
5286         specified.
5287         (gnat_to_gnu_field): Don't make a packable type for a component clause
5288         if the position is byte aligned, the field is aliased, and the clause
5289         size isn't a multiple of the packable alignment. It serves no useful
5290         purpose packing-wise and would be rejected later on.
5291         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
5293         PR ada/20515
5294         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
5295         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
5296         instead.
5297         (create_concat_name): Idem.
5299 2005-06-10  Robert Dewar  <dewar@adacore.com>
5300             Eric Botcazou  <ebotcazou@adacore.com>
5301             Ben Brosgol  <brosgol@adacore.com>
5302             Cyrille Comar  <comar@adacore.com>
5303             Sergey Rybin  <rybin@adacore.com>
5304             Pascal Obry  <obry@adacore.com>
5306         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
5307         Document second argument (Ada_05) of pragma Obsolescent
5308         Add note that call to subprogram marked with pragma Obsolescent
5309         is now considered to be a violation of program Restrictions
5310         (No_Obsolescent_Features).
5311         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
5312         that only machine-dependent attributes are supported.
5314         * gnat_ugn.texi:
5315         Commented out menu lines and empty section for gnatclean examples
5316         Document -gnatwy/Y
5317         Fix some over long lines
5318         Clarify and enhance documentation of ADA_PROJECT_PATH.
5319         Rework section 2.11.2(3) about linking with a non-GNU compiler.
5320         Mention new switch -fcallgraph-info.
5321         Mention new switch -fstack-usage.
5322         For gnatpp, replace '-notab' with '-N' and add this option to Index
5323         Corrected VMS example.
5324         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
5325         Minor reformatting
5326         Add documentation for -gnatyu switch (unnecessary blank lines)
5327         Document new switch -U for GNAT PRETTY and GNAT METRIC
5328         Add note about Stdcall being handled as C convention on non Windows OS.
5329         Remove some junk typo in description of gnatbind -S switch
5330         Remove reference to Extensions_Allowed pragma
5331         Document the new order of the directories to be searched (source and
5332         object directories of project files before directories in ADA_*_PATH
5333         environment variables.
5335         * g-trasym.ads: Document that IRIX is supported
5337 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
5339         * Makefile.in: Add initialize.o when needed.
5340         Adapt to new VMS package body Symbols and subunits
5341         No specialized version of a-sytaco is needed for VxWorks.
5343         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
5344         * a-zchara.ads, a-widcha.ads: New files.
5346         * system-hpux-ia64.ads: New file.
5348         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
5349         is imported from the VxWorks kernel.
5351 2005-06-14  Robert Dewar  <dewar@adacore.com>
5353         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
5354         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
5355         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
5356         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
5357         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
5358         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
5359         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
5360         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
5361         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
5362         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
5363         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
5364         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
5366 2005-06-14  Thomas Quinot  <quinot@adacore.com>
5368         * xeinfo.adb: Fix typo in comment
5370 2005-06-14  Javier Miranda  <miranda@adacore.com>
5372         * repinfo.ads: Fix typo in comment
5374 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
5376         * s-finimp.adb (Parent_Tag): Delete this imported function (function
5377         Parent_Tag is now in the visible part of Ada.Tags).
5378         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
5379         using imported function.
5381 2005-06-14  Bernard Banner  <banner@adacore.com>
5383         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
5384         also apply for handling support for VxSim 653.
5386 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
5388         * xsnames.adb: Add automatic generation of snames.h.
5390 2005-06-14  Thomas Quinot  <quinot@adacore.com>
5392         * gen-soccon.c: Add IP_MULTICAST_IF constant
5393         Minor reformatting and adjustments to prevent warnings.
5395 2005-06-14  Pascal Obry  <obry@adacore.com>
5397         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
5399 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
5401         * trans.c (gnat_gimplify_expr): Call
5402         recompute_tree_invarant_for_addr_expr when we change
5403         the operand of the ADDR_EXPR.
5405 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5407         * misc.c: Don't include errors.h.
5409 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5411         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
5413 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
5415         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
5416         comment typos.
5417         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
5419 2005-05-16  Nathanael Nerode <neroden@gcc.gnu.org>
5421         PR ada/20270
5422         * Makefile.in: Make TGT_LIB behave correctly.
5424 2005-04-23  DJ Delorie  <dj@redhat.com>
5426         * misc.c: Adjust warning() callers.
5428 2005-04-16  Laurent GUERBY  <laurent@guerby.net>
5430         PR ada/18847
5431         * a-nudira.adb (Value): Check for valid string.
5432         * a-nuflra.adb (Value): Likewise.
5434 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
5436         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
5438 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
5440         * adaint.c, init.c, tracebak.c: Fix comment typos.
5441         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
5443 2005-04-07  Laurent GUERBY  <laurent@guerby.net>
5444             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5446         * Makefile.in: Add make ifeq define for hppa linux tasking support.
5447         * system-hpux.ads: Define Signed_Zeros to be True.
5448         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
5450 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
5452         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
5453         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
5454         typos.
5456 2005-03-30  Tom Tromey  <tromey@redhat.com>
5458         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
5460 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
5462         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
5464 2005-03-29  Robert Dewar  <dewar@adacore.com>
5466         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
5467         fixed-point expression has value that is not a multiple of the Small
5468         value.
5470         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
5472         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
5473         nanoseconds.
5475         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
5477 2005-03-29  Vincent Celier  <celier@adacore.com>
5479         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
5480         (Build_Dynamic_Library.Version_String): Return the empty string when
5481         Lib_Version is empty or when the symbol policy is not Autonomous.
5483         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
5484         a symbol is not in the reference symbol file, increase the Major ID
5485         and set the Minor ID to 0.
5486         Use gsmatch=lequal instead of gsmatch=equal
5488 2005-03-29  Doug Rupp  <rupp@adacore.com>
5490         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
5491         name and translate.
5493 2005-03-29  Javier Miranda  <miranda@adacore.com>
5495         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
5496         (Inherit_DT): The first formal has been redefined as a Tag.
5497         This allows us the removal of the subprogram Get_TSD.
5498         (TSD): Replace the call to Get_TSD by the actual code.
5500         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
5501         (Make_DT): Upgrade the call to Inherit_TSD according to the
5502         new interface: the first formal is now a Tag.
5504         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
5505         redefined as a Tag.
5506         This change allows us to remove the subprogram Get_TSD.
5507         (CPP_Get_TSD): Subprogram removed.
5508         (TSD): Replace the call to CPP_Get_TSD by the actual code.
5510         * rtsfind.ads: Remove support to call the run-time
5511         subprogram Get_TSD
5513 2005-03-29  Robert Dewar  <dewar@adacore.com>
5515         * errutil.adb, errout.adb:
5516         Minor comment updates on Line_Terminator references
5518         * par-ch10.adb: Add ??? comment about line terminator
5520         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
5521         (check dos line terminator).
5522         (Check_Line_Max_Length): New procedure, split off from the existing
5523         Check_Line_Terminator routine. Separating this out allows -gnatyf to
5524         be properly recognized.
5526         * styleg.adb: Add ??? comment for line terminator reference
5528         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
5529         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
5531         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
5532         (check dos line terminator).
5533         (Check_Line_Max_Length): New procedure, split off from the existing
5534         Check_Line_Terminator routine. Separating this out allows -gnatyf to
5535         be properly recognized.
5537         * stylesw.ads, stylesw.adb:
5538         Add handling for new -gnatyd switch (check dos line terminator)
5540         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
5541         Recognize -gnatwb/-gnatwB switches
5542         Include Warn_On_Bad_Fixed_Value for -gnatg
5544         * usage.adb:
5545         Add line for new -gnatyd switch (check dos line terminator)
5547         * usage.adb: Add lines for -gnatwb/-gnatwB
5549         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
5551         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
5553         * gnat_ugn.texi: Fix overlong lines
5554         Document new -gnatyd switch
5555         Document new -gnatwb/-gnatwB switches
5557 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
5559         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
5560         order to retrieve the component list of the type, before examining
5561         individual components.
5563         * sem_type.adb (Covers): Types are compatible if one is the base type
5564         of the other, even though their base types might differ when private
5565         views are involved.
5567 2005-03-29  Thomas Quinot  <quinot@adacore.com>
5569         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
5570         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
5571         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
5572         analyzed if expansion is disabled (which could otherwise cause spurious
5573         error messages if expansion has been disabled due to previous
5574         (unrelated) errors).
5576         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
5577         is disabled, the entity denoted by the argument is the access type
5578         itself, not an underlying record type, so there is no need to go back
5579         to the Corresponding_Remote_Type.
5581 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
5582             Robert Dewar  <dewar@adacore.com>
5584         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
5585         expand a call to an instance of
5586         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
5587         Constructor actual of the instance. A class-wide membership
5588         check is also generated, to ensure that the tag passed to the instance
5589         denotes a type in the class.
5590         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
5591         of Name_Generic_Dispatching_Constructor.
5593         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
5594         05 unit for AI-260-02).
5596         * a-tgdico.ads: New file.
5598         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
5599         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
5601         * snames.ads, snames.adb (Preset_Names): Add entry for
5602         Generic_Dispatching_Constructor.
5604         PR ada/20300
5606         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
5607         character type cases.
5608         (Analyze_Subprogram_Renaming): Add special handling for
5609         the case of renaming of stream attributes when the renaming denotes a
5610         generic formal subprogram association for an abstract formal subprogram.
5611         Check that the attribute is a primitive stream attribute (and not
5612         a class-wide stream attribute) and then rewrite the attribute name
5613         as the name of the appropriate compiler-generated stream primitive.
5615 2005-03-29  Robert Dewar  <dewar@adacore.com>
5617         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
5618         recursive calls.
5619         (Is_Possibly_Unaligned_Object): Correct typo that
5620         resulted in inaccurate result for unaligned scalars within records.
5622 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
5624         * freeze.adb (Freeze_Record_Type): If the type of the component is an
5625         itype whose parent is controlled and not yet frozen, do not create a
5626         freeze node for the itype if expansion is disabled.
5628 2005-03-29  Vincent Celier  <celier@adacore.com>
5630         * make.adb (Gnatmake): Don't fail if the main project file is declared
5631         as having no Ada sources. Do not display message "no sources to
5632         compile" in quiet output.
5634 2005-03-29  Doug Rupp  <rupp@adacore.com>
5636         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
5637         extra tools.
5639 2005-03-29  Robert Dewar  <dewar@adacore.com>
5641         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
5642         child.
5644 2005-03-29  Robert Dewar  <dewar@adacore.com>
5646         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
5647         missing TYPE Improve the error message generated when compiling a
5648         limited interface in Ada83 or Ada95 mode.
5650 2005-03-29  Robert Dewar  <dewar@adacore.com>
5652         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
5653         rather than proceed ahead using a junk attribute name.
5655 2005-03-29  Vincent Celier  <celier@adacore.com>
5657         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
5659         * prj-part.adb (Parse_Single_Project): Set the location of a project
5660         on its defining identifier, rather than on the reserved word "project".
5662         * prj-proc.adb (Expression): Adapt to the fact that default of external
5663         references may be string expressions, not always literal strings.
5664         (Recursive_Process): Set Display_Name equal to Name
5665         when Location is No_Location, that is when there is no actual file.
5666         Get the Display_Name of the project from the source, when it is not a
5667         virtual project.
5668         (Process): Use the Display_Name in error messages
5670         * prj-strt.adb (External_Reference): Allow default to be string
5671         expressions, not only literal strings.
5673 2005-03-29  Vincent Celier  <celier@adacore.com>
5675         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
5676         file and the reference symbol file to be the same file.
5678 2005-03-29  Thomas Quinot  <quinot@adacore.com>
5680         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
5681         forbid conversion of a local access-to-subprogram type to a remote one.
5683         * sem_util.adb (Wrong_Type): For a record type that is the expanded
5684         equivalent type for a remote access-to-subprogram type, go back to the
5685         original RAS entity when displaying an error message, so the casing is
5686         the original source casing.
5688 2005-03-29  Robert Dewar  <dewar@adacore.com>
5690         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
5691         on param update.
5693 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
5695         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
5696         subtype if code is being pre-analyzed, to prevent un-expanded
5697         references to protected formals, among others.
5698         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
5699         interpretation that can be a call, include the result of the call as a
5700         possible interpretation of the dereference.
5702         * sem_ch5.adb (Process_Bounds): Determine type of range by
5703         pre-analyzing a copy of the original range, and then analyze the range
5704         with the expected type.
5706         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
5707         with an overloaded prefix where not all interpretations yield an
5708         access to subprogram, do not rewrite node as a call.
5709         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
5710         the node as a call once the context identifies the interpretation of
5711         the prefix whose call yields the context type.
5712         (Valid_Conversion): For the case of a conversion between
5713         local access-to-subprogram types, check subtype conformance using
5714         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
5715         detailed error message.
5717 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
5719         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
5720         indicator, indicate that the formal can never be null.
5721         (Process_Formals): If a formal has a non_null indicator, insert the
5722         resulting subtype immediately before the enclosing subprogram decl,
5723         and not at the beginning of the corresponding declarative part, to
5724         prevent access before elaboration (Ada2005).
5726 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5728         PR ada/19956
5729         * utils.c (finish_record_type): Use variable_size when setting sizes.
5731 2005-03-29  Robert Dewar  <dewar@adacore.com>
5733         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
5734         guarantee Unix style line terminators for the output files, even when
5735         running on windows.
5737 2005-03-29  Robert Dewar  <dewar@adacore.com>
5739         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
5740         buffer if an exception is raised.
5742 2005-03-29  Ed Falis  <falis@adacore.com>
5744         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
5745         VxWorks 653 1.4
5747 2005-03-29  Robert Dewar  <dewar@adacore.com>
5749         * sem_util.ads: Minor reformatting
5750         * gnat_rm.texi: Minor editing.
5752 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
5754         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
5755         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
5757 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
5759         * adaint.c (__gnat_portable_spawn): Adjust cast.
5761 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
5763         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
5765 2005-03-17  Pascal Obry  <obry@adacore.com>
5767         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
5768         used.
5770         * expect.c (__gnat_waitpid): Moved here from adaint.c.
5771         Reimplement under Win32 using Win32 API.
5773         (__gnat_kill) [Win32]: Properly close the process handle before leaving
5774         this routine.
5776 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
5778         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
5779         (DECL_RENAMED_OBJECT): New accessor macro.
5780         (SET_DECL_RENAMED_OBJECT): New setter macro.
5782         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
5783         object in all cases.  Attach the renamed object to the VAR_DECL.
5784         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
5785         field is not prescribed.
5787         * misc.c (gnat_handle_option): Handle -gnatO separately.
5788         (gnat_print_decl) <VAR_DECL>: New case.
5789         Print the DECL_RENAMED_OBJECT node.
5791         * lang.opt:  Declare separate -gnatO option.
5793         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
5794         pointer, replace it with the renamed object.
5795         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
5796         pointer type if the source is not a fat pointer type whose underlying
5797         array has the same non-zero alias set as that of the destination array.
5799 2005-03-17  Javier Miranda  <miranda@adacore.com>
5801         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
5802         (Get_Inheritance_Depth): Removed.
5803         (Set_Inheritance_Depth): Removed.
5805         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
5806         subprogram Get_Expanded_Name because it is not referenced by the
5807         frontend.
5809         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
5810         (CPP_Get_Inheritance_Depth): Removed.
5811         (CPP_Set_Inheritance_Depth): Removed.
5813         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
5815 2005-03-17  Robert Dewar  <dewar@adacore.com>
5817         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
5818         3, since we now expect GCC 3 to do all the work.
5820 2005-03-17  Javier Miranda  <miranda@adacore.com>
5822         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
5823         of one barrier to avoid wrong usage of this attribute.
5825         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
5826         First_Private_Entity.
5828         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
5829         the subprogram against wrong usage.
5830         Adapt the code to traverse the entities in the
5831         scope of a record_type because in addition to its usage regarding
5832         packages, this subprogram is also called by Expand_N_Freeze_Entity
5833         to install the visible declarations of the enclosing scope of a
5834         record_type_with_private to establish the proper visibility before
5835         freezing the entity and related subprograms.
5837 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
5839         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
5840         entry formals.
5842 2005-03-17  Thomas Quinot  <quinot@adacore.com>
5844         * exp_ch3.adb (Check_Attr): New subprogram.
5845         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
5846         into a new Check_Attr subprogram, in order to provide a more
5847         explanatory error message (including the name of the missing attribute).
5848         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
5849         subprogram determines whether a default implementation exists for a
5850         given stream attribute.
5851         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
5852         Determine whether to generate a default implementation for each stream
5853         attribute separately, as this depends on the specific attribute.
5855         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
5856         limited extension where a stream attribute is missing for a limited
5857         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
5858         generate a bogus reference to the missing attribute to prevent
5859         cascaded errors. Instead, generate a null statement.
5861         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
5862         available for a limited type if it has been specified for an ancestor
5863         of the type.
5865 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
5867         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
5868         entity is an operator.
5870 2005-03-17  Thomas Quinot  <quinot@adacore.com>
5872         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
5873         spec, to make this predicate available to other units.
5875         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
5876         reimplementing it.
5878         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
5879         when no distribution runtime library is available.
5881         * sem_res.adb, sem_dist.adb: Disable expansion of remote
5882         access-to-subprogram types when no distribution runtime library is
5883         available.
5884         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
5885         predicate available to other units.
5887         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
5888         spec, to make this predicate available to other units.
5890 2005-03-17  Vincent Celier  <celier@adacore.com>
5892         * make.adb (Insert_Project_Sources): Make sure the Q is always
5893         initialized.
5895         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
5896         the default for the tree, not the global default naming.
5898         * prj-proc.adb (Recursive_Process): No need to put the default naming
5899         in the project data, it's already there.
5901 2005-03-17  Doug Rupp  <rupp@adacore.com>
5903         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
5905         * 5xcrtl.ads: Renamed to...
5906         * s-crtl-vms64.ads: ...this new file
5908 2005-03-17  Robert Dewar  <dewar@adacore.com>
5910         PR ada/19519
5912         * namet.adb (Copy_One_Character): Set proper wide character encoding
5913         for upper half character if we have upper half encoding.
5915 2005-03-17  Robert Dewar  <dewar@adacore.com>
5917         * par.adb (Par): Improved msg for attempt to recompile predefined unit
5919 2005-03-17  Thomas Quinot  <quinot@adacore.com>
5921         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
5922         tagged limited type, the TSS is a newly built renaming declaration:
5923         insert it using Set_TSS, not Copy_TSS.
5925 2005-03-17  Javier Miranda  <miranda@adacore.com>
5927         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
5928         Try_Object_Operation): Analyze the object that is accessible
5929         through the prefix of the subprogram call before we apply
5930         the transformation of the object-operation notation.
5932 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
5934         * s-taprob.adb (Initialize_Protection): Initialize the protected
5935         object's owner to Null_Task.
5936         (Lock): If pragma Detect_Blocking is in effect and the caller of this
5937         procedure is already the protected object's owner then Program_Error
5938         is raised. In addition the protected object's owner is updated.
5939         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
5940         of this procedure is already the protected object's owner then
5941         Program_Error is raised.
5942         In addition the protected object's owner is updated.
5943         (Unlock): Remove the ownership of the protected object.
5945         * s-taprob.ads (Protection): Add the field Owner, used to store the
5946         protected object's owner.
5947         This component is needed for detecting one type of potentially blocking
5948         operations (external calls on a protected subprogram with the same
5949         target object as that of the protected action). Document the rest of
5950         the components.
5952         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
5953         Initialize the protected object's owner to Null_Task.
5954         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
5955         caller of this procedure is already the protected object's owner then
5956         Program_Error is raised.
5957         Do not raise Program_Error when this procedure is called from a
5958         protected action.
5959         (Unlock_Entries): Remove the ownership of the protected object.
5960         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
5961         of this procedure is already the protected object's owner then
5962         Program_Error is raised.
5963         Do not raise Program_Error when this procedure is called from
5964         a protected action.
5966         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
5967         used to store the protected object's owner.
5969         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
5970         effect and this procedure (a potentially blocking operation) is called
5971         from whithin a protected action, Program_Error is raised.
5972         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
5973         and this procedure (a potentially blocking operation) is called from
5974         whithin a protected action, Program_Error is raised.
5976 2005-03-17  Vincent Celier  <celier@adacore.com>
5977             Nicolas Setton  <setton@adacore.com>
5979         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
5980         switch, not supported by the linker on Darwin. Add '_' before
5981         <library>init, as this character is added unconditionally by the
5982         compiler.
5983         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
5984         correct one ".dylib". This fixes detection of the archive files when
5985         building library projects.
5987 2005-03-17  Vincent Celier  <celier@adacore.com>
5989         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
5990         -gnat83, -gnat95 and -gnat05.
5992 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
5994         * gnat_ugn.texi: Document gnatmem restriction
5996 2005-03-17  Thomas Quinot  <quinot@adacore.com>
5998         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
5999         cleanup
6001 2005-03-17  Robert Dewar  <dewar@adacore.com>
6003         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
6004         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
6005         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
6007         * casing.adb: Comment improvements
6009 2005-03-17  Pascal Obry  <obry@adacore.com>
6011         * g-expect.adb: Minor reformatting.
6013 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
6015         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
6016         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
6017         to dependencies.
6019 2005-03-15  Vincent Celier  <celier@adacore.com>
6021         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
6022         Add new parameter In_Tree to specify the project tree: needed
6023         by the project manager. Adapt to changes in project manager
6024         using new parameter In_Tree.
6026 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
6028         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
6029         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
6030         ada/bldtools to avoid make -jN failures.
6032 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
6034         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
6035         to NULL_TREE on entry.
6037 2005-03-15  Robert Dewar  <dewar@adacore.com>
6039         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
6040         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
6041         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
6042         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
6043         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
6044         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
6045         system-interix.ads, system-solaris-sparc.ads,
6046         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
6047         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
6048         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
6049         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
6050         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
6051         Compiler_System_Version to be False.
6053         * opt.ads: Add new flag Opt.Address_Is_Private
6055         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
6056         Add new parameter Compiler_System_Version to avoid checking for
6057         completeness of parameters when compiler is compiling itself.
6058         Allows old versions of GNAT to be compiled with new compiler.
6060 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
6062         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
6063         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
6064         calling thread.
6065         (Stack_Base_Available): New flag.
6066         (Get_Page_Size): New overloaded functions imported from C.
6067         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
6068         PROT_ON, PROT_OFF): New constants.
6069         (mprotect): New function imported from C.
6070         (pthread_teb_t): New record type.
6072         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
6073         (Create_Task): Account for the Yellow Zone and the guard page.
6075 2005-03-15  Vincent Celier  <celier@adacore.com>
6077         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
6078         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
6079         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
6080         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
6081         Library_File_Name_For): Add new parameter In_Tree
6082         to specify the project tree: needed by the project manager.
6083         Adapt to changes in project manager using new parameter In_Tree.
6084         Remove local imports, use functions in System.CRTL.
6086         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
6087         to use the project manager.
6089         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
6090         In_Tree to designate the project tree. Adapt to changes in the project
6091         manager, using In_Tree.
6093         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
6094         Copy_Interface_Sources): Add new parameter In_Tree to specify the
6095         project tree: needed by the project manager.
6096         (Build_Library): Check that Arg'Length >= 6 before checking if it
6097         contains "--RTS=...".
6099         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
6100         Library_File_Name_For): Add new parameter In_Tree to specify the
6101         project tree: needed by the project manager.
6103         * prj.ads, prj.adb: Major modifications to allow several project trees
6104         in memory at the same time.
6105         Change tables to dynamic tables and hash tables to dynamic hash
6106         tables. Move tables and hash tables from Prj.Com (in the visible part)
6107         and Prj.Env (in the private part). Move some constants from the visible
6108         part to the private part. Make other constants deferred.
6109         (Project_Empty): Make it a variable, not a function
6110         (Empty_Project): Add parameter Tree. Returns the data with the default
6111         naming data of the project tree Tree.
6112         (Initialize): After updating Std_Naming_Data, copy its value to the
6113         component Naming of Project Empty.
6114         (Register_Default_Naming_Scheme): Use and update the default naming
6115         component of the project tree, instead of the global variable
6116         Std_Naming_Data.
6117         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
6118         Tree is not defaulted, return the default naming data of the Tree.
6119         (Initial_Buffer_Size): Constant moved from private part
6120         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
6121         variables initialized in procedure Initialize.
6122         (Add_To_Buffer): Add two in out parameters to replace global variables
6123         Buffer and Buffer_Last.
6124         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
6125         functions.
6126         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
6127         hash tables.
6128         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
6129         for the project tree.
6130         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
6131         constant at the beginning of the package spec, so that they cane be used
6132         in subprograms before their full declarations.
6133         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
6134         (Empty_Project): Add parameter of type Project_Node_Ref
6135         (Private_Project_Tree_Data): Add component Default_Naming of type
6136         Naming_Data.
6137         (Buffer, Buffer_Last): remove global variables
6138         (Add_To_Buffer): Add two in out parameters to replace global variables
6139         Buffer and Buffer_Last.
6140         (Current_Packages_To_Check): Remove global variable
6141         (Empty_Name): Move to private part
6142         (No-Symbols): Make it a constant
6143         (Private_Project_Tree_Data): New type for the private part of the
6144         project tree data.
6145         (Project_Tree_Data): New type for the data of a project tree
6146         (Project_Tree_Ref): New type to designate a project tree
6147         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
6148         for the project tree.
6150         * prj-attr.ads: Add with Table; needed, as package Prj no longer
6151         imports package Table.
6153         * prj-com.adb: Remove empty, no longer needed body
6155         * prj-com.ads: Move most of the content of this package to package Prj.
6157         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
6158         designate the project node tree and Packages_To_Check to replace
6159         global variable Current_Packages_To_Check.
6160         Add new parameters In_Tree and Packages_To_Check to local subprograms,
6161         when needed. Adapt to changes in project manager with project node tree
6162         In_Tree.
6164         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
6165         project tree to most subprograms. Move tables and hash tables to
6166         private part of package Prj.
6167         Adapt to changes in project manager using project tree In_Tree.
6169         * prj-makr.adb (Tree): New constant to designate the project node tree
6170         Adapt to change in project manager using project node tree Tree
6172         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
6173         display the Library_Src_Dir and the Library_Dir.
6174         Add new parameter In_Tree to designate the project node tree to most
6175         subprograms. Adapt to changes in the project manager, using project tree
6176         In_Tree.
6177         (Check_Naming_Scheme): Do not alter the casing on platforms where
6178         the casing of file names is not significant.
6179         (Check): Add new parameter In_Tree to designate the
6181         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
6182         designate the project tree.
6183         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
6185         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
6186         to replace those that were in the private part of package Prj.
6187         Add new parameter In__Tree to designate the project node tree to most
6188         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
6189         (Post_Parse_Context_Clause): When specifying the project node of a with
6190         clause, indicate that it is a limited with only if there is "limited"
6191         in the with clause, not necessarily when In_Limited is True.
6192         (Parse): Add new parameter In_Tree to designate the project node tree
6194         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
6195         designate the project node tree. Adapt to change in Prj.Tree with
6196         project node tree In_Tree.
6198         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
6199         tree In_Tree in the call to function Empty_Process to give its initial
6200         value to the project data Processed_Data.
6201         Add new parameters In_Tree to designate the project tree and
6202         From_Project_Node_Tree to designate the project node tree to several
6203         subprograms. Adapt to change in project manager with project tree
6204         In_Tree and project node tree From_Project_Node_Tree.
6206         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
6207         to replace those that were in the private part of package Prj.
6208         Add new parameter In_Tree to designate the project node tree to most
6209         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
6211         * prj-tree.ads, prj-tree.adb: Add new parameter of type
6212         Project_Node_Tree_Ref to most subprograms.
6213         Use this new parameter to store project nodes in the designated project
6214         node tree.
6215         (Project_Node_Tree_Ref): New type to designate a project node tree
6216         (Tree_Private_Part): Change table to dynamic table and hash tables to
6217         dynamic hash tables.
6219         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
6220         the project tree to most subprograms. Adapt to changes in project
6221         manager using project tree In_Tree.
6223         * makegpr.adb (Project_Tree): New constant needed to use project
6224         manager.
6226 2005-03-15  Olivier Hainque  <hainque@adacore.com>
6228         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
6229         for sigactions with SA_SIGINFO set. Call
6230         __gnat_adjust_context_for_raise before raising, to perform the
6231         potentially required adjustments to the machine context for the GCC
6232         unwinder.
6234         * raise.h (__gnat_adjust_context_for_raise): New prototype.
6236         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
6237         Adjust PC by one in the provided machine context.
6238         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
6239         so that the handler is passed the context structure to adjust prior to
6240         the raise.
6241         (__gnat_error_handler) HPUX: Adjust the signature to match what an
6242         SA_SIGINFO sigaction should look like. Call
6243         __gnat_adjust_context_for_raise before actually raising.
6244         (__gnat_adjust_context_for_raise): Default noop to help PC
6245         adjustments before raise from signal handlers.
6246         (__gnat_error_handler): Indirectly call a predicate function to
6247         determine if a condition should be resignaled or not.
6248         (__gnat_set_resignal_predicate): User interface to modify the predicate.
6249         (__gnat_default_resignal_p): Default GNAT predicate.
6251 2005-03-15  Doug Rupp  <rupp@adacore.com>
6253         * adaint.c: Prefix #include of VMS system header files with vms/
6254         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
6255         Do not define a dummy function "convert_addresses" under Darwin,
6256         not needed.
6258         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
6259         with vms/
6261 2005-03-15  Nicolas Setton  <setton@adacore.com>
6263         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
6264         PPC/AIX.
6266 2005-03-15  Robert Dewar  <dewar@adacore.com>
6268         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
6269         AI-386.
6271         * a-retide.ads: Minor comment changes
6273 2005-03-15  Robert Dewar  <dewar@adacore.com>
6275         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
6276         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
6277         Realloc_For_Chunk to private part of package.
6278         New subprograms for AI-301
6280         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
6281         Get_Line procedure.
6282         Avoid unnecessary use of Get/Set_Wide_String
6284 2005-03-15  Robert Dewar  <dewar@adacore.com>
6286         PR ada/13470
6288         * a-stunau.ads, a-stunau.adb:
6289         Change interface to allow efficient (and correct) implementation
6290         The previous changes to allow extra space in unbounded strings had
6291         left this interface a bit broken.
6293         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
6295         * g-spipat.ads, g-spipat.adb: New interface for Get_String
6296         Minor reformatting (function specs)
6298         * g-spitbo.adb: New interface for Get_String
6300         * g-spitbo.ads: Minor reformatting
6302         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
6304         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
6306 2005-03-15  Javier Miranda  <miranda@adacore.com>
6307             Robert Dewar  <dewar@adacore.com>
6308             Thomas Quinot  <quinot@adacore.com>
6309             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6311         * atree.ads, atree.adb: Add support for Elist24 field
6313         * atree.h: Fix wrong definition of Field27
6314         Add support for Elist16 field
6315         Add support for Elist24 field
6317         * einfo.ads, einfo.adb (Abstract_Interfaces,
6318         Set_Abstract_Interfaces): New subprograms.
6319         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
6320         subprograms.
6321         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
6322         entities rather than a single node.
6323         (Is_Interface, Set_Is_Interface): New subprogram
6324         (First_Tag_Component): New syntesized attribute
6325         (Next_Tag_Component): New synthesized attribute
6326         (Write_Entity_Flags): Upgraded to write Is_Interface
6327         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
6328         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
6329         (Task_Body_Procedure): New subprogram to read this attribute.
6330         (Set_Task_Body_Procedure): New subprogram to set this attribute.
6331         (Has_Controlled_Component): Now applies to all entities.
6332         This is only a documentation change, since it always worked to apply
6333         this to other than composite types (yielding false), but now this is
6334         official.
6335         Update documentation on Must_Be_Byte_Aligned for new spec
6337         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
6338         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
6339         uses of the Access_Disp_Table attribute to reference the first dispatch
6340         table associated with a tagged type. As
6341         part of the implementation of abstract interface types,
6342         Access_Disp_Table has been redefined to contain a list of dispatch
6343         tables (rather than a single dispatch table).
6344         Similarly, upgrade all the references to Tag_Component by the
6345         new attribute First_Tag_Component.
6346         (Find_Inherited_TSS): Moved to exp_tss.
6347         Clean up test in Expand_N_Object_Declaration for cases
6348         where we need to do a separate assignment of the initial value.
6349         (Expand_N_Object_Declaration): If the expression in the
6350         declaration of a tagged type is an aggregate, no need to generate an
6351         additional tag assignment.
6352         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
6353         is to be deleted.
6354         Bit packed array ops are only called if operands are known to be
6355         aligned.
6356         (Component_Equality): When returning an N_Raise_Program_Error statement,
6357         ensure that its Etype is set to Empty to avoid confusing GIGI (which
6358         expects that only expressions have a bona fide type).
6359         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
6360         determine the amount of data to be copied.
6362         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
6363         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
6364             INTERFACE_TYPE_DEFINITION ::=
6365               [limited | task | protected | synchronized] interface
6366                 [AND interface_list]
6368         * par-ch3.adb (P_Type_Declaration): Modified to give support to
6369         interfaces.
6370         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
6371         interfaces.
6372         (P_Interface_Type_Definition): New subprogram that parses the new
6373         syntax rule of Ada 2005 interfaces
6374         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
6375         messages by the correct RENAMES (quotes removed).
6377         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
6378         attribute First_Tag_Component.
6380         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
6381         (Interface_List, Set_Interface_List): New subprograms.
6382         (Interface_Present, Set_Interface_Present): New subprograms.
6383         (Limited_Present, Set_Limited_Present): Available also in derived
6384         type definition nodes.
6385         (Protected_Present, Set_Protected_Present): Available also in
6386         record type definition and
6387         derived type definition nodes.
6388         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
6389         (Task_Present, Set_Task_Present): New subprogram.
6390         (Task_Body_Procedure): Removed.
6391         (Set_Task_Body_Procedure): Removed.
6392         These subprogram have been removed because the attribute
6393         Task_Body_Procedure has been moved to the corresponding task type
6394         or task subtype entity to leave a field free to store the list
6395         of interfaces implemented by a task (for AI-345)
6396         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
6397         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
6398         expression flag Do_Range_Check
6399         (Exception_Junk): Change to Flag7 to accomodate above change
6400         (Box_Present, Default_Name, Specification, Set_Box_Present,
6401         Set_Default_Name, Set_Specification): Expand the expression
6402         "X in N_Formal_Subprogram_Declaration" into the corresponding
6403         two comparisons. Required to use the csinfo tool.
6405         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
6406         "with string" given.
6408         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
6409         expression given.
6411         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
6412         in 2005 mode
6414         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
6415         attribute Task_Body_Procedure rather than the old semantic field that
6416         was available in the task_type_declaration node.
6418         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
6419         interface type definitions.
6420         (P_Formal_Derived_Type_Definition): Modified to handle the list of
6421         interfaces.
6423         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
6424         task type declaration.
6425         (P_Protected): Modified to handle the list of interfaces in a
6426         protected type declaration.
6428 2005-03-15  Doug Rupp  <rupp@adacore.com>
6429             Vincent Celier  <celier@adacore.com>
6431         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
6432         (Gen_Output_File_C): Likewise.
6433         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
6435 2005-03-15  Thomas Quinot  <quinot@adacore.com>
6437         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
6438         is an N_Raise_Constraint_Error node, create a new copy of it without
6439         going through a call to Duplicate_Subexpr.
6441 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
6442             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6443             Nicolas Setton  <setton@adacore.com>
6444             Ed Schonberg  <schonberg@adacore.com>
6446         PR ada/19900
6447         PR ada/19408
6448         PR ada/19140
6449         PR ada/20255
6451         * decl.c (gnat_to_gnu_field): Reject aliased components with a
6452         representation clause that prescribes a size not equal to the rounded
6453         size of their types.
6454         (gnat_to_gnu_entity, case E_Component): Always look at
6455         Original_Record_Component if Present and not the entity.
6456         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
6457         of tagged extension types by not making field for components that are
6458         inside the parent.
6459         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
6460         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
6461         expression to the type of the object when the object is constant.
6462         Reverse defer_debug_incomplete_list before traversing it, so that trees
6463         are processed in the order at which they were added to the list. This
6464         order is important when using the stabs debug format.
6465         If we are deferring the output of debug information, also defer this
6466         output for a function return type.
6467         When adding fields to a record, prevent emitting debug information
6468         for incomplete records, emit the information only when the record is
6469         complete.
6470         (components_to_record): New parameter defer_debug.
6471         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
6472         (gnat_to_gnu_field_decl): New function.
6473         (substitution_list, annotate_rep): Call it.
6474         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
6475         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
6476         No longer update discriminants to not be a COMPONENT_REF.
6477         (copy_alias_set): Strip padding from input type; also handle
6478         unconstrained arrays properly.
6480         * gigi.h (write_record_type_debug_info): New function.
6481         Convert to use ANSI-style prototypes. Remove unused
6482         declarations for emit_stack_check, elab_all_gnat and
6483         set_second_error_entity.
6484         (gnat_to_gnu_field_decl): New decl.
6486         * utils.c (write_record_type_debug_info): New function.
6487         (finish_record_type): Delegate generation of debug information to
6488         write_record_type_debug_info.
6489         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
6490         (update_pointer_to): Fix pasto.
6491         (convert) <UNION_TYPE>: Accept slight type variations when
6492         converting to an unchecked union type.
6494         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
6495         replace the N_Freeze_Entity with a null statement.
6497         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
6498         within a constrained subcomponent of an enclosing record, place the
6499         freeze nodes in the scope stack entry for the enclosing record.
6500         (Undelay_Type): New Subprogram.
6501         (Set_Small_Size): Pass T, the type to modify; all callers changed.
6502         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
6503         within records; allow them to have freeze nodes if their base types
6504         aren't frozen yet.
6506         * exp_util.adb (Remove_Side_Effects): Properly test for
6507         Expansion_Delayed and handle case when it's inside an
6508         N_Qualified_Expression.
6510         * sem_ch3.adb (Derived_Type_Declaration): New predicate
6511         Comes_From_Generic, to recognize accurately that the parent type in a
6512         derived type declaration can be traced back to a formal type, because
6513         it is one or is derived from one, or because its completion is derived
6514         from one.
6515         (Constrain_Component_Type): If component comes from source and has no
6516         explicit constraint, no need to constrain in in a subtype of the
6517         enclosing record.
6518         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
6519         Minor change to propagate Is_Ada_2005 flag
6521         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
6522         Expansion_Delayed is False.
6523         (assoc_to_constructor): Ignore fields that have a
6524         Corresponding_Discriminant.
6525         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
6526         function returns "by target", dereference the target pointer using the
6527         type of the actual return value.
6528         <all>: Be prepared for a null gnu_result.
6529         (processed_inline_subprograms): Check flag_really_no_inline
6530         instead of flag_no_inline.
6531         (set_second_error_entity): Remove unused function.
6532         (gnat_to_gnu, case N_Selected_Component): Call
6533         gnat_to_gnu_field_decl.
6534         (assoc_to_constructor): Likewise.
6536 2005-03-15  Robert Dewar  <dewar@adacore.com>
6537             Ed Schonberg  <schonberg@adacore.com>
6538             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6540         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
6541         Must_Be_Byte_Aligned for cases where we do not need to use a
6542         System.Pack_nn unit.
6544         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
6545         as procedures.
6546         Needed now that we do some processing for IN parameters as well. This
6547         may well fix some unrelated errors.
6548         (Expand_Call): Handle case of unaligned objects (in particular those
6549         that come from packed arrays).
6550         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
6551         renamed entity is an inherited operation, re-expand the call using the
6552         original operation, which is the one to call.
6553         Detect attempt to inline parameterless recursive subprogram.
6554         (Represented_As_Scalar): Fix to work properly with private types
6555         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
6556         accurate estimate. Yields True in far fewer cases than before,
6557         improving the quality of code that depends on this test.
6559         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
6560         over both visible and private declarations to remove them from tree,
6561         and mark subprograms declared in package as eliminated, to prevent
6562         spurious use in subsequent compilation of generic units in the context.
6564         * exp_util.ads: Minor cleanup in variable names
6566         * sem_eval.ads, sem_eval.adb: Minor reformatting
6567         (Compile_Time_Known_Bounds): New function
6569 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
6571         * exp_ch7.adb (Convert_View): Use base types of underlying types when
6572         determining whether an unchecked conversion is needed for the argument
6573         of an initialization call.
6575 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
6577         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
6578         that appears in the instantiation rather than the internal subtype
6579         generated in the wrapper package, to avoid anomalies in gigi when the
6580         target is derived from a private type whose full view is an access type.
6582 2005-03-15  Robert Dewar  <dewar@adacore.com>
6584         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
6585         not needed.
6586         Add documentation to replace the use of this flag
6587         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
6588         the x86_64.
6590 2005-03-15  Thomas Quinot  <quinot@adacore.com>
6592         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
6593         here from exp_attr so it can be shared between exp_attr and exp_dist.
6594         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
6595         all TSS names, not a subset thereof, and the previous name introduced
6596         an unnecessarily confusion that a distinction might exist between
6597         "OK" TSS names and some "not OK" TSS names.
6599 2005-03-15  Doug Rupp  <rupp@adacore.com>
6601         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
6602         Command_Name.
6604 2005-03-15  Pascal Obry  <obry@adacore.com>
6605             Eric Botcazou  <ebotcazou@adacore.com>
6607         PR ada/20226
6608         PR ada/20344
6610         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
6611         when IN_RTS. This is to work around a bootstrap path problem.
6613         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
6614         table and pass it to __gnat_install_SEH_handler().
6615         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
6617         * lang.opt: Fix specification of -fRTS=.
6619 2005-03-15  Doug Rupp  <rupp@adacore.com>
6620             Bernard Banner  <banner@adacore.com>
6621             Vincent Celier  <celier@adacore.com>
6622             Arnaud Charlet  <charlet@adacore.com>
6624         PR ada/6852
6625         This change works fine when gnatlib is built from the gcc directory,
6626         but does not work when using the libada Makefile, since GCC_FOR_TARGET
6627         is not passed to ada/Makefile.in, so more work is needed by a
6628         Makefile/configure expert.
6630         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
6631         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
6632         Setup gnatlink switch -M for x86_64 linux, as it is already setup
6633         for Linux x86.
6634         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
6635         Run ranlib on libgccprefix.a
6636         Define PREFIX_OBJS for Darwin, to build libgccprefix.
6637         (ADA_INCLUDE_SRCS): Split Ada packages.
6639 2005-03-15  Robert Dewar  <dewar@adacore.com>
6641         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
6643         * impunit.adb: Add GNAT.UTF_32
6645         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
6647         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
6648         now uses GNAT.UTF_32).
6650         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
6651         capabilities for categorizing characters using Unicode categories
6653 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
6655         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
6656         instantiation that has been rewritten as a package body, retrieve spec
6657         to generate proper name for implicit_with_clause.
6658         (Install_Parents): Recognize a parent that is an instantiation but has
6659         been rewritten as a package declaration during analysis.
6661 2005-03-15  Javier Miranda  <miranda@adacore.com>
6662             Ed Schonberg  <schonberg@adacore.com>
6664         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
6665         parameter reported some error we immediately return. This improves the
6666         behaviour of the frontend in case of errors.
6667         (Install_Parent, Remove_Parent): Introduce new flag
6668         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
6669         ancestor of a generic child unit, when the child is being instantiated.
6670         (Inline_Instance_Body): If we are compiling the private
6671         part or the body of a child unit, restore the proper visibility of the
6672         parents after compiling the instance body.
6674 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
6675             Javier Miranda  <miranda@adacore.com>
6677         PR ada/15608
6678         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
6679         of a private type, in which case it is underlying_type that denotes
6680         the proper task. Also modified to use the new entity attribute
6681         that is directly available in the task type and task subtype entities
6682         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
6683         arrays when other dimensions than the first are constrained by
6684         discriminants of an enclosing record.
6685         (Insert_Explicit_Dereference): If the prefix is an indexed component or
6686         a combination of indexed and selected components, find ultimate entity
6687         and generate the appropriate reference for it, to suppress spurious
6688         warnings.
6689         (Note_Possible_Modification): If an entity name has no entity, return.
6690         (Is_Variable): A function call never denotes a variable.
6691         (Requires_Transient_Scope): For record types, recurse only on
6692         components, not on internal subtypes that may have been generated for
6693         constrained components.
6695 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
6697         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
6698         Eliminated as candidates for resolution. Both efficient, and avoids
6699         anomalies with operators declared in deleted code.
6700         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
6701         expansion is disabled (as when compiling a generic) to prevent spurious
6702         warnings on prefixes of selected components.
6704 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
6706         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
6707         attached to a list before checking whether it appears in the private
6708         declarations of the current package.
6709         (Make_Inequality_Operator): Insert declaration in proper declarative
6710         list rather than just setting the Parent field, so that
6711         Is_Private_Declaration can handle it properly.
6713 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
6715         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
6716         a renaming a body, check that the renamed subprogram in not intrinsic.
6717         (Find_Direct_Name): If several use_visible entities hide
6718         each other, and the context is a predefined file compiled through
6719         rtsfind, keep only the entity that comes from a predefined file.
6721 2005-03-15  Geert Bosch  <bosch@adacore.com>
6723         * s-fatgen.adb (Valid): Extend special exceptions to account for long
6724         long float padding to also cover AMD64 and IA64.
6726 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
6728         * s-imgwch.adb: Add with and use of Interfaces.
6729         (Img_Wide_Character): Change type of Val to Unsigned_16.
6730         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
6732 2005-03-15  Matthew Gingell  <gingell@adacore.com>
6734         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
6736 2005-03-15  Robert Dewar  <dewar@adacore.com>
6738         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
6740         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
6742         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
6744 2005-03-15  Robert Dewar  <dewar@adacore.com>
6746         * s-bitops.adb, s-bitops.ads,
6747         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
6748         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
6749         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
6750         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
6751         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
6752         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
6753         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
6754         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
6755         reformatting.
6757 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
6759         * utils2.c (build_binary_op): Fix typo.
6761 2005-03-15  Doug Rupp  <rupp@adacore.com>
6763         * s-crtl.ads (popen,pclose): New imports.
6765 2005-03-15  Cyrille Comar  <comar@adacore.com>
6767         * comperr.adb (Compiler_Abort): remove references to obsolete
6768         procedures in the bug boxes for various GNAT builds.
6770 2005-03-15  Vincent Celier  <celier@adacore.com>
6772         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
6774 2005-03-15  Geert Bosch  <bosch@adacore.com>
6775             Arnaud Charlet  <charlet@adacore.com>
6776             Robert Dewar  <dewar@adacore.com>
6777             Cyrille Comar  <comar@adacore.com>
6778             Sergey Rybin  <rybin@adacore.com>
6780         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
6781         too specific and long-winded to be appropriate for the GNAT User's
6782         Guide.
6783         Warn about use of GCC switches not documented in the GNAT User's Guide,
6784         as these may cause generated code to not conform to Ada semantics.
6785         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
6786         Add documentation for -gnat95 and -gnat05 switches
6787         Remove paragraph documenting obsolete way to refer to third party
6788         libraries.
6789         Add a few references to Ada_05 that were missing.
6790         Update documentation on -gnatZ/-gnatL.
6791         Document limitation when using -m64 under Solaris.
6792         Change the "Name Casing" subsection of the pretty-printer section
6793         according to the changes in the dictionary processing.
6795         * gnat_rm.texi: Document the Ada_05 pragma.
6796         Section on record representation clauses describes the new more
6797         relaxed rules about placement of large packed bit array components.
6798         Add documentation of GNAT.UTF_32
6800 2005-03-12  Daniel Berlin <dberlin@dberlin.org>
6802         * misc.c (gnat_post_options): Turn off structural
6803         aliasing for now.
6805 2005-03-08  Laurent Guerby <laurent@guerby.net>
6807         * system-linux-sparc.ads: Fix typo in previous commit.
6809 2005-03-07  James A. Morrison <phython@gcc.gnu.org>
6810             Laurent Guerby <laurent@guerby.net>
6812         PR ada/20035
6813         * system-linux-sparc.ads: New.
6814         * Makefile.in: Add sparc linux entry.
6816 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
6818         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
6819         parameters as unused.
6821 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
6822         Partial merge from libada-gnattools-branch:
6824         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
6825         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
6826         into code in gnattools/Makefile.in.  Remove direct dependencies on
6827         stamp-tools by tools clauses.
6828         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
6829         * config-lang.in: Add gnattools to $lang_dirs.
6831 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
6833         PR ada/19942
6834         * utils.c (gnat_type_for_mode): Return null instead of ICE because
6835         we asked for an unknown mode.
6837 2005-02-12  Richard Henderson  <rth@redhat.com>
6839         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
6840         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
6842 2005-02-10  Andreas Jaeger  <aj@suse.de>
6844         * init.c (__gnat_initialize): Mark parameter as unused.
6846 2005-02-09  Doug Rupp  <rupp@adacore.com>
6848         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
6849         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
6851 2005-02-09  Doug Rupp  <rupp@adacore.com>
6853         * gnatchop.adb (dup, dup2),
6854         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
6856         * gnatlbr.adb (mkdir),
6857         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
6859         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
6861 2005-02-09  Doug Rupp  <rupp@adacore.com>
6863         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
6865 2005-02-09  Robert Dewar  <dewar@adacore.com>
6866             Thomas Quinot  <quinot@adacore.com>
6867             Javier Miranda  <miranda@adacore.com>
6868             Pascal Obry  <obry@adacore.com>
6869             Ed Schonberg  <schonberg@adacore.com>
6870             Doug Rupp  <rupp@adacore.com>
6871             Gary Dismukes  <dismukes@adacore.com>
6872             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6874         * g-zstspl.ads: New file.
6876         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
6878         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
6879         Ada 95 mode
6880         Add definition of Wide_Wide_Space for AI-285
6882         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
6883         interface (to support Ada 95 and Ada 2005 units).
6884         Add Unbounded_IO files
6885         Add entries for Wide_Wide packages for AI-285
6886         Add list of containers packages to Ada 2005 unit list
6888         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
6889         support new Unbounded_IO package cleanly.
6891         * g-utf_32.ads, g-utf_32.adb: New files.
6893         * Makefile.rtl: Add entry for g-utf_32
6894         Add new files for Unbounded_IO
6895         Adjust make file for new AI-285 wide wide packages
6896         Add AI-302 containers to the run time.
6898         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
6899         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
6900         subprograms for AI-301.
6902         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
6904         * a-stunau.ads: Minor comment correction
6906         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
6907         etc.
6908         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
6909         (Check_RPC): Update to match changes in expanded code.
6910         Clean up unused entity.
6912         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
6913         was not taken into account.
6914         This includes proper initialization with Normalize_Scalars.
6915         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
6916         normalize scalars cases (particularly the latter) to do a better job
6917         of finding invalid representations.
6919         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
6921         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
6922         used
6924         * exp_dist.adb: Add support for wide wide character type
6925         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
6926         private part, generate stub bodies at the end of the private part,
6927         not the visible part.
6928         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
6929         PolyORB support.
6930         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
6931         generic wrapper to execute final processing after completing the
6932         expansion of the RPC receiver for an RACW.
6934         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
6935         packages and attributes.
6936         (Preset_Names): Addition of the new reserved words of Ada 2005,
6937         that is interface, overriding and synchronized.
6938         (Get_Pragma_Id): Give support to the use of the new reserved word
6939         "interface" as a pragma name.
6940         (Is_Pragma_Name): Give support to the use of the new reserved word
6941         "interface" as a pragma name.
6942         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
6943         attribute implementation.
6945         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
6946         checks to entities that are output parameters of Asm operations.
6947         Handle the Stream_Size attribute.
6948         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
6950         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
6952         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
6953         for second parameter being 0.0.
6954         Add support for wide wide character type.
6955         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
6957         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
6958         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
6959         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
6960         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
6961         for wide wide character cases.
6963         * cstand.adb: Create entities for Wide_Wide_Character and
6964         Wide_Wide_String.
6966         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
6967         accordance with AI-258.
6968         Add new declarations for 16/32 bit C character types (Part of AI285)
6970         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
6971         (Obsolescent_Warning): New field
6972         (Rep_Clause): New local subprogram used to share code. Returns the rep
6973         clause for which the name is given in parameter.
6974         (Has_Stream_Size_Clause): New routine.
6975         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
6976         (Address_Clause): Implementation is now using Rep_Clause.
6977         (Alignment_Clause): Idem.
6978         (Size_Clause): Idem.
6980         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
6981         entity in non-Ada 2005 mode and generate warning.
6983         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
6984         (Prag): Code cleanup. Remove old gnat pragma "overriding"
6986         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
6987         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
6988         on the named unit if the pragma is not in the current compilation unit,
6989         so that elaboration calls in the current unit can set up an elaboration
6990         dependency on the named unit, as needed.
6991         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
6992         subprogram as well as for subprograms declared within a package.
6993         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
6994         pragma overriding.
6996         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
6997         to z) to avoid some instances of duplication for Wide_Wide packages.
6999         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
7000         characters.
7002         * scn.adb: Char_Literal_Value field is now a Uint
7004         * scng.adb: Significant rewrite to handle new Ada 2005 features
7005         allowing wide and wide wide characters in program text, e.g. for
7006         identifiers, as described in AI-285.
7007         (Set_Reserved): New procedure, makes setting up keywords cleaner.
7008         (Initialize_Scanner): Register the new reserved words of Ada 2005.
7009         (Scan): Give support to the new reserved words.
7011         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
7012         warning notifying that interface, overriding, and synchronized are
7013         new reserved words.
7014         (P_Pragma): Allow the use of the new reserved word "interface" as
7015         a pragma name.
7017         * gnatls.adb, gnatbind.adb,
7018         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
7019         identifiers named "interface" to "SAL_Interface".
7021         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
7022         (Structured Exception handling).
7023         (Gen_Main_C): Idem.
7025         * bindgen.adb:
7026         (Gen_Main_Ada): Set the default exit code if specified.
7027         (Gen_Main_C): Likewise.
7028         Part of *DC20-006.
7029         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
7030         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
7032         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
7033         new -Xnnn switch.
7035         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
7036         has a collision with the new Ada 2005 "interface" reserved word.
7038         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
7039         generate a warning notifying that interface, overriding, and
7040         synchronized are new reserved words.
7042         * scans.ads (Token_Type): Addition of the tokens corresponding to the
7043         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
7044         and Tok_Synchronized.
7046         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
7047         "dispatching" rather than "primitive" operations, since dispatching
7048         calls are now allowed to abstract formal subprograms (which are not
7049         primitive).
7050         Char_Literal_Value field is now a Uint
7051         (Resolve_Slice): If the prefix is an access to an unconstrained array,
7052         compute the actual subtype of the designated object to impose the proper
7053         index constraints.
7054         (Resolve_Selected_Component): Do not insert an access check if the
7055         prefix is an access type: such a node is expanded into an explicit
7056         dereference, on which the access check is performed anyway. Removes
7057         expensive duplicate checks.
7058         (Resolve_Call): Use new flag Is_Obsolescent and field
7059         Obsolescent_Warning so that pragma Obsolescent works on library
7060         subprograms.
7061         Add support for wide wide character type
7062         (Resolve_Allocator): Replace the error message on wrong null-exclusion
7063         value by a warning message.
7064         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
7065         as fixed-point, and one of the operands is non-static and universal, it
7066         can only be an illegal exponentiation operation, in which case there is
7067         no real value to retrieve.
7069         * exp_strm.adb: Add support for wide wide character type
7070         (Build_Elementary_Input_Call): Compute the size of the stream element by
7071         querying the rep chain to find the Stream_Attribute attribute value.
7072         (Build_Elementary_Write_Call): Ditto.
7074         * sem_aggr.adb: Char_Literal_Value field is now a Uint
7075         Add support for wide wide character type
7076         Replace the error messages on wrong null-exclusion value by warnings
7077         as described in Ada 2005.
7078         (Resolve_Extension_Aggregate): Document the fact that the error
7079         message on class-wide expressions in extensions aggregates.
7081         * sem_case.adb: Add support for wide wide character type
7083         * sem_ch13.adb: Add support for wide wide character type
7084         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
7086         * sem_ch3.adb: Add support for wide wide character type
7087         (Process_Subtype): If constraint is illegal for the type, set Ekind of
7088         now-useless Itype, to prevent cascaded errors on a compiler built
7089         without -gnatp.
7091         * sem_ch8.adb: Add with and use of Sem_Disp.
7092         (Analyze_Subprogram_Renaming): Replace unclean uses of
7093         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
7094         of Corresponding_Spec to Empty).
7095         (Attribute_Renaming): Replace use of Corresponding_Spec with
7096         Corresponding_ Formal_Spec and simplify condition.
7097         (Use_One_Package): Check that scope of homonym of identifier is defined,
7098         before checking whether it is a wrapper package.
7099         Add support for wide wide character type
7101         * sem_eval.adb: Add support for wide wide character type.
7102         (Eval_Arithmetic_Op): Check for compile time known signed integer
7103         overflow in the non-static case.
7104         (Subtypes_Statically_Match): A formal scalar type and its base type do
7105         not statically match.
7107         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
7108         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
7109         subtype).
7110         (Unit_Declaration_Node): Ditto.
7111         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
7112         has a packed array type, the prefix has been rewritten into a type
7113         conversion. Determine variable-ness from the converted expression.
7114         Handle wide wide character cases.
7116         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
7118         * stringt.ads, stringt.adb: Handle full UTF-32 range.
7119         Remove ["0A"] from comment, since it can look like a line terminator.
7120         Currently we don't permit this, but this is under discussion by the
7121         ARG, and it is easy enough to use a different example.
7123         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
7124         handling UTF-32 encoding for wide wide character.
7125         Implement new brackets coding ["hhhhhhhh"]
7126         Add UTF-8 encodings for full UTF-32 range
7128         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
7130         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
7131         bit range Add full UTF-32 support.
7132         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
7133         notify that constraint error will be raised at run-time
7134         because a null value is assigned to a null-excluding object.
7135         Remove some obsolete declarations and make Char_Code
7136         unsigned.
7138         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
7139         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
7140         Rcheck subprograms.
7142         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
7143         wrong null-exclusion value by a warning message.
7144         (Enable_Range_Check): Do range check if the prefix is an
7145         explicit dereference whose designated object is an unconstrained array.
7146         Current algorithm for removing duplicate checks is over-eager in this
7147         case.
7149         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
7150         null-exclusion value by a warning message
7152         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
7153         completely. Add support for Uint2 field
7155         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
7156         exp_prag.adb: Char_Literal_Value field is now a Uint.
7158         * exp_util.adb (Insert_Actions): Replace
7159         N_Formal_Subprogram_Declaration by
7160         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
7161         Char_Literal_Value field is now a Uint.
7163         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
7164         defined for subprogram renaming declarations. When set, the field
7165         indicates the defining entity of a corresponding formal subprogram
7166         when the renaming corresponds to a formal subprogram association in an
7167         instantiation.
7168         (Set_Corresponding_Formal_Spec): New procedure to return
7169         Corresponding_Formal_Spec field.
7170         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
7171         (which is now a subtype).
7172         Char_Literal_Value field is now a Uint
7174         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
7175         pointer to the base of the dispatch table.
7176         Minor changes to comments.
7177         (Controlling_Type): New function for determining the tagged type
7178         associated with a tagged primitive subprogram.
7179         (Expand_Dispatching_Call): Add support for a controlling actual that is
7180         directly a value of type Ada.Tag rather than a tagged object.
7182         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
7183         describing the new layout.
7184         (Dispatch_Table): The expander computes the actual array size, allocates
7185         the Dispatch_Table record accordingly, and generates code that displaces
7186         the base of the record after the Typeinfo_Ptr component. The access to
7187         these components is done by means of local functions.
7188         (Offset_To_Top): New function.
7189         (Typeinfo_Ptr): New function.
7190         (Get_TSD): Modified to access the new position of the TSD.
7191         (Set_TSD): Modified to save the TSD in its new position.
7193         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
7194         case of formal abstract subprograms. Add check and message for -gnat05.
7195         Update comments.
7197         * sem_ch12.adb: Add with and use for Sem_Disp.
7198         (Analyze_Associations): Minor change from "=" to "in" for use of
7199         N_Formal_Subtype_Declaration (which is now a subtype).
7200         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
7201         N_Formal_Subtype_Declaration (which is now a subtype).
7202         (Analyze_Formal_Subprogram): Add handling for
7203         N_Formal_Abstract_Subprogram, marking the formal as abstract and
7204         dispatching, setting the controlling status of the formal parameters
7205         and result, and issuing an error if there is no controlling type for
7206         the formal subprogram.
7207         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
7208         which is an unclean use of that field, we set the new field
7209         Corresponding_Formal_Spec to make the formal subprogram available to
7210         processing in Analyze_Subprogram_Declaration.
7211         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
7212         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
7213         Constrained, so that it is is does not statically match its anonymous
7214         base type.
7216         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
7217         abstract formal subprograms in error check for functions returning
7218         abstract types. Set scope of new designator for
7219         a parameterless subprogram, so that it is available when checking the
7220         body for nested subprograms, before full analysis of said body.
7221         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
7222         subprogram only if inner one comes from source.
7223         (Analyze_Function_Call): If the call is given in object notation, the
7224         analysis of the name rewrites the node and analyzes it with the proper
7225         argument list. After analyzing the name, if the call has been rewritten
7226         and the result type is set, no further analysis is needed.
7227         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
7228         mark in function specification, in a context where the formals are
7229         visible and hide outer homographs.
7231         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
7232         as the tagged type for the cases of abstract formal subprograms and
7233         renamings of those.  Clean up spec comments.
7234         (Check_Dispatching_Context): Add error message to indicate "abstract
7235         procedure", covering the case of a call to a formal abstract procedure
7236         that has statically tagged operands.
7237         (Check_Dispatching_Call): Check for the case of an actual given by
7238         a tag-indeterminate function call whose type is an ancestor of the
7239         containing call's associated tagged type. This situation can occur
7240         for inherited primitives with function defaults. In this case we
7241         use the tagged type's tag directly as the controlling argument for
7242         the calls.
7243         (Expand_Call): Name change on call to Expand_Dispatch_Call.
7245         * sprint.adb (Sprint_Node_Actual): Split
7246         N_Formal_Subprogram_Declaration into two alternatives for the new
7247         cases N_Formal_Abstract_Subprogram_Declaration and
7248         N_Formal_Concrete_Subprogram_Declaration.
7249         Char_Literal_Value field is now a Uint.
7251         * trans.c: Get rid of junk Uint2 reference.
7252         Char_Literal_Value field is now a Uint.
7253         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
7254         (gigi): Correct third arg to gimplify_body.
7256         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
7257         (TYPE_LANG_FLAG_0): Check for record or union.
7259         * treepr.adb: Char_Literal_Value field is now a Uint
7261         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
7262         UI_From_CC.
7264         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
7265         Add full UTF-32 support
7266         Char_Code is now 32 bits
7268         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
7269         wide character UTF_32 line terminators.
7270         Initialize Main_Source_File to avoid error when no main
7271         source is loaded.
7273         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
7274         (Main_Source_File) when no main source has been loaded, to avoid
7275         potential crash.
7277 2005-02-09  Robert Dewar  <dewar@adacore.com>
7279         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
7280         Fix name of Set routine
7282         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
7283         fixed packages.
7285         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
7286         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
7287         fixed packages
7289         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
7290         forms of Get_Line subprograms for AI-301.
7292         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
7293         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
7294         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
7295         a-stwima.ads: Minor reformatting.
7297 2005-02-09  Doug Rupp  <rupp@adacore.com>
7298             Thomas Quinot  <quinot@adacore.com>
7300         * adaint.c, adaint.h
7301         [VMS] (to_ptr32): New function.
7302         (MAYBE_TO_PTR32): New macro.
7303         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
7304         for pointer size.
7305         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
7306         [VMS] (#define fork()): Remove since unneccessary.
7307         (__gnat_set_close_on_exec): New routine to support
7308         GNAT.OS_Lib.Set_Close_On_Exec.
7310         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
7311         the parent side as close-on-exec so that they are not inherited by the
7312         child.
7314         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
7315         set or clear the FD_CLOEXEC flag on a file descriptor.
7317 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
7318             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7320         Fix for c330001 - PR ada/19386
7322         * decl.c:
7323         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
7324         on the field if Pragma Component_Alignment (Storage_Unit).
7325         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
7326         side-effects as if it were a constant; also make SAVE_EXPR to protect
7327         side-effects.
7328         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
7329         UNION_TYPE.
7330         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
7331         (components_to_record): Test it.
7332         Fix improper usage of REFERENCE_CLASS_P.
7334         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
7335         RECORD_TYPE.
7337         * utils2.c: Minor reformatting.
7339         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
7340         handle other cases like RECORD_TYPE.
7342         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
7344 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
7346         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
7347         component of an array of arrays in an assignment context, and the
7348         aggregate has component associations that require sliding on
7349         assignment, force reanalysis of the aggregate to generate a temporary
7350         before the assignment.
7351         (Must_Slide): Make global to the package, for use in Gen_Assign.
7353 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
7355         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
7356         unchecked union with no inferable discriminants, return a
7357         Raise_Program_Error node, rather than inserting it at the point the
7358         type is frozen.
7359         (Expand_Record_Equality, Component_Equality): Handle properly the case
7360         where some subcomponent is an unchecked union whose generated equality
7361         code raises program error.
7363 2005-02-09  Doug Rupp  <rupp@adacore.com>
7365         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
7366         [VMS] (#define exit hack): Remove.
7368 2005-02-09  Pascal Obry  <obry@adacore.com>
7369             Arnaud Charlet <charlet@adacore.com>
7371         * init.c (__gnat_initialize): Add a new parameter eh which contains the
7372         address of the exception registration. The Win32 version of this
7373         routine calls __gnat_install_SEH_handler() to initialize the SEH
7374         (Structured Exception Handling) handler.
7375         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
7376         SEH (Structured Exception Handling) now.
7377         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
7378         (__gnat_initialize for ppc-vxworks): Adjust comments and the
7379         preprocessor condition protecting the call to the extra eh setup
7380         subprogram, which is only available for the ppc target.
7381         (__gnat_clear_exception_count): replaced reference to
7382         variable taskIdCurrent by call to taskIdSelf(), cleaner.
7384         * seh_init.c: New file.
7386         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
7387         (GNATBIND_OBJS): Idem.
7389         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
7390         routine takes a new parameter (a pointer to the exception registration
7391         for the SEH (Structured Exception Handling) support.
7393         * raise.h: (__gnat_install_SEH_handler): New prototype.
7394         Update copyright notice.
7396         * s-tassta.adb (Task_Wrapper): Declare the exception registration
7397         record and initialize it by calling __gnat_install_SEH_handler.
7399 2005-02-09  Vincent Celier  <celier@adacore.com>
7401         * make.adb (Gnatmake): Do not fail when the main project has no object
7402         directory.
7404 2005-02-09  Doug Rupp  <rupp@adacore.com>
7406         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
7407         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
7408         [VMS]: Add translations for g-enblsp.adb.
7410         * s-asthan-vms.adb: Removed.
7411         * s-asthan-vms-alpha.adb: Added.
7413 2005-02-09  Pascal Obry  <obry@adacore.com>
7415         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
7416         (LIBGNAT_OBJS): Add seh_init.o.
7418 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
7420         PR ada/16592
7422         * Makefile.in: Link all gnat tools with -static-libgcc, since
7423         -shared-libgcc is now used by default on some systems (e.g. linux with
7424         recent binutils).
7425         Remove references to Makefile.prolog/generic, no longer used.
7427 2005-02-09  Vincent Celier  <celier@adacore.com>
7429         * prj-makr.adb (Process_Directory): Put file name in canonical case
7430         before matching against the patterns.
7431         If gnatname has been invoked as <prefix>-gnatname
7432         then invoke the compiler as <prefix>-gcc, not just "gcc".
7434 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
7436         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
7437         with expansion disabled. The actual subtype is needed among other
7438         places when the selected component appears in the context of a loop
7439         bound, and denotes a packed array.
7440         (Operator_Check): Always use the first subtype in the
7441         error message, to avoid the appearance of internal base types.
7442         (Transform_Object_Operation): Copy each actual in full
7443         to the parameter associations of the constructed call, rather than
7444         using the shallow copy mechanism of New_Copy_List. This ensures that
7445         the chaining of named associations is done properly.
7446         (Complete_Object_Operation): Rewrite node, rather than
7447         replacing it, so that we can trace back to the original selected
7448         component.
7450         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
7451         and calls that use object notation, if the called function is not
7452         declared  in a withed unit, place the elaboration constraint on the
7453         unit in the context that makes the function accessible.
7454         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
7455         imposes an elaboration constraint between two packages.
7457 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
7459         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
7460         views of a private type after handling its private dependents, to
7461         maintain proper stack discipline between entry and exit from the
7462         package.
7464 2005-02-09  Cyrille Comar  <comar@adacore.com>
7466         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
7467         Minor reformatting.
7469 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
7471         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
7472         fields for foreign threads.
7474 2005-02-09  Doug Rupp  <rupp@adacore.com>
7476         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
7477         recursion warnings when compiled with -gnatdm.
7479 2005-02-09  Robert Dewar  <dewar@adacore.com>
7481         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
7482         Slight fix to documentation of -gnaty with no parameters
7484         * xr_tabls.ads: Add ??? comment for missing overall comment
7486         * xsinfo.adb: Make default file name be sinfo.h, since this is what
7487         we now use by default.
7489         * xsnames.adb: Adjust end of file test to look for five space followed
7490         by '#' instead of six spaces. The format of xsnames.adb was modified
7491         in the last update.
7493         * a-numeri.ads: Add reference to AI-388 for greek letter pi
7494         identifier.
7496         * clean.adb: Minor reformatting.
7498         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
7499         gnatname.adb: Minor reformatting
7500         Add 2005 to copyright output when utility is run
7502         * csets.adb: Eliminate obsolete comment
7504         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
7505         Update comments.
7507         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
7509 2005-02-09  Sergey Rybin  <rybin@adacore.com>
7511         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
7512         the difference between compact and incompact layout and add the record
7513         representation clause to the example illustrating different layouts.
7514         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
7515         component clauses").
7517 2005-02-09  Florian Villoing  <villoing@adacore.com>
7519         * gnat_ugn.texi: Fix typos.
7520         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
7521         @file.
7522         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
7523         in the generated documentation.
7525 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
7527         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
7528         longer supported.
7529         Update linker wrapper when linking with non GNU C++.
7531 2005-02-09  Pascal Obry  <obry@adacore.com>
7533         * gnat_ugn.texi:
7534         Document the procedure to debug the DllMain routine on Windows.
7535         Add note about -funwind-tables and mixed Ada and C/C++ programming in
7536         ZCX mode.
7537         Document new BIND qualifer /RETURN_CODES=VMS.
7539 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
7541         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
7542         Edited gnatmetric chapter
7544 2005-02-09  Robert Dewar  <dewar@adacore.com>
7546         * gnat_rm.texi:
7547         Changes to document new wide wide character support
7548         For AI-285
7549         Update documentation on Normalize_Scalars and Initialize_Scalars
7551 2005-02-09  Pascal Obry  <obry@adacore.com>
7553         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
7555 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
7557         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
7558         from the VxWorks kernel) that is needed for getting the active
7559         priority of the different tasks.
7561         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
7562         Use a pragma Elaborate_Body in the spec file instead.
7563         Noticed by code reading.
7565 2005-02-09  Thomas Quinot  <quinot@adacore.com>
7567         * exp_util.ads: Minor correction in comment.
7569 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
7571         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
7572         since this procedure is now too complex to be worth inlining.
7574 2005-02-09  Richard Henderson  <rth@redhat.com>
7576         * utils.c (gnat_define_builtin): Remove.
7577         (gnat_install_builtins): Use build_common_builtin_nodes.
7579 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
7581         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
7582         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
7583         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
7584         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
7585         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
7586         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
7587         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
7588         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
7589         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
7590         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
7591         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
7592         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
7593         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
7594         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
7595         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
7596         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
7597         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
7598         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
7599         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
7600         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
7601         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
7602         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
7603         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
7604         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
7605         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
7606         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
7607         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
7608         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
7609         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
7610         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
7611         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
7612         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
7613         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
7614         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
7615         library.
7617 2005-01-27  Laurent GUERBY <laurent@guerby.net>
7619         * Makefile.in: Fix a-intnam.ads from previous commit,
7620         add 2005 to copyright.
7621         * a-intman-rtems.ads: Renamed to...
7622         * a-intnam-rtems.ads:
7624 2005-01-27  Laurent GUERBY <laurent@guerby.net>
7626         * Makefile.in: Rename GNAT RTEMS specific files.
7627         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
7628         5rosinte.ads, 5rparame.adb: Replaced by files below.
7629         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
7630         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
7632 2005-01-27  Joel Sherrill <joel.sherrill@oarcorp.com>
7633             Laurent GUERBY <laurent@guerby.net>
7635         PR ada/19488
7636         * 5rosinte.ads: Add No_Key constant.
7637         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
7638         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
7640 2005-01-26  Laurent GUERBY <laurent@guerby.net>
7642         PR ada/19414
7643         * i-cobol.adb (Valid_Numeric): Handle zero length case.
7645 2005-01-20  Richard Henderson  <rth@redhat.com>
7647         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
7648         a-intnam-linux.ads and system-linux-alpha.ads.
7649         * a-intnam-linux-alpha.ads: Remove file.
7650         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
7651         * system-linux-alpha.ads: New file.
7653 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
7655         PR ada/13470
7656         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
7657         set to the new string.
7659 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
7661         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
7662         to True.
7664 2005-01-18  Richard Henderson  <rth@redhat.com>
7666         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
7667         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
7668         for alpha-linux.
7669         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
7671 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
7673         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
7674         (GCC_ZCX_Support): Likewise.
7676 2005-01-11  Bastian Blank  <waldi@debian.org>
7678         * system-linux-s390.ads: Define Preallocated_Stacks.
7679         * system-linux-s390x.ads: Likewise.
7681 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
7683         * gnat_ugn.texi: Fix texi errors with null variables.
7685 2005-01-03  Thomas Quinot  <quinot@adacore.com>
7687         * gen-soccon.c: New utility program to generate g-soccon.ads
7688         automatically.
7690         * socket.c, gsocket.h: Split inclusion of system header files into a
7691         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
7693         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
7694         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
7695         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
7696         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
7697         should not be edited by hand anymore, but should be regenerated using
7698         gen-soccon.
7700 2005-01-03  Robert Dewar  <dewar@adacore.com>
7701             Ed Schonberg  <schonberg@adacore.com>
7702             Vincent Celier  <celier@adacore.com>
7704         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
7705         on/off, since this is an obsolescent feature, for which we now generate
7706         a warning.
7708         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
7709         warning mode is set and obsolescent usage of this attribute occurs.
7710         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
7711         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
7712         predates, and partly motivates, the adoption of the AI.
7713         Implement new Ada 2005 attribute Mod
7715         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
7716         attribute Mod.
7718         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
7720         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
7721         pragma restrictions.
7722         New entry for Ada 2005 attribute Mod.
7724         * par-prag.adb:
7725         Add recognition of new pragma Restrictions No_Dependence
7726         Recognize restriction No_Obsolescent_Features at parse time
7728         * bcheck.adb: Add circuitry for checking for consistency of
7729         No_Dependence restrictions.
7731         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
7732         restrictions.
7734         * restrict.ads, restrict.adb: Add subprograms to deal with
7735         No_Dependence restrictions.
7737         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
7738         restrictions.
7740         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
7741         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
7743         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
7744         dummy parameter to scng instantiation.
7745         Needed for new restriction No_Obsolescent_Features
7747         * scn.adb: (Obsolescent_Check): New procedure
7748         Needed for new restriction No_Obsolescent_Features
7750         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
7751         specified by AI-285, needed for implementation of AI-388 (adding greek
7752         pi to Ada.Numerics).
7753         Add new generic formal to scng, needed for new restriction
7754         No_Obsolescent_Features.
7756         * s-rident.ads: Add new restriction No_Obsolescent_Features.
7758         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
7759         restrictions lines.
7760         (Scan_ALI): When finding an unexpected character on an R line, raise
7761         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
7762         Ignore_Errors is True, default restrictions are set and scanning of the
7763         ALI file continues with the next line. Also, when Bad_R_Line is raised
7764         and Ignore_Errors is True, skip to the end of le line.
7766         * sem_ch10.adb: Check that explicit with's do not violate
7767         No_Dependence restrictions.
7768         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
7769         illegal context clauses containing child units of instance.
7771         * sem_prag.adb: Processing and checking for new No_Dependence
7772         restrictions.
7773         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
7774         analyze and check the External argument.
7776         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
7778 2005-01-03  Robert Dewar  <dewar@adacore.com>
7780         * atree.adb: Add a fifth component to entities
7781         This allows us to add 32 flags and four new fields
7783         * atree.ads: Add a fifth component to entities
7784         This allows us to add 32 flags and four new fields
7786         * einfo.ads, einfo.adb: Document new fields and new flags now available
7787         Add routines for printing new fields
7789         * treepr.adb: Call routines to print out additional fields if present
7791 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
7793         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
7794         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
7796         * Makefile.in: Add support to build shared Ada libraries on solaris x86
7797         Remove gpr2make, replaced by gprmake.
7798         Remove references to gnatmem and libaddr2line.
7799         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
7800         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
7801         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
7802         a-numaux-darwin.ads and a-numaux-darwin.adb
7803         Enable mlib-tgt-lynxos.adb on lynxos.
7805         * Make-lang.in: Remove rules for gpr2make.
7806         When generating sdefault.adb, do not call Relocate_Path
7807         on S3 for function Target_Name, as it is not a path.
7808         Remove references to gnatmem and libaddr2line.
7810         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
7811         files.
7813 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
7815         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
7816         address is incompatible with its base type alignment constraints when
7817         this can be decided statically.
7819 2005-01-03  Olivier Hainque  <hainque@adacore.com>
7821         * decl.c (compatible_signatures_p): New function. The intended purpose
7822         is to check if two function signatures for a call-site and a callee are
7823         compatible enough for the call to be valid. The underlying purpose is
7824         to check if a call to a mapped builtin is using the right interface.
7825         The current code actually does not check antyhing - this a placeholder
7826         for future refinements.
7827         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
7828         builtin calls for convention Intrinsic.
7830         * gigi.h (builtin_decl_for): Declare (new function).
7832         * utils.c (gnat_install_builtins): Install the target specific builtins.
7833         (builtin_decl_for): New function, provide a dummy body for now.
7835 2005-01-03  Geert Bosch  <bosch@adacore.com>
7837         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
7838         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
7839         (Pred): Implement in terms of Succ.
7841         * trans.c (convert_with_check): Reimplement conversion of float to
7842         integer.
7844 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
7845             Vincent Celier  <celier@adacore.com>
7847         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
7848         bounds can be negative, and must be declared Int, not Nat.
7850         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
7851         array is checked after using the index in the array.
7853         * makegpr.adb (Add_Switches): Check if there is a package for the
7854         processor. If there is no package, do not look for switches.
7856 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
7858         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
7859         generation of predefined stream operations (specs and bodies) should
7860         proceed. Under various restrictions these subprograms must not be
7861         generated.
7863 2005-01-03  Thomas Quinot  <quinot@adacore.com>
7865         * exp_dist.adb:
7866         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
7867         amount of PCS-specific code in RACW stubs generation.
7868         (Copy_Specification): Set Etype on copied formal parameter entities, as
7869         this information is needed for PolyORB stubs generation.
7870         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
7871         variable Dynamic_Async.
7872         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
7873         (Build_RPC_Receiver_Specification): Make generic again, as recent
7874         changes have allowed RPC receivers to have the same profile for both
7875         variants of the PCS.
7876         Reorganise RPC receiver generation to reduce differences between the
7877         structure of GARLIC and PolyORB RPC receivers.
7878         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
7879         PCS-specific.
7880         Simplify elaboration code for RCI packages.
7882         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
7883         generation to reduce differences between the structure of GARLIC and
7884         PolyORB RPC receivers.
7886         * s-stratt.adb: Fix typo in comment.
7888 2005-01-03  Thomas Quinot  <quinot@adacore.com>
7890         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
7891         copied from Make_Init_Call).
7893         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
7894         reads and assignments on a temporary variable declared with appropriate
7895         discriminants.
7897 2005-01-03  Robert Dewar  <dewar@adacore.com>
7899         * i-c.adb (To_C): Raise CE if string is null and Append_Null
7901 2005-01-03  Robert Dewar  <dewar@adacore.com>
7903         * i-cstrin.adb (Update): Do not append a null in form called with a
7904         String. This avoids unintended behavior.
7906 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
7908         PR ada/17527
7909         * init.c: Fix warnings on Free BSD section.
7911 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
7913         PR ada/16949
7914         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
7915         xsinfo.adb).
7917 2005-01-03  Vincent Celier  <celier@adacore.com>
7919         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
7920         libraries when Unique_Compile is True (-u switch).
7921         (Gnatmake): ditto.
7923 2005-01-03  Robert Dewar  <dewar@adacore.com>
7925         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
7926         upper case letter or underscore after W, as allowed by spec.
7928 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
7930         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
7931         darwin port by using proper type definitions from header files.
7932         Use SIGTERM instead of SIGABRT for SIGADAABORT.
7934 2005-01-03  Robert Dewar  <dewar@adacore.com>
7936         * par.adb: Enhance error message handling for configuration file
7937         pragmas.
7939 2005-01-03  Robert Dewar  <dewar@adacore.com>
7941         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
7942         removed during the previous update (test properly for case of dividing
7943         largest negative number by -1, which generates overflow).
7945 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
7946             Sergey Rybin  <rybin@adacore.com>
7948         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
7949         to use as the defining identifier for a formal package.
7950         (Remove_Parent): If the instance takes place within (an instance of)
7951         a sibling, preserve private declarations of common parent.
7953 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
7955         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
7956         to determine whether one of the operands is a fixed-point type for
7957         which a user-defined multiplication or division operation might be
7958         defined.
7960         * sem_res.adb (Valid_Conversion): The legality rules for conversions
7961         of access types are symmetric in Ada 2005: either designated type can
7962         be unconstrained.
7964 2005-01-03  Vincent Celier  <celier@adacore.com>
7966         * s-fileio.adb (Temp_File_Record): Change length of string component
7967         Name from L_tmpnam + 1 to max_path_len + 1.
7969 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
7971         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
7972         Self_Id.Deferral_Level = 0.
7973         (Do_Pending_Action): Move this function to the spec.
7975         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
7976         Do_Pending_Action explicitely when needed, in case we're using
7977         No_Abort restrictions.
7979         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
7980         deferral level since it will not get changed by the generated code.
7981         Keeping a default value of 1 would prevent some operations (e.g.
7982         select or delay) to proceed successfully.
7984 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
7985             Robert Dewar  <dewar@adacore.com>
7986             Cyrille Comar  <comar@adacore.com>
7988         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
7989         porting guide chapter (vms version).
7990         Revised doc title (removed "for native platforms") and subtitle.
7991         Add discussion on warning flag for obsolescent features. First we
7992         note that it applies to obsolete GNAT features, which was previously
7993         omitted. Second we contrast the behavior with that of the new
7994         Ada 2005 AI-368 restriction No_Obsolescent_Features.
7995         Preliminary rewriting of GNAT & libraries chapter in order to take
7996         into account default project locations & new project manager
7997         capabilities.
7999 2005-01-03  Robert Dewar  <dewar@adacore.com>
8001         * cstand.adb (Create_Operators): Clean up format and documentation of
8002         unary and binary operator result tables. No change in code, just
8003         reformatting and addition of comments.
8005         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
8006         sem_ch2.adb: Minor reformatting
8008         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
8009         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
8010         comments for Tree_Read and Tree_Write.
8012 2005-01-03  Pascal Obry  <obry@adacore.com>
8014         * exp_attr.ads: Minor reformatting.
8016 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
8018         * comperr.adb (Compiler_Abort): Add specialized message for GAP
8019         versions.
8021 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
8023         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
8024         whether the ancestor type is private, as may be the case with nested
8025         instantiations.
8027 2004-12-30  Sohail Somani <sohail@sohailsomani.com>
8029         PR ada/19128
8030         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
8032 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
8034         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
8035         * utils2.c (build_unary_op): Likewise.
8037 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8039         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
8041 2004-12-19  Richard Henderson  <rth@redhat.com>
8043         * trans.c (gigi): Update gimplify_body call.
8045 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
8047         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
8049 2004-12-07  Ed Falis  <falis@adacore.com>
8051         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
8052         current task being suspended.
8054         * init.c (__gnat_clear_exception): added to reset VxWorks exception
8055         count.
8056         (__gnat_map_signal): removed test for current task being suspended.
8058 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
8060         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
8061         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
8062         targets (such as AAMP).
8064 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
8066         * atree.adb (Visit_Itype): Create a new name for the generated itype,
8067         because the back-end may otherwise treat it as a redefinition of the
8068         old symbol.
8070 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
8072         * back_end.adb (Scan_Back_End_Switches): Accept --param.
8074         * lang-specs.h: Accept --param.
8076 2004-12-07  Vincent Celier  <celier@adacore.com>
8078         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
8079         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
8080         Current_Body_Suffix => Ada_Body_Suffix).
8081         Take into account Externally_Built attribute.
8083         * clean.adb (In_Extension_Chain): Always return False when one of the
8084         parameter is No_Project.
8085         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
8086         Ada_Language_Index).
8087         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
8088         Process_Languages for procedure Parse).
8090         * gnatcmd.adb (Carg_Switches): New table.
8091         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
8092         Adapt to name changes in package Prj (Current_Spec_Suffix =>
8093         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
8095         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
8096         Header_Num and function Hash are now declared in package Prj,
8097         not Prj.Com.
8099         * prj.adb (Suffix_Of): New function.
8100         (Set (Suffix)): New procedure.
8101         (Hash): One function moved from Prj.Com
8102         (Is_Present, Language_Processing_Data_Of): New functions
8103         (Set): Two new procedures
8104         (Add_Language_Name, Display_Language_Name): New procedures
8106         * prj.ads: (Suffix_Of): New function
8107         (Set (Suffix)): New procedure
8108         Add several types and tables for multi-language support.
8109         (Header_Num): Type moved from Prj.Com
8110         (Hash): Two functions moved from Prj.Com
8111         (Is_Present, Language_Processing_Data_Of): New functions
8112         (Set): Two new procedures
8113         (Add_Language_Name, Display_Language_Name): New procedures
8114         (Naming): Component name changes:
8115         Current_Spec_Suffix => Ada_Spec_Suffix,
8116         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
8117         Impl_Suffixes, Supp_Suffixes.
8118         (Project_Data): New components: Externally_Built, Supp_Languages,
8119         First_Language_Processing, Supp_Language_Processing, Default_Linker,
8120         Default_Linker_Path.
8122         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
8123         new package Language_Processing with its attributes (Compiler_Driver,
8124         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
8125         Binder_Driver, Default_Linker).
8127         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
8128         (Header_Num): Type moved to package Prj
8130         * prj-env.adb: Adapt to name changes in package Prj
8131         (Current_Spec_Suffix => Ada_Spec_Suffix,
8132         Current_Body_Suffix => Ada_Body_Suffix).
8134         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
8135         default to the project path, except the "-" is one of the directories
8136         in env var ADA_PROJECT_PATH.
8137         (Current_Project_Path): Global variable, replacing Project_Path
8138         that was in the body of Prj.Part.
8139         (Project_Path): New function
8140         (Set_Project_Path): New procedure
8141         Initialize Current_Project_Path during elaboration of the package
8142         Remove dependency on Prj.Com, no longer needed
8144         * prj-ext.ads (Project_Path): New function
8145         (Set_Project_Path): New procedure
8147         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
8148         suffix is defined for language <lang>.
8149         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
8150         accessing directly the components of Naming.
8151         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
8152         Reorganise of this package.
8153         Break procedure Check in several procedures.
8155         * prj-nmsc.ads: Replace all procedures (Ada_Check,
8156         Other_Languages_Check and Language_Independent_Check) with a single
8157         procedure Check.
8159         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
8160         Process_Languages, no longer needed.
8162         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
8163         Current_Project_Path.
8164         Remove elaboration code, moved to the body of Prj.Ext
8165         Use new function Prj.Ext.Project_Path instead of old variable
8166         Project_Path.
8167         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
8168         When comparing with project paths on the stack, first put the resolved
8169         path in canonical case.
8170         (Parse_Single_Project): Set the path name of the project file in the
8171         tree to the normalized path.
8173         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
8174         parameter Process_Languages, no longer needed.
8175         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
8176         Other_Languages_Check.
8178         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
8179         to store the resolved canonical path of the project file.
8180         Remove dependency to Prj.Com, no longer needed
8182         * prj-util.adb: Adapt to name changes in package Prj
8183         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
8184         Ada_Body_Suffix).
8186         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
8187         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
8188         Externally_Built, Include_Option, Language_Processing.
8190         * makegpr.adb: Numerous changes due to changes in packages
8191         Prj and Prj.Nmsc.
8193         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
8194         default to the project path, except whe "-" is one of the directories
8195         in env var ADA_PROJECT_PATH.
8196         (Gnatls): In verbose mode, add the new section "Project Search Path:"
8198 2004-12-07  Robert Dewar  <dewar@adacore.com>
8200         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
8202         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
8203         set -gnatR3m mode.
8205         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
8206         flag. No longer needed now that we handle this in gnat1drv.adb.
8208         * repinfo.ads: Minor reformatting
8210 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8211             Olivier Hainque  <hainque@adacore.com>
8212             Eric Botcazou  <ebotcazou@adacore.com>
8214         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
8215         TYPE_SIZE_UNIT of result type if SIZE is not specified.
8216         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
8217         of a bitfield, which we know is useless and causes trouble because of
8218         alignment implications.
8220         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
8221         BSS sections.
8222         (process_attributes): Clear DECL_COMMON again when a section attribute
8223         is present.
8224         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
8225         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
8226         (create_field_decl): Special case ADDRESSABLE negative to mean
8227         "no bitfield creation", to be used by make_aligning_type. Don't
8228         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
8229         fields claimed addressable still have to be bitfields. Use
8230         value_factor_p instead of a raw binop construction to check for the
8231         position's alignment.
8233 2004-12-07  Geert Bosch  <bosch@adacore.com>
8235         * eval_fat.adb: Revert previous change.
8237 2004-12-07  Thomas Quinot  <quinot@adacore.com>
8238             Ed Schonberg  <schonberg@adacore.com>
8240         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
8241         with an implicit dereference as its prefix, use
8242         Insert_Explicit_Dereference instead of merely rewriting the prefix into
8243         an explicit dereference. This ensures that a reference to the original
8244         prefix is generated, if appropriate.
8246         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
8247         dereference is rewritten to an explicit one, generate a reference to
8248         the entity denoted by its prefix using the original prefix node, so
8249         the dereference can be properly recorded as a read of the denoted
8250         access value, if appropriate.
8252         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
8253         emitting 'assigned but never read' warning on a variable on the basis
8254         that it has an access type.
8255         (Check_References): Emit unreferenced warning when the scope is a
8256         subprogram body.
8258 2004-12-07  Robert Dewar  <dewar@adacore.com>
8259             Ed Schonberg  <schonberg@adacore.com>
8261         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
8262         intrinsic
8264         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
8265         leaving call unchanged.
8266         This deals with the case where the pragma Import specified
8267         an external name, to be handled by the back end.
8269         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
8270         subprogram which is Imported with convention Intrinsic if an
8271         External_Name argument is specified.
8272         (Process_Import_Or_Interface): Properly diagnose link name argument.
8273         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
8274         with Sem_Ch6.Cannot_Inline.
8275         (Process_Inline): Provide separate warning for inapplicable inline
8276         pragma.
8277         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
8278         treatment is uniform on different targets.
8280 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
8282         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
8283         construct is rewritten, preserve end label to permit source navigation.
8285 2004-12-07  Thomas Quinot  <quinot@adacore.com>
8287         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
8288         Specific_Build_Stub_Target): New subprograms.
8289         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
8290         the PCS implementation used, using the above PCS-customized subprograms.
8291         Minor reformatting.
8292         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
8293         for generation of DSA code targeted to the PolyORB PCS.
8294         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
8295         implementation of the partition communication subsystem in ancillary
8296         subprograms.
8297         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
8298         PolyORB_Support.Build_Stub_Type): New subrograms containing the
8299         PCS-specific part of Add_Stub_Type.
8300         (Insert_Partition_Check): Use runtime library function to perform
8301         E.4(19) check.
8303         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
8304         (RE_Same_Partition): New entity, from s-parint.
8306         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
8308 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
8310         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
8311         Output the copyright message on a separate line from the version
8312         message.
8314 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
8316         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
8317         compile-time warning.
8319 2004-12-07  Robert Dewar  <dewar@adacore.com>
8321         * g-regpat.adb: (Match): Change a misuse of or to or else
8323 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
8325         * lib-xref.adb:
8326         (Generate_Reference): Handle properly a reference to an entry formal,
8327          when an accept statement has a pragma Unreferenced for it.
8329         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
8330         and the Has_Pragma_Unreferenced flag for each formal before analyzing
8331         the body, to ensure that warnings are properly emitted for each accept
8332         statement of a given task entry.
8334 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
8336         * Makefile.in: Add support for foreign threads on VMS.
8338 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8340         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
8341         Remove.
8342         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
8344         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
8346         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
8347         exception.
8348         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
8350 2004-12-07  Robert Dewar  <dewar@adacore.com>
8352         * nlists.adb (Prepend_Debug): Remove parameters and nest within
8353         Prepend.
8354         (Remove_Next_Debug): Same fix
8356         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
8357         maintain back pointers now, though we did not used to, and comments
8358         were out of date).
8359         (Prepend): Remove pragma Inline.
8360         (Remove_Next): Same cleanup
8362 2004-12-07  Thomas Quinot  <quinot@adacore.com>
8364         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
8365         used to record an implicit dereference as a read operation on its
8366         prefix when operating under -gnatc. Necessary to avoid spurious
8367         'variable assigned but never read' warnings in that mode.
8368         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
8369         is a non-overloaded implicit dereference, call the above subprogram to
8370         ensure proper recording of references.
8372 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
8374         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
8375         to be resolved later as part of Analyze_Iteration_Scheme's call to
8376         Make_Index.
8378 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
8380         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
8381         prefix is not a scalar type, place error message on prefix, not on
8382         type entity.
8384 2004-12-07  Bernard Banner  <banner@adacore.com>
8386         * vxaddr2line.adb: Add support for x86 vxworks
8388 2004-12-07  Thomas Quinot  <quinot@adacore.com>
8390         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
8391         documentation of the behaviour of these functions when passed an IP
8392         address that has no record in the system hosts database and no reverse
8393         record in the DNS.
8395         * cstand.adb, a-tags.ads: Fix typos in comment.
8397 2004-12-07  Robert Dewar  <dewar@adacore.com>
8399         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
8400         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
8401         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
8402         s-poosiz.ads: Minor reformatting
8404         * make.adb: Minor reformatting
8405         Add some ??? comments asking for more comments
8407         * s-poosiz.adb: Minor reformatting
8408         Add comments on alignment requirement
8410         * sinfo.ads: Remove obsolete comment and fix typo.
8412 2004-12-07  Vincent Celier  <celier@adacore.com>
8413             Sergey Rybin  <rybin@adacore.com>
8415         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
8416         Files" with the new tool and package names.
8417         Reformatting to suppress most of the warnings for line too long
8418         Document the new section "Project Search Path:" in the output of
8419         gnatls -v.
8420         Add gnatmetric section
8422 2004-12-07  Vincent Celier  <celier@adacore.com>
8424         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
8425         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
8426         and -eit to -ept. Added qualifier
8427         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
8429 2004-11-27  Andreas Schwab  <schwab@suse.de>
8431         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
8433 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
8435         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
8436         internal implementation unit GNAT.Sockets.Thin,
8437         as their usage for sockets is non-portable (using the read and write
8438         functions from the system runtime library is fine on UNIX but won't
8439         work under Windows).
8441         * mingw32.h: Update copyright notice.
8443 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
8445         * ada-tree.h: Minor reformatting of previous change to avoid lines
8446         longer than 79 characters.
8448 2004-11-25  Olivier Hainque  <hainque@adacore.com>
8450         * tb-gcc.c: GCC infrastructure based implementation of
8451         __gnat_backtrace.
8453 2004-11-24  Steven Bosscher  <stevenb@suse.de>
8455         * misc.c (gnat_post_options): Don't clear
8456         flag_inline_functions.
8458 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
8460         PR ada/17986
8461         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
8462         tree.
8464 2004-11-21  Andreas Jaeger  <aj@suse.de>
8466         * stylesw.adb: Change Style_Check_Subprogram_Order to
8467         Style_Check_Order_Subprograms.
8469 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
8471         * adaint.h, adaint.c
8472         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
8473         to avoid warnings.
8474         Add also a cast to kill another warning.
8475         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
8476         parameter with the priority class of the parent process instead of
8477         always using the NORMAL_PRIORITY_CLASS.
8478         (__gnat_dup): New function.
8479         (__gnat_dup2): New function.
8480         (__gnat_is_symbolic_link): Enable the effective body of this
8481         function when __APPLE__ is defined.
8483         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
8484         Update comments.
8486 2004-11-18  Olivier Hainque  <hainque@adacore.com>
8488         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
8489         address of which may be used to represent "others" and "all others"
8490         choices in exception tables, instead of the current harcoded
8491         (void *)0 and (void *)1.
8492         (Setup_Exception): Do nothing in the GNAT SJLJ case.
8494         * gigi.h (others_decl, all_others_decl): New decls representing the
8495         new Others_Value and All_Others_Value objects.
8496         (struct attrib): Rename "arg" component as "args", since GCC expects a
8497         list of arguments in there.
8499         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
8500         corresponding objects exported by a-exexpr, instead of hardcoded dummy
8501         addresses.
8503         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
8504         others_decl and all_others_decl instead of hardcoded dummy addresses
8505         to represent "others" and "all others" choices, which is cleaner and
8506         more flexible with respect to the possible eh pointer encoding policies.
8508         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
8509         (process_attributes): Account for the naming change of the "args"
8510         attribute list entry component.
8512         * decl.c (build_attr_list): Rename into prepend_attributes to allow
8513         cumulating attributes for different entities into a single list.
8514         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
8515         attributes for the current entity and propagate first subtype
8516         attributes to other subtypes.
8517         <E_Procedure>: Attribute arguments are attr->args and not
8518         attr->arg any more.
8519         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
8520         argument provided, as this is what GCC expects. Use NULL_TREE instead
8521         of 0 for trees.
8523 2004-11-18  Robert Dewar  <dewar@adacore.com>
8525         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
8526         Minor reformatting througout (including new function specs)
8527         Add ??? comments asking for clarification.
8529 2004-11-18  Thomas Quinot  <quinot@adacore.com>
8531         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
8532         incomplete duplicate implementation of this subprogram from butil.
8534 2004-11-18  Thomas Quinot  <quinot@adacore.com>
8536         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
8537         procedures factors the common processing for building an RPC receiver
8538         for an RCI package or an RACW type.
8539         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
8540         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
8541         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
8542         in use.
8543         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
8544         Add_RACW_Features.
8545         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
8546         Add_RAST_Features.
8547         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
8548         distribution subprogram identifiers that are either subprogram numbers
8549         or strings.
8550         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
8551         string distribution identifiers assigned to a given subprogram.
8552         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
8553         (Add_RAS_Dereference_TSS): Add comments.
8554         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
8555         is not referenced yet because it will be used by the PolyORB DSA
8556         implementation.
8557         (Insert_Partition_Check): Remove fossile code.
8558         (First_RCI_Subprogram_Id): Document this constant.
8559         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
8560         RAS_Access TSS.
8561         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
8562         replaced with calls to Get_Library_Unit_Name_String. Previously there
8563         were several instances of the same code in different locations in the
8564         compiler; this checkin completes the replacement of all of these
8565         instances with calls to a common subprogram.
8566         Minor reformatting.
8568         * sem_dist.adb: Remove comment noting that RPC receiver generation
8569         should be disabled for RACWs that implement RASs.
8570         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
8572         * sem_util.ads, sem_util.adb (Has_Stream): New function
8573         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
8574         qualified name of a library unit into the name buffer.
8575         (Note_Possible_Modification): Generate a reference only
8576         if the context comes from source.
8578         * snames.ads (PCS_Names): New subtype corresponding to names of
8579         supported implementations of the Partition Communication Subsystem
8580         (PCS) (i.e. the runtime library support modules for the distributed
8581         systems annex).
8583 2004-11-18  Robert Dewar  <dewar@adacore.com>
8584             Ed Schonberg  <schonberg@adacore.com>
8586         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
8587         (Has_Rep_Pragma): New function
8588         (Has_Attribute_Definition_Clause): New function
8589         (Record_Rep_Pragma): Moved here from sem_ch13.adb
8590         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
8592         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
8594         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
8595         (Expand_Pragma_Psect_Object): New procedure
8596         These procedures contain the revised and cleaned up processing for
8597         these two pragmas. This processing was formerly in Sem_Prag, but
8598         is more appropriately moved here. The cleanup involves making sure
8599         that the pragmas are properly attached to the tree, and that no
8600         nodes are improperly shared.
8602         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
8603         pragmas to Exp_Prag, which is more appropriate.
8604         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
8605         check for duplicates Remove use of Is_Psected flag, no longer needed.
8606         Use new Make_String_Literal function with string.
8608         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
8609         that are functions return universal values, that have to be converted
8610         to the context type.
8611         Use new Make_String_Literal function with string.
8612         (Get_Stream_Convert_Pragma): New function, replaces the use of
8613         Get_Rep_Pragma, which had to be kludged to work in this case.
8615         * freeze.adb: Use new Has_Rep_Pragma function
8617         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
8618         function with string.
8619         Use new Has_Rep_Pragma function.
8621         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
8622         string argument.
8624 2004-11-18  Robert Dewar  <dewar@adacore.com>
8626         * errout.ads, errout.adb: (First_Sloc): New function
8628         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
8629         check (-gnatyx) instead of being included as a redundant construct
8630         warning.
8632         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
8633         Style_Check_Order_Subprograms.
8635         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
8636         stylesw.adb: Add Style_Check_Xtra_Parens
8638         * usage.adb: Add line for -gnatyx (check extra parens)
8640         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
8642 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
8643             Robert Dewar  <dewar@adacore.com>
8645         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
8646         discriminant of a constrained subtype, analyze the copy of the
8647         corresponding constraint, because in some cases it may be only
8648         partially analyzed.
8649         Removes long-lived ??? comments.
8651         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
8652         handled controlled or secondary-stack expressions within the
8653         iteration_scheme of a loop.
8655         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
8656         bounds that may contain functions calls, to prevent memory leaks when
8657         the bound contains a call to a function that uses the secondary stack.
8658         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
8659         generate temporaries for loop bounds that might contain function calls
8660         that require secondary stack and/or finalization actions.
8662         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
8663         selected component and the selector is overloadable (not just a
8664         function) treat as function call, Analyze_Call will disambiguate if
8665         necessary.
8666         (Analyze_Selected_Component): Do not generate an actual subtype for the
8667         selected component if expansion is disabled. The actual subtype is only
8668         needed for constraint checks.
8669         (Analyze_Allocator): If restriction No_Streams is set, then do
8670         not permit objects to be declared of a stream type, or of a
8671         composite type containing a stream.
8673         * restrict.ads: Remove the a-stream entry from Unit_Array, since
8674         No_Streams no longer prohibits with'ing this package.
8676         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
8677         discriminants, but the parent base has unknown discriminants, there is
8678         no discriminant constraint to inherit. Such a discrepancy can arise
8679         when the actual for a formal type with unknown discriminants is a
8680         similar private type whose full view has discriminants.
8681         (Analyze_Object_Declaration): If restriction No_Streams is set, then
8682         do not permit objects to be declared of a stream type, or of a
8683         composite type containing a stream.
8685 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
8687         * exp_dbug.ads: Update documentation to reflect simpler encoding for
8688         protected operations.
8690         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
8691         generated name, it complicates decoding in gdb and hinders debugging
8692         of protected operations.
8693         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
8694         flag for the protected entry barrier function.
8695         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
8696         flag for the protected entry function.
8698 2004-11-18  Nicolas Setton  <setton@adacore.com>
8700         * expect.c: Define __unix__ when __APPLE__ is defined.
8702         * Makefile.in: Inform the value of the variable GMEM_LIB in the
8703         Darwin-specific section.
8705         * lang-specs.h: Change the placement of the %1 marker.
8706         Works around the fact that gcc adds -fPIC by default under Darwin.
8708 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
8710         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
8711         type of the object with the packed array type, set the Analyzed flag
8712         on the object if it is an entity or simple indexed component, to avoid
8713         spurious type errors.
8715 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
8717         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
8718         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
8719         separate line from the version message.
8721 2004-11-18  Ed Falis  <falis@adacore.com>
8723         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
8724         vthreads.
8725         (init_float): Eliminate initialization of floating point status for
8726         AE653. The instructions have no effect for vThreads.
8728 2004-11-18  Vincent Celier  <celier@adacore.com>
8730         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
8731         gnatbind is invoked with -shared.
8733 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
8735         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
8736         for Detect_Blocking which is redundant with the check done within the
8737         procedure Protected_Single_Entry_Call.
8738         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
8739         Detect_Blocking which is redundant with the check done within the
8740         procedure Protected_Single_Entry_Call.
8742 2004-11-18  Vincent Celier  <celier@adacore.com>
8744         * makegpr.adb (Compile): Put the compiling switches (in package
8745         Compiler and on the command line) immediately after "-c", instead of
8746         at the end of the command line invocation of the compiler, when
8747         compiling a non-Ada file.
8748         (Build_Global_Archive): When there is no need to rebuild the archive,
8749         set Global_Archive_Exists, so that the archive is passed to the linker
8750         if one is needed.
8752 2004-11-18  Robert Dewar  <dewar@adacore.com>
8753             Sergey Rybin  <rybin@adacore.com>
8755         * gnat_ugn.texi:
8756         Remove extra paren check from list of checks for redundant constructs
8757         Add documentation of new -gnatyx style check (check extra parens)
8758         Remove paragraph about gnatelim debug options.
8760         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
8761         objects rather than forbidding dependencies on the package Ada.Streams.
8763         * sinfo.ads: Add ??? note that we should document pragmas passed to
8764         back end.
8766         * g-expect.ads: Fix a few typos in the comments.
8768 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
8770         * misc.c (gnat_handle_option): Use %< and %> for quoting in
8771         warning message.
8773 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8775         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
8777 2004-11-07  Andreas Schwab  <schwab@suse.de>
8779         * Makefile.in (install-gnatlib): Remove spurious hyphen.
8781 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
8783         PR ada/18228
8784         * Makefile.in (darwin): Set soext to .dylib.
8786 2004-10-26  Vincent Celier  <celier@gnat.com>
8787             Thomas Quinot   <quinot@act-europe.fr>
8789         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
8790         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
8791         there is no use of GNAT.Sockets.Constants.
8792         Remove remaining pragma Import for C_Write
8793         Remove C_Read and C_Write from internal implementation unit
8794         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
8795         the read and write functions from the system runtime library is fine
8796         on UNIX but won't work under Windows).
8798         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
8799         (Check_Selector): Use C_Recv instead of C_Read.
8800         Selectors are the GNAT.Sockets abstraction to perform a select()
8801         call on a set of descriptors. To allow abortion of an ongoing
8802         select operation, some data is written to a dedicated socket that
8803         is always monitored.
8804         Under Windows, the write and read library functions cannot operate
8805         on sockets, so we need to use send and recv instead, which is portable
8806         across all supported platforms.
8808         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
8809         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
8810         (using the read and write functions from the system runtime library is
8811         fine on UNIX but won't work under Windows).
8813 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
8815         * mlib-tgt-darwin.adb: New file.
8817         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
8818         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
8819         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8820         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
8821         subprogram body.
8823         * Makefile.in: Add support for building shared libraries under Darwin.
8824         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
8825         the low level EH init subprogram to be called from __gnat_initialize.
8827         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
8828         indicates which options to pass to the archive indexer.
8830         * mlib-utl.adb: Add support for calling ranlib with additional
8831         options. This is needed for instance under Mac OS X.
8832         (Ranlib_Options): New global variable, used to store the potential
8833         options to pass to ranlib.
8834         (Ar): Use Ranlib_Options when spawning ranlib.
8835         (Initialize): Set the value of ranlib option.
8837 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
8839         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
8840         instead of 8K, to reflect the real potential needs for stack-checking
8841         in the ZCX case.
8843 2004-10-26  Pascal Obry  <obry@gnat.com>
8845         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
8847         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
8848         Windows only the initial thread stack size can be set so it is good to
8849         start we a low stack size.
8850         The OS will adjust the size as needed.
8852 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
8853             Nicolas Setton  <setton@act-europe.fr>
8855         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
8856         "__unix__" instead of "unix".
8857         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
8858         sections were just mistakenly ignored. The former is
8859         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
8860         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
8861         of hpux. This prevents an unwanted definition of the symbol
8862         convert_addresses in adaint.o.
8864 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
8866         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
8867         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
8869 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
8871         * a-filico.ads, a-filico.adb: fix incorrect header.
8873 2004-10-26  Javier Miranda  <miranda@gnat.com>
8875         * a-ststio.ads: Fix typo in identifier
8877 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
8879         * sem_ch4.adb: Minor reformatting.
8881 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
8883         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
8884         enabled, check the result of unary and binary operations when the
8885         expression is the right-hand side of an assignment.
8887 2004-10-26  Vincent Celier  <celier@gnat.com>
8889         * clean.adb (Delete): Do not output warnings when in quiet output and
8890         not in verbose mode.
8891         (Force_Deletions): New Boolean flag, defaulted to False
8892         (Delete): Only delete a file if it is writable, and when
8893         Force_Deletions is True.
8894         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
8895         (Usage): Line for new switch -f
8896         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
8897         own.
8899 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
8901         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
8902         JM type only if its size matches that of the wrapper.  When a size is
8903         prescribed and the field is not aliased, remove the wrapper of a JM
8904         type only if the size is not greater than that of the packed array.
8905         (gnat_to_gnu_entity): Change the extension of packed array wrappers
8906         from LJM to JM.
8908 2004-10-26  Geert Bosch  <bosch@gnat.com>
8910         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
8911         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
8912         (Pred): Implement in terms of Succ.
8914 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
8916         * exp_aggr.adb (Safe_Component): An aggregate component that is an
8917         unchecked conversion is safe for in-place use if the expression of the
8918         conversion is safe.
8919         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
8920         be expandable in place even if the aggregate does not come from source.
8921         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
8922         designated object of an allocator in place, rather than building it
8923         first on the stack. The previous scheme forces a full copy of the array,
8924         and may be altogether unsusable if the size of the array is too large
8925         for stack allocation.
8927 2004-10-26  Robert Dewar  <dewar@gnat.com>
8929         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
8930         compares if the component is atomic.
8932         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
8933         array assignment if the component type is atomic.
8935 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
8936             Eric Botcazou  <ebotcazou@act-europe.fr>
8938         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
8939         is aliased and is a by_reference type, do not pass by copy.
8940         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
8941         detect whether the call is in the right side of an assignment or
8942         the expression of an object declaration.  Recurse on component
8943         association within aggregates.
8944         Call it in the condition that determines whether the temporary is
8945         necessary for correct stack-checking.
8947 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
8949         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
8950         RACW_Type, used in the PolyORB version.
8951         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
8952         version and the GARLIC version.
8954         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
8955         Rename RCI_Info to RCI_Locator for better consistency between the
8956         GARLIC and PolyORB versions of the distributed systems annex.
8957         (DSA_Implementation_Name): This enumeration lists the possible
8958         implementations of the Partition Communication Subsystem for the
8959         Distributed Systems Annex (DSA). The three available implementations
8960         are the dummy stub implementation (No_DSA), and two versions based on
8961         two different distribution runtime libraries: GARLIC and PolyORB. Both
8962         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
8963         technology.
8964         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
8965         that organization.
8967         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
8968         between the GARLIC and PolyORB versions of the distributed systems
8969         annex.
8970         Remove RE_Unbounded_Reclaim_Pool since it is unused.
8972 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
8974         * gnat1drv.adb: Suppress calling the back end when
8975         Frontend_Layout_On_Target is true.
8977 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
8979         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
8980         Set_Read_Only): New subprograms.
8981         These new routines allow the user to set or unset the Owner execute
8982         and Owner write permission flags on a file.
8984         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
8985         GNAT.OS_Lib.Set_Executable instead of rolling our own.
8987 2004-10-26  Matthew Gingell  <gingell@gnat.com>
8989         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
8991 2004-10-26  Pascal Obry  <obry@gnat.com>
8993         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
8994         memory before the faulting page we properly test the process read
8995         access for this address using appropriate Win32 routine.
8996         (HPUX sections): guard with "__hpux__" instead of "hpux".
8998 2004-10-26  Robert Dewar  <dewar@gnat.com>
9000         * lib-xref.adb (Generate_Reference): Don't complain about reference to
9001         entry parameter if pragma Unreferenced set, since we do not properly
9002         handle the case of multiple parameters.
9004 2004-10-26  Vincent Celier  <celier@gnat.com>
9006         * prj-env.adb: (Contains_ALI_Files): New Boolean function
9007         (Ada_Objects_Path.Add): For a library project, add to the object path
9008         the library directory only if there is no object directory or if the
9009         library directory contains ALI files.
9010         (Set_Ada_Paths.Add.Recursive_Add): Ditto
9012 2004-10-26  Vincent Celier  <celier@gnat.com>
9014         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
9015         extension of library projects.
9017         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
9018         path defaults to ".:<prefix>/lib/gnat".
9019         (Parse): For an extending all project, allow direct import of a project
9020         that is virtually extended.
9022         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
9023         the specified name is directly imported, return its ID. Otherwise, if
9024         an extension of this project is imported, return the ID of the
9025         extension.
9027 2004-10-26  Robert Dewar  <dewar@gnat.com>
9029         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
9030         (Sub3): New procedure, used by Scaled_Divide
9031         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
9032         correct more than one instance of failure to propagate carries
9033         correctly.
9034         (Double_Divide): Handle overflow case of largest negative number
9035         divided by minus one.
9037         * s-arit64.ads (Double_Divide): Document that overflow can occur in
9038         the case of a quotient value out of range.
9039         Fix comments.
9041 2004-10-26  Robert Dewar  <dewar@gnat.com>
9043         * s-bitops.adb (Bit_Eq): Remove redundant check.
9045         * s-bitops.ads: Minor comment updates
9046         Change some occurrences of Address to System.Address
9048         * s-carsi8.ads: Fix minor cut-and-paste error in comments
9050 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
9052         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
9053         accessibility check to prefix that is a protected operation.
9055 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
9057         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
9058         empty, post message on stub.
9060 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
9061             Javier Miranda  <miranda@gnat.com>
9063         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
9064         current instance appears within a unit that is directly in the context
9065         of the main unit.
9066         Used to determine whether the body of the instance should be analyzed
9067         immediately after its spec, to make its subprogram bodies available
9068         for front-end inlining.
9069         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
9070         constraint is not allowed on the component type (AARM 12.5.3(3))
9072 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
9074         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
9075         'Storage_Pool): enhance, document & limit detection of non-sharable
9076         internal pools.
9078         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
9080         * s-pooglo.ads: Add more documentation now that this pool is properly
9081         documented.
9083 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
9085         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
9086         or protected type with discriminants, do not constrain the
9087         corresponding record type if the subtype declaration has no
9088         discriminant constraints. This can be the case in source code, or in
9089         the subtype declaration created to rename an actual type within an
9090         instantiation.
9092 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
9094         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
9095         different kind of stub (possibly wrong name for file), do not check
9096         for conformance.
9097         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
9098         includes call to some function that returns an unconstrained type, do
9099         not inline.
9101 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
9103         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
9104         appear in the code for the main unit. Dependencies among units in the
9105         context of the main unit are established when those other units are
9106         compiled. Otherwise spurious elaboration constraints can generate
9107         incorrect elaboration circularities.
9109 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
9110             Ed Schonberg   <schonberg@gnat.com>
9112         * sem_util.adb (Is_Aliased_View): Defend against the case where this
9113         subprogram is called with a parameter that is not an object name. This
9114         situation arises for some cases of illegal code, which is diagnosed
9115         later, and in this case it is wrong to call Is_Aliased, as that might
9116         cause a compiler crash.
9117         (Explain_Limited_Type): Refine previous fix to include
9118         inherited components of derived types, to provide complete information.
9120         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
9121         is the prival for a protected object.
9122         It is necessary to mark this entity as a variable, in addition to
9123         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
9124         modified to avoid checking the Aliased flag on entities that are not
9125         objects. (Checking that flag for non-objects is erroneous and could
9126         lead to a compiler crash).
9128 2004-10-26  Robert Dewar  <dewar@gnat.com>
9130         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
9131         X_Frac = 0.5, then we know that the number X must be positive.
9132         (Succ): Remove the same redundant test, and also fix the primary test
9133         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
9134         Minor reformatting
9135         (Decompose): Add fuller comments to spec
9137 2004-10-26  Pascal Obry  <obry@gnat.com>
9139         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
9140         validity (process must have read access). Set to 0 in all other cases.
9141         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
9142         violation on Win32.
9143         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
9144         segmentation violation.
9146 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
9148         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
9149         whose type is a constructed subtype of an aliased object with an
9150         unconstrained nominal subtype, convert the actual to the constructed
9151         subtype before taking its address.
9153 2004-10-26  Vincent Celier  <celier@gnat.com>
9155         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
9156         (Is_Path_Name_Case_Sensitive): New function
9158         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
9159         (Base_Name, Simple_Name, Current_Directory, Compose,
9160         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
9161         the result.
9163 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
9164             Vasiliy Fofanov  <fofanov@act-europe.fr>
9165             Vincent Celier   <celier@gnat.com>
9167         * gnat_ugn.texi: Generalize "finding memory problems" section into a
9168         "memory management issues" section and document some of the useful
9169         memory pools provided as part of the GNAT library.
9170         Remove "virtual" from declaration of A::method2 in
9171         the simple example of Ada/C++ mixed system.
9172         Library Projects may be virtually extended: their virtual extensions
9173         are not Library Projects.
9174         Added section on extending project hierarchies.
9176 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
9178         * adaint.c (__gnat_get_libraries_from_registry): Cast value
9179         to LPBYTE.
9180         (__gnat_portable_spawn): Remove const.
9182         * mingw32.h (MAXPATHLEN): Check for previous definition.
9184 2004-10-17  Matthias Klose  <doko@debian.org>
9186         * gnatvsn.ads: Set gnat library version to 4.0.
9188 2004-10-05  Vincent Celier  <celier@gnat.com>
9190         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
9192 2004-10-04  Laurent GUERBY <laurent@guerby.net>
9194         PR ada/15156
9195         * Makefile.in: Define and use RANLIB_FLAGS.
9197 2004-10-04  Pascal Obry  <obry@gnat.com>
9199         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
9200         other x86 platforms).
9202 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
9204         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
9205         in general and triggers stack alignment adjustment for thread entry
9206         points on targets where this is necessary.
9208 2004-10-04  Bernard Banner  <banner@gnat.com>
9210         PR ada/13897
9212         * Makefile.in: Add section for powerpc linux
9213         Add variant i-vxwork-x86.ads
9215         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
9217 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
9219         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
9220         table registration calls when need be. Ensures no reference to the crt
9221         ctors symbol are issued in the SJLJ case, which avoids possible
9222         undefined symbol errors in the case of modules to be statically linked
9223         with the kernel.
9225 2004-10-04  Javier Miranda  <miranda@gnat.com>
9227         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
9228         in-line the code corresponding to subprogram Analyze_Actuals. In
9229         addition, analyze the actuals only in case of subprogram call.
9231 2004-10-04  Ed Falis  <falis@gnat.com>
9233         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
9235 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
9237         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
9238         in the documentation.
9240 2004-10-04  Robert Dewar  <dewar@gnat.com>
9242         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
9243         IF and CASE.
9244         (Analyze_Block_Statement): Add circuitry to detect following dead code
9245         (Check_Unreachable_Code): Handle case of block exit
9247 2004-10-04  Robert Dewar  <dewar@gnat.com>
9249         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
9250         (XMatchD): Avoid warning for Logic_Error call
9252 2004-10-04  Robert Dewar  <dewar@gnat.com>
9254         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
9255         consider expressions buried within a procedure actual to be an actual.
9256         This caused some blowups with uses of packed slices within a procedure
9257         actual.
9259 2004-10-04  Robert Dewar  <dewar@gnat.com>
9261         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
9262         longer need to be initialized to zero.
9263         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
9264         initialized to zero.
9266         * checks.adb (Expr_Known_Valid): Packed arrays are now always
9267         considered valid, even if the representation is modular. That's correct
9268         now that we no longer initialize packed modular arrays to zero.
9270         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
9271         suffixes. These are now documented as the only cases in which the
9272         debugger ignores outer records.
9273         Previously, the spec allowed arbitrary suffixes for this purpose.
9274         Change name of LJM to JM for packed array pad records
9275         Create separate section on packed array handling, and add a whole new
9276         set of comments to this section describing the situation with packed
9277         modular types and justification requirements depending on endianness.
9279 2004-10-04  Robert Dewar  <dewar@gnat.com>
9281         * a-except.adb: Add a comment for last change
9283         * einfo.ads: Minor spelling correction in comment
9285         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
9287         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
9288         messages.
9290         * sem_util.ads: Minor comment update
9292 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
9294         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
9295         Inline_Always when in Configurable_Run_Time mode.
9297         * sem_prag.adb (Process_Convention): If entity is an inherited
9298         subprogram, apply convention to parent subprogram if in same scope.
9299         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
9300         when in Configurable_Run_Time mode.
9302 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
9304         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
9305         class_wide type after component list has been inherited.
9307 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
9309         * sem_ch12.adb (Check_Generic_Actuals): New predicate
9310         Denotes_Previous_Actual, to handle properly the case of a private
9311         actual that is also the component type of a subsequent array actual.
9312         The visibility status of the first actual is not affected when the
9313         second is installed.
9314         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
9315         make fully recursive the treatment of formals of packages declared
9316         with a box.
9317         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
9318         the above on exit from an instantiation.
9319         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
9320         current instantiation which is now complete.
9321         (Analyze_Package_Instantiation): No instantiated body is needed if the
9322         main unit is generic. Efficient, and avoid anomalies when a instance
9323         appears in a package accessed through rtsfind.
9325 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
9327         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
9328         do not generate a declaration for a temporary if the call is part of a
9329         library-level instantiation.
9331 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
9333         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
9334         searching for a limited component to flag.
9336         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
9337         expansion of Input, to account for the fact that the implicit call
9338         generated by the attribute reference must freeze the user-defined
9339         stream subprogram. This is only relevant to 'Input, because it can
9340         appear in an object declaration, prior to the body of the subprogram.
9342         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
9343         expansion can proceed and further errors uncovered.
9344         (Minor clean up): Fix cases of using | instead of \ for continuation
9345         messages.
9347 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9349         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
9351         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
9352         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
9353         Use gcc_assert and gcc_unreachable.
9355         * decl.c (gnat_to_gnu_entity, case object): Check and process a
9356         specified alignment before validating size.
9357         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
9358         stripped-down declaration for the type of the inner field when making
9359         a JM type.
9361         * utils.c (finish_record_type): Do not compute the size in units
9362         incrementally. Instead compute it once for the rep clause case.
9363         Use gcc_assert and gcc_unreachable.
9365 2004-10-04  Vincent Celier  <celier@gnat.com>
9367         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
9368         in file name.
9369         (Is_Valid_Path_Name): Take '/' as a directory separator.
9371 2004-10-04  Vincent Celier  <celier@gnat.com>
9373         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
9374         (Extended_Project) only if Extended_Project is defined, to avoid
9375         assertion error.
9376         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
9377         resolved path.
9378         (Parse_Single_Project): Ditto.
9380         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
9381         Add_To_Project_Path for virtual projects.
9383 2004-10-04  Vincent Celier  <celier@gnat.com>
9385         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
9386         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
9387         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
9388         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
9389         parameter Options_2.
9391         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
9392         Build_Dynamic_Library with an empty Options_2.
9394         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
9395         default anymore.
9397         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
9398         directory separator, if any.
9399         (Gprmake): Do not allow mains on the command line for library projects.
9400         Do not attempt to link when the project is a library project.
9401         (Library_Opts): New table to store Library_Options.
9402         (Build_Library): If Library_Options is specified, pass these options
9403         when building a shared library.
9405 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
9407         * s-tposen.adb (Service_Entry): The object must be always unlocked at
9408         the end of this procedure now that the unlock operation was inserted
9409         by the expander.
9411 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
9413         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
9414         corresponding to the Preallocated_Stacks flags in System.
9415         (Get_Target_Parameters): Including the processing for
9416         Preallocated_Stacks.
9418         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
9419         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
9420         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
9421         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
9422         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
9423         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
9424         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
9425         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
9426         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
9427         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
9428         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
9429         used to signal whether the compiler creates the required stacks and
9430         descriptors for the different tasks (when True) or it is done by the
9431         underlying operating system at run time (when False).
9432         It is initially set to False in all targets.
9434         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
9435         if it is supported by the target.
9436         (Make_Task_Create_Call): Pass the stack address if it has been
9437         previously created. Otherwise pass a Null_Address.
9439         * snames.adb: Add _stack.
9441         * snames.ads: Add Name_uStack. Required to allow the expander to
9442         statically allocated task stacks.
9444         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
9445         Stack_Address argument.
9446         Check that its value is equal to Null_Address because this target does
9447         not support the static stack allocation.
9449 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
9451         * usage.adb: Change "pragma inline" to "pragma Inline" in information
9452         and error messages
9454 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
9456         * exp_dist.adb: Split declaration of asynchronous flag out of
9457         Add_RACW_Read_Attribute.
9458         Minor reformatting for better alignment with PolyORB version.
9459         Store the entity for the asynchronous flag of an RACW, rather than the
9460         expression, in the asynchronous flags table. This will allow this flag
9461         to be used in other subprograms beside Add_RACW_Read_Attribute.
9463 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
9465         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
9466         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
9467         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
9468         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
9469         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
9470         sockets constant MSG_NOSIGNAL (Linux-specific).
9471         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
9472         all Send operations.
9473         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
9474         from trigerring SIGPIPE.
9475         Rename components to avoid clash with Ada 2005 possible reserved
9476         word 'interface'.
9477         (Check_Selector): When the select system call returns with an error
9478         condition, propagate Socket_Error to the caller.
9480 2004-10-01  Jan Hubicka  <jh@suse.cz>
9482         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
9484 2004-09-23  Robert Dewar  <dewar@gnat.com>
9486         PR ada/17540
9488         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
9489         instead do this at freeze time (we won't do it if there is an address
9490         clause).
9491         Change "pragma inline" to "pragma Inline" in information and error
9492         messages.
9493         Minor reformatting.
9495         * freeze.adb (Check_Address_Clause): Remove previous change, not the
9496         right way of doing things after all.
9497         (Freeze_Entity): For object, set Is_Public for imported entities
9498         unless there is an address clause present.
9500 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
9502         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
9503         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
9504         ensures proper handling of types with rep clauses, which might have
9505         their TYPE_SIZE set already.
9507 2004-09-21  Robert Dewar  <dewar@gnat.com>
9509         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
9510         packed array types in both little- and big-endian cases. This change
9511         ensures that we no longer count on the unused bits being initialized
9512         for such types (and in particular ensures that equality testing will
9513         only read the relevant bits).
9514         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
9515         These changes mean that we no longer need to initialize small packed
9516         arrays.
9517         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
9518         optimization to an LJM field as to its parent field.
9520         * ada-tree.h, trans.c, utils.c, utils2.c:
9521         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
9523 2004-09-20  Jan Hubicka  <jh@suse.cz>
9525         * utils.c (gnat_finalize): Remove.
9526         (end_subprog_body): Directly call cgraph_finalize_function;
9527         do not lower the nested functions.
9529 2004-09-20  Robert Dewar  <dewar@gnat.com>
9531         PR ada/17540
9533         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
9534         if an address clause is present, since that means that the Import
9535         should be ignored.
9537 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
9539         * 5tsystem.ads: Removed, no longer used.
9541 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
9542             Zack Weinberg  <zack@codesourcery.com>
9544         * ada-tree.def: Use tree_code_class enumeration constants
9545         instead of code letters.
9546         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
9547         Update for new tree-class enumeration constants.
9549 2004-09-17  Vincent Celier  <celier@gnat.com>
9551         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
9552         capabilities of the general project manager.
9554 2004-09-09  Vincent Celier  <celier@gnat.com>
9556         * a-direct.ads: Add pragma Ada_05
9557         (Directory_Entry_Type): Give default value to component Kind to avoid
9558         not initialized warnings.
9560         * a-direct.adb (Current_Directory): Remove directory separator at the
9561         end.
9562         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
9563         an existing directory.
9564         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
9565         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
9566         Convert the result to File_Size.
9568         * prj.ads: (Project_Error): New exception
9570         * prj-attr.adb: Except in procedure Initialize, Fail comes from
9571         Prj.Com, not from Osint.
9572         (Attrs, Package_Attributes): Tables moved to private part of spec
9573         (Add_Attribute, Add_Unknown_Package): Moved to new child package
9574         Prj.Attr.PM.
9575         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
9576         Prj.Project_Error after call to Fail.
9577         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
9578         Fail. Check that package name is not already in use.
9580         * prj-attr.ads: Comment updates to indicate that all subprograms may be
9581         used by tools, not only by the project manager, and to indicate that
9582         exception Prj.Prj_Error may be raised in case of problem.
9583         (Add_Unknown_Package, Add_Attribute): Moved to new child package
9584         Prj.Attr.PM.
9585         (Attrs, Package_Attributes): Table instantiations moved from the body to
9586         the private part to be accessible from Prj.Attr.PM body.
9588         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
9589         from new package Prj.Attr.PM.
9590         (Parse_Attribute_Declaration): Call Add_Attribute from new package
9591         Prj.Attr.PM.
9593         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
9595         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
9596         instead of Elaboration_Checks).
9598         * a-calend.adb: Minor reformatting
9600 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9602         * gigi.h (maybe_pad_type): New declaration.
9603         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
9605         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
9607         * cuintp.c: Convert to use buildN.
9609         * decl.c (maybe_pad_type): No longer static.
9610         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
9611         target pointer.
9612         Convert to use buildN.
9614         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
9615         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
9616         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
9617         RHS.
9618         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
9619         (gnat_gimplify_expr, case ADDR_EXPR): New case.
9620         Convert to use buildN.
9622         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
9623         TREE_READONLY for const.
9624         Convert to use buildN.
9626         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
9627         (create_var_decl): Refine when TREE_STATIC is set.
9628         Convert to use buildN.
9630 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
9632         * gnat_ugn.texi: Delete text relating to checking of ali and object
9633         consistency.
9635         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
9636         routines.
9638 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
9640         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
9641         pragmas recognized by GNAT.
9643         * gnat_rm.texi: Document pragma Detect_Blocking.
9645         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
9646         raise Program_Error if called from a protected operation.
9648         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
9649         the protected action nesting level.
9650         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
9651         protected action nesting level.
9652         (Unlock): When pragma Detect_Blocking is active decrease the protected
9653         action nesting level.
9655         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
9656         Protected_Action_Nesting.
9658         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
9659         Common_ATCB record. It contains the dynamic level of protected action
9660         nesting for each task. It is needed for checking whether potentially
9661         blocking operations are called from protected operations.
9662         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
9663         Detect_Blocking is active or not in the partition.
9665         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
9666         raise Program_Error if called from a protected operation.
9667         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
9668         Program_Error if called from a protected operation.
9669         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
9670         Program_Error if called from a protected operation.
9672         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
9673         raise Program_Error if called from a protected operation.
9675         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
9676         raise Program_Error if called from a protected operation, and increase
9677         the protected action nesting level.
9678         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
9679         Program_Error if called from a protected operation, and increase the
9680         protected action nesting level.
9681         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
9682         protected action nesting level.
9684         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
9685         raise Program_Error if called from a protected operation, and increase
9686         the protected action nesting level.
9687         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
9688         Program_Error if called from a protected operation, and increase the
9689         protected action nesting level.
9690         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
9691         raise Program_Error if called from a protected operation.
9692         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
9693         active, raise Program_Error if called from a protected operation.
9694         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
9695         protected action nesting level.
9697         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
9698         insertion of the statement raising Program_Error. The run time
9699         contains the required machinery for handling that.
9701         * sem_util.ads: Change comment associated to procedure
9702         Check_Potentially_Blocking_Operation.
9703         This procedure does not insert a call for raising the exception because
9704         that is currently done by the run time.
9706         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
9708         * init.c: Add the global variable __gl_detect_blocking that indicates
9709         whether pragma Detect_Blocking is active (1) or not (0). Needed for
9710         making the pragma available at run time.
9711         (__gnat_set_globals): Pass and update the detect_blocking parameter.
9713         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
9714         pragma Detect_Blocking is active.
9716         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
9718         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
9719         DB is found in the ali file. Any unit compiled with pragma
9720         Detect_Blocking active forces its effect in the whole partition.
9722         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
9723         Detect_Blocking is active and delay is called from a protected
9724         operation.
9726         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
9727         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
9728         Detect_Blocking is active (0 otherwise).
9729         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
9730         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
9731         otherwise).
9733 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
9735         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
9736         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
9737         package.
9739         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
9740         (Register_Receiving_Stub): Add Subp_Info formal parameter.
9741         Update API in placeholder implemetation of s-parint to reflect changes
9742         in distribution runtime library.
9744         * sem_ch3.adb (Expand_Derived_Record): Rename to
9745         Expand_Record_Extension.
9747         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
9748         primitive operations of potentially distributed object types that have
9749         non-controlling anonymous access formals.
9751         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
9752         subprogram.
9753         New implementation of expansion for remote access-to-subprogram types,
9754         based on the RACW infrastructure.
9755         This version of sem_dist is compatible with PolyORB/DSA as well as
9756         GLADE.
9758         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
9759         Asynchrronous that applies to a remote access-to-subprogram type, mark
9760         the underlying RACW type as asynchronous.
9762         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
9763          __gnat_using_gnu_linker to 1.
9765         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
9766         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
9767         GNAT.Perfect_Hash_Generators, and remove the empty
9768         GNAT.Perfect_Hash package.
9770         * atree.adb: Minor reformatting
9772         * exp_ch3.adb (Expand_Derived_Record): Rename to
9773         Expand_Record_Extension.
9774         (Build_Record_Init_Proc.Build_Assignment): The default expression in
9775         a component declaration must remain attached at that point in the
9776         tree so New_Copy_Tree copies it if the enclosing record type is derived.
9777         It is therefore necessary to take a copy of the expression when building
9778         the corresponding assignment statement in the init proc.
9779         As a side effect, in the case of a derived record type, we now see the
9780         original expression, without any rewriting that could have occurred
9781         during expansion of the ancestor type's init proc, and we do not need
9782         to go back to Original_Node.
9784         * exp_ch3.ads (Expand_Derived_Record): Rename to
9785         Expand_Record_Extension.
9787         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
9788         Returns the RACW type used to implement a remote access-to-subprogram
9789         type.
9790         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
9791         New subprograms. Used to create a proxy tagged object for a remote
9792         subprogram. The proxy object is used as the designated object
9793         for RAS values on the same partition (unless All_Calls_Remote applies).
9794         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
9795         System.Partition_Interface.Get_Unique_Remote_Pointer.
9796         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
9797         Renamed from Add_RAS_*_Attribute.
9798         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
9799         subprograms.
9800         New implementation of expansion for remote access-to-subprogram types,
9801         based on the RACW infrastructure.
9803         * exp_dist.ads (Copy_Specification): Update comment to note that this
9804         function can copy the specification from either a subprogram
9805         specification or an access-to-subprogram type definition.
9807 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
9809         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
9810         in an instance, between an explicit subprogram an one inherited from a
9811         type derived from an actual.
9813         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
9814         add a polling call if the subprogram is to be inlined by the back-end,
9815         to avoid repeated calls with multiple inlinings.
9817         * checks.adb (Apply_Alignment_Check): If the expression in the address
9818         clause is a call whose name is not a static entity (e.g. a dispatching
9819         call), treat as dynamic.
9821 2004-09-09  Robert Dewar  <dewar@gnat.com>
9823         * g-trasym.ads: Minor reformatting
9825         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
9826         packed arrays, since unused bits are expected to be zero for a
9827         comparison.
9829 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
9831         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
9832         comment.
9834 2004-09-09  Pascal Obry  <obry@gnat.com>
9836         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
9837         enable map file generation. Add the right option to generate the map
9838         file if Map_File is set to True.
9840         * gnatdll.adb (Gen_Map_File): New variable.
9841         (Syntax): Add info about new -m (Map_File) option.
9842         (Parse_Command_Line): Add support for -m option.
9843         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
9844         Minor reformatting.
9846 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
9848         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
9849         new gnatdist implementation.
9850         Define a subpackage isolating the output routines specific to this
9851         verbose mode.
9853 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
9855         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
9857         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
9859 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
9861         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
9862         internal unit.
9864         * opt.ads: Add Ada_Version_Runtime constant used to decide which
9865         version of the language is used to compile the run time.
9867 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
9869         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
9870         of variable length temporaries for function return now that the
9871         back-end and gigi support it.
9873 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9875         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
9877         * trans.c (struct stmt_group): Delete field GLOBAL.
9878         (gnat_init_stmt_group): Do not initialize it.
9879         (call_to_gnu): Use save_expr, not protect_multiple_eval.
9880         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
9881         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
9882         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
9883         (start_stmt_group): Likewise.
9884         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
9886         * utils2.c (ggc.h): Include.
9887         (build_call_raise): Call build_int_cst, not build_int_2.
9889         * utils.c (gnat_init_decl_processing): Fix arg to
9890         build_common_tree_nodes.
9891         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
9892         (gnat_define_builtin): Set built_in_decls.
9893         (init_gigi_decls): Call build_int_cst, not build_int_2.
9895         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
9896         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
9897         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
9898         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
9899         SET_TYPE_MODULE): Use them.
9900         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
9901         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
9902         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
9903         SET_TYPE_ADA_SIZE): Likewise.
9904         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
9905         (DECL_CONST_CORRESPONDING_VAR,
9906         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
9907         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
9908         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
9909         (TYPE_RM_SIZE_NUM): New macro.
9910         (TYPE_RM_SIZE): Modified to use above.
9912         * cuintp.c: (build_cst_from_int): New function.
9913         (UI_To_gnu): Use it.
9915         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
9916         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
9917         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
9918         MIN_EXPR for the size, copy it into new.
9920 2004-09-01  Robert Dewar  <dewar@gnat.com>
9922         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
9923         packed indexed component where array is an IN OUT formal. This
9924         generated garbage code previously.
9926         * gnat_ugn.texi: Document -fverbose-asm
9928         * gnat-style.texi: Minor updates (note that boolean constants and
9929         variables are joined with AND/OR rather than short circuit forms).
9931 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
9933         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
9934         it is an upward conversion of an untagged type with no representation
9935         change.
9937 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
9939         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
9940         System.Partition_Interface.
9942         * checks.adb (Apply_Access_Checks): Do not generate checks when
9943         expander is not active (but check for unset reference to prefix of
9944         dereference).
9946         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
9947         pragma Debug as an if statement with a constant condition, for
9948         consistent treatment of entity references contained within the
9949         enclosed procedure call.
9951 2004-09-01  Vincent Celier  <celier@gnat.com>
9953         * bindgen.adb: (Set_EA_Last): New procedure
9954         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
9955         Set_EA_Last.
9956         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
9957         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
9958         linked without errors.
9959         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
9960         ST and EA.
9961         (Gen_Exception_Table_C): Correct same bugs
9963         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
9965         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
9966         on Windows, make sure that the drive letter is in upper case.
9968         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
9969         Windows, when the drive letter is added and Case_Sensitive is True, the
9970         drive letter is forced to upper case.
9972         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
9973         to Options_2 for the call to MLib.Utl.Gcc.
9975         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
9976         directory separator when defining BASE_DIR.
9978 2004-09-01  Pascal Obry  <obry@gnat.com>
9980         * gprcmd.adb (Extend): Do not output trailing directory separator. This
9981         is not needed and it confuses Windows GNU/make which does not report
9982         directory terminated by a slash as a directory.
9983         (gprcmd): Idem for "pwd" internal command.
9985         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
9986         target names rewrite to fix regressions with recent version of
9987         GNU/make. Starting with GNU/make 3.80 the pipe character was not
9988         handled properly anymore.
9990 2004-09-01  Andreas Schwab  <schwab@suse.de>
9992         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
9993         * raise.c [!IN_RTS]: Undef abort.
9995 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
9997         * utils2.c (build_allocator): Use ssize_int.
9999         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
10001 2004-08-27  Andreas Schwab  <schwab@suse.de>
10003         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
10005 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
10006             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10008         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
10010 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
10012         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
10013         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
10014         * utils.c (init_gigi_decls): Likewise.
10015         * utils2.c (build_call_raise, build_allocator): Likewise.
10017 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
10019         * utils.c (gnat_init_decl_processing): Adjust
10020         build_common_tree_nodes call.
10022 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
10024         * utils2.c (build_allocator): Use build_int_cst for negative
10025         size types.
10027 2004-08-18  Richard Henderson  <rth@redhat.com>
10029         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
10031 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
10033         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
10034         call.s
10035         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
10036         (gnat_to_gnu): Likewise.
10038 2004-08-16  Pascal Obry  <obry@gnat.com>
10040         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
10041         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
10042         option and not mdll anymore. Update comment.
10044 2004-08-16  Pascal Obry  <obry@gnat.com>
10046         * bld.adb (Put_Include_Project): Properly handle directory separators
10047         on Windows.
10049 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
10051         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
10052         decreasing the number of allocated junk nodes while searching for the
10053         appropriate subprogram.
10055 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
10057         * cuintp.c (UI_To_gnu): Use build_int_cst..
10058         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
10059         * utils.c (init_gigi_decls): Likewise.
10060         * utils2.c (build_call_raise): Likewise.
10062 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
10064         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
10065         for a global aliased object with a variable size and an unconstrained
10066         nominal subtype, pretend there is no initializer if the one we have is
10067         incomplete, and avoid referencing an inexistant component in there. The
10068         part we have will be rebuilt anyway and the reference may confuse
10069         further operations.
10071 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
10073         * einfo.ads: Minor reformatting
10075         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
10076         restrictions in the ALI if we only want to warn about violations.
10078 2004-08-13  Vincent Celier  <celier@gnat.com>
10080         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
10081         when creating a new Unit_Record in table Units.
10083         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
10084         that are violated, if any.
10086         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
10087         add directory separator if path already ends with a directory separator.
10089 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
10091         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
10092         unit, this is an attempt to inline a construct that is not available in
10093         the current restricted mode, so abort rather than trying to continue.
10095         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
10096         discriminants that rename those of the parent, recover names of
10097         original discriminants for the constraint on the full view of the
10098         parent.
10099         (Complete_Private_Subtype): Do not create a subtype declaration if the
10100         subtype is an itype.
10102         * gnat_rm.texi: Added section on implementation of discriminated
10103         records with default values for discriminants.
10105 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
10107         PR ada/15601
10108         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
10109         the second operand is overloaded.
10111 2004-08-10  Richard Henderson  <rth@redhat.com>
10113         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
10114         add __builtin_alloca.
10116 2004-08-10  Richard Henderson  <rth@redhat.com>
10118         * config-lang.in (boot_language): Yes.
10120 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
10122         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
10123         from complaining on potential uninitialized reference.
10124         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
10125         new specification and test explicitly for non-zero return value.
10127         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
10128         returning C.int, to avoid using a derived boolean type.
10130         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
10131         Duplicate_Subexpr_No_Checks in preference to direct use of
10132         Remove_Side_Effects and New_Copy_Tree.
10133         Clear Comes_From_Source on prefix of 'Size attribute reference.
10135         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
10136         g-socthi-vxworks.adb: Change calls to
10137         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
10138         and test explicitly for non-zero return value.
10140         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
10141         (Is_Socket_In_Set): Declare imported function as returning C.int, to
10142         avoid using a derived boolean type.
10144 2004-08-09  Albert Lee  <lee@gnat.com>
10146         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
10148 2004-08-09  Pascal Obry  <obry@gnat.com>
10150         * gnat_ugn.texi: Document new way to build DLLs on Windows using
10151         GCC's -shared option.
10153         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
10154         Options_2 parameter (options put after object files).
10156 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
10158         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
10159         ignore overflows on low and high bounds of an index to also account for
10160         differences in signedness between sizetype and gnu_index_subtype.
10161         These are as legitimate as the ones caused by a lower TYPE_PRECISION
10162         on sizetype.
10164 2004-08-09  Robert Dewar  <dewar@gnat.com>
10166         * s-solita.ads, s-solita.adb: Minor reformatting
10168         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
10169         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
10170         obsolescent section
10171         Add note that No_Implicit_Conditionals does not suppress
10172         run time constraint checks.
10174         * vms_conv.ads: Minor reformatting
10176         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
10177         and necessary for following change).
10178         (Mark): Return new format Mark_Id containing sec stack address
10179         (Release): Use sec stack address from Mark_Id avoiding Self call
10181         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
10182         pointer (cleanup and necessary for following change).
10183         Define Mark_Id as record containing address of secondary stack, that way
10184         Release does not need to find the stack again, decreasing the number of
10185         calls to Self and improving efficiency.
10187         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
10189         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
10190         case variable into the individual case branches when possible.
10192         * sem_ch11.adb: Minor reformatting
10194         * prj.ads: Correct spelling of suffixs
10196         * prj-nmsc.adb: Minor reformatting
10197         Correct spelling suffixs throughout (also in identifiers)
10199         * freeze.adb: Minor spelling correction
10201         * exp_ch2.adb: Cleanups to handling of Current_Value
10202         (no functional effect).
10204         * bld.adb: Correct spelling of suffixs
10206         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
10208 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
10210         PR ada/15408
10212         * sem_ch7.adb (Install_Private_Declarations): In the body of the
10213         package or of a child, private entities are both immediately_visible
10214         and not hidden.
10216 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
10218         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
10219         there are no range checks on the value of the literal.
10221         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
10222         wrapped is the triggering alternative of an asynchronous select, action
10223         statements mustbe inserted before the select itself.
10225         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
10226         case where the prefix is a protected function call.
10227         (Resolve_Attribute, case 'Access): The attribute reference on a
10228         subprogram is legal in a generic body if the subprogram is declared
10229         elsewhere.
10231 2004-08-09  Vincent Celier  <celier@gnat.com>
10233         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
10234         languages, otherwise building the library may fail with unresolved
10235         symbols.
10236         (Compile_Sources): Do not build libraries if -c switch is used
10238         * gnatlink.adb (Process_Args): New switches -M and -Mmap
10239         (Write_Usage): If map file creation is supported, output new switches
10240         -M and -Mmap.
10241         (Gnatlink): When -M is specified, add the necessary switch(es) to the
10242         gcc call, when supported.
10244         * Makefile.in: Added indepsw.o to the object list for gnatlink
10245         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
10247         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
10248         indepsw.adb, indepsw.ads: New files.
10250 2004-08-09  Bernard Banner  <banner@gnat.com>
10252         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
10254         * Makefile.in: add section for vxworks x86
10256 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
10258         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
10259         per-object constrained components where the discriminant is of an
10260         Access type.
10261         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
10262         the parent initialization procedure for derived Unchecked_Unions.
10263         Instead, derived Unchecked_Unions build their own initialization
10264         procedure.
10265         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
10266         Check the body of the subprogram for details.
10267         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
10268         functions for derived Unchecked_Union types by introducing a condition.
10269         Allow the creation of TSS equality functions for Unchecked_Unions.
10270         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
10271         Add formal parameter Discr to function signature. Discr is used to
10272         control the generated case statement for Unchecked_Union types.
10273         (Make_Eq_If): Rename formal parameter Node to E in function signature.
10275         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
10276         Unchecked_Unions.
10277         Check the body of the subprogram for details.
10278         (Expand_Composite_Equality): Augment composite type equality to include
10279         correct handling of Unchecked_Union components.
10280         (Expand_N_In): Add condition to detect illegal membership tests when the
10281         subtype mark is a constrained Unchecked_Union and the expression lacks
10282         inferable discriminants, and build a Raise_Program_Error node.
10283         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
10284         to detect types that contain components of unconstrained Unchecked_Union
10285         subtype. Add condition to detect equality between types that have an
10286         unconstrained Unchecked_Union component, and build a Raise_Program_Error
10287         node. Add condition to detect equality between Unchecked_Union types
10288         that lack inferable discriminants, and build a Raise_Program_Error node.
10289         Otherwise build a TSS equality function call.
10290         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
10291         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
10292         with the operand lacking inferable discriminants, and build a Raise_
10293         Program_Error node.
10294         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
10295         composite equality.
10296         (Has_Inferable_Discriminants): Implement new predicate for objects and
10297         expressions of Unchecked_Union type. Check the body of subprogram for
10298         details.
10299         (Has_Unconstrained_UU_Components): Add function
10300         Component_Is_Unconstrained_UU. It is used to detect whether a single
10301         component is of an unconstrained Unchecked_Union subtype. Add function
10302         Variant_Is_Unconstrained_UU. It is used to detect whether a single
10303         component inside a variant is of an unconstrained Unchecked_Union type.
10305         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
10306         inferred discriminant values. Add condition to generate a case
10307         statement with an inferred discriminant as the switch.
10308         (Make_Component_List_Assign): Introduce a Boolean flag that determines
10309         the behaviour of the subprogram in the presence of an Unchecked_Union.
10310         Add condition to trigger the usage of the inferred discriminant value
10311         as the generated case statement switch.
10312         (Make_Field_Assign): Introduce a Boolean flag that determines the
10313         behaviour of the subprogram in the presence of an Unchecked_Union. Add
10314         condition to trigger the usage of the inferred discriminant value as
10315         the right-hand side of the generated assignment.
10317         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
10318         parameter generation when dealing with Unchecked_Unions.
10320         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
10321         checks for Unchecked_Unions.
10323         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
10325         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
10326         Raise_Program_Error nodes for the execution of Read and Write
10327         attributes of Unchecked_Union types and the execution of Input and
10328         Output attributes of Unchecked_Union types that lack default
10329         discriminant values.
10331         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
10332         Unchecked_Union. Add procedure Check_Component. It is used to inspect
10333         per-object constrained components of Unchecked_Unions for being
10334         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
10335         check individual components withing a variant.
10337         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
10338         comparison of Unchecked_Unions.
10339         (Resolve_Equality_OP): Remove guard that prevents equality between
10340         Unchecked_Unions.
10342         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
10343         of component subtypes for Unchecked_Union components.
10344         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
10345         since it is the actual subtype.
10347         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
10348         pass of Unchecked_Union subtypes as generic actuals to formal types
10349         that lack known_discriminant_parts or that are derived Unchecked_Union
10350         types, and do nothing. In any other case, produce an error message.
10352         * sem_ch3.adb (Analyze_Component_Declaration): Add function
10353         Contains_POC. It determines whether a constraint uses the discriminant
10354         of an enclosing record type.
10355         Add condition to detect per-object constrained component and set the
10356         appropriate flag.
10357         (Derived_Type_Declaration): Remove guard that prevents derivation from
10358         Unchecked_Union types.
10359         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
10360         Union subtypes.
10362         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
10363         references to Unchecked_Union discriminants.
10365         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
10366         formal generation when dealing with Unchecked_Unions.
10367         (Set_Actual_Subtypes): Add condition to prevent generation of actual
10368         subtypes for Unchecked_Unions.
10370         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
10371         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
10372         completions of discriminated partial views by Unchecked_Unions and
10373         produce an error message.
10375 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10377         * trans.c (struct stmt_group): New field, GLOBAL.
10378         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
10379         (struct elab_info): New struct.
10380         (elab_info_list, gnu_elab_proc_stack): New variables.
10381         (Compilation_Unit_to_gnu): New procedure.
10382         (gigi): Call it and also handle elaboration procs we've saved.
10383         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
10384         global field from parent.
10385         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
10386         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
10387         (start_stmt_group): Initialize global field from parent.
10388         (add_decl_expr): Set to global for current statement group.
10389         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
10390         post.
10392         * utils.c (global_bindings_p): True when no current_function_decl; no
10393         longer check current_binding_level.
10395 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
10397         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
10398         choice.
10400         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
10402 2004-08-06  Andreas Schwab  <schwab@suse.de>
10404         * utils.c (gnat_define_builtin): Remove second parameter of
10405         make_decl_rtl.
10406         (begin_subprog_body): Likewise.
10408 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
10410         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
10411         optimization, not supported by the tree-ssa back-end.
10413 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
10415         * s-mastop-irix.adb: Update comments.
10417         * a-except.adb (Exception_Information): Raise Constraint_Error if
10418         exception Id is Null_Id.
10419         This is required behavior, which is more reliably and clearly checked
10420         at the top level interface level.
10422 2004-07-26  Javier Miranda  <miranda@gnat.com>
10424         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
10425         call if a component has no default_expression and the box is used.
10427         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
10428         default_expression and you use box, it behaves as if you had declared a
10429         stand-alone object.
10430         (Resolve_Record_Aggregate): If a component has no default_expression and
10431         you use box, it behaves as if you had declared a stand-alone object.
10433         * sem_ch10.adb (Install_Siblings): Do not make visible the private
10434         entities of private-with siblings.
10436 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
10438         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
10439         for a component of an itype, set the parent pointer for analysis,
10440         there is no list in which to insert it.
10442         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
10443         bona-fide renamings, not for inherited operations.
10445         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
10446         actual for a formal that is an access parameter, create local
10447         finalization list even if the expression is not an aggregate.
10449 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
10451         PR ada/16213
10452         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
10453         Diagnose properly illegal subprogram renamings that are library units.
10455 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
10457         PR ada/15588
10458         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
10459         conversion rewritten as an unchecked conversion, check that original
10460         expression is a variable.
10462         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
10463         unchecked_conversion, create new node rather than rewriting in place,
10464         to preserve original construct.
10466 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10468         * gigi.h (gnat_expand_body): Deleted.
10470         * Make-lang.in: (trans.o): Depends on function.h.
10472         * misc.c: (gnat_expand_body): Moved to here.
10474         * trans.c (gnat_expand_body_1): Deleted.
10475         (gnat_expand_body): Moved from here.
10476         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
10477         (add_stmt): Check for marked visited with global_bindings_p.
10478         (gnat_gimplify_expr, case COMPONENT_REF): New case.
10479         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
10481         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
10482         VIEW_CONVERT_EXPR if not operation type.
10484         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
10485         fat pointer.
10487         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
10488         changes: reformatting of negation operators, removing unneeded
10489         inequality comparison with zero, converting equality comparisons with
10490         zero to negations, changing int/0/1 to bool/false/true, replace calls
10491         to gigi_abort with abort, and various other similar changes.
10493 2004-07-26  Vincent Celier  <celier@gnat.com>
10495         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
10496         "setup".
10498         * make.adb (Gnatmake): Fail when a library is not present and there is
10499         no object directory.
10501         * mlib-prj.adb (Check_Library): No need to check if the library needs
10502         to be rebuilt if there is no object directory, hence no object files
10503         to build the library.
10505         * opt.ads (Setup_Projects): New Boolean flag.
10507         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
10508         Location.
10509         Create directory when Kind /= "" and in "gnat setup". Report error if
10510         directory cannot be created.
10511         (Ada_Check): Create library interface copy dir if it does not exist
10512         and we are in "gnat setup".
10513         (Find_Sources): No error if in "gnat setup" and no Ada sources were
10514         found.
10515         (Language_Independent_Check): Create object directory, exec directory
10516         and/or library directory if they do not exist and we are in
10517         "gnat setup".
10519         * vms_conv.ads: (Command_Type): New command Setup.
10521         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
10523         * vms_data.ads: Add qualifiers/switches for new built-in command
10524         "setup".
10526 2004-07-25  Richard Henderson  <rth@redhat.com>
10528         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
10529         DECL_IGNORED_P on RESULT_DECL.
10531 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
10533         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
10534         allocation and potentially overflowing update with
10535         Tailored_Exception_Information. Use the sec-stack free procedural
10536         interface to output Exception_Information instead.
10538         * a-except.adb (To_Stderr): New subprogram for character, and string
10539         version moved from a-exextr to be visible from other separate units.
10540         (Tailored_Exception_Information): Remove the procedural version,
10541         previously used by the default Last_Chance_Handler and not any more.
10542         Adjust various comments.
10544         * a-exexda.adb: Generalize the exception information procedural
10545         interface, to minimize the use of secondary stack and the need for
10546         local buffers when the info is to be output to stderr:
10547         (Address_Image): Removed.
10548         (Append_Info_Character): New subprogram, checking for overflows and
10549         outputing to stderr if buffer to fill is of length 0.
10550         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
10551         (Append_Info_Address, Append_Info_Exception_Name,
10552         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
10553         Append_Info_Basic_Exception_Traceback,
10554         Append_Info_Exception_Information): New subprograms.
10555         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
10556         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
10557         Exception_Info_Maxlength, Exception_Name_Length,
10558         Exception_Message_Length): New subprograms.
10559         (Exception_Information): Use Append_Info_Exception_Information.
10560         (Tailored_Exception_Information): Use
10561         Append_Info_Basic_Exception_Information.
10562         Export services for the default Last_Chance_Handler.
10564         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
10565         other separate units.
10567 2004-07-20  Vincent Celier  <celier@gnat.com>
10569         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
10571 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
10573         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
10574         emit itype references for the designated types of component types that
10575         are declared outside of the full record declaration, and that may
10576         denote a partial view of that record type.
10578 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
10580         PR ada/15607
10581         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
10582         which is the designated type in an access component declaration, to the
10583         list of incomplete dependents of the parent type, to avoid elaboration
10584         issues with out-of-scope subtypes.
10585         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
10586         full view of the parent.
10588 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
10590         PR ada/15610
10591         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
10592         entities that are hidden, such as references to generic actuals
10593         outside an instance.
10595 2004-07-20  Javier Miranda  <miranda@gnat.com>
10597         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
10598         support to the new notation.
10599         (Analyze_Selected_Component): Add call to Try_Object_Operation.
10601 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
10603         * s-taprob.adb: Adding the elaboration code required for initializing
10604         the tasking soft links that are common to the full and the restricted
10605         run times.
10607         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
10608         restricted run time has been moved to the package
10609         System.Soft_Links.Tasking.
10611         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
10612         restricted run time has been moved to the package
10613         System.Soft_Links.Tasking.
10615         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
10617         * s-solita.ads, s-solita.adb: New files.
10619 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10621         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
10622         Case_Statement_to_gnu): Split off from gnat_to_gnu.
10623         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
10624         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
10625         Exception_Handler_to_gnu_zcx): Likewise.
10627 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
10629         * gigi.h (builtin_function): Declare.
10631 2004-07-15  Robert Dewar  <dewar@gnat.com>
10633         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
10634         reformatting
10636         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
10637         access values as an example of a warning.
10639         * gnat_rm.texi: Document new attribute Has_Access_Values
10641         * gnat-style.texi: Document that box comments belong on nested
10642         subprograms
10644         * sem_util.ads (Has_Access_Values): Improved documentation
10646         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
10648         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
10649         (Process_Interface_Name): Call to this new procedure
10650         (Set_Extended_Import_Export_External_Name): Call to this new procedure
10652         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
10654         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
10656         * einfo.ads: Minor comment typo fixed
10658 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
10660         * snames.adb: Add _atcb.
10662         * snames.ads: Add Name_uATCB.
10664         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
10665         (in the expanded code) when using the restricted run time.
10667         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
10668         a in parameter in order to allow ATCBs to be preallocated (in the
10669         expanded code).
10671         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
10672         order to allow ATCBs to be preallocated. In case of error, the ATCB is
10673         deallocated in System.Tasking.Stages.
10675         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
10676         order to allow ATCBs to be preallocated.
10678         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
10679         here. It was previously done in Initialize_ATCB.
10681         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
10683         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
10684         Restricted run time.
10686         * exp_ch3.adb: When using the Restricted run time, pass the
10687         preallocated Ada_Task_Control_Block when creating a task.
10689 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
10691         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
10692         function call that is itself an actual in an enclosing call, diagnose
10693         problem here rather than assuming that resolution will catch it.
10695         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
10696         the local copy of a generic unit for a formal package, and the generic
10697         is a child unit, install private part of ancestors before compiling
10698         private part of spec.
10700         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
10701         use scope entities rather than tree structures, to handle properly
10702         parent units that are instances rewritten as bodies for inlining
10703         purposes.
10705         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
10706         Remove_Parents): Handle properly a parent unit that is an
10707         instantiation, when the unit has been rewritten as a body for inlining
10708         purposes.
10710         * par.adb (Goto_List): Global variable to collect goto statements in a
10711         given unit, for use in detecting natural loops.
10713         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
10714         use in detecting natural loops.
10716         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
10717         backwards goto's, and rewrite as a infinite loop, to improve locality
10718         of temporaries.
10720         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
10721         subcomponent that includes an indexed reference, to prevent the
10722         generation of copies that would miscompile the desired assignment
10723         statement.
10724         (Build_Task_Image_Decls): Add a numeric suffix to
10725         generated name for string variable, to avoid spurious conflicts with
10726         the name of the type of a single protected object.
10728         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
10729         loop with an explicit exit statement, to avoid generating an
10730         out-of-range value with 'Succ leading to spurious constraint_errors
10731         when compiling with -gnatVo.
10733 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
10735         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
10736         might not be analyzed yet, even if its Etype is already set (case of an
10737         unchecked conversion built using Unchecked_Convert_To, for example).
10738         If the prefix has already been analyzed, this will be a nop anyway.
10740         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
10741         controller type, or an assignment of a record type with controlled
10742         components, copy only user data, and leave the finalization chain
10743         pointers untouched.
10745 2004-07-15  Vincent Celier  <celier@gnat.com>
10747         * make.adb (Collect_Arguments): Improve error message when attempting
10748         to compile a source not part of any project, when -x is not used.
10750         * prj.ads: (Defined_Variable_Kind): New subtype
10752         * prj-attr.adb (Register_New_Package): Two new procedures to register
10753         a package with or without its attributes.
10754         (Register_New_Attribute): Mew procedure to register a new attribute in a
10755         package.
10756         New attribute oriented subprograms: Attribute_Node_Id_Of,
10757         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
10758         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
10759         Next_Attribute.
10760         New package oriented subprograms: Package_Node_Id_Of,
10761         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
10763         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
10764         type.
10765         (Package_Node_Id): Now a private, self initialized type
10766         (Register_New_Package): New procedure to register a package with its
10767         attributes.
10768         New attribute oriented subprograms: Attribute_Node_Id_Of,
10769         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
10770         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
10771         Next_Attribute.
10772         New package oriented subprograms: Package_Node_Id_Of,
10773         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
10775         * prj-dect.adb (Parse_Attribute_Declaration,
10776         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
10778         * prj-makr.adb (Make): Parse existing project file before creating
10779         other files. Fail if there was an error during parsing.
10781         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
10782         new spec of Prj.Attr.
10784         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
10785         to new spec of Prj.Attr.
10787 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10789         * utils2.c: Fix typo in comment.
10791 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10793         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
10794         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
10796 2004-07-14  Andreas Schwab  <schwab@suse.de>
10798         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
10800 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10802         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
10803         object type.
10804         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
10805         TYPE_STUB_DECL.
10807         * misc.c (gnat_types_compatible_p): New function.
10808         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
10809         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
10811         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
10812         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
10813         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
10814         (mark_visited): Don't mark dummy type.
10815         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
10816         parameter, we must remove any LJM building from GNU_NAME.
10817         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
10818         (pos_to_constructor): Use int_const_binop.
10819         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
10820         PARM_DECL.
10822         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
10823         (gnat_pushlevel): Set TREE_USE on BLOCK node.
10824         (gnat_install_builtins): Add __builtin_memset.
10826 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
10828         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
10829         for a renaming, stabilize the initialization expression if we are at a
10830         local level.  At the local level, uses of the renaming may be performed
10831         by a direct dereference of the initializing expression, and we don't
10832         want possible variables there to be evaluated for every use.
10834         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
10835         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
10836         them on the way.  Account for the fact that we may introduce side
10837         effects in the process.
10839 2004-07-13  Richard Henderson  <rth@redhat.com>
10841         * misc.c (default_pass_by_ref): Use pass_by_reference.
10843 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
10845         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
10846         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
10848 2004-07-08  Richard Henderson  <rth@redhat.com>
10850         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
10851         commentary.
10853 2004-07-06  Vincent Celier  <celier@gnat.com>
10855         * vms_conv.ads: Minor reformatting.
10856         Alphabetical order for enumerated values of type Command_Type, to have
10857         the command in alphabetical order for the usage.
10859         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
10860         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
10862         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
10864         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
10865         (Add_Archive_Path): Only add the global archive if there is one.
10866         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
10867         or not any object file to put in the global archive, and don't build
10868         a global archive if there is none.
10869         (X_Switches): New table
10870         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
10871         in the X_Switches table, if any.
10872         (Initialize): Make sure the X_Switches table is empty
10873         (Scan_Arg): Record -X switches in table X_Switches
10875         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
10877         * make.adb: Minor comment fix
10879         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
10880         invoked with directory information, add the directory in front of the
10881         path.
10883         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
10884         invoked with directory information, add the directory in front of the
10885         path.
10887         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
10888         when Keep_Temporary_Files is False.
10889         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
10890         directory information, add the directory in front of the path.
10891         When not on VMS, handle new switch -dn before the command to set
10892         Keep_Temporary_Files to True.
10893         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
10894         everywhere.
10896         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
10897         invoked with directory information, add the directory in front of the
10898         path.
10900 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
10902         * snames.ads, snames.adb (Name_Stub): New name for the distributed
10903         systems annex.
10905         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
10906         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
10908         * g-socket.adb (To_Timeval): Fix incorrect conversion of
10909         Selector_Duration to Timeval for the case of 0.0.
10911         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
10912         documentation from Evolve_And_Then.
10914 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
10916         * s-taprop-tru64.adb, s-taprop-os2.adb,
10917         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
10919 2004-07-06  Robert Dewar  <dewar@gnat.com>
10921         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
10922         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
10923         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
10924         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
10925         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
10926         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
10927         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
10928         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
10929         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
10930         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
10931         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
10932         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
10933         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
10934         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
10935         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
10936         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
10937         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
10938         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
10939         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
10940         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
10941         vms_data.ads: Minor reformatting,
10942         Fix bad box comment format.
10944         * gnat_rm.texi: Fix minor grammatical error
10946         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
10948         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
10949         more cases of discriminated records to be recognized as not needing a
10950         secondary stack.
10951         (Has_Access_Values): New function.
10953         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
10955         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
10956         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
10957         with LRM terminology).
10958         Change terminology in comments primitive type => elementary type.
10960 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
10962         PR ada/15602
10963         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
10964         parameters do not impose any requirements on the presence of a body.
10966 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
10968         PR ada/15593
10969         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
10970         compilation unit and is in an open scope at the point of instantiation,
10971         assume that a body may be present later.
10973 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
10975         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
10976         Improve error message when specified size is not supported.
10978         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
10979         is never a primitive operation.
10981 2004-07-05  Andreas Schwab  <schwab@suse.de>
10983         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
10984         RECORD_OR_UNION_CHECK.
10985         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
10987 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
10989         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
10990         dependency on xgnatugn, instead build it via a submake.
10991         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
10993 2004-07-04  Richard Henderson  <rth@redhat.com>
10995         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
10997 2004-07-01  Richard Henderson  <rth@redhat.com>
10999         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
11000         * utils.c (max_size): Likewise.
11002 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11004         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
11005         and rest_of_type_compilation; add arg to create_*_decl.
11006         (annotate_decl_with_node): Deleted.
11007         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
11008         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
11009         (get_current_block_context, gnat_pushdecl): New declarations.
11010         (gnat_init_stmt_group): Likewise.
11011         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
11012         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
11013         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
11014         (gnat_init): Call gnat_init_stmt_group.
11015         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
11016         (gnu_pending_elaboration_list): Deleted.
11017         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
11018         (gigi): Rearrange initialization calls and move some to last above.
11019         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
11020         Delete calls to add_decl_expr; add arg to create_*_decl.
11021         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
11022         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
11023         begin_subprog_body and call it.
11024         Don't push and pop ggc context.
11025         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
11026         (add_stmt): Remove handling of DECL_EXPR from here.
11027         If not in function, mark visited.
11028         (add_decl_expr): Put global at top level.
11029         Check for cases of DECL_INITIAL we have to handle here.
11030         (process_type): Add extra arg to create_type_decl.
11031         (build_unit_elab): Rework to just gimplify.
11032         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
11033         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
11034         (get_pending_elaborations, pending_elaborations_p): Likewise.
11035         (push_pending_elaborations, pop_pending_elaborations): Likewise.
11036         (get_elaboration_location, insert_elaboration_list): Likewise.
11037         (gnat_binding_level): Renamed from ada_binding_level.
11038         (init_gnat_to_gnu): Don't clear pending_elaborations.
11039         (global_bindings_p): Treat as global if no current_binding_level.
11040         (set_current_block_context): New function.
11041         (gnat_pushdecl): Renamed from pushdecl; major rework.
11042         All callers changed.
11043         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
11044         (finish_record_type): Call call pushdecl for stub decl.
11045         (function_nesting_depth): Deleted.
11046         (begin_subprog_body): Delete obsolete code.
11047         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
11049 2004-06-28  Robert Dewar  <dewar@gnat.com>
11051         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
11052         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
11053         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
11054         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
11055         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
11057         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
11058         deal with problem of inefficient slices on machines with strict
11059         alignment, when the slice is a component of a composite.
11061         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
11062         machines, we need the check there as well.
11064 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
11066         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
11067         determine safe copying direction for overlapping slice assignments
11068         when component is controlled.
11070         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
11071         formal derived type in the actual for a formal package are visible in
11072         the enclosing instance.
11074 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
11076         PR ada/15600
11077         * sem_util.adb (Trace_Components): Diagnose properly an illegal
11078         circularity involving a private type whose completion includes a
11079         self-referential component.
11080         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
11081         renaming or an instantiation from an implicit derived operation.
11083 2004-06-28  Pascal Obry  <obry@gnat.com>
11085         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
11086         DLL.
11087         (Library_File_Name_For): Idem.
11089 2004-06-28  Matthew Gingell  <gingell@gnat.com>
11091         * g-traceb.ads: Add explanatory note on the format of addresses
11092         expected by addr2line.
11094 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
11096         * Makefile.in: Force debugging information on s-tasdeb.adb,
11097         a-except.adb and s-assert.adb needed by the debugger.
11099 2004-06-28  Vincent Celier  <celier@gnat.com>
11101         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
11102         Need_To_Build_Lib.
11103         (Gnatmake): Ditto.
11105         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
11107         * prj.adb: Minor reformatting
11108         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
11110         * prj.ads: Comment updates
11111         Minor reformatting
11112         (Project_Data): Change Flag1 to Need_To_Build_Lib.
11113         Remove Flag2: not used.
11115         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
11116         declaration.
11118         * gnat_ugn.texi: Put a "null;" declaration in one project file example
11120         * gnat_rm.texi: Document Empty declarations "null;".
11122         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
11123         front of the linker options.
11124         (Link_Foreign): Put the global archives and the libraries in front of
11125         the linker options.
11127 2004-06-28  Javier Miranda  <miranda@gnat.com>
11129         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
11130         (RTU_Loaded): Code cleanup
11131         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
11132         withed predefined units.
11134         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
11135         explicitly withed predefined units.
11136         Fix typo in comment
11138         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
11139         explicitly withed predefined units.
11141 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11143         * ada-tree.def (DECL_STMT): Deleted.
11144         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
11145         (DECL_STMT_VAR): Deleted.
11146         * decl.c: add_decl_stmt now add_decl_expr.
11147         * gigi.h: Likewise.
11148         * trans.c: Likewise.
11149         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
11150         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
11151         (add_stmt): Only handle padded type here.
11152         (add_stmt_with_node): Allow gnat_node to not be present.
11153         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
11154         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
11155         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
11156         make a SAVE_EXPR for the entire fat pointer.
11157         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
11158         (create_index_type): Make a DECL_EXPR.
11159         (end_subprog_body): Don't call allocate_struct_function here but
11160         do clear cfun.
11162 2004-06-25  Pascal Obry  <obry@gnat.com>
11164         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
11165         Relocatable from Build_Dynamic_Library call.
11167         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
11168         Relocatable are now synonym.
11170         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
11172         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
11173         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
11174         call.
11176         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
11177         Lib_Address and Relocatable.
11178         (Default_DLL_Address): Removed.
11180         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
11181         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
11182         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
11183         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
11184         (Default_DLL_Address): Removed.
11186         * mlib-tgt-mingw.adb: Ditto.
11187         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
11189         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
11190         the initial thread stack size.
11192         * a-strmap.ads: Move package L to private part as it is not used in
11193         the spec. Found while reading code.
11195 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
11197         * tracebak.c: Introduce support for a GCC infrastructure based
11198         implementation of __gnat_backtrace.
11200         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
11201         any more. Use accessors instead. This eases maintenance and relaxes
11202         some alignment constraints.
11203         (_GNAT_Exception structure): Remove the Ada specific fields
11204         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
11205         a-exexpr.adb.
11206         (is_handled_by, __gnat_eh_personality): Replace component references to
11207         exception structure by use of the new accessors.
11209         * init.c (__gnat_initialize): Adjust comments to match the just
11210         reverted meaning of the -static link-time option.
11212         * adaint.c (convert_addresses): Arrange not to define a stub for
11213         mips-irix any more, as we now want to rely on a real version from a
11214         recent libaddr2line.
11216         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
11217         the personality routine can use them and not have to rely on a C
11218         counterpart of the record anymore. This simplifies maintenance and
11219         relaxes the constraint of having Standard'Maximum_Alignment match
11220         BIGGEST_ALIGNMENT.
11221         Update comments, and add a section on the common header alignment issue.
11223 2004-06-25  Geert Bosch  <bosch@gnat.com>
11225         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
11226         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
11228 2004-06-25  Robert Dewar  <dewar@gnat.com>
11230         * gnat_rm.texi: Fix section on component clauses to indicate that the
11231         restriction on byte boundary placement still applies for bit packed
11232         arrays.
11233         Add comment on stack usage from Initialize_Scalars
11235         * gnat_ugn.texi: Add documentation for -gnatyLnnn
11237         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
11238         limiting nesting level.
11240         * usage.adb: Add line for -gnatyLnnn switch
11242         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
11243         sem_ch13.adb, exp_aggr.adb: Minor reformatting
11245         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
11246         type as well as on the subtype. This corrects a problem in freeze in
11247         setting alignments of atomic types.
11249         * sem_eval.ads: Minor comment typo fixed
11251         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
11252         level.  Minor reformatting.
11254         * fname.adb (Is_Predefined_File_Name): Require a letter after the
11255         minus sign. This means that file names like a--b.adb will not be
11256         considered predefined.
11258         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
11259         record Test new flag and give diagnostic for bad component clause.
11260         (Freeze_Entity): Set alignment of array from component alignment in
11261         cases where this is safe to do.
11263         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
11264         arrays.
11266         * cstand.adb: (Create_Standard): Set alignment of String to 1
11268         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
11270         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
11271         code in the common constrained array cases.
11273         * a-storio.adb: Change implementation to avoid possible alignment
11274         problems on machines requiring strict alignment (data should be moved
11275         as type Buffer, not type Elmt).
11277         * checks.adb (Apply_Array_Size_Check): Improve these checks by
11278         killing the overflow checks which we really do not need (64-bits is
11279         enough).
11281 2004-06-25  Vincent Celier  <celier@gnat.com>
11283         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
11284         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
11285         inconditionally for the main project.
11286         (Recursive_Add_Archives.Add_Archive_Path): New procedure
11287         (Link_Executables.Check_Time_Stamps): New procedure
11288         (Link_Executables.Link_Foreign): New procedure
11289         Changes made to reduce nesting level of this package
11290         (Check): New procedure
11291         (Add_Switches): When not in quiet output, check that a switch is not
11292         the concatenation of several valid switches. If it is, issue a warning.
11293         (Build_Global_Archive): If the global archive is rebuilt, linking need
11294         to be done.
11295         (Compile_Sources): Rebuilding a library archive does not imply
11296         rebuilding the global archive.
11297         (Build_Global_Archive): New procedure
11298         (Build_Library): New name for Build_Archive, now only for library
11299         project
11300         (Check_Archive_Builder): New procedure
11301         (Create_Global_Archive_Dependency_File): New procedure
11302         (Gprmake): Call Build_Global_Archive before linking
11303         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
11304         throughout.
11305         (Scan_Arg): Display the Copyright notice when -v is used
11307         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
11308         for gnatls.
11310         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
11311         COMPILE.
11312         Add new GNAT LIST qualifier /FILES=
11313         Added qualifier /DIRECTORY= to GNAT METRIC
11314         Added qualifier /FILES= to GNAT METRIC
11315         Added qualifier /FILES to GNAT PRETTY
11317         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
11318         to take into account both versions of the switch.
11320         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
11321         always be the last switch to the gcc driver. Disable switch storing so
11322         that switches automatically added by the gcc driver are not put in the
11323         ALI file.
11325         * prj.adb (Project_Empty): Take into account changes in components of
11326         Project_Data.
11328         * prj.ads (Languages_Processed): New enumaration value All_Languages.
11330         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
11331         used. Split Boolean component Ada_Sources_Present in two Boolean
11332         components Ada_Sources_Present and Other_Sources_Present.
11333         Minor reformatting
11335         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
11336         instead of Sources_Present.
11337         (Set_Ada_Paths.Add.Recursive_Add): Ditto
11339         * prj-nmsc.adb: Minor reformatting
11340         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
11341         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
11342         Check_Ada_Naming_Scheme.
11343         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
11344         throughout.
11346         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
11347         In_Limited.
11348         Make sure that all cycles where there is at least one "limited with"
11349         are detected.
11350         (Parse_Single_Project): New Boolean parameter In_Limited
11352         * prj-proc.adb (Recursive_Check): When Process_Languages is
11353         All_Languages, call first Prj.Nmsc.Ada_Check, then
11354         Prj.Nmsc.Other_Languages_Check.
11356         * prj-proc.adb (Process): Use Ada_Sources_Present or
11357         Other_Sources_Present (instead of Sources_Present) depending on
11358         Process_Languages.
11360         * lang-specs.h: Keep -g and -m switches in the same order, and as the
11361         last switches.
11363         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
11364         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
11365         False.
11366         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
11367         False.
11369         * lib.ads (Disable_Switch_Storing): New procedure.
11371         * make.adb: Modifications to reduce nesting level of this package.
11372         (Check_Standard_Library): New procedure
11373         (Gnatmake.Check_Mains): New procedure
11374         (Gnatmake.Create_Binder_Mapping_File): New procedure
11375         (Compile_Sources.Compile): Add switch -gnatez as the last option
11376         (Display): Never display -gnatez
11378         * Makefile.generic:
11379         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
11381         * gnatcmd.adb (Check_Project): New function
11382         (Process_Link): New procedure to reduce nesting depth
11383         (Check_Files): New procedure to reduce the nesting depth.
11384         For GNAT METRIC, include the inherited sources in extending projects.
11385         (GNATCmd): When GNAT LS is invoked with a project file and no files,
11386         add the list of files from the sources of the project file. If this list
11387         is too long, put it in a temp text files and use switch -files=
11388         (Delete_Temp_Config_Files): Delete the temp text file that contains
11389         a list of source for gnatpp or gnatmetric, if one has been created.
11390         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
11391         in the project file is too large, create a temporary text file that
11392         list them and pass it to the tool with "-files=<temp text file>".
11393         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
11395         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
11396         generated file is in not in Ada.
11398         * gnatls.adb: Remove all parameters And_Save that are no longer used.
11399         (Scan_Ls_Arg): Add processing for -files=
11400         (Usage): Add line for -files=
11402         * g-os_lib.adb (On_Windows): New global constant Boolean flag
11403         (Normalize_Pathname): When on Windows and the path starts with a
11404         directory separator, make sure that the resulting path will start with
11405         a drive letter.
11407         * clean.adb (Clean_Archive): New procedure
11408         (Clean_Project): When there is non-Ada code, delete the global archive,
11409         the archive dependency files, the object files and their dependency
11410         files, if they exist.
11411         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
11413 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
11415         * sinfo.ads: Fix typo in comment.
11417         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
11418         the TSS for remote access-to-subprogram types, since these TSS are
11419         always present once the type has been analyzed.
11420         (RAS_E_Dereference): Same.
11422         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
11423         reference raises Bad_Attribute, mark the reference as analyzed so the
11424         node (and any children resulting from rewrites that could have occurred
11425         during the analysis that ultimately failed) is not analyzed again.
11427         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
11429         * exp_dist.adb: Minor comment fix.
11431         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
11432         type is an anonymous access type, no unchecked deallocation of the
11433         allocated object can occur. If the object is controlled, attach it with
11434         a count of 1. This allows attachment to the Global_Final_List, if
11435         no other relevant list is available.
11436         (Get_Allocator_Final_List): For an anonymous access type that is
11437         the type of a discriminant or record component, the corresponding
11438         finalisation list is the one of the scope of the type.
11440 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
11442         * sem_ch3.adb (Replace_Type): When computing the signature of an
11443         inherited subprogram, use the first subtype if the derived type
11444         declaration has no constraint.
11446         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
11447         before applying previous optimization. Minor code cleanup.
11449         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
11450         placed at the beginning of an unpacked record without explicit
11451         alignment, a slice of it will be aligned and does not need a copy when
11452         used as an actual.
11454 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
11456         PR ada/15591
11457         PR ada/15592
11458         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
11459         reference is written with expressions mimicking parameters.
11461 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
11463         PR ada/15589
11464         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
11465         STEP 2a. The constraints of a full type declaration of a derived record
11466         type are checked for conformance with those declared in the
11467         corresponding private extension declaration. The message
11468         "not conformant with previous declaration" is emitted if an error is
11469         detected.
11471 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
11473         * g-traceb.ads: Document the need for -E binder switch in the spec.
11475         * g-trasym.ads: Document the need for -E binder switch in the spec.
11477 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
11479         * sem_prag.adb: Add handling of pragma Detect_Blocking.
11481         * snames.h, snames.ads, snames.adb: Add entry for pragma
11482         Detect_Blocking.
11484         * s-rident.ads: Change reference to pragma Detect_Blocking.
11486         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
11487         system.ads.
11489         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
11490         to indicate whether pragma Detect_Blocking is active.
11492         * par-prag.adb: Add entry for pragma Detect_Blocking.
11494         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
11495         of not handling WITH.
11496         Note that this replaces the previous update which was incorrect.
11498 2004-06-25  Javier Miranda  <miranda@gnat.com>
11500         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
11501         use-clauses to have a clean environment.
11503         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
11504         the installation of the use-clauses to stablish a clean environment in
11505         case of compilation of a separate unit; otherwise the call to
11506         use_one_package is protected by the barrier Applicable_Use.
11508         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
11509         the installation of the use-clauses to stablish a clean environment in
11510         case of compilation of a separate unit.
11511         (End_Use_Clauses): Minor comment cleanup.
11513 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
11515         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
11517 2004-06-23  Richard Henderson  <rth@redhat.com>
11519         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
11521 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11523         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
11524         now bool instead of int.
11525         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
11526         * trans.c (gnu_switch_label_stack): New function.
11527         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
11528         elaboration of renamed entity returns.
11529         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
11530         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
11531         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
11532         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
11533         DECL_SIZE_UNIT and simplify variable-sized case.
11534         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
11535         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
11536         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
11537         (build_unit_elab): Disable for now.
11538         * utils.c (mark_visited): New function.
11539         (pushdecl): Walk tree to call it for global decl.
11540         (update_pointer_to): Update all variants of pointer and ref types.
11541         Add arg to COMPONENT_REF.
11542         (convert): Likewise.
11543         Move check for converting between variants lower down.
11544         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
11545         (build_allocator): Don't force type of MODIFY_EXPR.
11546         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
11547         put_var_into_stack.
11549 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11551         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
11552         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
11553         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
11554         subprograms.
11555         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
11556         all callers changed.
11557         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
11558         the way that EXIT_STMT finds the loop label.
11559         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
11560         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
11561         (add_stmt): Use annotate_with_locus insted of setting directly.
11562         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
11563         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
11564         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
11565         (build_vms_descriptor): Add extra args to ARRAY_REF.
11566         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
11567         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
11568         New cases.
11569         (build_binary_op): Don't make explicit CONVERT_EXPR.
11570         Add extra rgs to ARRAY_REF.
11572 2004-06-14  Pascal Obry  <obry@gnat.com>
11574         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
11575         Windows.  Fix minor typo.
11577         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
11578         which is now supported on Windows. With this implementation using the
11579         Library Project feature is no different on Windows than on UNIX.
11581 2004-06-14  Vincent Celier  <celier@gnat.com>
11583         * makegpr.adb (Compile_Sources): Nothing to do when there are no
11584         non-Ada sources.
11586         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
11588         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
11589         found, show the project name and the path of the previously parsed
11590         project file.
11592 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
11594         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
11595         array, avoid copying the actual before the call.
11597 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
11599         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
11600         Instead, allocate memory on worst-case alignment assumptions, and then
11601         return an aligned address within the allocated zone.
11603 2004-06-14  Robert Dewar  <dewar@gnat.com>
11605         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
11606         elab entities in predefined units in No_Run_Time_Mode.
11607         (Gen_Adainit_C): Same fix
11608         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
11609         units in No_Run_Time_Mode
11610         (Gen_Elab_Calls_C): Same fix
11612         * symbols-vms-alpha.adb: Minor reformatting
11614         * g-debpoo.ads: Minor reformatting
11616         * lib.adb (In_Same_Extended_Unit): Version working on node id's
11618         * lib.ads (In_Same_Extended_Unit): Version working on node id's
11620         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
11621         working on nodes.
11623         * make.adb: Minor reformatting
11625         * par-ch12.adb: Minor reformatting
11627         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
11629         * prj-strt.adb: Minor reformatting
11631         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
11632         be more general.
11634         * sem_attr.adb: Minor reformatting
11636         * sem_ch7.adb: Minor reformatting
11638         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
11639         for type in the same unit as the object declaration.
11641         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
11642         static string expressions and not just string literals.
11643         Minor reformatting
11644         (Set_Warning): Reset restriction warning flag for restriction pragma
11645         Implement pragma Profile_Warnings
11646         Implement pragma Profile (Restricted)
11647         Give obolescent messages for old restrictions and pragmas
11649         * snames.h, snames.ads, snames.adb: Add new entry for pragma
11650         Profile_Warnings.
11652         * s-rident.ads: Add declarations for restrictions required by profile
11653         Restricted and profile Ravenscar.
11655         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
11657         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
11658         configuration pragmas.
11660 2004-06-11  Vincent Celier  <celier@gnat.com>
11662         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
11663         gnatsym, when symbol policy is Restricted.
11665         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
11666         gnatsym, when symbol policy is Restricted.
11668         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
11669         read the symbol file.
11670         (Finalize): Fail in symbol policy Restricted if a symbol in the original
11671         symbol file is not in the object files. Do not create a new symbol file
11672         when symbol policy is Restricted.
11674         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
11675         in Scng.
11677         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
11678         Restricted.
11679         (Usage): Line for new switch -R
11681         * make.adb (Initialize): When the platform is not VMS, add the
11682         directory where gnatmake is invoked in the front of the path, if
11683         gnatmake is invoked with directory information.  Change the Scan_Args
11684         while loop to a for loop.
11685         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
11686         if Depth is equal or greater than the proposed depth, there is nothing
11687         to do.
11688         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
11689         instead of 0.
11691         * prj.ads: Add new symbol policy Restricted.
11693         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
11694         with the new parameters Check_All_Labels and Case_Location.
11696         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
11697         (Library_Symbol_File needs to be defined).
11699         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
11700         and Case_Location If Check_All_Labels is True, check that all values of
11701         the string type are used, and output warning(s) if they are not.
11703         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
11704         and Case_Location.
11706         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
11708         * gnat_ugn.texi: Update documentation about the library directory in
11709         Library Projects.
11711         * makegpr.adb (Display_Command): In verbose mode, also display the
11712         value of the CPATH env var, when the compiler is gcc.
11713         (Initialize): Change the Scan_Args while loop to a for loop
11714         (Compile_Individual_Sources): Change directory to object directory
11715         before compilations.
11717         * symbols.ads: New symbol policy Restricted.
11719 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
11721         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
11722         is now taken care of internally in the Exception_Propagation package
11723         and does not require clients assistance any more.
11725         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
11726         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
11727         functions. Helpers to maintain a predicate required in the handling of
11728         occurrence transfer between tasks.
11729         This is now handled internally and does not require clients assistance
11730         for the setup/propagate separation anymore.
11731         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
11732         allocation strategy, handle the Setup_And_Not_Propagated predicate and
11733         document.
11735         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
11736         raise_after_setup, now that everything is handled internally within the
11737         setup/propagation engine.
11739 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
11741         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
11742         Add additional conditions for the case of an actual being a simple
11743         name or literal. Improve inlining by preventing the generation
11744         of temporaries with a short lifetime (one use).
11746 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
11748         PR ada/15587
11750         * einfo.ads: Minor comment updates for Has_Completion and
11751         E_Constant list of flags.
11753         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
11754         and constant redeclarations now set the Has_Completion flag of their
11755         defining identifiers.
11757         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
11758         Inspect_Deferred_Constant_Completion.
11759         Used to detect private deferred constants that have not been completed
11760         either by a constant redeclaration or pragma Import. Emits error message
11761         "constant declaration requires initialization expression".
11763         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
11764         completes a deferred constant.
11766 2004-06-11  Geert Bosch  <bosch@gnat.com>
11768         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
11770         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
11771         calculating exponent for scaling denormal numbers.
11772         (Leading_Part): Properly raise Constraint_Error for zero or negative
11773         Adjustment.
11774         (Remainder): Properly raise Constraint_Error for zero divisor.
11776 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
11778         * sem_util.adb: Minor reformatting.
11780         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
11781         dereference when accessing the entry parameter record.
11782         (Check_Array_Type): Always check for possible implicit dereference.
11783         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
11784         Abort if a pointer is still present (denoting that an implicit
11785         dereference was left in the tree by the front-end).
11787         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
11788         dereference when accessing the entry parameter record.
11789         (Check_Array_Type): Always check for possible implicit dereference.
11790         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
11791         Abort if a pointer is still present (denoting that an implicit
11792         dereference was left in the tree by the front-end).
11794 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
11796         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
11797         message, like the compiler itself does. Easier to parse the output.
11799         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
11801         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
11802         be base names, and not includes directories.
11804 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
11806         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
11807         so that dependencies are properly taken into account by make.
11809 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
11811         PR ada/15622
11812         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
11813         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
11815 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
11817         * Makefile.in (install-gnatlib): install target-specific run-time files.
11819         * Make-lang.in: Remove obsolete targets.
11821 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
11823         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
11824         specification, to catch misuses of program unit names.
11826         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
11827         superfluous conversions in an instance.
11829 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
11831         PR ada/15403
11833         * sem_ch12.adb (Save_References): If operator node has been folded to
11834         enumeration literal, associated_node must be discarded.
11836 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
11838         * s-stchop-vxworks.adb: Add required pragma Convention to
11839         Task_Descriptor because it is updated by a C function.
11841 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
11843         PR ada/15568
11845         * Makefile.in: Remove target specific SO_OPT on IRIX
11847 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11849         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
11850         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
11851         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
11852         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
11853         (STMT_STMT, USE_STMT): New statement codes.
11854         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
11855         * ada-tree.h: Reflect above changes.
11856         (struct tree_loop_id): Deleted.
11857         (union lang_tree_node, struct lang_decl, struct lang_type):
11858         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
11859         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
11860         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
11861         (IS_ADA_STMT): New macro.
11862         * decl.c (annotate_decl_with_node): New function.
11863         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
11864         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
11865         Call add_stmt_with_node to do needed assignments.
11866         Add call to update setjmp buffer directly, not via EXPR_STMT.
11867         (maybe_variable): Argment GNAT_NODE deleted.
11868         * gigi.h (maybe_variable): Likewise.
11869         (make_transform, add_stmt_with_node, set_block_for_group): New.
11870         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
11871         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
11872         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
11873         (set_lineno, set_lineno_from_sloc): Likewise.
11874         (record_code_position, insert_code_for): Likewise.
11875         (gnat_poplevel): Now returns void.
11876         (end_subprog_body): Now takes argument.
11877         * misc.c (cgraph.h, tree-inline.h): New includes.
11878         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
11879         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
11880         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
11881         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
11882         (gnat_parse_file): Don't set immediate_size_expand.
11883         Call cgraph functions.
11884         (gnat_expand_expr): Remove most cases.
11885         (record_code_position, insert_code_for): Remove from here.
11886         * trans.c (toplev.h, tree-gimple.h): Now included.
11887         (discard_file_names): Deleted.
11888         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
11889         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
11890         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
11891         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
11892         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
11893         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
11894         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
11895         (set_block_for_group, add_stmt_list): Likewise.
11896         (start_stmt_group): Renamed from start_block_stmt.
11897         (end_stmt_group): Likewise, from end_block_stmt.
11898         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
11899         (gigi): Don't set discard_file_names or call set_lineno.
11900         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
11901         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
11902         Numerous changes throughout to reflect new names and complete
11903         function-at-a-time implementation.
11904         (gnat_expand_stmt): Delete or comment out all cases.
11905         (process_inlined_subprograms): Use add_stmt.
11906         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
11907         call set_lineno; also remove unneeded block handling.
11908         (process_type): Remove unneeded block handling.
11909         (build_unit_elab): Remove calls to deleted functions.
11910         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
11911         (tree-dump.h): Likewise.
11912         (struct ada_binding_level): Add field jmpbuf_decl.
11913         (gnat_define_builtin, gnat_install_builtins): New.
11914         (gnat_gimplify_function, gnat_finalize): Likewise.
11915         (gnat_poplevel): No longer return BLOCK, set it instead.
11916         Remove code dealing with nested functions.
11917         (gnat_init_decl_processing): Also set size_type_node.
11918         Call gnat_install_builtins.
11919         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
11920         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
11921         Remove special-case for "main".
11922         (end_subprog_body): Add arg and rework for tree-ssa.
11923         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
11924         Add case for BOOLEAN_TYPE.
11925         * utils2.c (rtl.h): Now include.
11926         (build_call_raise): Test Debug_Flag_NN directly.
11927         (build_call_alloc_dealloc): Don't use local stack allocation for now.
11928         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
11929         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
11931 2004-06-07  Robert Dewar  <dewar@gnat.com>
11933         * a-direct.ads, einfo.ads: Minor comment updates
11935         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
11936         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
11937         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
11938         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
11939         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
11941         * s-interr-sigaction.adb: Remove unreferenced variable
11942         (Attached_Interrupts).  Minor reformatting.
11943         Avoid use of variable I (replace by J).
11945         * par-ch10.adb: Fix text of one error message
11947         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
11948         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
11949         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
11950         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
11951         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
11952         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
11953         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
11954         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
11955         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
11956         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
11957         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
11958         2005 support.
11960 2004-06-07  Doug Rupp  <rupp@gnat.com>
11962         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
11964         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
11966         * mlib-tgt-vms-ia64.adb: New file.
11968         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
11969         Add mlib-tgt-vms-ia64.adb
11970         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
11971         Move to alpha specific ifeq section.
11972         Add VMS specific versions of symbols.adb
11973         Renaming of 5q vms files.
11975         * 5qsystem.ads renamed to system-vms_64.ads.
11977 2004-06-07  Vincent Celier  <celier@gnat.com>
11979         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
11980         explain that when a time of day corresponding to the non existing hour
11981         on the day switching to DST is specified, Split may return a different
11982         value for Seconds.
11984         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
11985         to GNAT PRETTY.
11987         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
11988         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
11990         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
11991         to False.
11992         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
11993         the linking options.
11994         (Build_Library.Check_Libs): On VMS, if there is a dependency on
11995         g-trasym.ads, set Gtrasymobj_Needed to True.
11997         * prj-attr.adb: Add new package Metrics for gnatmetric
11999         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
12000         canonical case to take into account files with upper case characters on
12001         Windows.
12002         (Ada_Check): Load the reference symbol file name in the name buffer to
12003         check it, not the symbol file name.
12005         * snames.ads, snames.adb: Add standard name Metrics (name of project
12006         file package for gnatmetric).
12008         * vms_conv.ads: Add Metric to Comment_Type
12010         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
12012         * vms_data.ads: Add qualifiers for GNAT METRIC
12014         * makegpr.adb (Link_Executables): Take into account the switches
12015         specified in package Linker of the main project.
12017 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
12019         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
12020         the index of the last element is Units.Last, not Units.Table'Last
12021         (which is usually not a valid index within the actually allocated
12022         storage for the table).
12024         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
12025         determines whether to generate a call to a checked storage pool
12026         Dereference action.
12027         Generate such a call only for a dereference that either comes from
12028         source, or is the result of rewriting a dereference that comes from
12029         source.
12031 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
12033         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
12035 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
12037         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
12038         file level, elaborate the stride for inner dimensions in alignment
12039         units, not bytes.
12041         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
12042         in a comment.
12044 2004-06-07  Javier Miranda  <miranda@gnat.com>
12046         * exp_ch6.adb: Correct wrong modification in previous patch
12048 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
12050         * g-trasym.ads: Corrected comment to properly reflect level of support
12051         on VMS.
12053 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
12055         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
12056         includes case of a variable referenced on the left hand side of an
12057         assignment, therefore remove redundant code. Variables and prefixes of
12058         indexed or selected components are now marked as referenced on left
12059         hand side. Warnings are now properly emitted when variables or prefixes
12060         are assigned but not read.
12062         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
12063         left hand side referenced variables. Private access types do not
12064         produce the warning "variable ... is assigned but never read".
12065         Add also additional checks to left hand side referenced variables.
12066         Aliased, renamed objects and access types do not produce the warning
12067         "variable ... is assigned but never read" since other entities may read
12068         the memory location.
12070 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
12072         * Makefile.in: In the powerpc/vxworks-specific section, restore
12073         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
12074         by mistake).
12076 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
12078         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
12079         predefined operators.
12080         Removes spurious type errors from g-trasym-vms.adb.
12082         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
12083         distinct from the operator appearing in the source, call appropriate
12084         routine to insert conversions when needed, and complete resolution of
12085         node.
12086         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
12087         interpretations for rewritten right operand.
12088         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
12089         the other operand is overloaded and the context is a type conversion.
12091 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12093         * ada-tree.def (BLOCK_STMT): Now has two operands.
12094         (BREAK_STMT): New.
12096         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
12098         * gigi.h: (gnat_poplevel): Now returns a tree.
12100         * trans.c (end_block_stmt): Add arg; all callers changed.
12101         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
12102         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
12103         (add_stmt): Set TREE_TYPE.
12104         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
12105         (gnat_expand_stmt, case BREAK_STMT): New case.
12107         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
12109 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
12111         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
12112         procedure Set_Stack_Size that is not needed.
12114 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
12116         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
12117         used for gnatpp input file and for the files upon which it depends
12119 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
12121         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
12123 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
12125         * gnatvsn.ads: Bump version numbers appropriately.
12126         Add new build type.
12128 2004-06-07  Pascal Obry  <obry@gnat.com>
12130         * gnat_ugn.texi: Improve comments about imported names and link names
12131         on Windows. Add a note about the requirement to use -k gnatdll's option
12132         when working with a DLL which has stripped stdcall symbols (no @nn
12133         suffix).
12135 2004-05-27  Vincent Celier  <celier@gnat.com>
12137         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
12138         COMMENTS_LAYOUT=UNTOUCHED
12140         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
12141         symbols-vms-alpha.adb
12143 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
12145         * sem.ads: Clarify documentation on checks suppression.
12147         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
12149 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
12151         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
12152         the case of multiple derivations.
12153         (Is_Object_Reference): For a selected component, verify that the prefix
12154         is itself an object and not a value.
12156         * sem_ch12.adb (Same_Instantiated_Constant): New name for
12157         Same_Instantiated_Entity.
12158         (Same_Instantiated_Variable): Subsidiary to
12159         Check_Formal_Package_Instance, to recognize actuals for in-out generic
12160         formals that are obtained from a previous formal package.
12161         (Instantiate_Subprogram_Body): Emit proper error when
12162         generating code and the proper body of a stub is missing.
12164         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
12165         has a universal interpretation, do the disambiguation here.
12167         * exp_ch4.adb (Expand_N_Type_Conversion,
12168         Expand_N_Unchecked_Type_Conversion): Special handling when target type
12169         is Address, to avoid typing anomalies when Address is a visible integer
12170         type.
12172         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
12173         to determine whether a subprogram should not be marked Pure, even when
12174         declared in a pure package.
12176 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
12178         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
12180         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
12181         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
12182         Update the documentation about the Ravenscar profile, following the
12183         definition found in AI-249.
12185         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
12186         setting the Profile (Ravenscar). This must be done in addition to
12187         setting the required restrictions.
12189         * rtsfind.ads: Add the set of operations defined in package
12190         Ada.Interrupts.
12192         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
12193         restriction.
12195 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
12197         lang-specs.h: Always require -c or -S and always redirect to /dev/null
12198         if -gnatc or -gnats is passed.
12200 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
12202         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
12203         a significant reference. Warnings are now properly emitted when a
12204         discriminated type is not referenced.
12206         * lib-xref.adb (Generate_Reference): A deferred constant completion,
12207         record representation clause or record type discriminant does not
12208         produce a reference to its corresponding entity. Warnings are now
12209         properly emitted when deferred constants and record types are not
12210         referenced.
12212 2004-05-27  Geert Bosch  <bosch@gnat.com>
12214         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
12215         Fixes ACATS Annex G tests.
12217 2004-05-27  Robert Dewar  <dewar@gnat.com>
12219         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
12220         handling WITH
12222 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
12224         * s-interr.adb (Server_Task): Take into account case of early return
12225         from sigwait under e.g. linux.
12227 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
12229         * gnat_ugn.texi: Add description for the new gnatpp options:
12230          -rnb - replace the original source without creating its backup copy
12231          -c0 - do not format comments
12233 2004-05-24  Geert Bosch  <bosch@gnat.com>
12235         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
12236         with 192 bits of precision, sufficient to reduce a double-extended
12237         arguments X with a maximum relative error of T'Machine_Epsilon, for X
12238         in -2.0**32 .. 2.0**32.
12239         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
12240         reduction by the processor, which only uses a 68-bit approximation of
12241         Pi.
12242         (Tan): Always reduce arguments and compute function either using
12243         the processor's fptan instruction, or by dividing sin and cos as needed.
12245 2004-05-24  Doug Rupp  <rupp@gnat.com>
12247         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
12248         gcc error on 32/64 bit VMS.
12250 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
12252         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
12253         since this is what we get for stack overflows although not documented
12254         as such.
12255         Document the issues which may require adjustments to our signal
12256         handlers.
12258 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
12260         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
12261         enclosing dynamic scope if the instantiation is within a generic unit.
12263 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
12265         * exp_dbug.ads: Fix typo.
12267         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
12268         Rename it to its proper name: system-linux-ia64.ads
12269         (stamp-gnatlib1): Remove extra target specific run time files when
12270         setting up the rts directory.
12272 2004-05-24  Javier Miranda  <miranda@gnat.com>
12274         * einfo.ads, einfo.adb (Limited_Views): Removed.
12275         (Limited_View): New attribute that replaces the previous one. It is
12276         now a bona fide package with the limited-view list through the
12277         first_entity and first_private attributes.
12279         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
12280         limited-private-with clause.
12281         (Install_Limited_Withed_Unit): Install the private declarations of a
12282         limited-private-withed package. Update the installation of the shadow
12283         entities according to the new structure (see Build_Limited_Views)
12284         (Build_Limited_Views): Replace the previous implementation of the
12285         limited view by a package entity that references the first shadow
12286         entity plus the first shadow private entity (required for limited-
12287         private-with clause)
12288         (New_Internal_Shadow_Entity): Code cleanup.
12289         (Remove_Limited_With_Clause): Update the implementation to undo the
12290         new work carried out by Build_Limited_Views.
12291         (Build_Chain): Complete documentation.
12292         Replace Ada0Y by Ada 0Y in comments
12293         Minor reformating
12295         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
12296         types the level of accessibility depends on the enclosing type
12297         declaration.
12299         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
12300         entities. Complete documentation of previous change.
12302 2004-05-24  Robert Dewar  <dewar@gnat.com>
12304         * namet.adb: Minor reformatting
12305         Avoid use of name I (replace by J)
12306         Minor code restructuring
12308         * sem_ch6.adb: Minor reformatting
12310         * lib-writ.adb: Do not set restriction as active if this is a
12311         Restriction_Warning case.
12313         * sem_prag.adb: Reset restriction warning flag if real pragma
12314         restriction encountered.
12316         * s-htable.adb: Minor reformatting
12317         Change rotate count to 3 in Hash (improves hash for small strings)
12319         * 5qsystem.ads: Add comments for type Address (no literals allowed).
12321         * gnat_ugn.texi: Add new section of documentation "Code Generation
12322         Control", which describes the use of -m switches.
12324 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
12326         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
12327         through the DECL_INITIAL for renamed variables.
12329 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
12331         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
12333 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
12335         * exp_dbug.ads: Correct comments concerning handling of overloading,
12336         since we no longer use $ anymore.
12338 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
12340         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
12341         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
12342         with illegal subunits.
12344 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
12346         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
12347         body with front-end inlining enabled, check whether an inline pragma
12348         appears immediately after the body and applies to it.
12350         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
12351         enabled and the pragma appears after the body of the subprogram.
12353 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12355         Part of function-at-a-time conversion
12357         * misc.c (adjust_decl_rtl): Deleted.
12358         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
12359         Define.
12361         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
12362         (add_decl_stmt, add_stmt, block_has_vars): New functions.
12363         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
12365         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
12366         when making a decl.
12367         (gnat_to_gnu_entity): Likewise.
12368         Use add_stmt to update setjmp buffer.
12369         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
12370         flush_addressof.
12371         No longer call adjust_decl_rtl.
12372         (DECL_INIT_BY_ASSIGN_P): New macro.
12373         (DECL_STMT_VAR): Likewise.
12375         * trans.c (gigi): Call start_block_stmt to make the outermost
12376         BLOCK_STMT.
12377         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
12378         Call start_block_stmt and end_block_stmt temporarily.
12379         Use gnat_expand_stmt instead of expand_expr_stmt.
12380         (add_decl_stmt): New function.
12381         (tree_transform): Call it.
12382         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
12383         (end_block_stmt): Set type and NULL_STMT.
12384         (gnat_expand_stmt): Make recursize call instead of calling
12385         expand_expr_stmt.
12386         (gnat_expand_stmt, case DECL_STMT): New case.
12387         (set_lineno_from_sloc): Do nothing if global.
12388         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
12389         (start_block_stmt, add_stmt, end_block_stmt): New functions.
12390         (build_block_stmt): Call them.
12391         (gnat_to_code): Don't expand NULL_STMT.
12392         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
12393         args.
12394         (tree_transform): Likewise.
12395         (tree_transform, case N_Null_Statement): Return NULL_STMT.
12396         (gnat_expand_stmt, case NULL_STMT): New case.
12397         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
12398         IF_STMT_TRUE.
12400         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
12401         TREE_ADDRESSABLE.
12403         * utils.c (create_var_decl): Do not call expand_decl or
12404         expand_decl_init.
12405         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
12406         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
12407         here.
12408         (struct e_stack): Add chain_next to GTY.
12409         (struct binding_level): Deleted.
12410         (struct ada_binding_level): New struct.
12411         (free_block_chain): New.
12412         (global_binding_level, clear_binding_level): Deleted.
12413         (global_bindings_p): Rework to see if no chain.
12414         (kept_level_p, set_block): Deleted.
12415         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
12416         new data structure and work directly on BLOCK node.
12417         (gnat_poplevel): Similarly.
12418         (get_decls): Look at BLOCK_VARS.
12419         (insert_block): Work directly on BLOCK node.
12420         (block_has_var): New function.
12421         (pushdecl): Rework for new binding structures.
12422         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
12423         poplevel.
12424         (build_subprog_body): Likewise.
12425         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
12427         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
12429         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
12430         (DECL_STMT_VAR): Likewise.
12432 2004-05-17  Robert Dewar  <dewar@gnat.com>
12434         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
12435         procedure
12437         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
12438         of restriction synonyums by using
12439         Restrict.Process_Restriction_Synonyms.
12441         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
12443         * s-restri.ads (Tasking_Allowed): Correct missing comment
12445         * s-rident.ads: Add entries for restriction synonyms
12447         * ali.adb: Fix some problems with badly formatted ALI files that can
12448         result in infinite loops.
12450         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
12451         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
12452         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
12453         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
12454         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
12455         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
12456         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
12457         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
12458         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
12459         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
12460         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
12461         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
12462         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
12463         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
12464         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
12465         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
12466         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
12467         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
12468         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
12469         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
12470         to Task_Id (minor cleanup).
12472 2004-05-17  Vincent Celier  <celier@gnat.com>
12474         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
12475         directory separator.
12477         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
12478         project being extended, if Languages is not declared in extending
12479         project.
12481 2004-05-17  Javier Miranda  <miranda@gnat.com>
12483         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
12484         limited view of a visible sibling.
12486 2004-05-14  Robert Dewar  <dewar@gnat.com>
12488         * gnat_ugn.texi: Minor change to -gnatS documentation
12490         * sprint.adb: Remove some instances of Assert (False) and for this
12491         purpose replace them by output of a ??? string.
12493         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
12494         Assert (False).
12496         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
12497         flag processing. This was suppressing required dependencies in
12498         No_Run_Time mode and is not needed since the binder does not generate
12499         references for things in libgnat anyway.
12501         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
12502         warning.
12504 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
12506         * gnat_ugn.texi: Document AIX-specific issue with initialization of
12507         resolver library.
12509         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
12510         action for the case of an actual parameter in an init proc call.
12512 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
12514         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
12515         subtype, check visible entities in base type.
12517         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
12518         actions if the object is a renaming.
12520         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
12521         Check_Formal_Package_Instance, to determine more precisely when the
12522         formal and the actual denote the same entity.
12524 2004-05-14  Javier Miranda  <miranda@gnat.com>
12526         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
12528         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
12529         corresponding to a private_with must be removed from visibility; it
12530         will be made visible later, just before we analyze the private part of
12531         the package.
12532         (Check_Private_Child_Unit): Allow private_with clauses in public
12533         siblings.
12534         (Install_Siblings): Make visible the private entities of private-withed
12535         siblings.
12536         (Install_Withed_Unit): Do not install the private withed unit if we
12537         are compiling a package declaration and the Private_With_OK flag was
12538         not set by the caller. These declarations will be installed later,
12539         just before we analyze the private part of the package.
12541         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
12542         during the evaluation of the expression that initializes the object,
12543         decorate it with the expected type to avoid cascade errors.
12544         Code cleanup.
12546         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
12547         subprogram we have to install the private_with clauses after its
12548         specification has been analyzed (as documented in AI-262.TXT).
12550         * sem_ch8.adb (Has_Private_With): New function. Determines if the
12551         current compilation unit has a private with on a given entity.
12552         (Find_Direct_Name): Detect the Beaujolais problem described in
12553         AI-262.TXT
12555         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
12556         provides the functionality of the function Is_Ancestor that was
12557         previously available in sem_ch10. It has been renamed to avoid
12558         overloading.
12560         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
12562 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12564         * utils.c (build_vms_descriptor): Use SImode pointers.
12566 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
12568         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
12570 2004-05-14  GNAT Script  <nobody@gnat.com>
12572         * Make-lang.in: Makefile automatically updated
12574 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
12576         Renaming of target specific files for clarity
12578         * Makefile.in: Rename GNAT target specific files.
12580         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
12581         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
12582         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
12583         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
12584         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
12585         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
12586         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
12587         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
12588         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
12589         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
12590         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
12591         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
12592         51osinte.adb, 51osinte.ads, 51system.ads,
12593         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
12594         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
12595         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
12596         56tpopsp.adb, 57system.ads, 58system.ads,
12597         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
12598         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
12599         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
12600         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
12601         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
12602         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
12603         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
12604         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
12605         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
12606         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
12607         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
12608         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
12609         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
12610         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
12611         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
12612         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
12613         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
12614         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
12615         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
12616         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
12617         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
12618         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
12619         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
12620         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
12621         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
12622         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
12623         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
12624         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
12625         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
12626         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
12627         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
12628         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
12629         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
12630         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
12631         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
12632         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
12633         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
12634         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
12635         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
12636         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
12638         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
12639         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
12640         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
12641         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
12642         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
12643         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
12644         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
12645         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
12646         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
12647         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
12648         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
12649         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
12650         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
12651         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
12652         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
12653         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
12654         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
12655         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
12656         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
12657         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
12658         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
12659         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
12660         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
12661         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
12662         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
12663         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
12664         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
12665         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
12666         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
12667         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
12668         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
12669         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
12670         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
12671         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
12672         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
12673         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
12674         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
12675         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
12676         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
12677         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
12678         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
12679         s-osinte-vms.ads, s-osinte-vxworks.adb,
12680         s-osinte-vxworks.ads, s-osprim-mingw.adb,
12681         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
12682         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
12683         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
12684         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
12685         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
12686         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
12687         s-stchop-vxworks.adb, s-taprop-dummy.adb,
12688         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
12689         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
12690         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
12691         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
12692         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
12693         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
12694         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
12695         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
12696         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
12697         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
12698         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
12699         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
12700         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
12701         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
12702         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
12703         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
12704         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
12705         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
12706         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
12707         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
12708         system-irix-o32.ads, system-linux-x86_64.ads,
12709         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
12710         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
12711         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
12712         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
12713         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
12714         system-vxworks-mips.ads, system-vxworks-ppc.ads,
12715         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
12716         above.
12718 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
12720         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
12722 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
12724         Merge from tree-ssa-20020619-branch.
12726         * config-lang.in (boot_language, build_by_default): Set
12727         to no.
12728         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
12729         (max_size): Add static chain op for call_expr.
12731 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
12733         PR target/15331
12734         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
12736 2004-05-11  Roger Sayle  <roger@eyesopen.com>
12738         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
12739         COND_EXPR.
12741 2004-05-10  Doug Rupp  <rupp@gnat.com>
12743         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
12744         system.aux_dec.
12746         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
12748         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
12750         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
12751         Fixes undefined symbols in IA64 gnatlib.
12753         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
12755         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
12756         Short_Address). This will be moved to system.auxdec.
12758 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
12760         * sem_util.adb: Replace test for presence of a node that is always
12761         present with a call to Discard_Node.
12763         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
12764         Analyze on the library unit node after generation of distribution stub
12765         constructs.  The call was a no-op because Unit_Node has already been
12766         Analyzed, and the tree fragments for the distribution stubs are
12767         analyzed as they are inserted in Exp_Dist.
12768         Update comment regarding to distribution stubs to reflect that we
12769         do not generate stub in separate files anymore.
12771         * einfo.ads: Clarify the fact that a tagged private type has the
12772         E_Record_Type_With_Private Ekind.
12774         * erroutc.adb: Minor reformatting
12776         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
12777         values if line length is increased using -gnatyM (noticed during code
12778         reading).
12780         * eval_fat.adb: Minor reformatting
12781         Put spaces around exponentiation operator
12783 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
12785         PR ada/15005
12786         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
12787         has been rewritten as an explicit dereference, retrieve type of
12788         original node to check for possibly unconstrained record type.
12790 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
12792         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
12793         overriding, use the operation of the parent unconditionally.
12795         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
12796         operation when either operand is a literal, to avoid further
12797         ambiguities.
12799         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
12800         overridden by a previous explicit declaration, mark the previous entity
12801         as overriding.
12803         * sem_disp.adb (Check_Dispatching_Operation): New predicate
12804         Is_Visibly_Controlled, to determine whether a declaration of a
12805         primitive control operation for a derived type overrides an inherited
12806         one. Add warning if the explicit declaration does not override.
12808 2004-05-10  Vincent Celier  <celier@gnat.com>
12810         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
12811         some cases when the sources are no longer present.
12813         * make.adb (Collect_Arguments): Fail if an external source, not part
12814         of any project need to be compiled, when switch -x has not been
12815         specified.
12817         * makeusg.adb: Document new switch -x
12819         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
12820         defaulted to False.
12822         * switch-m.adb (Scan_Make_Switches): New switch -x
12824         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
12825         gnatmake switch -x.
12827         * gnat_ugn.texi: Document new gnatmake switch -x
12829 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
12831         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
12833         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
12834         (process_attributes): Likewise.
12836 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
12838         * s-inmaop.ads: Fix spelling mistake in one of the comments.
12840 2004-05-10  Robert Dewar  <dewar@gnat.com>
12842         * gnat_ugn.texi: Document that for config pragma files, the maximum
12843         line length is always 32767.
12845         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
12846         literals is now allowed.
12848         * gnat-style.texi: Remove statement about splitting long lines before
12849         an operator rather than after, since we do not follow this rule at all.
12850         Clarify rule (really lack of rule) for spaces around exponentiation
12852         * sem_elim.adb: Allow concatenation of string literals as well as a
12853         single string literal for pragma arguments.
12855         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
12857         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
12858         written for append case.
12860         * frontend.adb: Changes to avoid checking max line length in config
12861         pragma files.
12863         * g-os_lib.ads: Minor reformatting
12865         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
12866         wrong in any case. Instead use standard value. Noticed during code
12867         reading.
12869         * opt.ads (Max_Line_Length): New field, used to implement removal of
12870         limitation on length of lines when scanning config pragma files.
12872         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
12873         makeutl.ads, makeutl.adb: Minor reformatting
12875         * scn.adb: Do not check line length while scanning config pragma files
12876         Do not check line length while scanning out license information
12878         * scng.adb: Changes to avoid line length checks while parsing config
12879         pragma files.
12881 2004-05-10  GNAT Script  <nobody@gnat.com>
12883         * Make-lang.in: Makefile automatically updated
12885 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
12887         * osint.adb (Find_Program_Name): Fix handling of VMS version
12888         number.
12890 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
12892         * g-os_lib.ads (Invalid_Time): New constant
12894         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
12895         return OS_Time instead of time_t to match what is imported by Ada.
12896         Now return -1 if the file doesn't exist, instead of a random value
12898 2004-05-05  Robert Dewar  <dewar@gnat.com>
12900         * usage.adb: Add line for -gnatR?s switch
12902         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
12904         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
12905         and for Match (Data_First, Data_last)
12907         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
12908         written when we are dealing with multi-unit files.
12910 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
12912         * Makefile.in: Remove unused targets and variables.
12914 2004-05-05  Vincent Celier  <celier@gnat.com>
12916         * switch-m.adb: New gnatmake switch -eI
12918         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
12919         of new gnatmake switch -eInnn.
12921         * makegpr.adb: Take into account new parameters Index and Src_Index in
12922         Prj.Util.
12924         * clean.adb: Implement support for multi-unit sources, including new
12925         switch -i.
12927         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
12928         Src_Index.
12930         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
12931         (Extract_From_Q): New out parameter Index
12932         (Mark, Is_Marked): Subprograms moved to Makeutl
12933         (Switches_Of): New parameter Source_Index
12934         (Add_Switch): New parameter Index
12935         (Check): New parameter Source_Index
12936         (Collect_Arguments): New parameter Source_Index
12937         (Collect_Arguments_And_Compile): New parameter Source_Index
12938         (Compile): New parameter Source_Index
12939         Put subprograms in alphabetical order
12940         Add support for multi-source sources, including in project files.
12942         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
12943         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
12944         Make.
12946         * makeusg.adb: New gnatmake switch -eInnn
12948         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
12949         Prj.Util.Value_Of.
12951         * opt.ads (Main_Index): New variable, defaulted to 0.
12953         * osint.ads, osinte.adb (Add_File): New parameter Index
12954         (Current_Source_Index): New function
12956         * prj.adb: Take into account new components Index and Src_Index
12958         * prj.ads (String_Element): New component Index
12959         (Variable_Value): New component Index
12960         (Array_Element): New component Src_Index
12962         * prj-attr.adb: Indicate that optional index may be specified for
12963         attributes Main, Executable, Spec, Body and some of Switches.
12965         * prj-attr.ads (Attribute_Kind): New values for optional indexes
12966         (Attribute_Record): New component Optional_Index
12968         * prj-com.ads (File_Name_Data): New component Index
12970         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
12972         * prj-env.adb (Put): Output optional index
12974         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
12975         attributes Spec and Body.
12977         * prj-nmsc.adb: Process optional indexes
12979         * prj-pp.adb: Ouput "at" for optional indexes
12981         * prj-proc.adb: Take into account optional indexes
12983         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
12984         Optional_Index. For string literal,
12985         process optional index when Optional_Index is True.
12986         (Parse_Expresion): New Boolean parameter Optional_Index
12988         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
12989         (Set_Source_Index_Of): New procedure
12991         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
12992         index.
12994         * prj-util.ads (Executable_Of): New parameter Index
12995         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
12996         New parameter Src_Index, defaulted to 0.
12998 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
13000         PR ada/15257
13001         * sem_ch3.adb (Access_Definition): If this is an access parameter
13002         whose designated type is imported through a limited_with clause, do
13003         not add the enclosing subprogram to the list of private dependents of
13004         the type.
13006 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
13008         PR ada/15258
13009         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
13010         a limited_with clause, and the other is its non-limited view.
13012 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
13014         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
13016         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
13017         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
13018         Stand.Boolean_Literals to produce references to entities
13019         Standard_False and Standard_True from compile-time computed boolean
13020         values.
13022         * stand.ads (Boolean_Literals): New variable, provides the entity
13023         values for False and True, for use by the expander.
13025 2004-05-05  Doug Rupp  <rupp@gnat.com>
13027         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
13028         5vinmaop.adb: Unchecked convert Short_Address vice Address
13030         * adaint.c, raise.c: Caste CRTL function return value
13031         to avoid gcc error on 32/64 bit IVMS.
13033         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
13034         target = IA64/VMS.
13036         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
13038         * 5qsystem.ads (Address): Declare as Long_Integer
13039         (Short_Address): Declare as 32 bit subtype of Address
13040         Declare  abstract address operations to avoid gratuitous ambiguities.
13042 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
13044         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
13045         instead of the old Boolean_Entry_Barriers.
13046         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
13048 2004-05-05  GNAT Script  <nobody@gnat.com>
13050         * Make-lang.in: Makefile automatically updated
13052 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
13054         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
13056 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
13058         PR ada/15152
13060         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
13061         alone. Replacing object references by literals is inappropriate in a
13062         so low level context.
13064 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
13066         * a-exexpr.adb: Add comments
13068 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
13070         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
13071         declare the Ancestor_Tags array in Type_Specific_Data with a small size
13072         without risking a bounds check error when accessing one of its
13073         components.
13074         (Type_Specific_Data): Define Ancestor_Tags as a small array.
13075         This prevents us from hitting a limitation during the debug info
13076         generation when using stabs.
13078         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
13079         small array.
13080         This prevents us from hitting a limitation during the debug info
13081         generation when using stabs.
13083 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
13085         lang-specs.h: Remove -gnatz* from specs.
13087 2004-05-03  Vincent Celier  <celier@gnat.com>
13089         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
13091         * Make-lang.in, Makefile.in: Add gprmake
13093 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
13095         * sem_aggr.adb: Fix typo in comment.
13097 2004-05-03  Robert Dewar  <dewar@gnat.com>
13099         * make.adb: Minor reformatting
13101         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
13103         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
13104         so that it works when address is not a private type.
13106         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
13107         properly with rewritten unchecked conversions. This prevents
13108         order-of-elaboration issues that can otherwise arise.
13109         (Minimum_Size): Don't check size of access types under VMS
13111         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
13112         interpretations of integer literals as type System.Address.
13114         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
13115         (Is_Descendent_Of): New function
13117 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
13119         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
13120         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
13121         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
13123         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
13124         of the old Max_Entry_Queue_Depth.
13126         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
13127         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
13128         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
13130         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
13131         New entry for proper handling of Max_Entry_Queue_Depth.
13132         New entry for proper handling of No_Dynamic_Interrupts.
13134         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
13135         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
13136         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
13137         the GNAT specific restriction Max_Entry_Queue_Depth.
13138         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
13139         the GNAT specific restriction No_Dynamic_Interrupts.
13141         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
13142         instead of the old Boolean_Entry_Barriers.
13143         Use the new restriction No_Dynamic_Attachment instead of the old
13144         No_Dynamic_Interrupts.
13146         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
13147         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
13149         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
13150         of the old Max_Entry_Queue_Depth.
13152 2004-05-03  GNAT Script  <nobody@gnat.com>
13154         * Make-lang.in: Makefile automatically updated
13156 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
13158         * checks.adb (Enable_Range_Check): If the prefix of an index component
13159         is an access to an unconstrained array, perform check unconditionally.
13161 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13163         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
13164         Component_Clause.
13166 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
13168         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
13169         alternate stack setting. There was no support for the tasking cases
13170         and the changes eventually caused a number of side-effect failures in
13171         the non-tasking case too.
13173 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
13175         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
13176         -gnats is passed.
13178 2004-04-29  Vincent Celier  <celier@gnat.com>
13180         * make.adb (Gnatmake): Increase max size of argument array for
13181         gnatbind for the potential addition of -F.
13182         If there are Stand-Alone Library projects, invoke gnatbind with -F to
13183         be sure that elaboration flags will be checked.
13185         * switch-c.adb: Correct call to Scan_Pos for -gnateI
13187 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
13189         * sem_warn.adb (Check_References): Move '<access-variable> may be
13190         null' warning out of under Warn_On_No_Value_Assigned.
13192 2004-04-29  Ed Falis  <falis@gnat.com>
13194         * gnat_ugn.texi: Fixed texi error
13196 2004-04-29  Robert Dewar  <dewar@gnat.com>
13198         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
13199         abstract operations if they come from predefined files.
13201         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
13202         Dynamic, not RM).
13204         * s-addope.adb: Correct obvious error in mod function
13206 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
13208         * Makefile.in: Add target pairs for powerpc darwin*
13209         tasking support.
13211         * a-intnam-darwin.ads, s-osinte-darwin.adb,
13212         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
13214 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
13216         * Makefile.in: Add target macro definitions for s390*-linux*.
13217         * system-linux-s390.ads: New file.
13218         * system-linux-s390x.ads: New file.
13220 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
13222         * gnat_ugn.texi: Correct argument to @setfilename.
13224 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
13226         * a-exexpr.adb (Unwind_Word): New data type.
13227         (Unwind_Exception): Use it as type of Private1 and Private2.
13229         * raise.c (db_action_for): Fix debug printf.
13231 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
13233         * a-wtmoio.ads: Formal type must be a modular type, not a signed
13234         integer type.
13236 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13238         * decl.c (gnat_to_gnu_entity, case object): Call
13239         __builtin_update_setjmp_buf.
13241         * gigi.h (update_setjmp_buf): Deleted.
13242         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
13244         * misc.c: (update_setjmp_buf): Deleted.
13246         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
13247         around block of RTL.
13249         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
13251 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
13253         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
13254         subprogram for which no pragma All_Calls_Remote applies, store the
13255         address of the real subprogram in the underlying record type, so local
13256         dereferences do not go through the PCS.
13258 2004-04-26  Robert Dewar  <dewar@gnat.com>
13260         * i-c.ads: Add some type qualifications to avoid ambiguities when
13261         compiling with s-auxdec.ads and a non-private address type.
13263 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
13265         * Makefile.rtl: Fix error in previous check-in:
13266         Add s-addope.o to non tasking object list (rather than tasking object
13267         list).
13269 2004-04-26  Javier Miranda  <miranda@gnat.com>
13271         * sem_aggr.adb: Fix typo in comments
13272         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
13273         Required to check the null-exclusion attribute.
13275         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
13276         case of anonymous access types in record and array components. For a
13277         component definition the level is the same of the enclosing composite
13278         type.
13280         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
13281         that are anonymous access types the level of accessibility depends on
13282         the enclosing type declaration. In order to have this information, set
13283         the scope of the anonymous access type to the enclosing record type
13284         declaration.
13285         (Array_Type_Declaration): In case of components that are anonymous
13286         access types the level of accessibility depends on the enclosing type
13287         declaration. In order to have this information, set the scope of the
13288         anonymous access type to the enclosing array type declaration.
13290         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
13291         access type.
13293         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
13294         renaming of anonymous access-to-constant types allowed if and only if
13295         the renamed object is access-to-constant.
13297         * sem_util.adb (Type_Access_Level): In case of anonymous access types
13298         that are component_definition or discriminants of a nonlimited type,
13299         the level is the same as that of the enclosing component type.
13301 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
13303         * sem_elim.adb: Some minor code reorganization from code reading. Fix
13304         misprint in the function name (File_Name_Match).
13306 2004-04-23  Laurent GUERBY <laurent@guerby.net>
13308         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
13309         install.
13311 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13313         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
13315 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
13317         * adaint.c (__gnat_try_lock): No longer requires that the parent
13318         directory be writable, the directory itself is enough.
13319         (gnat_is_absolute_path): Change profile, so that the call from
13320         GNAT.OS_Lib can be made more efficient.
13322         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
13323         from GNAT.OS_Lib can be made more efficient.
13325         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
13326         one copy of the file name. Found by code reading.
13328 2004-04-23  Vincent Celier  <celier@gnat.com>
13330         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
13331         Correct documentation on gnatmake switches transmitted to the compiler
13333         * ali.ads: Minor comment fix
13335 2004-04-23  Javier Miranda  <miranda@gnat.com>
13337         * sem_ch6.adb: (Confirming Types): Code cleanup
13339         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
13340         subprogram types: E_Anonymous_Access_Subprogram_Type and
13341         E_Anonymous_Access_Protected_Subprogram_Type.
13343 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
13345         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
13346         whether a pragma All_Calls_Remote applies to the subprogram on which
13347         'Access is taken.
13348         No functional change is introduced by this revision; the new parameter
13349         will be used to allow calls to local RCI subprograms to be optimized
13350         to not use the PCS in the case where no pragma All_Calls_Remote applies,
13351         as is already done in the PolyORB implementation of the DSA.
13353         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
13354         whether a pragma All_Calls_Remote applies to the subprogram on which
13355         'Access is taken.
13356         No functional change is introduced by this revision; the new parameter
13357         will be used to allow calls to local RCI subprograms to be optimized
13358         to not use the PCS in the case where no pragma All_Calls_Remote applies,
13359         as is already done in the PolyORB implementation of the DSA.
13361 2004-04-23  Robert Dewar  <dewar@gnat.com>
13363         * Makefile.rtl: Add entry for s-addope.o in run time library list
13364         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
13365         * s-addope.ads, s-addope.adb: New files.
13367         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
13368         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
13369         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
13370         System.Address to be non-private and signed.
13372         * sem_elim.adb: Minor reformatting (fairly extensive)
13373         Some minor code reorganization from code reading
13374         Add a couple of ??? comments
13376 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13378         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
13379         (tree_transform, case N_If_Statement): Remove non-determinism.
13381         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
13383 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
13385         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
13386         Eliminate' section.
13388         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
13389         no longer used as a parameter name for Eliminate pragma).
13391 2004-04-22  Laurent GUERBY <laurent@guerby.net>
13393         PR optimization/14984
13394         PR optimization/14985
13395         * trans.c (gigi): Fix non determinism leading to bootstrap
13396         comparison failures.
13398 2004-04-21  Pascal Obry  <obry@gnat.com>
13400         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
13401         passed to spawnvp() to properly handle program pathname with spaces on
13402         Win32.
13404 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
13406         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
13407         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
13408         unlocked in case of exceptions.
13410 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
13412         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
13413         This function does not exist anymore.
13415 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
13417         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
13419         * link.c: Move variables to the __gnat name space.
13421         * Makefile.in: list link.o explicitly when needed.
13423         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
13425 2004-04-21  Javier Miranda  <miranda@gnat.com>
13427         * einfo.adb (Original_Access_Type): New subprogram
13428         (Set_Original_Access_Type): New subprogram
13429         (Write_Field21_Name): Write the name of the new field
13431         * einfo.ads (Original_Access_Type): New field present in access to
13432         subprogram types.
13433         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
13434         E_Anonymous_Access_Protected_Subprogram_Type.
13436         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
13437         subprogram types.
13439         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
13440         to anonymous access to subprogram types.
13442         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
13443         to subprogram types.
13445         * sem_ch3.adb (Access_Definition): Complete decoration of entities
13446         corresponding to anonymous access to subprogram types.
13447         (Analyze_Component_Declaration): Add new actual to the call to
13448         subprogram replace_anonymous_access_to_protected_subprogram.
13449         (Array_Type_Declaration): Add new actual to the call to subprogram
13450         replace_anonymous_access_to_protected_subprogram.
13451         (Process_Discriminants): Add new actual to the call to subprogram
13452         replace_anonymous_access_to_protected_subprogram.
13453         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
13455         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
13456         formal.
13458         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
13459         access to subprogram types.
13461         * sem_util.adb (Has_Declarations): Addition of package_specification
13462         nodes.
13464 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
13466         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
13467         inlined flags to renamed entity only if in current unit.
13469 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
13471         * s-parint.ads: Add DSA implementation marker.
13473         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
13474         value of System.Partition_Interface.DSA_Implementation to determine
13475         what version of the distributed systems annex is available (no
13476         implementation, GLADE, or PolyORB).
13478 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
13480         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
13482 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13484         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
13485         with new type if alias sets differ.
13486         Fixes ACATS c41103b.
13488 2004-04-21  Vincent Celier  <celier@gnat.com>
13490         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
13491         Add array Lang_Args for the language specific compiling argument
13492         switches.
13494         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
13496 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
13498         * gnat_rm.texi: Update the descripton of the Eliminate pragma
13499         according to the recent changes in the format of the parameters of the
13500         pragma (replacing Homonym_Number with Source_Location).
13502 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
13504         * 5isystem.ads: Removed, unused.
13506         * gnat_rm.texi: Redo 1.13 change.
13508 2004-04-19  Robert Dewar  <dewar@gnat.com>
13510         * s-stoele.ads: Clean up definition of Storage_Offset (the new
13511         definition is cleaner, avoids the kludge of explicit Standard operator
13512         references, and also is consistent with a visible System.Address with
13513         no visible operations.
13515         * s-geveop.adb: Add declarations to avoid assumption of visible
13516         operations on type System.Address (since these might not be available
13517         if Address is a non-private type for which the operations
13518         are made abstract).
13520         * sem_eval.adb: Minor reformatting
13522         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
13523         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
13524         reformatting (new function spec format).
13526         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
13527         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
13528         s-caun64.adb: Add declarations to avoid assumption of visible
13529         operations on type System.Address (since these might not be available
13530         if Address is a non-private type for which the operations are made
13531         abstract).
13533         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
13535         * exp_intr.adb: Minor comment update
13537         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
13539         * 5omastop.adb: Add declarations to avoid assumption of visible
13540         operations on type System.Address (since these might not be available
13541         if Address is a non-private type for which the operations
13542         are made abstract).
13544 2004-04-19  Vincent Celier  <celier@gnat.com>
13546         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
13548         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
13549         defaulted to Ada.
13551         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
13552         defaulted to Ada.
13553         Call Check with Process_Languages.
13554         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
13555         with Process_Languages.
13556         (Recursive_Check): New Boolean parameter Process_Languages. Call
13557         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
13558         Process_Languages.
13560         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
13562         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
13563         parameter Ada_Main, defaulted to True.
13564         Check for Ada specific characteristics only when Ada_Main is True.
13566         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
13568         * prj.adb: (Project_Empty): Add new Project_Data components.
13570         * prj.ads: New types and tables for non Ada languages.
13571         (Project_Data): New components Languages, Impl_Suffixes,
13572         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
13573         Include_Path, Include_Data_Set.
13575         * prj-env.ads, prj-env.adb: Minor reformatting
13577         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
13578         Put subprograms in alphabetical order
13580         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
13581         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
13582         Opt.Follow_Links.
13584         * mlib-prj.adb: Back out modification in last version, as they are
13585         incorrect.
13586         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
13588         * make.adb: (Mains): Moved to package Makeutl
13589         (Linker_Opts): Moved to package Makeutl
13590         (Is_External_Assignment): Moved to package Makeutl
13591         (Test_If_Relative_Path): Moved to package Makeutl
13592         (Gnatmake): Move sorting of linker options to function
13593         Makeutl.Linker_Options_Switches.
13595         * makeutl.ads, makeutl.adb: New files.
13597         * Makefile.in: Add makeutl.o to the object files for gnatmake
13599         * makeusg.adb: Add line for new switch -eL.
13601         * gnatls.adb (Image): New function.
13602         (Output_Unit): If in verbose mode, output the list of restrictions
13603         specified by pragmas Restrictions.
13605         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
13606         Text_IO.
13608         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
13609         needed, to put it in the range 1970 (included) - 2026 (excluded).
13610         (Time_Of): Do not shift Unix_Min_Year (1970).
13611         Shift the date by multiple of 56 years, if needed, to put it in the
13612         range 1970 (included) - 2026 (excluded).
13614         * adaint.h, adaint.c (__gnat_set_executable): New function.
13616 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13618         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
13619         and pop GC context.
13620         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
13621         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
13622         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
13623         (tree_transform, case N_Code_Statement): Likewise.
13624         (gnat_expand_stmt, case LABEL_STMT): Don't look at
13625         LABEL_STMT_FIRST_IN_EH.
13626         (gnat_expand_stmt, case ASM_STMT): New case.
13628         * utils2.c (build_unary_op): Properly set TREE_READONLY of
13629         UNCONSTRAINED_ARRAY_REF.
13631         * utils.c (poplevel): Temporarily push/pop GC context around inline
13632         function expansion.
13634         * decl.c (maybe_variable): Properly set TREE_READONLY of
13635         UNCONSTRAINED_ARRAY_REF.
13636         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
13638         * ada-tree.def: (ASM_STMT): New.
13640         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
13641         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
13642         ASM_STMT_INPUT): New.
13643         (ASM_STMT_CLOBBER): Likewise.
13645 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
13647         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
13648         general rcheck mechanism to raise Program_Error for E.4(18), instead
13649         of a custom raiser in System.Partition_Interface.
13650         Part of general cleanup work before PolyORB integration.
13652         * snames.ads, snames.adb: Add new runtime library entities and names
13653         for PolyORB DSA.
13655         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
13656         exp_dist.
13657         (Build_Subprogram_Id): New subprogram provided by exp_dist
13658         Code reorganisation in preparation for PolyORB integration.
13660         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
13661         exp_dist.
13662         (Build_Subprogram_Id): New subprogram provided by exp_dist
13664         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
13665         actual parameter types for call to dereference of an
13666         access-to-subprogram type.
13668         * rtsfind.ads: Add new runtime library entities and names for PolyORB
13669         DSA.
13671         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
13672         instead, which has the same behaviour here since we never pass it a
13673         NULL pointer.
13675         * link.c (run_path_option, Solaris case): Use -Wl, as for other
13676         platforms.
13678         * Makefile.in: adjust object file lists for gnatlink and gnatmake
13679         to account for new dependency upon Interfaces.C.Strings + link.o
13680         For x86 FreeBSD, use 86numaux.
13682         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
13683         from Mlib.Tgt to Mlib.
13685         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
13686         target-independent.
13688         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
13689         target-specific versions of this subprogram, now implemented as a
13690         target-independent function in Mlib.
13692         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
13693         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
13694         (Linker_Library_Path_Option): Remove target-specific versions of this
13695         subprogram, now implemented as a target-independent function in Mlib.
13697         * atree.adb: (Allocate_Initialize_Node): New subprogram.
13698         Factors out node table slots allocation.
13699         (Fix_Parents): New subprogram.
13700         Encapsulate the pattern of fixing up parent pointers for syntactic
13701         children of a rewritten node.
13702         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
13703         (Rewrite): Use New_Copy when creating saved copy of original node.
13704         (Replace): Use Copy_Node to copy nodes.
13706 2004-04-19  Javier Miranda  <miranda@gnat.com>
13708         * sprint.adb (Sprint_Node_Actual): Give support to the new
13709         Access_To_Subprogram node available in Access_Definition nodes. In
13710         addition, give support to the AI-231 node fields: null-exclusion,
13711         all-present, constant-present.
13713         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
13715         * sinfo.ads, sinfo.adb:
13716         New field Access_To_Subprogram_Definition in Access_Definition nodes
13718         * sem_ch6.adb (Process_Formals): Move here the code that creates and
13719         decorates internal subtype declaration corresponding to the
13720         null-excluding formal. This code was previously in Set_Actual_Subtypes.
13721         In addition, carry out some code cleanup on this code. In case of
13722         access to protected subprogram call
13723         Replace_Anonymous_Access_To_Protected_Subprogram.
13724         (Set_Actual_Subtypes): Code cleanup.
13726         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
13727         Find_Type in case of anonymous access renamings. Add warning in case of
13728         null-excluding attribute used in anonymous access renaming.
13730         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
13731         subprogram
13733         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
13734         subprogram.
13735         (Access_Definition): In case of anonymous access to subprograms call
13736         the corresponding semantic routine to decorate the node.
13737         (Access_Subprogram_Declaration): Addition of some comments indicating
13738         some code that probably should be added here. Detected by comparison
13739         with the access_definition subprogram.
13740         (Analyze_Component_Declaration): In case of access to protected
13741         subprogram call Replace_Anonymous_Access_To_Protected.
13742         (Array_Type_Declaration): In case of access to protected subprogram call
13743         Replace_Anonymous_Access_To_Protected_Subprogram.
13744         (Process_Discriminants): In case of access to protected subprogram call
13745         Replace_Anonymous_Access_To_Protected_Subprogram.
13747         * par.adb (P_Access_Definition): New formal that indicates if the
13748         null-exclusion part was present.
13749         (P_Access_Type_Definition): New formal that indicates if the caller has
13750         already parsed the null-excluding part.
13752         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
13753         (P_Identifier_Declarations): Code cleanup and give support to renamings
13754         of anonymous access to subprogram types.
13755         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
13756         (P_Array_Type_Definition): Give support to AI-254.
13757         (P_Component_Items): Give support to AI-254.
13758         (P_Access_Definition): New formal that indicates if the header was
13759         already parsed by the caller.
13760         (P_Access_Type_Definition): New formal that indicates if the caller has
13761         already parsed the null-excluding part.
13763         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
13764         call to P_Access_Definition.
13766 2004-04-19  Geert Bosch  <bosch@gnat.com>
13768         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
13769         the delicate semantics of floating-point to integer conversion.
13770         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
13772         * eval_fat.adb (Machine_Mantissa): Moved to spec.
13773         (Machine_Radix): New function.
13775         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
13776         conversion checks.
13777         (Machine_Radix): New function also for use in conversion checks.
13779 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
13781         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
13783         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
13784         to decorate the access-to-protected subprogram and the equivalent type.
13786         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
13787         to anonymous access to subprogram types.
13789         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
13790         constant-folding, for legality checks in contexts that require an RM
13791         static expression.
13793         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
13794         temporary but stack checking is not enabled, increment serial number
13795         to so that symbol generation is consistent with and without stack
13796         checking.
13798         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
13799         independent on whether stack checking is enabled, caller must check
13800         the corresponding flag.
13802         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
13803         range checks.
13804         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
13805         parent if it has discriminants.
13806         (Build_Derived_Private_Type): Constructed full view does
13807         not come from source.
13808         (Process_Discriminants): Default discriminants on a tagged type are
13809         legal if this is the internal completion of a private untagged
13810         derivation.
13812         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
13813         no constraint checks, because it corresponds to an existing object.
13815         * sem_prag.adb (Process_Convention): Pragma applies
13816         only to subprograms in the same declarative part, i.e. the same unit,
13817         not the same scope.
13819         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
13820         ignore type mismatch on a numeric conversion if expression comes from
13821         expansion.
13823 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
13825         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
13826         Homonym_Number parameter, add processing for Source_Location parameter
13827         corresponding.
13828         (Check_Eliminated): Remove the check for homonym numbers, add the check
13829         for source location traces.
13831         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
13832         with Arg_Source_Location corresponding to the changes in the format of
13833         the pragma.
13835         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
13836         Eliminate pragma corresponding to the changes in the format of the
13837         pragma: Homonym_Number is replaced with Source_Location, two ways of
13838         distinguishing homonyms are mutially-exclusive.
13840 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
13842         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
13844         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
13845         No_Dollar_In_Label, no longer necessary, as it is always True.
13846         (Strip_Suffixes): Likewise.
13848 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
13850         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
13851         modulus for compatibility with size clause on targets with 16-bit
13852         Integer.
13854         * layout.adb (Discrimify): In the case of private types, set Vtyp to
13855         full type to fix type mismatches on calls to size functions for
13856         discriminant-dependent array components.
13858 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
13860         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
13861         lib.
13863 2004-04-19  Pascal Obry  <obry@gnat.com>
13865         * mdll-utl.adb (Locate): New version is idempotent.
13867 2004-04-17  Laurent Guerby <laurent@guerby.net>
13869         PR ada/14988 (partial)
13870         * impunit.adb: Fix typo.
13872 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
13874         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
13875         and install-rts-cert targets.  Remove all gnatlib and gnattools
13876         targets and all other rts-* targets (moved to libada).  Remove (now)
13877         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
13878         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
13880 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13882         * trans.c (tree_transform): Shortcut returning error_mark_node for
13883         statements in annotate_only_mode.
13884         (tree_transform, case N_Label, case N_Return_Statement,
13885         N_Goto_Statement): Make statement tree instead of generating code.
13886         (tree_transform, case N_Assignment_Statement): No longer check
13887         type_annotate_only.
13888         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
13889         RETURN_STMT): New.
13890         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
13891         New fcns.
13892         (gnat_to_gnu): Collect any RTL generated and deal with it.
13893         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
13894         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
13895         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
13897         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
13899         * ada-tree.def (EXPR_STMT): Fix typo in name.
13900         (BLOCK_STMT, IF_STMT): New nodes.
13902         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
13903         LABEL_STMT_FIRST_IN_EH): New macros.
13904         (RETURN_STMT_EXPR): Likewise.
13906         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
13907         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
13909 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
13911         * atree.ads: Correct documentation on extended nodes.
13913         * link.c: Set run_path_option for FreeBSD.
13915 2004-04-08  Vincent Celier  <celier@gnat.com>
13917         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
13918         one of the ALI file, do not link with DEC lib.
13920         * par.adb Remove the last two characters ("%s" or "%b") when checking
13921         if a language defined unit may be recompiled.
13923 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
13925         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
13926         removal of abstract operation leaves no possible interpretation for
13927         expression.
13929         * sem_eval.adb (Eval_Qualified_Expression): Use
13930         Set_Raises_Constraint_Error on node when needed, so that it does not
13931         get optimized away by subsequent optimizations.
13933         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
13934         operands even when they are not wrapped in a type conversion.
13936 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
13938         * sem_prag.adb (Set_Exported): Warn about making static as result of
13939         export only when the export is coming from source. This may be not
13940         be true e.g. on VMS where we expand export pragmas for exception codes
13941         together with imported or exported exceptions, and we don't want the
13942         user to be warned about something he didn't write.
13944 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
13946         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
13947         duplication between normal entities and those declared as renamings.
13948         No functional change.
13950         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
13951         inline functions returning an unconstrained result.
13953 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
13955         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
13956         conform to what other front-ends do.
13958 2004-04-08  Doug Rupp  <rupp@gnat.com>
13960         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
13961         libraries.
13963 2004-04-06  Pascal Obry  <obry@gnat.com>
13965         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
13967         * osint.adb (Program_Name): Do not look past a directory separator.
13969 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
13971         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
13973         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
13974         requirement for preserving a copy of the original assignment node.
13976         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
13978 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
13980         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
13981         when supported.
13983 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
13985         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
13986         operator calls in functional notation, and apply
13987         Universal_Interpretation to operands, not to their type.
13989 2004-04-06  Robert Dewar  <dewar@gnat.com>
13991         * 5wdirval.adb: Minor reformatting
13993 2004-04-06  Ed Falis  <falis@gnat.com>
13995         * gnat_rm.texi: Improve a reference to the GCC manual
13997 2004-04-05  Vincent Celier  <celier@gnat.com>
13999         * adaint.h, adaint.c: Add function __gnat_named_file_length
14001         * impunit.adb: Add Ada.Directories to the list
14003         * Makefile.in: Add VMS and Windows versions of
14004         Ada.Directories.Validity package body.
14006         * Makefile.rtl: Add a-direct and a-dirval
14008         * mlib-tgt.ads: Minor comment update.
14010         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
14011         a-direct.ads, a-direct.adb: New files.
14013 2004-04-05  Vincent Celier  <celier@gnat.com>
14015         PR ada/13620
14016         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
14017         just to the compiler.
14019 2004-04-05  Robert Dewar  <dewar@gnat.com>
14021         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
14022         returned string is 1.
14024         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
14026         * eval_fat.ads: Minor reformatting
14028         * g-curexc.ads: Document that lower bound of returned string values
14029         is always one.
14031         * gnatlink.adb: Add ??? comment for previous change
14032         (need to document why this is VMS specific)
14034         * s-stoele.ads: Minor reformatting
14036         * tbuild.ads: Minor reformatting throughout (new function specs)
14038         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
14039         after WITH.
14041         * scng.adb: Minor reformatting
14043 2004-04-05  Geert Bosch  <bosch@gnat.com>
14045         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
14046         (Leading_Part): Still perform truncation to machine number if the
14047         specified radix_digits is greater or equal to machine_mantissa.
14049 2004-04-05  Javier Miranda  <miranda@gnat.com>
14051         * par-ch3.adb: Complete documentation of previous change
14052         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
14053         (aliased must appear before constant).
14055         * par-ch4.adb: Complete documentation of previous change.
14057         * par-ch6.adb: Complete documentation of previous change.
14059         * sinfo.ads: Fix typo in commment.
14061 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
14063         * sem_ch3.adb (Inherit_Components): If derived type is private and has
14064         stored discriminants, use its discriminants to constrain parent type,
14065         as is done for non-private derived record types.
14067         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
14068         Ada 2005 AI-310: an abstract non-dispatching operation is not a
14069         candidate interpretation in an overloaded call.
14071         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
14072         expression is Null and target type is not an access type (e.g. a
14073         non-private address type).
14075 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
14077         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
14078         statement whose right-hand side is an inlined call, save a copy of the
14079         original assignment subtree to preserve enough consistency for
14080         Analyze_Assignment to proceed.
14082         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
14083         complete assignment subtree which is now unnecessary, as the expansion
14084         of inlined call has been improved to preserve a consistent assignment
14085         tree.  Note_Possible_Modification must be called only
14086         after checks have been applied, or else unnecessary checks will
14087         be generated.
14089         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
14090         of explicit dereferences that do not Come_From_Source:
14091          - be selective on cases where we must go back to the dereferenced
14092            pointer (an assignment to an implicit dereference must not be
14093            recorded as modifying the pointer);
14094          - do not rely on Original_Node being present (Analyze_Assignment
14095            calls Note_Possible_Modification on a copied tree).
14097         * sem_warn.adb (Check_References): When an unset reference to a pointer
14098         that is never assigned is encountered, prefer '<pointer> may be null'
14099         warning over '<pointer> is never assigned a value'.
14101 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
14103         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
14104         the ABI.
14106 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
14108         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
14109         libexc. We currently don't reference anything in this library and
14110         linking it in triggers linker warnings we don't want to see.
14112         * init.c: Update comments.
14114 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14116         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
14117         * utils.c (create_field_decl): Likewise.
14118         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
14120 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
14122         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
14123         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
14124         Add info directory entry and category.
14126 2004-04-02  Jan Hubicka  <jh@suse.cz>
14128         * utils.c: Include function.h
14129         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
14131 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
14133         PR ada/14150
14134         * Make-lang.in: Clean up generation of documentation
14136         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
14138         * xgnatug.adb: Removed, replaced by xgnatugn.adb
14140         * xgnatugn.adb: Replaces xgnatug.adb
14142         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
14144         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
14146         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
14147         gnat_ug_wnt.texi: Removed.
14149 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
14151         * utils2.c: Update copyright notice.
14153 2004-04-01  Robert Dewar  <dewar@gnat.com>
14155         * checks.adb: Minor reformatting throughout
14156         Note that prev checkin added RM reference to alignment warning
14158 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
14160         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
14161         non-static when building aggregate for bit-packed array.
14163         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
14164         function call that is itself the actual in a procedure call, build
14165         temporary for it.
14167         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
14168         a string literal, create a temporary for it, constant folding only
14169         handles scalars here.
14171 2004-04-01  Vincent Celier  <celier@gnat.com>
14173         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
14174         Error_Msg_SP): New empty procedures to instantiate the Scanner.
14175         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
14176         tokens.
14177         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
14178         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
14179         and get the checksum.
14181         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
14182         already in the Q.
14183         Increase the Marking_Label at the end of the Multiple_Main_Loop,
14184         instead of at the beginning.
14186         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
14187         directly.
14188         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
14189         on VMS.
14191         * osint.ads (Multi_Unit_Index_Character): New Character global variable
14193         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
14194         not '~' directly.
14196         * par.adb: Remove test on file name to detect language defined units.
14197         Add test on unit name, after parsing, to detect language defined units
14198         that are not compiled with -gnatg (except System.RPC and its children)
14200         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
14201         following units without style checking.
14203         * switch-c.adb: Change -gnatC to -gnateI
14205         * usage.adb: Document new switch -gnateInnn
14207         * scng.adb (Accumulate_Token_Checksum): New procedure
14208         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
14209         word or literal number.
14210         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
14211         numbers.
14213 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
14215         * a-tasatt.adb,
14216         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
14217         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
14218         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
14219         5vtpopde.adb: Add missing 'constant' keywords.
14221 2004-04-01  Javier Miranda  <miranda@gnat.com>
14223         * par-ch4.adb: (P_Allocator): Code cleanup
14225         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
14226         attribute.
14228         * sinfo.ads: Complete documentation of previous change
14230 2004-04-01  Pascal Obry  <obry@gnat.com>
14232         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
14233         only on VMS.  This special handling was done because an old GNU/ld bug
14234         on Windows which has been fixed.
14236 2004-04-01  GNAT Script  <nobody@gnat.com>
14238         * Make-lang.in: Makefile automatically updated
14240 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14242         * decl.c (gnat_to_gnu_entity, make_type_from_size):
14243         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
14244         * trans.c (tree_transform, convert_with_check): Likewise.
14245         * utils.c (gnat_signed_or_unsigned_type): Likewise.
14246         (build_vms_descriptor, unchecked_convert): Likewise.
14247         * utils2.c (nonbinary_modular_operation): Likewise.
14249 2004-03-29  Javier Miranda  <miranda@gnat.com>
14251         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
14252         (Install_Null_Excluding_Check): Local subprogram that determines whether
14253         an access node requires a runtime access check and if so inserts the
14254         appropriate run-time check.
14255         (Apply_Access_Check): Call Install_Null_Excluding check if required
14256         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
14258         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
14260         * einfo.ads: Fix typo in comment
14262         * exp_ch3.adb (Build_Assignment): Generate conversion to the
14263         null-excluding type to force the corresponding run-time check.
14264         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
14265         type to force the corresponding run-time check.
14267         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
14268         the null-excluding type to force the corresponding run-time check.
14270         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
14271         case of access types unless they have the null-excluding attribute.
14273         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
14274         part.
14276         * exp_util.ads: Fix typo in comment
14278         * par.adb (P_Null_Exclusion): New subprogram
14279         (P_Subtype_Indication): New formal that indicates if the null-excluding
14280         part has been scanned-out and it was present
14282         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
14284         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
14285         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
14286         type to force the corresponding run-time check
14287         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
14288         components
14289         (Resolve_Array_Aggregate): Carry out some static checks
14290         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
14292         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
14293         attribute must be set only if specified by means of the null-excluding
14294         part. In addition, we must also propagate the access-constant attribute
14295         if present.
14296         (Access_Subprogram_Declaration, Access_Type_Declaration,
14297         Analyze_Component_Declaration, Analyze_Object_Declaration,
14298         Array_Type_Declaration, Process_Discriminants,
14299         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
14300         and carry out some static checks.
14301         (Build_Derived_Access_Type): Set the null-excluding attribute
14302         (Derived_Type_Declaration, Process_Subtype): Carry out some static
14303         checks.
14305         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
14307         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
14309         * sem_ch6.adb (Process_Formals): Carry out some static checks.
14310         (Set_Actual_Subtypes): Generate null-excluding subtype if the
14311         null-excluding part was present; it is not required to be done here in
14312         case of anonymous access types.
14313         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
14314         value.
14316         * sem_res.adb (Resolve_Actuals): Carry out some static check
14317         (Resolve_Null): Allow null in anonymous access
14319         * sinfo.adb: New subprogram Null_Exclusion_Present
14320         All_Present and Constant_Present available on access_definition nodes
14322         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
14323         object_declaration, derived_type_definition, component_definition,
14324         discriminant_specification, access_to_object_definition,
14325         access_function_definition, allocator, access_procedure_definition,
14326         access_definition, parameter_specification, All_Present and
14327         Constant_Present flags available on access_definition nodes.
14329 2004-03-29  Robert Dewar  <dewar@gnat.com>
14331         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
14332         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
14333         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
14334         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
14335         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
14336         sem_prag.adb: Updates to handle multiple units/file
14338         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
14340         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
14341         sem_util.adb: Minor reformatting
14343         * sem_ch12.adb: Add comment for previous change
14345 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
14347         * osint.adb (Executable_Prefix): Set Exec_Name to the current
14348         executable name when not initialized. Otherwise, use its current value.
14350         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
14351         initialize it to another executable name than the current one. This
14352         allows to configure paths for an executable name (gnatmake) different
14353         from the current one (gnatdist).
14355 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
14357         * exp_ch6.adb (Expand_Call): A call to a function declared in the
14358         current unit cannot be inlined if it appears in the body of a withed
14359         unit, to avoid order of elaboration problems in gigi.
14361         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
14362         information for protected (wrapper) operation as well, to simplify gdb
14363         use.
14365         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
14366         protected body, indicate that the entity for the generated spec comes
14367         from source, to ensure that references are properly generated for it.
14368         (Build_Body_To_Inline): Do not inline a function that returns a
14369         controlled type.
14371         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
14372         apply convention to homonyms that are declared explicitly.
14374         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
14375         that renames an equality operator and the operands are overloaded,
14376         resolve them with the declared formal types, before rewriting as an
14377         operator.
14379 2004-03-29  GNAT Script  <nobody@gnat.com>
14381         * Make-lang.in: Makefile automatically updated
14383 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
14385         * memtrack.adb: Log realloc calls, which are treated as free followed
14386         by alloc.
14388 2004-03-25  Vincent Celier  <celier@gnat.com>
14390         * prj-makr.adb (Process_Directories): Detect when a file contains
14391         several units. Do not include such files in the config pragmas or
14392         in the naming scheme.
14394         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
14395         Resolve links only when not in Trusted_Mode.
14396         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
14397         Do not resolve links for the display names.
14399         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
14400         resolve links when computing the display names.
14402 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
14404         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
14405         attribute reference does not denote a subtype, it can be any
14406         expression that has a classwide type, potentially after an implicit
14407         dereference.  In particular, the prefix can be a view conversion for
14408         a classwide type (for which Is_Object_Reference holds), but it can
14409         also be a value conversion for an access-to-classwide type. In the
14410         latter case, there is an implicit dereference, and the original node
14411         for the prefix does not verify Is_Object_Reference.
14413         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
14414         conversion of a discriminant-dependent component of a mutable object
14415         is one itself.
14417 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
14419         * freeze.adb (Freeze_Entity): When an inherited subprogram is
14420         inherited, has convention C, and has unconstrained array parameters,
14421         place the corresponding warning on the derived type declaration rather
14422         than the original subprogram.
14424         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
14425         indication on renaming declaration, if formal has a box and actual
14426         is absent.
14428         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
14429         determine whether to generate an implicit or explicit reference to
14430         the renamed entity.
14432         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
14433         subprogram renaming comes from a defaulted formal subprogram in an
14434         instance.
14436 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
14438         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
14439         value expressions to ensure that calls within a component definition
14440         will be checked (since those are evaluated during the record type's
14441         elaboration).
14443 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
14445         * s-tpobop.adb: Code clean up:
14446         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
14447         code.
14448         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
14450 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
14452         * Makefile.in: Clean up in the ravenscar run time.
14454 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14456         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
14457         of No_Strict_Aliasing to build_pointer_type_for_mode.
14458         * utils.c (update_pointer_to): Walk pointer and ref chains.
14460 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
14462         * ali.ads: Fix Comment about Dynamic_Elab.
14464         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
14465         Has_RACW, Is_Generic, etc.)
14466         (Output_Object, Gnatls): Take into account ALI files not attached to
14467         an object.
14469 2004-03-22  Vincent Celier  <celier@gnat.com>
14471         * gprep.adb: Change all String_Access to Name_Id
14472         (Is_ASCII_Letter): new function
14473         (Double_File_Name_Buffer): New procedure
14474         (Preprocess_Infile_Name): New procedure
14475         (Process_Files): New procedure
14476         (Gnatprep): Check if output and input are existing directories.
14477         Call Process_Files to do the real job.
14479 2004-03-22  Robert Dewar  <dewar@gnat.com>
14481         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
14482         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
14484 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
14486         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
14487         case when the source contains only comments.
14489 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
14491         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
14492         declaration for a child subprogram body that acts as a spec, indicate
14493         that the entity in the declaration needs debugging information.
14495         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
14496         full view if the subtype is created for a constrained record component;
14497         gigi has enough information to construct the record, and there is no
14498         place in the tree for the declaration.
14500         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
14501         serial number for the dummy body that is built for analysis, to avoid
14502         inconsistencies in the generation of internal names when compiling
14503         with -gnatN.
14505 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
14507         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
14508         object.
14510 2004-03-22  GNAT Script  <nobody@gnat.com>
14512         * Make-lang.in: Makefile automatically updated
14514 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14516         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
14517         * trans.c (tree_transform, emit_index_check): Likewise.
14518         * utils.c (build_template): Likewise.
14519         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
14520         (maybe_unconstrained_array, unchecked_convert): Likewise.
14521         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
14522         (build_unary_op): Likewise.
14523         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
14524         (fill_vms_descriptor): Likewise.
14525         (build_call_alloc_dealloc): Likewise.
14526         ALIGN is unsigned.
14527         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
14529 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
14531         PR other/14630
14532         * gnat_ug.texi: Add info directory category and entry.
14533         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
14534         gnat_ug_wnt.texi: Regenerate.
14536 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
14538         * ada-tree.h: Update copyright notice.
14539         Minor reformatting.
14541 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
14543         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
14544         as regular exception objects and not as mere integers representing the
14545         condition code.  The latter approach required some dynamics to mask off
14546         severity bits, which did not fit well into the GCC table based model.
14547         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
14548         exception data objects. We don't it and it would conflict with the other
14549         external symbol we have to generate for such exceptions.
14551         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
14552         the special code for VMS exceptions, since these are now represented
14553         as regular exceptions objects.
14555 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14557         * decl.c (debug_no_type_hash): Remove.
14558         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
14559         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
14561 2004-03-19  Laurent Guerby <laurent@guerby.net>
14563         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
14564         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
14566 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14568         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
14569         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
14570         (TYPE_RM_SIZE_INT): Directly use type.values.
14571         (TREE_LOOP_ID): Clean up check.
14572         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
14573         TYPE_VALUES, not TYPE_FIELDS.
14574         * trans.c (convert_with_check): Delay access of bounds of basetype
14575         until sure is numeric.
14577 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
14579         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
14581         Code clean up:
14582         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
14583         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
14584         Specific.Set instead of direct call to e.g pthread_setspecific.
14586 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
14588         * adaint.c: Update comments.
14590         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
14591         GNATLIB_SHARED for FreeBSD.
14593 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
14595         * init.c [VxWorks]: Do not fix the stack size for the environment task.
14596         When needed (stack checking) the stack size is retrieved
14597         from the VxWorks kernel.
14599         * Makefile.in: Flag -nostdinc is required when building the run time
14600         for avoiding looking for files in the base compiler.
14601         Add the VxWorks specific version of the package body for
14602         System.Stack_checking.Operations (5zstchop.adb).
14604         * Make-lang.in: Add the object file for
14605         System.Stack_Checking.Operations.
14607         * Makefile.rtl: Add object file for the package
14608         System.Stack_Checking.Operations.
14610         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
14612         * s-stache.ads, s-stache.adb: Move the operations related to stack
14613         checking from this package to package System.Stack_Checking.Operations.
14614         This way, stack checking operations are only linked in the final
14615         executable when using the -fstack-check flag.
14617 2004-03-18  Doug Rupp  <rupp@gnat.com>
14619         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
14620         Reorganize ifeq's.
14622         * 5qsystem.ads, 5xcrtl.ads: New files.
14624 2004-03-18  Vincent Celier  <celier@gnat.com>
14626         * prj.adb (Reset): Reset hash table Files_Htable
14628         * prj-env.adb (Source_Paths, Object_Paths): New tables.
14629         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
14630         the procedures Add_To_Path_File.
14631         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
14632         making sure that each directory is present only once and, for object
14633         dirs, when a directory already present is added, the duplicate is
14634         removed and the directory is always put as the last in the table.
14635         Write the path files at the end of these accumulations.
14637         * prj-nmsc.adb (Record_Source): Add source file name in hash table
14638         Files_Htable for all sources.
14640         * prj-proc.adb (Process): Remove restrictions between not directly
14641         related extending projects.
14643 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
14645         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
14646         (Find_Sources): Minor speed optimization.
14648         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
14649         parameter Trusted_Mode.
14651 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
14653         * scn.adb (Determine_License): Take into account a degenerated case
14654         when the source contains only comments.
14656 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
14658         * sem_warn.adb (Check_References): For a warning on a selected
14659         component that does not come from source, locate an uninitialized
14660         component of the record type to produce a more precise error message.
14662 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
14664         * 3zsoccon.ads: Fix multicast options.
14666         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
14667         in the spec.
14669 2004-03-15  Robert Dewar  <dewar@gnat.com>
14671         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
14672         pragma used for a private type.
14674         * lib-xref.adb (Generate_Reference): Do not generate warning if
14675         reference is in a different unit from the pragma Unreferenced.
14677         * 5vtpopde.adb: Minor reformatting
14678         Fix casing of To_Task_ID
14680         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
14681         flag if we have an unchecked conversion to an access type in the same
14682         unit.
14684 2004-03-15  Geert Bosch  <bosch@gnat.com>
14686         * a-ngcoty.adb (Modulus): In alternate formula for large real or
14687         imaginary parts, use Double precision throughout.
14689         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
14690         we want to be able to compile run-time with -gnata for testing, but
14691         this may also be instantiated in user code that is compiled with -gnata.
14693 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
14695         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
14696         codes. Having a separate type for this is useful to enforce consistency
14697         throughout the various run-time units.
14698         (Exception_Data): Use Exception_Code for Import_Code.
14700         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
14701         Natural and Integer in various places.
14702         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
14703         with the severity bits masked off.
14704         (Register_VMS_Exception): Handle the additional exception data pointer
14705         argument.
14707         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
14708         component, now reflected by an exported accessor.
14709         (is_handled_by): New routine to compute whether the propagated
14710         occurrence matches some handler choice specification. Extracted out of
14711         get_action_description_for, and expanded to take care of the VMS
14712         specifities.
14713         (get_action_description_for): Use is_handled_by instead of an explicit
14714         complex condition to decide if the current choice at hand catches the
14715         propagated occurrence.
14717         * raise.h (Exception_Code): New type for C.
14719         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
14720         System.Standard_Library.Exception_Code, to allow references from the
14721         pragma import/export expander.
14723         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
14724         New accessors to allow easy access to GNAT exception data
14725         characteristics.
14726         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
14727         redundant Handled_By_Others component, helper for the personality
14728         routine which will now be able to call the appropriate exception data
14729         accessor instead.
14731         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
14732         component of Standard_Exception_Type to be the closest possible to
14733         Exception_Code in System.Standard_Library, that we cannot get at this
14734         point. Expand a ??? comment to notify that this type node should
14735         probably be rewritten later on.
14737         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
14738         registration call to include a pointer to the exception object in the
14739         arguments.
14741         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
14742         instead of int and explicit bitmasks.
14744 2004-03-15  Vincent Celier  <celier@gnat.com>
14746         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
14747         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
14749         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
14750         longer needed now that it is in the spec of
14751         System.Tasking.Task_Attributes.
14753         * adaint.h, adaint.c: (__gnat_create_output_file): New function
14755         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
14757         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
14759         * make.adb (Gnatmake): Do not check the executable suffix; it is being
14760         taken care of in Scan_Make_Arg.
14761         (Scan_Make_Arg): Add the executable suffix only if the argument
14762         following -o, in canonical case, does not end with the executable
14763         suffix.  When in verbose mode and executable file name does not end
14764         with executable suffix, output the executable name, in canonical case.
14766         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
14767         to avoid warnings when instantiating Ada.Task_Attributes.
14768         Minor reformating.
14770         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
14771         in the correct order.
14773         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
14774         redirect standard output and error to a file for the invocation of the
14775         compiler, then read the file.
14777         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
14778         directory, instead of the Value.
14779         (Find_Source_Dirs): Remove useless code & comments.
14781 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
14783         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
14784         tagged type is inherited, and the parent operation is not frozen yet,
14785         force generation of a freeze node for the inherited operation, so the
14786         corresponding dispatch entry is properly initialized.
14787         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
14788         when looking for user-defined equality operation.
14790         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
14791         boolean when locating primitive equality of tagged component.
14793         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
14794         bit-aligned field and the right-hand side a string literal, introduce
14795         a temporary before expanding assignment into a loop.
14797         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
14798         priority in full, to ensure that any expanded subepxressions of it are
14799         elaborated in the scope of the init_proc.
14801         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
14802         after object declaration, skipping over code that may have been
14803         generated for validity checks.
14805         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
14806         discriminants, ignore the known discriminants of its full view, if
14807         any, to check legality.
14809         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
14810         component if type has unknown discriminants.
14811         (Analyze_Private_Extension_Declaration): Discriminant constraint is
14812         null if type has unknown discriminants.
14814         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
14815         for end label when present.
14817         * s-fileio.adb (Open): When called with a C_Stream, use given name for
14818         temporary file, rather than an empty string.
14820 2004-03-15  Ed Falis  <falis@gnat.com>
14822         * s-thread.adb: Removed, no longer used.
14824 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14826         * decl.c (target.h): Now include.
14827         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
14828         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
14829         (validate_size): For POINTER_TYPE, get smallest size permitted on
14830         machine.
14832         * fe.h: Sort Einfo decls and add Set_Mechanism.
14834         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
14835         (ada/decl.o): Depends on target.h.
14837         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
14838         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
14840 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
14842         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
14844         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
14845         Insert_Dereference_Action when rewriting an implicit dereference into
14846         an explicit one, this will be taken care of during expansion of the
14847         explicit dereference.
14848         (Expand_N_Slice): Same. Always do the rewriting, even for the case
14849         of non-packed slices, since the dereference action generated by
14850         expansion of the explicit dereference is needed in any case.
14851         (Expand_N_Selected_Component): When rewriting an implicit dereference,
14852         analyze and resolve the rewritten explicit dereference so it is seen
14853         by the expander.
14854         (Insert_Dereference_Action): This procedure is now called only for the
14855         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
14856         dereferences that do not come from source (including explicit
14857         dereferences resulting from rewriting implicit ones), but do not
14858         recursively insert a check for the dereference nodes contained within
14859         the check.
14860         (Insert_Dereference_Action): Clarify and correct comment.
14862 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
14864         PR ada/14131
14865         Move language detection to the top level.
14866         * config-lang.in: Build by default.
14868 2004-03-05  Robert Dewar  <dewar@gnat.com>
14870         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
14872         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
14873         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
14874         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
14875         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
14876         unchecked conversion to spec to avoid warnings.
14878         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
14879         to Task_ID
14881         * 7stpopsp.adb: Correct casing in To_Task_ID call
14883         * a-strsea.ads, a-strsea.adb: Minor reformatting
14885         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
14887         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
14888         Adjust Max_Msg_Length to be clearly large enough.
14890         * fe.h: Define In_Same_Source_Unit
14892         * osint.adb: Add pragma Warnings Off to suppress warnings
14893         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
14894         aliasing warnings.
14896         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
14898         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
14900         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
14902         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
14904         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
14906         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
14907         node. We now do generate them for gcc back end.
14909         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
14910         warning.
14912         * sinput-c.adb: Fix bad name in header.
14913         Add pragma Warnings Off to suppress aliasing warning.
14915         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
14917         * snames.h, snames.ads, snames.adb: Add entry for pragma
14918         No_Strict_Aliasing.
14920 2004-03-05  Vincent Celier  <celier@gnat.com>
14922         * prj-com.ads: Add hash table Files_Htable to check when a file name
14923         is already a source of another project.
14925         * prj-nmsc.adb (Record_Source): Before recording a new source, check
14926         if its file name is not already a source of another project. Report an
14927         error if it is.
14929         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
14930         source file name, call gnatpp with all the sources of the main project.
14932         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
14933         of file names.
14935         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
14936         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
14937         /RUNTIME_SYSTEM=, converted to --RTS=
14938         /NOTABS, converted to -notabs
14940 2004-03-05  Pascal Obry  <obry@gnat.com>
14942         * make.adb: Minor reformatting.
14944 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
14946         Part of implemention of AI-262.
14947         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
14949         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
14950         procedure.
14952         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
14953         when component type is a partially constrained class-wide subtype.
14954         (Constrain_Discriminated_Type): If parent type has unknown
14955         discriminants, a constraint is illegal, even if full view has
14956         discriminants.
14957         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
14958         with unknown discriminants whose full view is a discriminated record.
14960         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
14961         flag, to handle properly derivations of tagged types with unknown
14962         discriminants.
14963         (Analyze_Package_Spec, Analyze_Package_Body): Install
14964         Private_With_Clauses before analyzing private part or body.
14966         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
14967         Has_Discriminants can be true for a given type (documentation).
14969 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
14971         * s-restri.ads: Fix license (GPL->GMGPL).
14973         * s-tassta.adb: Minor reformatting.
14975         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
14976         by calls to Exit_One_ATC_Level, since additional clean up is performed
14977         by this function.
14979         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
14980         by calls to Exit_One_ATC_Level, since additional clean up is performed
14981         by this function.
14983 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14985         * trans.c: Reflect GCC changes to fix bootstrap problem.
14986         Add warning for suspicious aliasing unchecked conversion.
14988 2004-03-05  GNAT Script  <nobody@gnat.com>
14990         * Make-lang.in: Makefile automatically updated
14992 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
14994         * ali.adb (Read_Instantiation_Instance): Do not modify the
14995         current_file_num when reading information about instantiations, since
14996         this corrupts files in later references.
14998 2004-03-02  Vincent Celier  <celier@gnat.com>
15000         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
15001         before checking if it is read-only.
15003         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
15004         of SRC_DIRS and eliminate duplicates.
15006         * gprcmd.adb: Replace command "path" with command "path_sep" to return
15007         the path separator.
15008         (Usage): Document path_sep
15010         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
15011         C++ compiler. No need for a script.
15012         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
15013         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
15014         subst.
15016         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
15017         where there are Ada sources.
15018         (Set_Ada_Paths): Only add to the include path the source dirs of project
15019         with Ada sources.
15020         (Add_To_Path): Add the Display_Values of the directories, not their
15021         Values.
15023         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
15024         data.
15026         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
15027         is not No_Name.
15028         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
15029         Value is canonicalized.
15030         (Language_Independent_Check): Do not copy Value to Display_Value when
15031         canonicalizing Value.
15033         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
15034         path to find limited with cycles.
15035         (Parse_Single_Project): Use canonical cased path to find the end of a
15036         with cycle.
15038 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
15040         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
15041         and not a child unit.
15043         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
15044         appear in a with_clause.
15046         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
15047         only happen in type_annotate mode, do not try to elaborate it.
15049         * exp_util.adb (Force_Evaluation): If expression is a selected
15050         component on the left of an assignment, use a renaming rather than a
15051         temporary to remove side effects.
15053         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
15054         inlined instance body, which is analyzed before the end of the
15055         enclosing scope.
15057 2004-03-02  Robert Dewar  <dewar@gnat.com>
15059         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
15060         sem_ch4.adb: Use new feature for substitution of keywords in VMS
15062         * errout.ads, errout.adb: Implement new circuit for substitution of
15063         keywords in VMS.
15065         * sem_case.adb (Analyze_Choices): Place message properly when case is
15066         a subtype reference rather than an explicit range.
15068         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
15070 2004-03-02  Doug Rupp  <rupp@gnat.com>
15072         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
15074 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
15076         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
15078 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15080         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
15081         BLKmode bitfield.
15083 2004-02-25  Robert Dewar  <dewar@gnat.com>
15085         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
15086         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
15087         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
15088         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
15089         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
15090         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
15091         the defining instance of the type to avoid aliasing problems.
15092         Fix copyright header.  Fix bad comments in package header.
15094         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
15096 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
15098         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
15099         rewritten as references when aliased through an address clause.
15101         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
15102         whether call can be interpreted as an indirect call to the result of a
15103         parameterless function call returning an access subprogram.
15105 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
15107         Code clean up:
15108         * exp_ch7.adb (Make_Clean): Remove generation of calls to
15109         Unlock[_Entries], since this is now done by Service_Entries directly.
15111         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
15113         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
15114         Requeue_Call for better code readability. Change spec and update calls:
15115         PO_Service_Entries now unlock the PO on exit.
15116         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
15117         PO_Service_Entries.
15119         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
15121         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
15123 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
15125         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
15126         protected subprogram call and analyzing the result of such expanding
15127         in case when the called protected subprogram is eliminated.
15129         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
15130         names.
15132 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
15134         * Makefile.in: Clean ups.
15136 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
15138         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
15139         protected operations if original subprogram is flagged as eliminated.
15140         (Expand_N_Subprogram_Body): For a protected operation, create
15141         discriminals for next operation before checking whether the operation
15142         is eliminated.
15144         * exp_ch9.adb (Expand_N_Protected_Body,
15145         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
15146         for internal protected operations if the original subprogram is
15147         eliminated.
15149         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
15150         declared in a single protected object.
15152 2004-02-23  Vincent Celier  <celier@gnat.com>
15154         * prj-attr.adb: Make attribute Builder'Executable an associative array,
15155         case insensitive if file names are case insensitive, instead of a
15156         standard associative array.
15158         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
15159         them as case insensitive on platforms where the file names are case
15160         sensitive.
15162         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
15163         project file has already been parsed that canonical path are compared.
15165 2004-02-23  Robert Dewar  <dewar@gnat.com>
15167         * sinput-c.ads: Correct bad unit title in header
15169         * freeze.adb: Minor reformatting
15171 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15173         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
15174         nonaddressable COMPONENT_REF that is removing padding that we are
15175         taking the address of, take the address of the padded record instead
15176         if item is variable size.
15178 2004-02-20  Robert Dewar  <dewar@gnat.com>
15180         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
15182 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
15184         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
15185         itype references for the constrained designated type of a component
15186         whose base type is already frozen.
15188 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
15190         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
15191         avoid GCC warnings.
15193 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
15195         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
15196         identifier for a phantom package that rewrites the formal package
15197         declaration with a box. The Add semantic decorations for the defining
15198         identifier from the original node (that represents the formal package).
15200 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
15202         * Make-lang.in (ada/stamp-sdefault): Use the top level
15203         move-if-change.
15205 2004-02-19  Richard Henderson  <rth@redhat.com>
15207         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
15209 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
15211         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
15212         Scan_ALI can be used for multiple ALI files without reinitializing
15213         between calls.
15215 2004-02-18  Robert Dewar  <dewar@gnat.com>
15217         * debug.adb: Minor reformatting.
15219 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15221         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
15222         to zero if there is an address clause.
15224 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
15226         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
15228 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
15230         * layout.adb (Layout_Component_List): Revise generation of call to
15231         discriminant-checking function to pass selections of all of the type's
15232         discriminants rather than just the variant-controlling discriminant.
15234 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
15236         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
15237         fail in the current setup and triggers spurious system error messages.
15238         Pretend it occurred and failed instead.
15240 2004-02-18  Vincent Celier  <celier@gnat.com>
15242         * bld.adb: Mark FLDFLAGS as saved
15243         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
15244         it is not the root project.  Put each directory to be
15245         extended between double quotes to prevent it to be expanded on Windows.
15246         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
15247         the project file. Set them back to their initial values if they have not
15248         been set in the project file.
15250         * gprcmd.adb: (Gprdebug, Debug): New global variables
15251         (Display_Command): New procedure
15252         (Usage): Document new command "linkopts"
15253         Call Display_Command when env var GPRDEBUG has the value "TRUE"
15254         Implement new command "linkopts"
15255         Remove quotes that may be around arguments for "extend"
15256         Always call Normalize_Pathname with arguments formatted for the platform
15258         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
15259         Change @echo to @$(display) in target clean to be able to clean silently
15261         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
15263         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
15264         canonical case.
15266         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
15267         = Extending_All when current project is an extending all project.
15269         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
15270         set to True only for LINK command, after Unix switch -o.
15271         (Process_Arguments): Set Output_File_Expected to True for LINK command
15272         after Unix switch -o. When Output_File_Expected is True, never add an
15273         extension to a file name.
15275         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
15276         option file name, only to the --for-linker= switch.
15277         (Option_File_Name): If option file name do not end with ".opt", append
15278         "/OPTIONS".
15280 2004-02-18  GNAT Script  <nobody@gnat.com>
15282         * Make-lang.in: Makefile automatically updated
15284 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
15286         * Make-lang.in (stamp-sdefault): Do not depend on
15287         move-if-change.
15289 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
15291         * config-lang.in: Disable Ada by default until probe logic for
15292         a bootstrap Ada compiler can be moved to the top level configure
15293         script.
15295 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
15297         * decl.c (components_to_record): Don't claim that the internal fields
15298         we make to hold the variant parts are semantically addressable, because
15299         they are not.
15301         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
15302         adjust the comment describing the modular type form when we can use it.
15303         (Install_PAT): Account for the Esiz renaming.
15305         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
15306         sc_onstack context indication before raising the exception to which
15307         the signal is mapped. Allows better handling of later signals possibly
15308         triggered by the resumed user code if the exception is handled.
15310 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
15312         * 5zinit.adb: Removed, no longer used.
15314 2004-02-12  Robert Dewar  <dewar@gnat.com>
15316         * ali.adb: Remove separating space between parameters on R line. Makes
15317         format consistent with format used by the binder for Set_Globals call.
15319         * atree.ads, atree.adb: Minor reformatting (new function header format)
15321         * bindgen.adb: Add Run-Time Globals documentation section containing
15322         detailed documentation of the globals passed from the binder file to
15323         the run time.
15325         * gnatls.adb: Minor reformatting
15327         * init.c (__gnat_set_globals): Add note pointing to documentation in
15328         bindgen.
15330         * lib-writ.ads, lib-writ.adb: Remove separating space between
15331         parameters on R line.
15332         Makes format consistent with format used by the binder for Set_Globals
15333         call.
15335         * osint.ads: Add 2004 to copyright notice
15336         Minor reformatting
15338         * snames.ads: Correct capitalization of FIFO_Within_Priorities
15339         Noticed during code reading, documentation issue only
15341         * usage.adb: Remove junk line for obsolete C switch
15342         Noticed during code reading
15344 2004-02-12  Vincent Celier  <celier@gnat.com>
15346         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
15347         extend for each directory, so that multiple /** directories are
15348         extended individually.
15349         (Recursive_Process): Set the default for LANGUAGES to ada
15351         * gprcmd.adb: Define new command "ignore", to do nothing.
15352         Implement new comment "path".
15354         * Makefile.generic: Suppress output when SILENT is set
15355         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
15356         used, so that the correct compiler is invoked.
15357         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
15358         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
15360 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
15362         * Makefile.in: Clean ups and remove obsolete targets.
15364 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
15366         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
15367         predicate declared in exp_util.
15369         * exp_util.adb: Add comments.
15371         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
15372         visibility before compiling context of the subunit.
15374         * sem_res.adb (Check_Parameterless_Call): If the context expects a
15375         value but the name is a procedure, do not attempt to analyze as a call,
15376         in order to obtain more telling diagnostics.
15378         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
15379         'Access on parameterless function calls.
15380         (Normalize_Actuals): For a parameterless function call with missing
15381         actuals, defer diagnostic until resolution of enclosing call.
15383         * sem_util.adb (Wrong_Type): If the context type is an access to
15384         subprogram and the expression is a procedure name, suggest a missing
15385         'attribute.
15387 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
15388             Nathanael Nerode  <neroden@gcc.gnu.org>
15390         PR ada/6637, PR ada/5911
15391         Merge with libada-branch:
15392         * config-lang.in: Build libada only when ada is built.
15394 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
15396         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
15397         for a tagged type, verify that both formals have the same type.
15399         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
15400         temporary when the formal is an in-parameter and the actual a possibly
15401         unaligned slice.
15403         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
15404         when expansion is disabled, to ensure proper name capture with
15405         overloaded literals.  Condition can be of any boolean type, resolve
15406         accordingly.
15408         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
15409         renaming is for a formal subprogram with a default operator name, and
15410         there is a usable operator that is visible at the point of
15411         instantiation.
15413 2004-02-09  Robert Dewar  <dewar@gnat.com>
15415         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
15416         rewrite to ignore errors in ali files, intended to allow tools downward
15417         compatibility with new versions of ali files.
15419         * ali.ads: Add new parameter Ignore_Errors
15421         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
15422         duplicating the error message giving the file with restrictions.
15424         * debug.adb: Add debug flag I for gnatbind
15426         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
15427         operators for the case where the operator is a defining operator.
15429         * exp_ch3.adb: Minor reformatting (new function spec format).
15431         * exp_ch4.adb: Add comment for previous change, and make minor
15432         adjustment to loop to always check for improper loop termination.
15433         Minor reformatting throughout (new function spec format).
15435         * gnatbind.adb: Implement -di debug flag for gnatbind
15437         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
15439         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
15441         * lib-load.adb: Fix bad assertion.
15442         Found by testing and code reading.
15443         Minor reformatting.
15445         * lib-load.ads: Minor reformatting.
15447         * lib-writ.adb: There is only one R line now.
15449         * lib-writ.ads: Add documentation on making downward compatible changes
15450         to ali files so old tools work with new ali files.
15451         There is only one R line now.
15452         Add documentation on format incompatibilities (with special GPS note)
15454         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
15456         * par-load.adb: Minor reformatting
15458         * sem_ch8.adb: Fix to error message from last update
15459         Minor reformatting and restructuring of code from last update
15461         * par-prag.adb, snames.adb, snames.ads, snames.h,
15462         sem_prag.adb: Implement pragma Profile.
15464         * stylesw.adb: Implement -gnatyN switch to turn off all style check
15465         options.
15467         * usage.adb: Add line for -gnatyN switch
15469         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
15471 2004-02-09  Albert Lee  <lee@gnat.com>
15473         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
15475 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
15477         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
15478         slices.
15480         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
15481         is nested in an instance that is not frozen yet, to avoid
15482         order-of-elaboration problems in gigi.
15484         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
15485         body the attribute is legal.
15487 2004-02-09  Robert Dewar  <dewar@gnat.com>
15489         * s-rident.ads: Minor comment correction
15491         * targparm.adb: Remove dependence on uintp completely. There was
15492         always a bug in Make in that it called Targparm before initializing
15493         the Uint package. The old code appeared to get away with this, but
15494         the new code did not! This caused an assertion error in gnatmake.
15496         * targparm.ads: Fix bad comment, restriction pragmas with parameters
15497         are indeed fully supported.
15499 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
15501         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
15503 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
15505         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
15506         with targetm.calls.promote_prototypes.
15508 2004-02-04  Robert Dewar  <dewar@gnat.com>
15510         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
15511         ali.ads, gprcmd.adb: Minor reformatting
15513         * bindgen.adb: Output restrictions string for new style restrictions
15514         handling
15516         * impunit.adb: Add s-rident.ads (System.Rident) and
15517         s-restri (System.Restrictions)
15519         * lib-writ.adb: Fix bug in writing restrictions string (last few
15520         entries wrong)
15522         * s-restri.ads, s-restri.adb: Change name Restrictions to
15523         Run_Time_Restrictions to avoid conflict with package name.
15524         Add circuit to read and acquire run time restrictions.
15526 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
15528         * restrict.ads, restrict.adb: Use the new restriction
15529         No_Task_Attributes_Package instead of the old No_Task_Attributes.
15531         * sem_prag.adb: No_Task_Attributes is a synonym of
15532         No_Task_Attributes_Package.
15534         * snames.ads, snames.adb: New entry for proper handling of
15535         No_Task_Attributes.
15537         * s-rident.ads: Adding restriction No_Task_Attributes_Package
15538         (AI-00249) that supersedes the GNAT specific restriction
15539         No_Task_Attributes.
15541 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
15543         * sem_prag.adb:
15544         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
15545          body, an identifier may be wrapped in an unchecked conversion.
15547 2004-02-04  Vincent Celier  <celier@gnat.com>
15549         * lib-writ.ads: Comment update for the W lines
15551         * bld.adb: (Expression): An empty string list is static
15553         * fname-uf.adb: Minor comment update
15555         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
15557         * gnatbind.adb: Initialize Cumulative_Restrictions with the
15558         restrictions on the target.
15560 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
15562         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
15563         gen_rtx.
15565 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
15567         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
15569 2004-02-02  Vincent Celier  <celier@gnat.com>
15571         * gprcmd.adb (Check_Args): If condition is false, print the invoked
15572         comment before the usage.
15573         Gprcmd: Fail when command is not recognized.
15574         (Usage): Document command "prefix"
15576         * g-md5.adb (Digest): Process last block.
15577         (Update): Do not process last block. Store remaining characters and
15578         length in Context.
15580         * g-md5.ads (Update): Document that several call to update are
15581         equivalent to one call with the concatenated string.
15582         (Context): Add fields to allow new Update behaviour.
15584         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
15585         defaulted to False.
15586         When May_Fail is True and no existing file can be found, return No_File.
15588         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
15589         functions.
15591         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
15592         spec file name instead on the W line.
15594 2004-02-02  Robert Dewar  <dewar@gnat.com>
15596         * ali.adb: Read and acquire info from new format restrictions lines
15598         * bcheck.adb: Add circuits for checking restrictions with parameters
15600         * bindgen.adb: Output dummy restrictions data
15601         To be changed later
15603         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
15604         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
15605         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
15606         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
15607         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
15609         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
15610         the warning message on access to possibly uninitialized variable S)
15611         Minor changes for new restrictions handling.
15613         * gnatbind.adb: Minor reformatting
15614         Minor changes for new restrictions handling
15615         Move circuit for -r processing here from bcheck (cleaner)
15617         * gnatcmd.adb, gnatlink.adb: Minor reformatting
15619         * lib-writ.adb: Output new format restrictions lines
15621         * lib-writ.ads: Document new R format lines for new restrictions
15622         handling.
15624         * s-restri.ads/adb: New files
15626         * Makefile.rtl: Add entry for s-restri.ads/adb
15628         * par-ch3.adb: Fix bad error messages starting with upper case letter
15629         Minor reformatting
15631         * restrict.adb: Major rewrite throughout for new restrictions handling
15632         Major point is to handle restrictions with parameters
15634         * restrict.ads: Major changes in interface to handle restrictions with
15635         parameters. Also generally simplifies setting of restrictions.
15637         * snames.ads/adb: New entry for proper handling of No_Requeue
15639         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
15640         restriction counting.
15641         Other minor changes for new restrictions handling
15643         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
15644         Restriction_Warnings now allows full parameter notation
15645         Major rewrite of Restrictions for new restrictions handling
15647 2004-02-02  Javier Miranda  <miranda@gnat.com>
15649         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
15650         syntax rule for object renaming declarations.
15651         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
15652         component definitions.
15654         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
15655         components.
15656         (Array_Type_Declaration): Give support to access components. In addition
15657         it was also modified to reflect the name of the object in anonymous
15658         array types. The old code did not take into account that it is possible
15659         to have an unconstrained anonymous array with an initial value.
15660         (Check_Or_Process_Discriminants): Allow access discriminant in
15661         non-limited types.
15662         (Process_Discriminants): Allow access discriminant in non-limited types
15663         Initialize the new Access_Definition field in N_Object_Renaming_Decl
15664         node.  Change Ada0Y to Ada 0Y in comments
15666         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
15667         equality operators.
15668         Change Ada0Y to Ada 0Y in comments
15670         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
15671         renamings Change Ada0Y to Ada 0Y in comments
15673         * sem_type.adb (Find_Unique_Type): Give support to the equality
15674         operators for universal access types
15675         Change Ada0Y to Ada 0Y in comments
15677         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
15679         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
15680         field.
15681         (N_Object_Renaming_Declaration): Addition of Access_Definition field
15682         Change Ada0Y to Ada 0Y in comments
15684         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
15685         component definition and object renaming nodes
15686         Change Ada0Y to Ada 0Y in comments
15688 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
15690         * restrict.adb: Use the new restriction identifier
15691         No_Requeue_Statements instead of the old No_Requeue for defining the
15692         restricted profile.
15694         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
15695         No_Requeue_Statements.
15697         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
15698         that supersedes the GNAT specific restriction No_Requeue. The later is
15699         kept for backward compatibility.
15701 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
15703         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
15704         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
15705         pragma and fix incorrect ones.
15707         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
15708         warning if the pragma is redundant.
15710 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
15712         * 5staprop.adb: Add missing 'constant' keywords.
15714         * Makefile.in: use consistent value for SYMLIB on
15715         platforms where libaddr2line is supported.
15717 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15719         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
15720         annotating types.
15722 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
15724         * init.c (__gnat_install_handler): Setup an alternate stack for signal
15725         handlers in the environment thread. This allows proper propagation of
15726         an exception on stack overflows in this thread even when the builtin
15727         ABI stack-checking scheme is used without support for a stack reserve
15728         region.
15730         * utils.c (create_field_decl): Augment the head comment about bitfield
15731         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
15732         here, because the former is not accurate enough at this point.
15733         Let finish_record_type decide instead.
15734         Don't make a bitfield if the field is to be addressable.
15735         Always set a size for the field if the record is packed, to ensure the
15736         checks for bitfield creation are triggered.
15737         (finish_record_type): During last pass over the fields, clear
15738         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
15739         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
15740         from DECL_BIT_FIELD.
15742 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
15744         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
15745         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
15746         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
15748 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15750         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
15752         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
15753         (ZCX_By_Default): Likewise.
15754         (Front_End_ZCX_Support): Likewise.
15756         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
15757         (Initialize_Lock): Mark Level unreferenced.
15758         (Sleep): Mark Reason unreferenced.
15759         (Timed_Sleep): Likewise.
15760         (Wakeup): Likewise.
15761         (Exit_Task): Use Result.
15762         (Check_No_Locks): Mark Self_ID unreferenced.
15764         * 5gtasinf.adb (New_Sproc): Make Attr constant.
15765         (Bound_Thread_Attributes): Make Sproc constant.
15766         (New_Bound_Thread_Attributes): Likewise.
15768 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
15770         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
15771         one-dimensional array an slice assignments, when component type is
15772         controlled.
15774         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
15775         component type is controlled, and control_actions are in effect, use
15776         TSS procedure rather than generating inline code.
15778         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
15779         arrays with controlled components.
15781 2004-01-26  Vincent Celier  <celier@gnat.com>
15783         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
15784         command line for the non VMS case.
15786         * gnatlink.adb (Process_Binder_File): When building object file, if
15787         GNU linker is used, put all object paths between quotes, to prevent ld
15788         error when there are unusual characters (such as '!') in the paths.
15790         * Makefile.generic: When there are sources in Ada and the main is in
15791         C/C++, invoke gnatmake with -B, instead of -z.
15793         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
15794         from VMS_Conversion.
15795         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
15796         specification of argument file on the command line.
15798 2004-01-26  Bernard Banner  <banner@gnat.com>
15800         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
15802 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
15804         * snames.adb: Update copyright notice.
15805         Add info on slice assignment for controlled arrays.
15807 2004-01-23  Robert Dewar  <dewar@gnat.com>
15809         * exp_aggr.adb: Minor reformatting
15811         * exp_ch9.adb: Minor code clean up
15812         Minor reformatting
15813         Fix bad character in comment
15815         PR ada/13471
15816         * targparm.adb (Get_Target_Parameters): Give clean abort error on
15817         unexpected end of file, along with more detailed message.
15819 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15821         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
15822         PAT.
15824         * decl.c (copy_alias_set): New function.
15825         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
15827 2004-01-23  Doug Rupp  <rupp@gnat.com>
15829         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
15830         lib$${file} in case subsequent character is not a separator.
15832 2004-01-23  Vincent Celier  <celier@gnat.com>
15834         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
15835         when the GCC version is at least 3.
15837         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
15838         Remove all "Opt.", to prepare for opt split
15840         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
15841         Extends_All. Set to True when the project parsed is an extending all
15842         project. Fails for importing an extending all project only when the
15843         imported project is an extending all project.
15844         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
15845         depending on the value of Extends_All returned.
15847         * prj-proc.adb (Process): Check that no project shares its object
15848         directory with a project that extends it, directly or indirectly,
15849         including a virtual project.
15850         Check that no project extended by another project shares its object
15851         directory with another also extended project.
15853         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
15854         Kind = N_With_Clause
15856         * prj-tree.ads: Minor reformatting
15857         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
15859 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
15861         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
15862         applies to a type with an incomplete view, use full view in Name of
15863         clause, for consistency with uses of Get_Attribute_Definition_Clause.
15865 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
15867         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
15868         SCHED_RR, since other values are not supported by this policy.
15869         (Initialize): Move initialization of mutex attribute to package
15870         elaboration, to prevent early access to this variable.
15872         * Makefile.in: Remove mention of Makefile.adalib, unused.
15874         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
15875         1ssecsta.ads: Removed, unused.
15877 2004-01-21  Javier Miranda  <miranda@gnat.com>
15879         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
15880         entity if already built in the current scope.
15882         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
15883         reminder in internal scopes. Required for nested limited aggregates.
15885 2004-01-21  Doug Rupp  <rupp@gnat.com>
15887         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
15888         VMS. Replace all occurences of libgnat- and libgnarl- with
15889         libgnat$(hyphen) and libgnarl$(hyphen).
15890         Fixed shared library build problem on VMS.
15892 2004-01-21  Robert Dewar  <dewar@gnat.com>
15894         * mlib-prj.adb: Minor reformatting
15896 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
15898         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
15899         'constant' keywords for declaration of pointers that are not modified.
15901         * exp_pakd.adb: Fix English in comment.
15903 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
15905         PR ada/10889
15906         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
15907         copy all attributes of the parent, including the foreign language
15908         convention.
15910 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
15912         PR ada/10565
15913         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
15914         for 'delay until' statement.
15916 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
15918         * Make-lang.in: Replace $(docdir) with doc.
15919         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
15920         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
15921         to use consistent MAKEINFO rule.
15922         (ada.man, ada.srcman): Dummy entry.
15923         (ADA_INFOFILES): Define.
15924         (ada.info, ada.srcinfo): New rules.
15926 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
15928         * utils.c: Update copyright notice, missed in previous change.
15930 2004-01-19  Vincent Celier  <celier@gnat.com>
15932         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
15933         args if Bind is True. Set First_ALI, if not already done.
15934         (Build_Library): For Stand Alone Libraries, extract from one ALI file
15935         an eventual --RTS switch, for gnatbind, and all backend switches +
15936         --RTS, for linking.
15938 2004-01-19  Robert Dewar  <dewar@gnat.com>
15940         * sem_attr.adb, memtrack.adb: Minor reformatting
15942 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
15944         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
15945         that rename enumeration literals. This is properly done in sem_eval.
15947         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
15948         to functions that rename enumeration literals.
15950         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
15951         functions that rename enumeration literals.
15953 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
15955         * Make-lang.in (utils.o): Depend on target.h.
15956         * utils.c: Include target.h.
15957         (process_attributes): Use targetm.have_named_sections instead
15958         of ASM_OUTPUT_SECTION_NAME.
15960 2004-01-16  Andreas Jaeger  <aj@suse.de>
15962         * Makefile.in: Add $(DESTDIR).
15964 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
15966         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
15967         also when not defining if a Size clause applies. That information is
15968         not to be ignored.
15970 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
15972         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
15973         symbolic links for the shared gnat run time when needed.
15975 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
15977         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
15978         for writing, and terminate with an error message if not.
15980 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
15982         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
15983         warning on an access to subprogram in an instance, when the target
15984         type is declared in the same generic unit.
15985         (Eval_Attribute): If 'access is known to fail accessibility check,
15986         rewrite as a raise statement.
15988 2004-01-15  GNAT Script  <nobody@gnat.com>
15990         * Make-lang.in: Makefile automatically updated
15992 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
15994         * Make-lang.in (ada.srcextra): Dummy entry.
15996 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
15998         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
16000 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
16002         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
16003         components that are initialized with aggregates.
16005 2004-01-13  Vincent Celier  <celier@gnat.com>
16007         * gnatlink.adb (Process_Binder_File): To find directory of shared
16008         libgcc, if "gcc-lib" is not a subdirectory, look for the last
16009         subdirectory "lib" in the path of the shared libgnat or libgnarl.
16011         * make.adb (Gnatmake): If GCC version is at least 3, link with
16012         -shared-libgcc, when there is at least one shared library project.
16014         * opt.ads (GCC_Version): New integer constant.
16016         * adaint.c (get_gcc_version): New function.
16018 2004-01-13  Robert Dewar  <dewar@gnat.com>
16020         * sem_dist.adb, sem_res.adb, sem_util.adb,
16021         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
16022         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
16024 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
16026         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
16027         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
16028         declarations.
16030 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
16032         * misc.c: Remove trailing spaces.
16033         Update copyright notice missed in previous change.
16035         PR ada/13572
16036         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
16037         prefix/share/make
16039         * Makefile.generic: Update copyright.
16040         Add license notice.
16042         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
16043         of prefix/share/make.
16045         * Makefile.prolog: Update copyright.
16046         Add license notice.
16048 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
16050         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
16051         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
16052         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
16053         instead of String.
16055         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
16056         signature.
16058 2004-01-12  Javier Miranda  <miranda@gnat.com>
16060         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
16061         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
16062         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
16063         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
16064         Component_Definition node.
16066 2004-01-12  Ed Falis  <falis@gnat.com>
16068         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
16070 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
16072         * link.c: Change default libgnat kind to STATIC for FreeBSD.
16074 2004-01-12  Bernard Banner  <banner@gnat.com>
16076         * Makefile.in: map 86numaux to a-numaux for x86_64
16078 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
16080         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
16081         generated to rename a generic actual, go to the actual itself, the
16082         subtype is not a user-visible entity.
16084         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
16085         part is a private subtype, reset the visibility of its full view, if
16086         any, to be consistent.
16088         PR ada/13417
16089         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
16090         to use a generic package G as a formal package for another generic
16091         declared within G.
16093 2004-01-12  Robert Dewar  <dewar@gnat.com>
16095         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
16097         * usage.adb: Remove mention of obsolete -gnatwb switch
16098         Noticed during code reading
16100 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
16102         * 1ssecsta.adb: Minor changes for -gnatwa warnings
16104 2004-01-12  GNAT Script  <nobody@gnat.com>
16106         * Make-lang.in: Makefile automatically updated
16108 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
16110         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
16112 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16114         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
16116 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
16118         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
16119         Update comment and copyright date.
16120         * stamp-xgnatug: Delete.
16122 2004-01-05  Robert Dewar  <dewar@gnat.com>
16124         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
16125         be modified by the binder generated main program if the -D switch is
16126         used.
16128         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
16129         imported functions (since now we expect this to be done for imported
16130         functions)
16132         * 5vtaprop.adb: Add several ??? for sections requiring more comments
16133         Minor reformatting throughout
16135         * 5zinit.adb: Minor reformatting
16136         Add 2004 to copyright date
16137         Minor changes to avoid -gnatwa warnings
16138         Correct some instances of using OR instead of OR ELSE (noted while
16139         doing reformatting)
16141         * sprint.adb: Minor updates to avoid -gnatwa warnings
16143         * s-secsta.ads, s-secsta.adb:
16144         (SS_Get_Max): New function to obtain high water mark for ss stack
16145         Default_Secondary_Stack is not a constant since it may be modified by
16146         the binder generated main program if the -D switch is used.
16148         * switch-b.adb: New -Dnnn switch for binder
16150         * switch-c.adb:
16151         Make -gnatg imply all warnings currently in -gnatwa
16153         * vms_conv.adb: Minor reformatting
16154         Add 2004 to copyright notice
16155         Add 2004 to printed copyright notice
16157         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
16158         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
16159         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
16160         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
16161         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
16162         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
16163         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
16164         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
16165         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
16166         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
16167         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
16168         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
16169         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
16170         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
16171         checks.adb, clean.adb, cstand.adb, einfo.ads,
16172         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
16173         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
16174         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
16175         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
16176         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
16177         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
16178         Minor reformatting and code clean ups.
16179         Minor changes to prevent -gnatwa warnings
16181         * ali.adb: Minor reformatting and cleanup of code
16182         Acquire new SS indication of secondary stack use from ali files
16184         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
16185         (since now we expect this to be done for imported functions)
16187         * bindgen.adb: Generate call to modify default secondary stack size if
16188         -Dnnn switch given
16190         * bindusg.adb: Add line for new -D switch
16192         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
16193         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
16194         Add circuitry for both records and arrays to avoid gigi
16195         processing if the type involved has non-bit-aligned components
16197         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
16198         N_String_Literal node always references an E_String_Literal_Subtype
16199         entity. This may not be true in the future.
16200         (Possible_Bit_Aligned_Component): Move processing of
16201         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
16203         * exp_ch6.adb (Expand_Thread_Body): Pick up
16204         Default_Secondary_Stack_Size as variable so that we get value modified
16205         by possible -Dnnn binder parameter.
16207         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
16208         (Type_May_Have_Bit_Aligned_Components): New function.
16210         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
16211         (Type_May_Have_Bit_Aligned_Components): New function.
16213         * fe.h: (Set_Identifier_Casing): Fix prototype.
16214         Add declaration for Sem_Elim.Eliminate_Error_Msg.
16215         Minor reformatting.
16217         * freeze.adb (Freeze_Entity): Add RM reference to error message about
16218         importing constant atomic/volatile objects.
16219         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
16220         unless explicit Pure_Function pragma given, to avoid insidious bug of
16221         call to non-pure imported function getting eliminated.
16223         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
16224         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
16225         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
16226         Add 2004 to printed copyright notice
16228         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
16229         stack used.
16231         * Makefile.rtl: Add entry for g-sestin.o
16232         g-sestin.ads: New file.
16234         * mdll.adb: Minor changes to avoid -gnatwa warnings
16236         * mlib-tgt.adb: Minor reformatting
16238         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
16239         New switch Sec_Stack_Used (GNAT, GNATBIND)
16240         Make Default_Secondary_Stack_Size a variable instead of a constant,
16241         so that it can be modified by the new -Dnnn bind switch.
16243         * rtsfind.adb (Load_Fail): Give full error message in configurable
16244         run-time mode if all_errors mode is set. This was not done in the case
16245         of a file not found, which was an oversight.
16246         Note if secondary stack unit is used by compiler.
16248         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
16249         ineffective elaborate all pragmas on non-visible packages (this
16250         happened when a renamed subprogram was called). Now the elaborate all
16251         always goes on the package containing the renaming rather than the one
16252         containing the renamed subprogram.
16254         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
16255         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
16257         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
16258         has an Etype that references an E_String_Literal.
16259         (Eval_String_Literal): Avoid assumption that N_String_Literal node
16260         always references an E_String_Literal_Subtype entity. This may not
16261         be true in the future.
16263         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
16264         pragma location.
16266         * sem_res.adb (Resolve): Specialize msg for function name used in proc
16267         call.
16269 2004-01-05  Ed Falis  <falis@gnat.com>
16271         * g-debuti.adb: Replaced direct boolean operator with short-circuit
16272         form.
16274 2004-01-05  Vincent Celier  <celier@gnat.com>
16276         * bld.adb: Minor comment updates
16277         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
16278         of Item_Name).
16280         * make.adb (Gnatmake): Special process for files to compile/check when
16281         -B is specified. Fail when there are only foreign mains in attribute
16282         Main of the project file and -B is not specified. Do not skip bind/link
16283         steps when -B is specified.
16285         * makeusg.adb: Document new switch -B
16287         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
16289         * switch-m.adb: (Scan_Make_Switches): Process -B switch
16291         * vms_data.ads: Add new GNAT PRETTY qualifier
16292         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
16294 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16296         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
16297         case.
16299         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
16300         Set_Identifier_Casing.
16302         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
16303         has size that overflows.
16305 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
16307         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
16308         -gnatwa warning on static condition.
16310 2004-01-05  Doug Rupp  <rupp@gnat.com>
16312         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
16314 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
16316         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
16317         all attributes, including read-only attribute.
16319 2004-01-05  Pascal Obry  <obry@gnat.com>
16321         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
16322         library naming scheme.
16324         * mlib-prj.adb (Build_Library): Generate different names for the static
16325         or dynamic version of the GNAT runtime. This is needed to support the
16326         new shared library naming scheme.
16327         (Process_Binder_File): Add detection of shared library in binder file
16328         based on the new naming scheme.
16330         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
16331         scheme for the shared runtime libraries.
16333         * Makefile.in:
16334         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
16335         scheme.
16336         (install-gnatlib): Do not create symlinks for shared libraries.
16337         (gnatlib-shared-default): Idem.
16338         (gnatlib-shared-dual-win32): New target. Not used for now as the
16339         auto-import feature does not support arrays/records.
16340         (gnatlib-shared-win32): Do not create copy for the shared libraries.
16341         (gnatlib-shared-vms): Fix shared runtime libraries names.
16343         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
16344         dependent runtime shared library name.
16346 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
16348         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
16349         than the object.
16351 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
16353         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
16354         protected objects when allocator has a subtype indication, not a
16355         qualified expression. Note that qualified expressions may have to be
16356         checked when limited aggregates are implemented.
16358         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
16359         pure, emit warning.
16360         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
16361         subprogram is imported, remove warning.
16363 2004-01-05  Geert Bosch  <bosch@gnat.com>
16365         * s-poosiz.adb: Update copyright notice.
16366         (Allocate): Use Task_Lock to protect against concurrent access.
16367         (Deallocate): Likewise.
16369 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
16371         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
16372         comment.
16374 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
16376         * gnat_ug.texi: Force a CVS commit by updating copyright.
16377         * gnat_ug_vxw.texi: Regenerate.
16378         * gnat_ug_wnt.texi: Regenerate.
16379         * gnat_ug_vms.texi: Regenerate.
16380         * gnat_ug_unx.texi: Regenerate.
16382 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
16384         * trans.c: Remove uses of "register" specifier in
16385         declarations of local variables.
16387 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
16389         * stamp-xgnatug: New stamp file.
16390         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
16391         (ada/doctools/xgnatug): Add $(build_exeext).
16392         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
16393         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
16395 2003-12-17  Ed Falis  <falis@gnat.com>
16397         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
16398         eliminate warning.
16400         * a-exextr.adb: Add context clause for
16401         Ada.Exceptions.Last_Chance_Handler.
16403 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
16405         * cstand.adb (Create_Standard): Change the way how the declaration of
16406         the Duration type is created (making it the same way as it is for all
16407         the other standard types).
16409 2003-12-17  Robert Dewar  <dewar@gnat.com>
16411         * s-crtl.ads: Fix header format
16412         Change Pure to Preelaborate
16414 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
16416         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
16417         the expression type only if it is declared in the current unit.
16419         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
16420         are universal and already analyzed, as can occur in constrained
16421         subcomponents that depend on discriminants, when one constraint is a
16422         subtype mark.
16424         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
16425         type Any_Fixed is legal as the argument of a conversion, if only one
16426         fixed-point type is in context.
16428 2003-12-17  GNAT Script  <nobody@gnat.com>
16430         * Make-lang.in: Makefile automatically updated
16432 2003-12-15  Robert Dewar  <dewar@gnat.com>
16434         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
16435         sec stack size.
16437 2003-12-15  Vincent Celier  <celier@gnat.com>
16439         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
16440         (Gnatchop): Do not set failure status when reporting the number of
16441         warnings.
16443 2003-12-15  Doug Rupp  <rupp@gnat.com>
16445         * s-ctrl.ads: New file.
16447         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
16449         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
16450         (GNATBIND_OBJS): Add ada/s-crtl.o.
16452         * Makefile.in [VMS]: Clean up ifeq rules.
16454         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
16455         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
16456         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
16457         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
16458         s-tasdeb.adb: Update copyright.
16459         Import System.CRTL.
16460         Make minor modifications to use System.CRTL declared functions instead
16461         of importing locally.
16463 2003-12-15  GNAT Script  <nobody@gnat.com>
16465         * Make-lang.in: Makefile automatically updated
16467 2003-12-11  Ed Falis  <falis@gnat.com>
16469         * 5zinit.adb: Clean up.
16471         * 5zintman.adb (Notify_Exception): replaced case statement with a call
16472         to __gnat_map_signal, imported from init.c to support
16473         signal -> exception mappings that depend on the vxWorks version.
16475         * init.c:
16476         Created and exported __gnat_map_signal to support signal -> exception
16477         mapping that is dependent on the VxWorks version.
16478         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
16480 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
16482         * 5wosinte.ads: Link with -mthreads switch.
16484 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
16486         * init.c (__gnat_install_handler [NetBSD]): Set
16487         __gnat_handler_installed, as done on all other platforms.
16488         Remove duplicated code.
16490 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
16492         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
16494 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
16496         * sinfo.ads: Fix inconsistent example code in comment.
16498 2003-12-11  Robert Dewar  <dewar@gnat.com>
16500         * a-tiinau.adb: Add a couple of comments
16502         * sem_ch3.adb: Minor reformatting
16504         * sem_prag.adb:
16505         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
16506         Minor reformatting throughout
16508 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
16510         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
16511         bounds of a loop, create a separate block in order to generate proper
16512         cleanup actions to prevent memory leaks.
16514         * sem_res.adb (Resolve_Call): After a call to
16515         Establish_Transient_Scope, the call may be rewritten and relocated, in
16516         which case no further processing is needed.
16518         * sem_util.adb: (Wrong_Type): Refine previous fix.
16519          Fixes ACATS regressions.
16521         PR ada/13353
16523         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
16524         be inlined.
16526 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
16528         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
16529         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
16530         obsolete files.
16532         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
16533         (rts-zfp): Ditto.
16535 2003-12-08  Robert Dewar  <dewar@gnat.com>
16537         * 7sintman.adb: Minor reformatting
16539         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
16540         standard linker options to get standard libraries linked. We now plan
16541         to provide dummy versions of these libraries to match the appropriate
16542         configurable run-time (e.g. if a library is not needed at all, provide
16543         a dummy empty library).
16545         * targparm.ads: Configurable_Run_Time mode no longer affects linker
16546         options (-L parameters and standard libraries). What we plan to do is
16547         to provide dummy libraries where the libraries are not required.
16549         * gnatbind.adb: Minor comment improvement
16551 2003-12-08  Javier Miranda  <miranda@gnat.com>
16553         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
16554         aggregate in the parent. Otherwise constants with limited aggregates
16555         are not supported. Add new formal to pass the component type (Ctype).
16556         It is required to call the corresponding IP subprogram in case of
16557         default initialized components.
16558         (Gen_Assign): In case of default-initialized component, generate a
16559         call to the IP subprogram associated with the component.
16560         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
16561         of aggregate with default initialized components.
16562         (Has_Default_Init_Comps): Improve implementation to recursively check
16563         all the present expressions.
16565         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
16566         to indicate that the initialization call corresponds to a
16567         default-initialized component of an aggregate.
16568         In case of default initialized aggregate with tasks this parameter is
16569         used to generate a null string (this is just a workaround that must be
16570         improved later). In case of discriminants, this parameter is used to
16571         generate a selected component node that gives access to the discriminant
16572         value.
16574         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
16575         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
16576         allocated aggregates with default-initialized components.
16578         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
16579         the box notation is used in positional aggregates.
16581 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
16583         * lib.ads: Fix typo in comment
16585 2003-12-08  Vincent Celier  <celier@gnat.com>
16587         * prj.adb (Project_Empty): New component Unkept_Comments
16588         (Scan): Remove procedure; moved to Prj.Err.
16590         * prj.ads (Project_Data): New Boolean component Unkept_Comments
16591         (Scan): Remove procedure; moved to Prj.Err.
16593         * prj-dect.adb: Manage comments for the different declarations.
16595         * prj-part.adb (With_Record): New component Node
16596         (Parse): New Boolean parameter Store_Comments, defaulted to False.
16597         Set the scanner to return ends of line and comments as tokens, if
16598         Store_Comments is True.
16599         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
16600         comments are associated with these nodes. Store the node IDs in the
16601         With_Records.
16602         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
16603         With_Records.
16604         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
16605         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
16606         current project. Call Tree.Restore afterwards. Set the various nodes
16607         for comment storage (Next_End, End_Of_Line, Previous_Line,
16608         Previous_End).
16610         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
16611         defaulted to False.
16613         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
16614         to False. When Truncated is True, truncate the string, never go to the
16615         next line.
16616         (Write_End_Of_Line_Comment): New procedure
16617         (Print): Process comments for nodes N_With_Clause,
16618         N_Package_Declaration, N_String_Type_Declaration,
16619         N_Attribute_Declaration, N_Typed_Variable_Declaration,
16620         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
16621         Process nodes N_Comment.
16623         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
16624         without comments and there are some comments, set the flag
16625         Unkept_Comments to True.
16626         (Scan): If there are comments, set the flag Unkept_Comments to True and
16627         clear the comments.
16628         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
16629         (Next_End_Nodes: New table
16630         (Comment_Zones_Of): New function
16631         (Scan): New procedure; moved from Prj. Accumulate comments in the
16632         Comments table and set end of line comments, comments after, after end
16633         and before end.
16634         (Add_Comments): New procedure
16635         (Save, Restore, Seset_State): New procedures
16636         (There_Are_Unkept_Comments): New function
16637         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
16638         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
16639         procedures.
16640         (First_Comment_After, First_Comment_After_End): New functions
16641         (First_Comment_Before, First_Comment_Before_End): New functions
16642         (Next_Comment): New function
16643         (End_Of_Line_Comment, Follows_Empty_Line,
16644         Is_Followed_By_Empty_Line): New functions
16645         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
16646         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
16647         (Set_Next_Comment): New procedure
16648         (Default_Project_Node): Associate comment before if the node can store
16649         comments.
16651         * scans.ads (Token_Type): New enumeration value Tok_Comment
16652         (Comment_Id): New global variable
16654         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
16655         defaulted to False.
16656         (Scan): Store position of start of comment. If comments are tokens, set
16657         Comment_Id and set Token to Tok_Comment when scanning a comment.
16658         (Set_Comment_As_Token): New procedure
16660         * sinput-p.adb: Update Copyright notice
16661         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
16662         that no longer exists.
16664 2003-12-08  Javier Miranda  <miranda@gnat.com>
16666         * sem_aggr.adb: Add dependence on Exp_Tss package
16667         Correct typo in comment
16668         (Resolve_Aggregate): In case of array aggregates set the estimated
16669         type of the aggregate before calling resolve. This is needed to know
16670         the name of the corresponding IP in case of limited array aggregates.
16671         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
16672         in case of default initialized array components.
16674         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
16675         types. Required to give support to limited aggregates in generic
16676         formals.
16678 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
16680         * sem_ch3.adb (Check_Initialization): For legality purposes, an
16681         inlined body functions like an instantiation.
16682         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
16683         until bounds are analyzed, to diagnose premature use of type.
16685         * sem_util.adb (Wrong_Type): Improve error message when the type of
16686         the expression is used prematurely.
16688 2003-12-08  GNAT Script  <nobody@gnat.com>
16690         * Make-lang.in: Makefile automatically updated
16692 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
16694         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
16695         they are automatically generated by Make-lang.in and cause nothing but
16696         maintenance troubles.
16698 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
16700         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
16701         version of this unit).
16703 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
16705         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
16706         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
16707         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
16708         the body of System.Interrupt_Management common to several targets.
16709         Update copyright notice when appropriate.
16711         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
16712         constant.
16714         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
16715         to ensure that the kernel fills in the interrupted context structure
16716         before calling a signal handler, which is necessary to be able to
16717         unwind past it. Update the copyright notice.
16719 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
16721         * a-elchha.ads: New file.
16723         * a-elchha.adb: New default last chance handler. Contents taken from
16724         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
16726         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
16727         is moved to a-elchha.adb to provide a target-independent default last
16728         chance handler.
16730         * Makefile.rtl: Add a-elchha.o
16732         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
16734 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
16736         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
16737         declared in an instance, do not inline the call if the instance is not
16738         frozen yet, to prevent order of elaboration problems.
16740         * sem_prag.adb: Add comments for previous fix.
16742 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
16744         * g-table.adb: Use the right variable in Set_Item.
16745         Update copyright notice.
16747 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
16749         * Makefile.in: Remove unused rules.
16751 2003-12-05  Vincent Celier  <celier@gnat.com>
16753         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
16754         -nostdlib. Not needed here after all.
16756 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
16758         PR ada/11724
16760         * adaint.h, adaint.c, g-os_lib.ads:
16761         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
16762         on some platforms (including FreeBSD), it is a 64 bit value.
16763         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
16765 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
16767         * gnatvsn.ads (Library_Version): Now contain only the relevant
16768         version info.
16769         (Verbose_Library_Version): New constant.
16771         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
16772         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
16773         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
16775         * gnatlbr.adb: Clean up: replace Library_Version by
16776         Verbose_Library_Version.
16778         * make.adb, lib-writ.adb, exp_attr.adb:
16779         Clean up: replace Library_Version by Verbose_Library_Version.
16781         * 5lintman.adb: Removed.
16783         * Makefile.in:
16784         Update and simplify computation of LIBRARY_VERSION.
16785         Fix computation of GSMATCH_VERSION.
16786         5lintman.adb is no longer used: replaced by 7sintman.adb.
16788 2003-12-03  Robert Dewar  <dewar@gnat.com>
16790         * exp_ch5.adb:
16791         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
16792         name. Modified to consider small non-bit-packed arrays as troublesome
16793         and in need of component-by-component assigment expansion.
16795 2003-12-03  Vincent Celier  <celier@gnat.com>
16797         * lang-specs.h: Process nostdlib as nostdinc
16799         * back_end.adb: Update Copyright notice
16800         (Scan_Compiler_Arguments): Process -nostdlib directly.
16802 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
16804         * Makefile.in:
16805         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
16806         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
16807         included in HIE_NONE_TARGET_PAIRS.
16809 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
16811         * sem_attr.adb:
16812         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
16813         is legal in an instance, because legality is cheched in the template.
16815         * sem_prag.adb:
16816         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
16817         appplied to an unchecked conversion of a formal parameter.
16819         * sem_warn.adb:
16820         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
16821         variables.
16823 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
16825         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
16826         routines. The second one is new functionality to deal with backtracing
16827         through signal handlers.
16828         (unwind): Split into the two separate subroutines above.
16829         Update the documentation, and deal properly with sizeof (REG) different
16830         from sizeof (void*).
16832 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
16834         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
16835         so that the debugger can reliably access the value of the parameter,
16836         and therefore is able to display the exception name when an exception
16837         breakpoint is reached.
16839 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
16841         * fmap.adb: Fix typo in warning message.
16843         * g-socket.ads, g-socket.adb: Make Free a visible instance of
16844         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
16846 2003-12-01  Vincent Celier  <celier@gnat.com>
16848         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
16849         ther is no Afile.
16850         (Build_Library): Get the switches only if Default_Switches is declared
16851         in package Binder.
16853 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
16855         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
16856         actuals that are indexed components, reanalyze actual to ensure that
16857         packed array references are properly expanded.
16859         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
16860         attempted assignment to a discriminant.
16862 2003-12-01  Robert Dewar  <dewar@gnat.com>
16864         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
16865         reformatting.
16867         * switch-c.adb: Minor reformatting of comments
16869 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
16871         * Makefile.in: Clean ups.
16873 2003-12-01  GNAT Script  <nobody@gnat.com>
16875         * Make-lang.in: Makefile automatically updated
16877 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
16879         * 5wsystem.ads: Disable zero cost exception, not ready yet.
16881 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
16883         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
16884         to force serialization.
16886 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
16888         * g-socket.ads, g-socket.adb:
16889         Clarify documentation of function Stream. Introduce a Free procedure
16890         to release the returned Stream once it becomes unused.
16892         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
16894 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
16896         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
16897         since NT 4 cannot handle timeout values that are too large,
16898         e.g. DWORD'Last - 1.
16900 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
16902         * exp_ch4.adb:
16903         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
16904         in procedure calls and whose expansion must be deferred.
16906         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
16907         is in exp_ch4.
16909         * sem_ch3.adb:
16910         (Build_Derived_Array_Type): Create operator for unconstrained type
16911         if ancestor is unconstrained.
16913 2003-11-26  Vincent Celier  <celier@gnat.com>
16915         * make.adb (Project_Object_Directory): New global variable
16916         (Change_To_Object_Directory): New procedure
16917         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
16918         of Change_Dir directly. Do not change working directory to object
16919         directory of main project after each compilation.
16920         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
16921         directly.
16922         Change to object directory of main project before binding step.
16923         (Initialize): Initialize Project_Object_Directory to No_Project
16925         * mlib-prj.adb:
16926         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
16927         binding a Stand-Alone Library.
16929         * output.adb: Update Copyright notice
16930         (Write_Char): Output buffer when full
16932 2003-11-26  Robert Dewar  <dewar@gnat.com>
16934         * sem_ch13.adb: (Check_Size): Reset size if size is too small
16936         * sem_ch13.ads:
16937         (Check_Size): Fix documentation to include bit-packed array case
16939         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
16941         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
16943         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
16945 2003-11-24  Arnaud Charlet <charlet@act-europe.fr>
16947         PR ada/13142
16948         * utils.c (init_gigi_decls): Change name of built-in setjmp to
16949         __builtin_setjmp, since this is apparently needed by recent
16950         non Ada changes.
16952 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16954         * adadecode.c: Only include ctype.h if not IN_GCC.
16955         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
16957 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
16959         * Makefile.in:
16960         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
16961         signals and interrupts.
16963         * 5zintman.ads: New File.
16965         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
16966         add exception signals to the set of unmasked signals.
16968         * 5ztaprop.adb:
16969         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
16970         between signals and interrupts.
16971         Add to Unblocked_Signal_Mask the set of signals that are in
16972         Keep_Unmasked.
16974         * 7sinmaop.adb:
16975         Adding a check to see whether the Interrupt_ID we want to unmask is in
16976         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
16977         reason is that the index type of the Keep_Unmasked array is not always
16978         Interrupt_ID; it may be a subtype of Interrupt_ID.
16980 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
16982         * exp_util.adb:
16983         (Remove_Side_Effects): Condition constantness of object created for a
16984          an unchecked type conversion on the constantness of the expression
16985          to ensure the correct value for 'Constrained when passing components
16986          of view-converted class-wide objects.
16988 2003-11-24  Robert Dewar  <dewar@gnat.com>
16990         * par-load.adb (Load): Improve handling of misspelled and missing units
16991         Removes several cases of compilation abandoned messages
16993         * lib.adb: (Remove_Unit): New procedure
16995         * lib.ads: (Remove_Unit): New procedure
16997         * lib-load.adb: Minor reformatting
16999 2003-11-24  Vincent Celier  <celier@gnat.com>
17001         * make.adb:
17002         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
17003         (Marking_Label): Label to mark processed source files. Incremented for
17004         each executable.
17005         (Gnatmake): Increase Marking_Labet for each executable
17006         (Is_Marked): Compare against marking label
17007         (Mark): Mark with marking label
17009 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
17011         * s-thread.ads:
17012         Move the declaration of the TSD for System.Threads to System.Soft_Links.
17013         Add some comments.
17015         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
17016         (rts-cert): build a single relocatable object for the run-time lib.
17017         Fix perms.
17019 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
17021         * Make-lang.in:
17022         Use gnatls rather than gcc to obtain the location of GNAT RTL for
17023         crosstools build.
17025 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
17027         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
17028         can not use it as before (that is, as a variable) when dumping it into
17029         the tree file. Add a local variable to store the result of this
17030         function and to be used as the string to be written into the tree.
17032         * scn.adb (Initialize_Scanner): Add comments explaining the recent
17033         changes.
17035         * sinput.adb (Source_First, Source_Last): In case of
17036         Internal_Source_File, replace returning attributes of
17037         Internal_Source_Ptr (which is wrong) with returning attributes of
17038         Internal_Source.
17040 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
17042         * sem_ch3.adb:
17043         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
17044         used for implicit concatenation operators.
17045         Code cleanup.
17047         * sem_elab.adb:
17048         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
17049         task bodies that are in the scope of a Suppress pragma.
17050         (Check_A Call): Use the flag to prevent spurious elaboration checks.
17052         * sinfo.ads, sinfo.adb:
17053         New flag No_Elaboration_Check on function/procedure calls, to properly
17054         suppress checks on calls in task bodies that are within a local suppress
17055         pragma.
17057         * exp_ch4.adb:
17058         (Expand_Concatenate_Other): Use the proper integer type for the
17059         expression for the upper bound, to avoid universal_integer computations
17060         when possible.
17062 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
17064         * .cvsignore: Delete.
17066 2003-11-21  Andreas Schwab  <schwab@suse.de>
17068         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
17070 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
17072         * 5wsystem.ads: Enable zero cost exception.
17074 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
17076         * 5ztiitho.adb: Remove an unreferenced variable.
17078 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
17080         * adaint.c: For FreeBSD, use mkstemp.
17082 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
17084         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
17086 2003-11-21  Robert Dewar  <dewar@gnat.com>
17088         * bld.adb: Remove useless USE of gnatvsn
17090         * gnatchop.adb: Minor reformatting
17091         Clean up version handling to be more consistent
17093         * gnatxref.adb: Minor reformatting
17095         * gprcmd.adb: Minor reformatting
17096         Fix output of copyright to be more consistent with other tools
17098 2003-11-21  Vincent Celier  <celier@gnat.com>
17100         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
17102 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
17104         * atree.adb (Initialize): Add initializations for global variables
17105         used in New_Copy_Tree.
17107         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
17108         Internal_Source_File as the actual).
17109         Put the set of statements creating Any_Character before the set of
17110         statements creating Any_Array to have Any_Character fully initialized
17111         when it is used in creating Any_Array.
17113         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
17114         not call Scan in case if the actual is Internal_Source_File
17115         Add 2003 to copyright note.
17117         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
17118         processing Internal_Source_File.
17120         * types.ads: Add the constant Internal_Source_File representing the
17121         source buffer for artificial source-code-like strings created within
17122         the compiler (the definition of Source_File_Index is changed).
17124 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
17126         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
17127         56system.ads: New file, FreeBSD version.
17129 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
17131         * Make-lang.in (ada.extraclean): Delete.
17133 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
17135         * gnatmem.adb: Clean up verbose output.
17137         * gprcmd.adb: Change copyright to FSF.
17139 2003-11-19  Vincent Celier  <celier@gnat.com>
17141         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
17142         and Version (ignored).
17144         * symbols.ads: (Policy): New type
17145         (Initialize): New parameter Reference, Symbol_Policy and
17146         Library_Version.
17147         Remove parameter Force.
17148         Minor reformatting.
17150         * snames.ads, snames.adbadb: New standard names
17151         Library_Reference_Symbol_File and Library_Symbol_Policy
17153         * mlib-prj.adb:
17154         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
17155         project.
17157         * mlib-tgt.adb:
17158         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
17160         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
17162         * prj.adb: (Project_Empty): New component Symbol_Data
17164         * prj.ads: (Policy, Symbol_Record): New types
17165         (Project_Data): New component Symbol_Data
17167         * prj-attr.adb:
17168         New attributes Library_Symbol_File, Library_Symbol_Policy and
17169         Library_Reference_Symbol_File.
17171         * prj-nmsc.adb:
17172         (Ada_Check): When project is a Stand-Alone library project, process
17173         attribute Library_Symbol_File, Library_Symbol_Policy and
17174         Library_Reference_Symbol_File.
17176         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
17177         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
17178         5sml-tgt.adb (Build_Dynamic_Library): New parameter
17179         Symbol_Data (ignored).
17181         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
17182         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
17183         functions Option_File_Name and Version_String. Set new options of
17184         gnatsym related to symbol file, symbol policy and reference symbol
17185         file.
17187         * 5vsymbol.adb:
17188         Extensive modifications to take into account the reference symbol file,
17189         the symbol policy, the library version and to put in the symbol file the
17190         minor and major IDs.
17192         * bld.adb (Process_Declarative_Items): Put second argument of
17193         gprcmd to_absolute between single quotes, to avoid problems with
17194         Windows.
17196         * bld-io.adb: Update Copyright notice.
17197         (Flush): Remove last character of a line, if it is a back slash, to
17198         avoid make problems.
17200         * gnatsym.adb:
17201         Implement new scheme with reference symbol file and symbol policy.
17203         * g-os_lib.ads: (Is_Directory): Clarify comment
17205 2003-11-19  Robert Dewar  <dewar@gnat.com>
17207         * atree.adb: Move New_Copy_Tree global variables to head of package
17209         * errout.adb: Minor reformatting
17211 2003-11-19  Javier Miranda  <miranda@gnat.com>
17213         * sem_ch4.adb: (Diagnose_Call): Improve error message.
17214         Add reference to Ada0Y (AI-50217)
17216         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
17217         sem_util.adb: Add reference to AI-50217
17219         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
17221         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
17223         * sem_aggr.adb: Complete documentation of AI-287 changes
17225         * par-ch4.adb: Document previous changes.
17227         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
17228         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
17229         Ada0Y (AI-50217)
17231         * exp_aggr.adb: Add references to AI-287 in previous changes
17233 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
17235         * exp_ch6.adb:
17236         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
17237         in the rewriting is the result of an inlined call.
17239         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
17240         parameter is a type conversion, use original node to construct the
17241         post-call assignment, because expression may have been rewritten, e.g.
17242         if it is a packed array.
17244         * sem_attr.adb:
17245         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
17246         body, just as it is in an instance.
17247         Categorization routines
17249         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
17250         Instantiate_Object): Set proper sloc reference for message on missing
17251         actual.
17253 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
17255         * Makefile.in: Add FreeBSD libgnat pairs.
17257         * usage.adb: Fix typo in usage message.
17259 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
17261         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
17262         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
17263         pragma Thread_Body.
17264         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
17266         * s-thread.adb: This file is now a dummy implementation of
17267         System.Thread.
17269 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
17271         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
17273 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
17275         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
17276         instanciation references in the parent type description.
17278 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17280         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
17282         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
17283         TYPE_PRECISION directly from esize.
17285 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
17287         * cstreams.c:
17288         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
17290         * init.c: Initialization routines for FreeBSD
17292         * link.c: Link info for FreeBSD
17294         * sysdep.c: Add the case of FreeBSD
17296 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
17298         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
17299         already called in System.Threads.
17301         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
17302         environment task, as it has been moved to System.Threads.Initialization.
17304 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
17306         * adaint.c (__gnatlib_install_locks): Only reference
17307         __gnat_install_locks on VMS, since other platforms can avoid using
17308         --enable-threads=gnat
17310 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17312         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
17314         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
17315         TYPE_PACKED_ARRAY_TYPE_P.
17316         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
17318         Part of PR ada/12806
17319         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
17320         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
17322 2003-11-17  Vincent Celier  <celier@gnat.com>
17324         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
17325         to False.
17326         Do not set exit status to Failure when Warning is True.
17327         (Gnatchop): Make errors "no compilation units found" and
17328         "no source files written" warnings only.
17330         * make.adb (Gnatmake): When using a project file, set
17331         Look_In_Primary_Dir to False.
17332         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
17333         and Local_Configuration_Pragmas in the project where they are declared
17334         not an extending project which might have inherited them.
17336         * osint.adb (Locate_File): If Name is already an absolute path, do not
17337         look for a directory.
17339         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
17340         -gnats (Check_Syntax) is used, issue only a warning, not an error.
17342         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
17343         in objects of type Variable_Value.
17345         * prj.ads: (Variable_Value): New component Project
17347         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
17348         is in a project extended by Project.
17350         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
17351         Project of Variable_Values to this new parameter value.
17352         (Expression): Set component Project of Variable_Values.
17353         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
17354         Set the component Project in array elements.
17356 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
17358         * errout.adb: (Initialize): Add initialization for error nodes.
17360         * sem_ch12.adb (Initialize): Add missing initializations for
17361         Exchanged_Views and Hidden_Entities.
17363 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
17365         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
17366         already instantiated tree for use in subsequent inlining.
17367         (Analyze_Associations, Instantiate_Formal_Subprogram,
17368         Instantiate_Object): improve error message for mismatch in
17369         instantiations.
17371         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
17372         instantiations of subprograms declared in instances.
17374 2003-11-17  Javier Miranda  <miranda@gnat.com>
17376         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
17377         executed only under the Extensions_Allowed flag.
17379 2003-11-17  Robert Dewar  <dewar@gnat.com>
17381         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
17382         zeroes suppressed.
17383         (Address_Image): Fix bug of returning 0x instead of 0x0
17384         Minor reformatting (function specs).
17386         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
17387         (missed case of 33-63)
17389         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
17391         * s-thread.adb: Add comments for pragma Restriction
17393         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
17394         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
17396 2003-11-17  Ed Falis  <falis@gnat.com>
17398         * s-thread.adb: Added No_Tasking restriction for this implementation.
17400 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
17402         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
17403         instanciation references in the parent type description.
17405 2003-11-17  GNAT Script  <nobody@gnat.com>
17407         * Make-lang.in: Makefile automatically updated
17409 2003-11-16  Jason Merrill  <jason@redhat.com>
17411         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
17412         and TAGS files that include them for each front end.
17414 2003-11-14  Andreas Jaeger  <aj@suse.de>
17416         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
17417         is the canonical version.
17418         * misc.c (gnat_handle_option): Likewise.
17420         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
17422         * 5nsystem.ads: New file for x86_64-linux-gnu.
17424 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
17426         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
17428         * comperr.adb: Fix logic in previous change.
17430 2003-11-13  Vincent Celier  <celier@gnat.com>
17432         * 5bml-tgt.adb (Build_Dynamic_Library): Use
17433         Osint.Include_Dir_Default_Prefix instead of
17434         Sdefault.Include_Dir_Default_Name.
17436         * gnatlbr.adb: Update Copyright notice
17437         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
17438         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
17439         instead of Sdefault.Object_Dir_Default_Name
17441         * gnatlink.adb:
17442         (Process_Binder_File): Never suppress the option following -Xlinker
17444         * mdll-utl.adb:
17445         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
17446         Sdefault.Object_Dir_Default_Name.
17448         * osint.ads, osint.adb:
17449         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
17450         Minor reformatting.
17452         * vms_conv.ads: Minor reformating
17453         Remove GNAT STANDARD and GNAT PSTA
17455         * vms_conv.adb:
17456         Allow GNAT MAKE to have several files on the command line.
17457         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
17458         Sdefault.Object_Dir_Default_Name.
17459         Minor Reformating
17460         Remove data for GNAT STANDARD
17462         * vms_data.ads:
17463         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
17464         Remove data for GNAT STANDARD
17465         Remove options and documentation for -gnatwb/-gnatwB: these warning
17466         options no longer exist.
17468 2003-11-13  Ed Falis  <falis@gnat.com>
17470         * 5zthrini.adb: (Init_RTS): Made visible
17472         * 5zthrini.adb:
17473         (Register): Removed unnecessary call to taskVarGet that checked whether
17474          an ATSD was already set as a task var for the argument thread.
17476         * s-thread.adb:
17477         Updated comment to reflect that this is a VxWorks version
17478         Added context clause for System.Threads.Initialization
17479         Added call to System.Threads.Initialization.Init_RTS
17481 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
17483         * 5zthrini.adb:
17484         (Init_RTS): New procedure, for the initialization of the run-time lib.
17486         * s-thread.adb:
17487         Remove dependancy on System.Init, so that this file can be used in the
17488         AE653 sequential run-time lib.
17490 2003-11-13  Robert Dewar  <dewar@gnat.com>
17492         * bindgen.adb: Minor reformatting
17494 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
17496         * checks.adb:
17497         (Apply_Discriminant_Check): Do no apply check if target type is derived
17498         from source type with no applicable constraint.
17500         * lib-writ.adb:
17501         (Ensure_System_Dependency): Do not apply the style checks that may have
17502         been specified for the main unit.
17504         * sem_ch8.adb:
17505         (Find_Selected_Component): Further improvement in error message, with
17506         RM reference.
17508         * sem_res.adb:
17509         (Resolve): Handle properly the case of an illegal overloaded protected
17510         procedure.
17512 2003-11-13  Javier Miranda  <miranda@gnat.com>
17514         * exp_aggr.adb:
17515         (Has_Default_Init_Comps): New function to check the presence of
17516         default initialization in an aggregate.
17517         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
17518         extension aggregate of a limited record. In addition, a new formal
17519         was added to do not initialize the record controller (if any) during
17520         this recursive expansion of ancestors.
17521         (Init_Controller): Add support for limited record components.
17522         (Expand_Record_Aggregate): In case of default initialized components
17523         convert the aggregate into a set of assignments.
17525         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
17526         describing the new syntax.
17527         Nothing else needed to be done because this subprogram delegates part of
17528         its work to P_Precord_Or_Array_Component_Association.
17529         (P_Record_Or_Array_Component_Association): Give support to the new
17530         syntax for default initialization of components.
17532         * sem_aggr.adb:
17533         (Resolve_Aggregate): Relax the strictness of the frontend in case of
17534         limited aggregates.
17535         (Resolve_Record_Aggregate): Give support to default initialized
17536         components.
17537         (Get_Value): In case of default initialized components, duplicate
17538         the corresponding default expression (from the record type
17539         declaration). In case of default initialization in the *others*
17540         choice, do not check that all components have the same type.
17541         (Resolve_Extension_Aggregate): Give support to limited extension
17542         aggregates.
17544         * sem_ch3.adb:
17545         (Check_Initialization): Relax the strictness of the front-end in case
17546         of aggregate and extension aggregates. This test is now done in
17547         Get_Value in a per-component manner.
17549         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
17550         expression corresponds to a limited aggregate. This test is now done
17551         in Get_Value.
17553         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
17554         Box_Present flag.
17556         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
17557         present in an N_Component_Association node
17559 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
17561         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
17562         type-conformant entry only if they are homographs.
17564 2003-11-13  GNAT Script  <nobody@gnat.com>
17566         * Make-lang.in: Makefile automatically updated
17568 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17570         * adadecode.c: Use <> form of include for ctype.h.
17571         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
17573 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17575         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
17576         Works around PR middle-end/6552.
17578 2003-11-10  Ed Falis  <falis@gnat.com>
17580         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
17582         * 5zinit.adb: (Install_Handler): Moved back to spec
17583         (Install_Signal_Handlers): Deleted
17585         * 5zthrini.adb: Added context clause for System.Storage_Elements
17586         (Register): Only handles creation of taskVar; initialization moved to
17587         Thread_Body_Enter.
17588         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
17589         Added declaration of environment task secondary stack and
17590         initialization.
17592         * s-thread.adb: Implement bodies for thread body processing
17594         * s-thread.ads:
17595         Added comment identifying supported targets for pragma Thread_Body.
17597 2003-11-10  Pascal Obry  <obry@gnat.com>
17599         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
17600         GNAT_MAX_PATH_LEN.
17602         * s-fileio.adb:
17603         (Open): Properly check for string length before copying into the buffer.
17604         Raises Name_Error if buffer is too small. Note that this was a potential
17605         buffer overflow.
17607 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
17609         * bindgen.adb, comperr.adb: Code clean ups.
17610         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
17612 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
17614         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
17616 2003-11-10  Vincent Celier  <celier@gnat.com>
17618         * gprcmd.adb:
17619         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
17620         installation.
17622         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
17624         * prj.adb: (Project_Empty): Add new boolean component Virtual
17626         * prj.ads: (Virtual_Prefix): New constant string
17627         (Project_Data): New boolean component Virtual
17629         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
17630         a library project is extended by a virtual extending project.
17632         * prj-part.adb:
17633         Modifications throughout to implement extending-all project, including:
17634         (Virtual_Hash, Processed_Hash): New hash tables
17635         (Create_Virtual_Extending_Project): New procedure
17636         (Look_For_Virtual_Projects_For): New procedure
17638         * prj-proc.adb:
17639         (Process): After checking the projects, if main project is an
17640         extending-all project, set the object directory of all virtual extending
17641         project to the object directory of the main project.
17642         Adjust error message when a virtual extending project has the same
17643         object directory as an project being extended.
17644         (Recursive_Process): If name starts with the virtual prefix, set Virtual
17645         to True in the project data.
17647         * prj-tree.adb:
17648         (Default_Project_Node): Add new boolean component Extending_All
17649         (Is_Extending_All): New function
17650         (Set_Is_Extending_All): New procedure
17652         * prj-tree.ads: (Is_Extending_All): New function
17653         (Set_Is_Extending_All): New procedure
17654         (Project_Node_Record): New boolean component Extending_All
17656         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
17658         * vms_data.ads:
17659         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
17661         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
17662         "gprcmd prefix" to define it.
17664 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
17666         * einfo.ads: Fix a typo and remove an extraneous word in comments.
17668         * lib-load.adb:
17669         (Create_Dummy_Package_Unit): Set the scope of the entity for the
17670         created dummy package to Standard_Standard, not to itself, to
17671         defend other parts of the front-end against encoutering a cycle in
17672         the scope chain.
17674         * sem_ch10.adb:
17675         (Analyze_With_Clause): When setting the entities for the successive
17676         N_Expanded_Names that constitute the name of a child unit, do not
17677         attempt to go further than Standard_Standard in the chain of scopes.
17678         This case arises from the placeholder units created by
17679         Create_Dummy_Package_Unit in the case of a with_clause for a
17680         nonexistent child unit.
17682 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
17684         * exp_ch6.adb:
17685         (Expand_Thread_Body): Place subprogram on scope stack, so that new
17686         declarations are given the proper scope.
17688         * sem_ch13.adb:
17689         (Check_Expr_Constants): Reject an expression that contains a constant
17690         created during expansion, and that appears after the object to which
17691         the address clause applies.
17693         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
17694         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
17695         that uses 'Range of a function call with controlled components, so
17696         that the function result can be finalized before starting the loop.
17698         * sem_ch8.adb:
17699         (Find_Selected_Component): Improve error message when prefix is
17700         an implicit dereference of an incomplete type.
17702 2003-11-10  Robert Dewar  <dewar@gnat.com>
17704         * opt.ads: New Print_Standard flag for -gnatS switch
17706         * sem_ch13.adb: Remove some additional checks for unaligned arrays
17708         * cstand.adb (Create_Standard): Print out package standard if -gnatS
17709         switch set
17711         * debug.adb: Update doc for -gnatds to discuss relationship with new
17712         -gnatS flag
17714         * sinfo.adb: Add new field Entity_Or_Associated_Node
17716         * sinfo.ads: Add new field Entity_Or_Associated_Node
17717         Update documentation for Associated_Node and Entity fields to clarify
17718         relationship and usage.
17720         * sprint.adb:
17721         (Write_Id): Properly process Associated_Node field in generic template
17723         * switch-c.adb:
17724         Recognize new -gnatS switch for printing package Standard
17725         This replaces gnatpsta
17727         * usage.adb:
17728         Add line for  new -gnatS switch for printing package Standard
17729         This replaces gnatpsta
17731 2003-11-10  Andreas Jaeger  <aj@suse.de>
17733         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
17734         integer.
17736 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
17738         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
17739         by gnat1.
17741 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
17743         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
17744         no longer needed.
17746         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
17748         * sysdep.c: Add handling of cygwin.
17750 2003-11-10  GNAT Script  <nobody@gnat.com>
17752         * Make-lang.in: Makefile automatically updated
17754 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
17756         PR 12950
17757         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
17758         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
17759         Replace GNAT_ROOT by GCC_ROOT.
17761         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
17763 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
17765         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
17766         and update for changed meaning of GET_MODE_BITSIZE.
17768 2003-11-04  Doug Rupp  <rupp@gnat.com>
17770         * sysdep.c: Problem discovered during IA64 VMS port.
17771         [VMS] #include <unixio.h> to get proper prototypes.
17773         * adaint.c:
17774         Issues discovered/problems fixed during IA64 VMS port.
17775         [VMS] #define _POSIX_EXIT for proper semantics.
17776         [VMS] #include <unixio.h> for proper prototypes.
17777         [VMS] (fork): #define IA64 version.
17778         (__gnat_os_exit): Remove unnecessary VMS specific code.
17780 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17782         Part of PR ada/12806
17784         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
17785         tree, not integer.
17787         * decl.c:
17788         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
17789         not integer.
17791         * targtyps.c, decl.c, misc.c,
17792         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
17793         routines to work around change in FP sizing semantics in GCC.
17795         * utils.c:
17796         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
17798         * gigi.h: (enumerate_modes): New function.
17800         * Make-lang.in: (ada/misc.o): Add real.h.
17802         * misc.c: (enumerate_modes): New function.
17804 2003-11-04  Robert Dewar  <dewar@gnat.com>
17806         * 3vtrasym.adb: Minor reformatting
17807         Use terminology encoded/decoded name, rather than C++ specific notion
17808         of mangling (this is the terminology used throughout GNAT).
17810         * einfo.h: Regenerated
17812         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
17814         * exp_ch6.adb:
17815         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
17817         * par-prag.adb: Add dummy entry for Thread_Body pragma
17819         * rtsfind.ads:
17820         Add entries for System.Threads entities for thread body processing
17822         * sem_attr.adb:
17823         (Analyze_Pragma, Access attributes): Check these are not applied to a
17824         thread body, since this is not permitted
17826         * sem_prag.adb: Add processing for Thread_Body pragma.
17827         Minor comment fix.
17829         * sem_res.adb:
17830         (Resolve_Call): Check for incorrect attempt to call a thread body
17831          procedure with a direct call.
17833         * snames.ads, snames.adb: Add entry for Thread_Body pragma
17834         Add names associated with thread body expansion
17836         * snames.h: Add entry for Thread_Body pragma
17838         * s-thread.adb: Add entries for thread body processing
17839         These are dummy bodies so far
17841         * s-thread.ads: Add documentation on thread body handling.
17842         Add entries for thread body processing.
17844 2003-11-04  Javier Miranda  <miranda@gnat.com>
17846         * sem_ch10.adb:
17847         (Build_Limited_Views): Return after posting an error in case of limited
17848         with_clause on subprograms, generics, instances or generic renamings
17849         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
17850         on subprograms, generics, instances or generic renamings
17852 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
17854         * raise.c (setup_to_install): Correct mistake in last revision; two
17855         arguments out of order.
17857         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
17858         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
17859         notice, missed in previous change.
17860         Remove trailing blanks and other style errors introduced in previous
17861         change.
17863 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
17865         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
17866         rid of the wrapper for a LJM type, ensuring we don't do that if the
17867         field is addressable.  This avoids potential low level type view
17868         mismatches later on, for instance in a by-reference argument passing
17869         process.
17871 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17873         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
17874         aligned at byte boundary.
17876 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
17878         * decl.c (components_to_record): Do not delete the empty variants from
17879         the end of the union type.
17881 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
17883         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
17884         operation for a derived type, an explicit declaration may use a local
17885         subtype of Boolean.
17887 2003-11-04  Vincent Celier  <celier@gnat.com>
17889         * make.adb (Gnatmake): Allow main sources on the command line with a
17890         library project when it is only for compilation (no binding or
17891         linking).
17893 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17895         * Makefile.in: Remove many duplicate variables.
17897 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
17899         * Make-lang.in (dvi): Move targets to $(docobjdir).
17900         (gnat_ug_vms.dvi): Simplify rule and adjust target.
17901         (gnat_ug_wnt.dvi): Likewise.
17902         (gnat_ug_unx.dvi): Likewise.
17903         (gnat_ug_vxw.dvi): Likewise.
17904         (gnat_rm.dvi): Likewise.
17905         (gnat-style.dvi): Likewise.
17907 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
17909         * gigi.h: Missed commit from update for C90.
17911 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
17913         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
17915 2003-10-31  Andreas Schwab  <schwab@suse.de>
17917         * raise.c (get_action_description_for): Fix typo in last change.
17919 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
17921         PR ada/12761
17922         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
17923         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
17925 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
17927         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
17928         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
17929         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
17930         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
17931         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
17933 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
17935         * 3vtrasym.adb:
17936         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
17937         numbers when symbol name is too long.
17939 2003-10-30  Ed Falis  <falis@gnat.com>
17941         * g-signal.ads, g-signal.adb: New files
17943         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
17945         * Makefile.rtl: Introduce GNAT.Signals
17947 2003-10-30  Robert Dewar  <dewar@gnat.com>
17949         * freeze.adb: Minor reformatting
17951         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
17953         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
17954         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
17955         New handling of Id_Check parameter to improve recognition of keywords
17956         used as identifiers.
17957         Update copyright notice to include 2003
17959 2003-10-29  Robert Dewar  <dewar@gnat.com>
17961         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
17962         sem_ch10.adb: Minor reformatting
17964         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
17965         (Expand_Assign_Record): Test right hand side for bit unaligned as well
17967 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
17969         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
17970         Support for TBK$SYMBOLIZE-based symbolic traceback.
17972 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
17974         * exp_disp.adb:
17975         Revert previous change, that did not work well when pragma No_Run_Time
17976         was used in conjunction with a run-time other than ZFP.
17978 2003-10-29  Vincent Celier  <celier@gnat.com>
17980         * make.adb:
17981         (Gnatmake): When there are no Ada mains in attribute Main, disable the
17982          bind and link steps only is switch -z is not used.
17984 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
17986         * Makefile.generic: Remove duplicated setting of CC.
17988         * Makefile.prolog: Set CC to gcc by default, to override make's
17989         default (cc).
17991         * einfo.h: Regenerated.
17993 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
17995         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
17996         current body, after compiling subunit.
17998         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
17999         when in deleted code, because gigi needs properly ordered freeze
18000         actions to annotate types.
18002         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
18003         prevent the premature freezing of record type that contains
18004         subcomponents with a private type that does not yet have a completion.
18006 2003-10-29  Javier Miranda  <miranda@gnat.com>
18008         * sem_ch12.adb:
18009         (Analyze_Package_Instantiation): Check that instances can not be used in
18010         limited with_clauses.
18012         * sem_ch8.adb:
18013         (Analyze_Package_Renaming): Check that limited withed packages cannot
18014         be renamed. Improve text on error messages related to limited
18015         with_clauses.
18017         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
18019         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
18020         Update copyright notice.
18022         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
18023         (Install_Limited_Context_Clauses): New subprogram that isolates all the
18024         checks required for limited context_clauses and installs the limited
18025         view.
18026         (Install_Limited_Withed_Unit): Complete its documentation.
18027         (Analyze_Context): Check that limited with_clauses are only allowed in
18028         package specs.
18029         (Install_Context): Call Install_Limited_Context_Clauses after the
18030         parents have been installed.
18031         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
18032         package as 'From_With_Type'; this mark indicates that the limited view
18033         is installed. Used to check bad usages of limited with_clauses.
18034         (Build_Limited_Views): Do not add shadow entities to the scope's list
18035         of entities. Do not add real entities to the Non_Limited_Views chain.
18036         Improve error notification.
18037         (Remove_Context_Clauses): Remove context clauses in two phases:
18038         limited views first and regular views later (to maintain the
18039         stack model).
18040         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
18041         its visible entities.
18043 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
18045         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
18046         with any type that Is_Fixed_Point_Type.
18048         * sinfo.ads: Fix documentation for Associated_Node attribute.
18050 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
18052         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
18053         both '-gnatc' and '-gnatt' are specified.
18055         * atree.adb (Initialize): Add initialization for Node_Count (set to
18056         zero).
18058 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18060         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
18061         do not consider as Pure.
18063         Part of implementation of function-at-a-time:
18065         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
18066         (tree_transform): Add new argument to build_component_ref.
18067         (tree_transform, case N_Assignment_Statement): Make and return an
18068         EXPR_STMT.
18069         (tree_transform): If result IS_STMT, set flags and return it.
18070         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
18072         * utils2.c (build_simple_component_ref, build_component_ref): Add new
18073         arg, NO_FOLD_P.
18074         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
18075         (build_allocator): Likewise.
18077         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
18078         Add new arg to build_component_ref.
18079         (maybe_unconstrained_array, unchecked_convert): Likewise.
18081         * ada-tree.def (EXPR_STMT): New code.
18083         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
18085         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
18086         build_component_ref calls.
18088         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
18090         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
18091         (build_component_ref): Add new argument, NO_FOLD_P.
18093 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
18095         * Makefile.generic: Add missing substitution on object_deps handling.
18097         PR ada/5909:
18098         * Make-lang.in (check-ada): Enable ACATS test suite.
18100 2003-10-27  Robert Dewar  <dewar@gnat.com>
18102         * exp_ch3.adb:
18103         (Freeze_Array_Type): We do not need an initialization routine for types
18104         derived from String or Wide_String. They should be treated the same
18105         as String and Wide_String themselves. This caused problems with the
18106         use of Initialize_Scalars.
18108         * exp_ch5.adb:
18109         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
18110         composites. This allows use of component clauses that are not byte
18111         aligned.
18113         * sem_prag.adb:
18114         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
18115         is an attempt to pack an array of atomic objects.
18117         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
18119 2003-10-27  Pascal Obry  <obry@gnat.com>
18121         * g-dirope.adb:
18122         (Basename): Check for drive letters in a pathname only on DOS based OS.
18124 2003-10-27  Vincent Celier  <celier@gnat.com>
18126         * make.adb:
18127         (Gnatmake): When unable to change dir to the object dir, display the
18128         content of the parent dir of the obj dir, to try to understand why this
18129         happens.
18131 2003-10-27  GNAT Script  <nobody@gnat.com>
18133         * Make-lang.in: Makefile automatically updated
18135 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
18137         * sem_ch12.adb:
18138         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
18139         should not be done in Save/Restore_Scope_Stack, because it is performed
18140         locally.
18142         * sem_ch8.adb:
18143         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
18144         whether use clauses should be removed/restored.
18146         * sem_ch8.ads:
18147         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
18148         whether use clauses should be removed/restored.
18150 2003-10-26  Andreas Jaeger  <aj@suse.de>
18152         * Makefile.in: Remove duplicated lines.
18154 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
18156         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
18157         minimize the differences with ACT tree.
18159         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
18160         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
18161         Gnatvsn.Gnat_Static_Version_String to reduce differences between
18162         ACT and FSF trees.
18164 2003-10-24  Pascal Obry  <obry@gnat.com>
18166         * adadecode.c (ostrcpy): New function.
18167         (__gnat_decode): Use ostrcpy of strcpy.
18168         (has_prefix): Set first parameter a const.
18169         (has_suffix): Set first parameter a const.
18170         Update copyright notice. Fix source name in header.
18171         Removes a trailing space.
18172         PR ada/12014.
18174 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
18176         * exp_disp.adb:
18177         Remove the test against being in No_Run_Time_Mode before generating a
18178         call to Register_Tag. It is redundant with the test against the
18179         availability of the function Register_Tag.
18181 2003-10-24  Vincent Celier  <celier@gnat.com>
18183         * g-catiio.adb: (Month_Name): Correct spelling of February
18185         * make.adb: (Mains): New package
18186         (Initialize): Call Mains.Delete
18187         (Gnatmake): Check that each main on the command line is a source of a
18188         project file and, if there are several mains, each of them is a source
18189         of the same project file.
18190         (Gnatmake): When a foreign language is specified in attribute Languages,
18191         no main is specified on the command line and attribute Mains is not
18192         empty, only build the Ada main. If there is no Ada main, just compile
18193         the Ada sources and their closure.
18194         (Gnatmake): If a main is specified on the command line with directory
18195         information, check that the source exists and, if it does, that the path
18196         is the actual path of a source of a project.
18198         * prj-env.adb:
18199         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
18200         Full_Path is True, return the full path instead of the simple file name.
18201         (Project_Of): New function
18203         * prj-env.ads:
18204         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
18205         defaulted to False.
18206         (Project_Of): New function
18208 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
18210         * Makefile.generic:
18211         Ensure objects of main project are always checked and rebuilt if needed.
18212         Set CC to gcc by default.
18213         Prepare new handling of link by creating a global archive (not activated
18214         yet).
18216         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
18217         stringt.h: Update copyright notice. Remove trailing blanks.
18218         Fix source name in header.
18220 2003-10-24  Robert Dewar  <dewar@gnat.com>
18222         * sem_ch12.adb: Minor reformatting
18224         * sem_ch3.adb:
18225         Minor reformatting (including new function return style throughout)
18227         * sem_ch3.ads:
18228         Minor reformatting (including new function return style throughout)
18230 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
18232         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
18233         stringt.h: Update copyright notice. Remove trailing blanks.
18234         Fix source name in header.
18236 2003-10-24  GNAT Script  <nobody@gnat.com>
18238         * Make-lang.in: Makefile automatically updated
18240 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
18242         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
18243         stringt.h: Convert to ISO C90 declarations and definitions.
18245 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
18247         PR ada/11978:
18248         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
18249         External_Tag attribute definition clauses.
18251 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
18253         PR ada/7613:
18254         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
18255         child unit, generate a fully qualified name to avoid spurious errors
18256         when the context contains renamings of different child units with
18257         the same simple name.
18259         * exp_dbug.ads: Add documentation on name qualification for renamings
18260         of child units.
18262 2003-10-23  Robert Dewar  <dewar@gnat.com>
18264         * g-regpat.ads, g-regpat.adb: Minor reformatting
18266 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
18268         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
18270 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18272         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
18273         Machine call.
18275         * urealp.h: (Machine): Update to proper definition.
18277 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
18279         * init.c, adaint.c: Minor reformatting.
18281 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
18283         * adaint.c (w32_epoch_offset): Define static const at file level.
18284         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
18285         rather than t_create, t_access in call to GetFileTime. Use union
18286         to convert between FILETIME and  unsigned long long.
18287         (__gnat_file_time_name): Test for invalid file handle.
18288         (__gnat_set_filetime_name): Support win32 targets using
18289         w32api SetFileTime.
18291 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
18293         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
18295         * ctrl_c.c (__gnat_int_handler): Remove declaration.
18297         * decl.c (creat_concat_name):  Const-ify prefix.
18299         * adaint.c: Include ctype.h if __MINGW32__.
18300         (__gnat_readlink): Mark arguments as possibly unused.
18301         (__gnat_symlink): Likewise.
18302         (__gnat_is_symbolic_link): Likewise.
18303         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
18304         declaration
18305         (__gnat_file_time_name): Don't declare struct stat statbuf when
18306         not needed.
18307         (__gnat_is_absolute_path): Add parenthesis around condition of
18308         'if' statement to avoid warning.
18309         (__gnat_plist_init): Specify void as parameter.
18310         (plist_enter): Likewise.
18311         (plist_leave): Likewise.
18312         (remove_handle): Make static. Initialize prev.
18314 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
18316         * Makefile.in: Disable build of gnatpsta. PR ada/10110.
18317         * cstreams.c (__gnat_full_name): Minor improvements and clean up
18318         of previous change.
18320 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18322         * tracebak.c (MAX): Avoid redefinition warning.
18324         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
18325         Change msg to const char *.
18326         (__gnat_install_handler): Remove ss, unused.
18327         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
18328         to const char *.
18329         * cstreams.c (__gnat_full_name): Declare p only when used.
18330         (__gnat_full_name) [sgi] Return buffer.
18332 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
18334         * mingw32.h: New file.
18335         * gnat_wrapper.adb: New file.
18337 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
18339         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
18340         string match a pre compiled regular expression (the corresponding
18341         version of the function working on a raw regular expression)
18342         Fix typos in various comments
18343         Update copyright notice in spec
18345 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
18347         * exp_ch3.adb:
18348         (Component_Needs_Simple_Initialization): Return False when the type is a
18349         packed bit array. Revise spec comments to document this case.
18351         * exp_prag.adb:
18352         (Expand_Pragma_Import): Set any expression on the imported object to
18353         empty to avoid initializing imported objects (in particular this
18354         covers the case of zero-initialization of bit arrays).
18355         Update copyright notice.
18357 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
18359         * sem_ch12.adb:
18360         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
18361         a subunit is missing.
18362         (Instantiate_Subprogram_Body): If body of function is missing, set type
18363         of return expression explicitly in dummy body, to prevent cascaded
18364         errors when a subunit is missing.
18365         Fixes PR 5677.
18367         * sem_ch3.adb:
18368         (Access_Subprogram_Declaration): Verify that return type is valid.
18369         Fixes PR 8693.
18371         * sem_elab.adb:
18372         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
18373         generic.
18374         Fixes PR 12318.
18376         * sem_util.adb:
18377         (Corresponding_Discriminant): If the scope of the discriminant is a
18378         private type without discriminant, use its full view.
18379         Fixes PR 8247.
18381 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
18383         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
18384         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
18385         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
18386         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
18387         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
18388         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
18389         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
18390         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
18391         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
18392         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
18393         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
18394         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
18395         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
18396         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
18397         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
18398         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
18399         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
18400         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
18401         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
18402         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
18403         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
18404         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
18405         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
18406         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
18407         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
18408         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
18409         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
18410         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
18411         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
18412         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
18413         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
18414         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
18415         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
18416         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
18417         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
18418         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
18419         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
18420         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
18421         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
18422         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
18423         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
18424         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
18425         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
18426         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
18427         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
18428         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
18429         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
18430         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
18431         vms_conv.ads, vms_conv.adb, vms_data.ads,
18432         vxaddr2line.adb: Files added. Merge with ACT tree.
18434         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
18435         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
18436         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
18437         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
18438         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
18439         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
18440         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
18441         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
18442         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
18443         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
18445         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
18446         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
18447         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
18448         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
18449         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
18450         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
18451         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
18452         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
18453         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
18454         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
18455         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
18456         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
18457         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
18458         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
18459         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
18460         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
18461         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
18462         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
18463         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
18464         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
18465         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
18466         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
18467         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
18468         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
18469         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
18470         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
18471         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
18472         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
18473         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
18474         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
18475         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
18476         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
18477         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
18478         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
18479         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
18480         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
18481         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
18482         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
18483         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
18484         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
18485         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
18486         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
18487         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
18488         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
18489         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
18490         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
18491         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
18492         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
18493         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
18494         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
18495         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
18496         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
18497         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
18498         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
18499         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
18500         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
18501         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
18502         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
18503         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
18504         checks.adb, checks.ads, cio.c, comperr.adb,
18505         comperr.ads, csets.adb, cstand.adb, cstreams.c,
18506         debug_a.adb, debug_a.ads, debug.adb, decl.c,
18507         einfo.adb, einfo.ads, errout.adb, errout.ads,
18508         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
18509         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
18510         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
18511         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
18512         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
18513         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
18514         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
18515         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
18516         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
18517         fe.h, fmap.adb, fmap.ads, fname.adb,
18518         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
18519         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
18520         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
18521         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
18522         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
18523         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
18524         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
18525         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
18526         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
18527         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
18528         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
18529         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
18530         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
18531         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
18532         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
18533         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
18534         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
18535         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
18536         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
18537         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
18538         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
18539         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
18540         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
18541         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
18542         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
18543         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
18544         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
18545         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
18546         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
18547         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
18548         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
18549         layout.adb, lib.adb, lib.ads, lib-list.adb,
18550         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
18551         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
18552         link.c, live.adb, make.adb, make.ads,
18553         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
18554         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
18555         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
18556         misc.c, mkdir.c, mlib.adb, mlib.ads,
18557         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
18558         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
18559         namet.adb, namet.ads, namet.h, nlists.ads,
18560         nlists.h, nmake.adt, opt.adb, opt.ads,
18561         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
18562         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
18563         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
18564         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
18565         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
18566         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
18567         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
18568         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
18569         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
18570         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
18571         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
18572         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
18573         prj-util.adb, prj-util.ads, raise.c, raise.h,
18574         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
18575         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
18576         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
18577         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
18578         scans.ads, scn.adb, scn.ads, s-crc32.adb,
18579         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
18580         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
18581         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
18582         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
18583         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
18584         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
18585         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
18586         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
18587         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
18588         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
18589         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
18590         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
18591         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
18592         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
18593         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
18594         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
18595         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
18596         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
18597         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
18598         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
18599         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
18600         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
18601         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
18602         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
18603         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
18604         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
18605         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
18606         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
18607         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
18608         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
18609         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
18610         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
18611         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
18612         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
18613         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
18614         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
18615         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
18616         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
18617         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
18618         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
18619         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
18620         stringt.adb, stringt.ads, stringt.h, style.ads,
18621         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
18622         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
18623         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
18624         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
18625         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
18626         table.adb, table.ads, targparm.adb, targparm.ads,
18627         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
18628         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
18629         ttypes.ads, types.ads, types.h, uintp.adb,
18630         uintp.ads, uintp.h, uname.adb, urealp.adb,
18631         urealp.ads, urealp.h, usage.adb, utils2.c,
18632         utils.c, validsw.adb, validsw.ads, widechar.adb,
18633         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
18634         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
18635         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
18636         gnatvsn.ads: Merge with ACT tree.
18638         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
18640 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
18642         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
18643         (gnat_ug_vmx.info): Likewise.
18644         (gnat_ug_vxw.info): Likewise.
18645         (gnat_ug_wnt.info): Likewise.
18646         (gnat_rm.info): Likewise.
18647         (gnat-style.info): Likewise.
18649         * Make-lang.in (ada.install-info): Remove target.
18650         (info): New target.
18651         (install-info): Likewise.
18652         (gnat_ug_unx.info): Simplify rule.
18653         (gnat_ug_vmx.info): Likewise.
18654         (gnat_ug_vxw.info): Likewise.
18655         (gnat_ug_wnt.info): Likewise.
18656         (gnat_rm.info): Likewise.
18657         (gnat-style.info): Likewise.
18659 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
18661         * Make-lang.in: Replace uses of $(target_alias) with
18662         $(target_noncanonical).
18663         * ada/Makefile.in: Remove unused mention of $(target_alias).
18665 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
18667         * Make-lang.in (ada.info): Replace with ...
18668         (info): ... this.
18669         (ada.dvi): Replace with ...
18670         (dvi): ... this.
18672 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
18674         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
18675         initialize dconstp5 and dconstmp5.
18677 2003-09-28  Richard Henderson  <rth@redhat.com>
18679         * trans.c (tree_transform): Update call to expand_asm_operands.
18681 2003-09-21  Richard Henderson  <rth@redhat.com>
18683         * trans.c, utils.c: Revert.
18685 2003-09-21  Richard Henderson  <rth@redhat.com>
18687         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
18688         change to const.
18690 2003-09-04  Michael Matz  <matz@suse.de>
18692         * misc.c: Include "target.h".
18693         * Make-lang.in (misc.o): Add dependency on target.h.
18695 2003-09-03  DJ Delorie  <dj@redhat.com>
18697         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
18698         hook.
18700 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
18702         * Makefile.in: Update substitutions to match changes to
18703         configure.  Use include directives instead of @-insertions
18704         to read in host and target fragments.  Add a rule to
18705         regenerate ada/Makefile.
18707 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
18709         * lang-options.h: Remove.
18710         * lang.opt: Add help text.
18712 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
18714         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
18715         calls.
18717 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
18719         * misc.c (gnat_handle_option): Don't handle filenames.
18721 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
18723         * Make-lang.in: Replace PWD with PWD_COMMAND.
18724         * Makefile.adalib: Likewise.
18725         * Makefile.in: Likewise.
18727 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
18729         * misc.c (gnat_argv): Revert last change.
18730         (gnat_handle_option, gnat_init_options): Copy arguments.
18732 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
18734         * misc.c (gnat_argv): Make const.
18736 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
18738         * misc.c (save_argc, save_argv): Keep non-static!
18740 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
18742         * misc.c (save_argc, save_argv): Make static.
18743         (gnat_init_options): New prototype.
18744         (gnat_init_options): Update.
18746 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
18748         * gnat_ug.texi: Remove unlikely characters from @vars.
18749         * gnat_ug_vms.texi: Regenerate.
18751 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
18753         * misc.c (record_code_position): Adjust emit_note call.
18755 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
18757         * misc.c (gnat_handle_option): Don't check for missing arguments.
18759 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
18761         * utils.c (end_subprog_body): Adjust expand_function_end call.
18763 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
18765         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
18766         Bind_Main_Program.
18768 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
18770         * lang.opt: Declare Ada.
18771         * misc.c (gnat_init_options): Update.
18773 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
18775         * utils.c (begin_subprog_body): Adjust init_function_start call.
18777 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
18779         * Make-lang.in: Update to use options.c and options.h.
18780         * misc.c: Include options.h not aoptions.h.
18781         (gnat_handle_option): Abort on unrecognized switch.
18782         (gnat_init_options): Request Ada switches.
18784 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
18786         * lang.opt: Add -Wall.
18787         * misc.c (gnat_handle_option): Handle it.
18789 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
18791         * misc.c (gnat_handle_option): Fix warnings.
18793 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
18795         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
18797 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
18799         * Make-lang.in: Update to handle command-line options.
18800         * lang.opt: New file.
18801         * misc.c: Include aoptions.h.
18802         (cl_options_count, cl_options): Remove.
18803         (gnat_handle_option): New.
18804         (gnat_decode_option): Remove.
18805         (LANG_HOOKS_DECODE_OPTION): Remove.
18806         (LANG_HOOKS_HANDLE_OPTION): Override.
18808 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
18810         * init.c, misc.c, trans.c, utils.c: Remove dead code.
18812 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
18814         * Makefile.in: Replace "host_canonical" with "host" for autoconf
18815         substitution.
18817 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
18819         * Make-lang.in: Update.
18820         * misc.c: Include opts.h. Define cl_options_count and cl_options.
18822 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
18824         * misc.c (gnat_init_options): Update.
18826 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
18828         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
18829         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
18830         __attribute__ ((__unused__)).
18832 2003-06-05  Jan Hubicka  <jh@suse.cz>
18834         * Make-lang.in:  Add support for stageprofile and stagefeedback
18836 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
18838         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
18839         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
18841 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
18843         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
18844         Remove non-VMS directive.
18845         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
18846         alternatives.
18847         (Examples of gnatls Usage): Remove VMS alternative.
18849 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
18851         PR ada/9953:
18852         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
18853         and turn ZCX_By_Default back to False since the underlying support
18854         is not quite there yet.
18856 2003-06-01  Andreas Jaeger  <aj@suse.de>
18858         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
18859         and ROUND_TYPE_SIZE_UNIT.
18861 2003-05-22   Geert Bosch <bosch@gnat.com>
18863         * gnat_rm.texi : Remove reference to Ada Core Technologies.
18865 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
18867         * trans.c (tree_transform): Use location_t and input_location
18868         directly.
18869         (build_unit_elab): Likewise.
18870         * utils.c (create_label_decl): Likewise.
18872 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
18874         * trans.c (tree_transform, build_unit_elab,
18875         set_lineno): Rename lineno to input_line.
18876         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
18877         end_subprog_body): Likewise.
18878         * utils2.c (build_call_raise): Likewise.
18880 2003-05-01  Laurent Guerby <guerby@acm.org>
18882         PR ada/10546
18883         * 5iosinte.ads: Increase pthread_cond_t size to match recent
18884         LinuxThread and NPTL version, merge from ACT.
18886 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
18888         * utils.c (convert): No need to clear TREE_CST_RTL.
18890 2003-04-23   Geert Bosch <bosch@gnat.com>
18892         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
18893         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
18894         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
18895         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
18896         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
18897         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
18898         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
18899         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
18900         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
18901         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
18902         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
18903         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
18904         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
18905         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
18906         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
18907         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
18908         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
18909         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
18910         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
18911         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
18912         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
18913         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
18914         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
18915         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
18916         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
18917         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
18918         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
18919         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
18920         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
18921         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
18922         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
18923         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
18924         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
18925         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
18926         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
18927         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
18928         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
18929         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
18930         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
18931         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
18932         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
18933         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
18934         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
18935         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
18936         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
18937         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
18938         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
18939         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
18940         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
18941         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
18942         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
18943         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
18944         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
18945         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
18946         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
18947         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
18948         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
18949         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
18950         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
18951         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
18952         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
18953         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
18954         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
18955         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
18956         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
18957         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
18958         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
18959         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
18960         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
18961         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
18962         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
18963         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
18964         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
18965         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
18966         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
18967         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
18968         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
18969         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
18970         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
18971         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
18972         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
18973         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
18974         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
18975         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
18976         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
18977         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
18978         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
18979         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
18980         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
18981         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
18982         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
18983         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
18984         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
18985         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
18986         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
18987         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
18988         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
18989         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
18990         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
18991         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
18992         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
18993         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
18994         ali.adb, ali.ads, alloc.ads, argv.c,
18995         atree.adb, atree.ads, atree.h, aux-io.c,
18996         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
18997         binde.adb, binde.ads, binderr.adb, binderr.ads,
18998         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
18999         butil.adb, butil.ads, cal.c, calendar.ads,
19000         casing.adb, casing.ads, ceinfo.adb, checks.adb,
19001         checks.ads, cio.c, comperr.adb, comperr.ads,
19002         config-lang.in, csets.adb, csets.ads, csinfo.adb,
19003         cstand.adb, cstand.ads, cuintp.c, debug.adb,
19004         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
19005         dec-io.ads, dec.ads, deftarg.c, directio.ads,
19006         einfo.adb, einfo.ads, elists.adb, elists.ads,
19007         elists.h, errno.c, errout.adb, errout.ads,
19008         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
19009         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
19010         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
19011         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
19012         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
19013         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
19014         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
19015         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
19016         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
19017         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
19018         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
19019         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
19020         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
19021         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
19022         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
19023         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
19024         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
19025         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
19026         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
19027         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
19028         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
19029         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
19030         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
19031         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
19032         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
19033         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
19034         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
19035         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
19036         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
19037         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
19038         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
19039         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
19040         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
19041         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
19042         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
19043         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
19044         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
19045         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
19046         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
19047         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
19048         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
19049         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
19050         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
19051         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
19052         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
19053         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
19054         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
19055         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
19056         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
19057         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
19058         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
19059         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
19060         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
19061         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
19062         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
19063         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
19064         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
19065         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
19066         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
19067         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
19068         lib.adb, lib.ads, live.adb, live.ads,
19069         machcode.ads, make.adb, make.ads, makeusg.adb,
19070         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
19071         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
19072         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
19073         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
19074         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
19075         mlib.ads, namet.adb, namet.ads, nlists.adb,
19076         nlists.ads, opt.adb, opt.ads, osint-b.adb,
19077         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
19078         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
19079         osint.ads, output.adb, output.ads, par-ch10.adb,
19080         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
19081         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
19082         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
19083         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
19084         par-tchk.adb, par-util.adb, par.adb, par.ads,
19085         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
19086         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
19087         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
19088         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
19089         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
19090         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
19091         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
19092         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
19093         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
19094         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
19095         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
19096         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
19097         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
19098         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
19099         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
19100         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
19101         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
19102         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
19103         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
19104         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
19105         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
19106         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
19107         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
19108         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
19109         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
19110         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
19111         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
19112         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
19113         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
19114         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
19115         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
19116         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
19117         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
19118         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
19119         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
19120         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
19121         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
19122         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
19123         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
19124         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
19125         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
19126         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
19127         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
19128         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
19129         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
19130         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
19131         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
19132         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
19133         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
19134         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
19135         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
19136         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
19137         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
19138         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
19139         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
19140         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
19141         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
19142         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
19143         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
19144         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
19145         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
19146         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
19147         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
19148         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
19149         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
19150         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
19151         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
19152         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
19153         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
19154         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
19155         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
19156         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
19157         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
19158         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
19159         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
19160         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
19161         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
19162         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
19163         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
19164         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
19165         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
19166         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
19167         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
19168         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
19169         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
19170         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
19171         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
19172         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
19173         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
19174         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
19175         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
19176         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
19177         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
19178         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
19179         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
19180         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
19181         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
19182         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
19183         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
19184         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
19185         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
19186         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
19187         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
19188         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
19189         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
19190         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
19191         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
19192         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
19193         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
19194         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
19195         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
19196         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
19197         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
19198         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
19199         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
19200         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
19201         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
19202         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
19203         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
19204         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
19205         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
19206         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
19207         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
19208         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
19209         snames.ads, sprint.adb, sprint.ads, stand.adb,
19210         stand.ads, stringt.adb, stringt.ads, style.adb,
19211         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
19212         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
19213         switch-m.ads, switch.adb, switch.ads, system.ads,
19214         table.adb, table.ads, targparm.adb, targparm.ads,
19215         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
19216         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
19217         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
19218         ttypef.ads, ttypes.ads, types.adb, types.ads,
19219         uintp.adb, uintp.ads, uname.adb, uname.ads,
19220         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
19221         usage.adb, usage.ads, validsw.adb, validsw.ads,
19222         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
19223         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
19224         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
19225         formatting and other trivial changes from ACT.
19227 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
19229         * gigi.h, utils2.c (build_constructor):
19230         Rename gnat_build_constructor. Use build_constructor.
19231         * decl.c (gnat_to_gnu_entity)
19232         * trans.c (tree_transform, pos_to_constructor, extract_values)
19233         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
19234         (unchecked_convert)
19235         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
19236         (fill_vms_descriptor):
19237         Update to match.
19239 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
19241         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
19242         * misc.c (gnat_tree_size): New function.
19243         (LANG_HOOKS_TREE_SIZE): Override.
19245 2003-04-03  Jason Merrill  <jason@redhat.com>
19247         * misc.c (gnat_adjust_rli): #if 0.
19249 2003-03-31   Geert Bosch <bosch@gnat.com>
19251         PR ada/10020
19252         * link.c : Fix misspelled "const" keyword
19254 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
19256         PR c++/7086
19257         * utils2.c: Adjust calls to put_var_into_stack.
19259 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
19261         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
19263 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
19265         * misc.c (gnat_init): Update for new prototype.
19267 2003-03-05  Olivier Hainque  <hainque@gnat.com>
19269         ada/9961
19270         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
19271         warning, and fix return type for the IN_RTS && !SJLJ case.
19273 2003-03-04  Tom Tromey  <tromey@redhat.com>
19275         * Make-lang.in (ada.tags): New target.
19277 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
19279         ada/9911
19280         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
19281         wrapper, which name remains constant whatever underlying GCC
19282         scheme.
19284         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
19285         the stable interface needed for a-except.
19287 2003-03-02  Andreas Jaeger  <aj@suse.de>
19289         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
19290         gnat_ug_wnt.texi: Regenerate.
19292 2003-03-02  Laurent Guerby <guerby@acm.org>
19294         * Makefile.in (install-gnatlib): Match previous change there
19295         so it works.
19297 2003-02-28  Andreas Schwab  <schwab@suse.de>
19299         * Make-lang.in (install-gnatlib): Change to ada directory before
19300         running make instead of using ada/Makefile directly.
19302 2003-02-18  Ben Elliston  <bje@redhat.com>
19304         Part of fix for PR ada/9406
19305         * gnat_ug.texi (Binder output file): Grammar fix.
19307 2003-02-18  Ben Elliston  <bje@redhat.com>
19309         PR other/7350
19310         * 5qtaprop.adb (Sleep): Fix typo in comment.
19312 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
19314         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
19315         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
19316         gnat_ug_wnt.texi: Regenerate.
19318 2003-02-03  Christian Cornelssen <ccorn@cs.tu-berlin.de>
19320         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
19321         be created if necessary.
19322         (ada.install-common): Let $(DESTDIR)$(bindir) be created
19323         if necessary.  Remove erroneous and redundant gnatchop
19324         installation commands.  Test for gnatdll before attempting
19325         to install it.
19326         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
19327         and gnatdll from all plausible locations.
19329 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
19331         * utils2.c (build_unary_op): Don't check flag_volatile.
19332         * gnat_ug.texi: Remove -fvolatile from example.
19333         * gnat_ug_vxw.texi: Likewise.
19335 2003-01-29  Laurent Guerby <guerby@acm.org>
19337         PR ada/8344
19338         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
19339         * Makefile.in: match previous change.
19340         * Make-lang.in: match previous change.
19342 2003-01-29      Joel Sherrill <joel@OARcorp.com>
19344         * 5rosinte.ads: Add SIGXCPU.
19345         * 5rtpopsp.adb: New file.
19346         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
19347         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
19348         specific file 5rtpopsp.adb.
19349         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
19350         is likely needed for all newlib targets.
19351         * init.c: Add RTEMS specific version of __gnat_initialize().
19353 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19355         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
19357 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19359         * init.c (__gnat_error_handler): Make msg const.
19361         * gmem.c (convert_addresses): Move declaration ...
19362         * adaint.h: ... here.
19363         * adaint.c (convert_addresses): Adapt addrs type to match
19364         prototype.
19366         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
19368 2003-01-24  Andreas Schwab  <schwab@suse.de>
19370         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
19371         size_t to avoid warning.
19373 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
19375         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
19377 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
19379         * gnat_rm.texi: Remove RCS version number.
19381         * ada-tree.h (union lang_tree_node): Add chain_next option.
19383 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
19385         * Make-lang.in (ada.install-info, ada.install-common,
19386         ada.uninstall): Prepend $(DESTDIR) to the destination
19387         directory in all (un)installation commands.
19388         * Makefile.in (install-gnatlib, install-rts): Ditto.
19390 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
19392         * gnat_rm.texi, gnat_ug.texi: Use @copying.
19393         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
19394         gnat_ug_wnt.texi: Regenerate.
19396 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
19398         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
19399         only.
19400         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
19401         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
19402         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
19403         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
19404         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
19405         $(srcdir)/doc/include/gcc-common.texi.
19407 2002-12-15   Geert Bosch <bosch@gnat.com>
19409         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
19411 2002-12-14   Geert Bosch <bosch@gnat.com>
19413         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
19414         case of a body created for a Renaming_As_Body, on which
19415         conformance checks are not performed. Fixes PR ada/5690.
19417 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
19419         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
19420         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
19421         not already included.
19422         * Make-lang.in: Update dependencies.
19424 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
19425         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
19426         solution to buffer overflow bug on GNU/Linux.
19428 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
19429         Closes PR ada/5856 and PR ada/6919 !
19430         * bindgen.adb: Remove all references to Public_Version.
19431         * comperr.adb: Remove all references to Public_Version and
19432         GNATPRO_Version; correct bug reporting instructions.
19433         * comperr.ads: Change to match bug box.
19434         * gnatvsn.ads: Remove all references to Public version and
19435         GNATPRO version.
19437 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
19438         PR ada/6919
19439         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
19440         GNU/Linux.
19442         PR ada/6558
19443         * config-lang.in: Remove diff_excludes.
19445 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
19446         PR ada/8358
19447         * trans.c (gnu_pending_elaboration_lists): New GC root.
19448         (build_unit_elab): Use..
19450 2002-10-30   Geert Bosch <bosch@gnat.com>
19451         PR ada/6558
19452         * misc.c : Include optabs.h
19454         * Make-lang.in (misc.o): Add dependency on optabs.h
19456 2002-10-29   Geert Bosch <bosch@gnat.com>
19457         PR ada/6558
19458         * Make-lang.in (gnatbind): Depend on CONFIG_H
19460 2002-10-29  Geert bosch  <bosch@gnat.com>
19461         PR ada/6558
19462         * misc.c: Unrevert misc.c (1.13)
19464 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
19466         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
19467         maintainership comments.
19469 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
19470         PR ada/5904
19471         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
19472         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
19473         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
19474         7staprop.adb: Correct statements in comments about
19475         maintainership of GNAT.
19477         PR ada/5904
19478         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
19479         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
19480         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
19481         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
19482         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
19483         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
19484         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
19485         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
19486         comments about maintainership of GNAT.
19488         PR ada/6919 (forward port of patch for PR ada/5904)
19489         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
19490         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
19491         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
19492         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
19493         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
19494         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
19495         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
19496         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
19497         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
19498         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
19499         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
19500         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
19501         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
19502         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
19503         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
19504         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
19505         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
19506         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
19507         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
19508         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
19509         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
19510         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
19511         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
19512         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
19513         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
19514         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
19515         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
19516         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
19517         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
19518         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
19519         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
19520         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
19521         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
19522         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
19523         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
19524         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
19525         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
19526         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
19527         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
19528         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
19529         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
19530         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
19531         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
19532         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
19533         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
19534         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
19535         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
19536         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
19537         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
19538         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
19539         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
19540         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
19541         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
19542         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
19543         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
19544         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
19545         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
19546         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
19547         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
19548         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
19549         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
19550         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
19551         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
19552         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
19553         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
19554         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
19555         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
19556         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
19557         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
19558         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
19559         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
19560         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
19561         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
19562         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
19563         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
19564         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
19565         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
19566         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
19567         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
19568         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
19569         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
19570         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
19571         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
19572         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
19573         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
19574         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
19575         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
19576         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
19577         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
19578         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
19579         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
19580         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
19581         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
19582         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
19583         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
19584         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
19585         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
19586         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
19587         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
19588         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
19589         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
19590         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
19591         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
19592         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
19593         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
19594         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
19595         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
19596         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
19597         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
19598         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
19599         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
19600         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
19601         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
19602         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
19603         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
19604         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
19605         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
19606         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
19607         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
19608         par-endh.adb par-labl.adb par-load.adb par-prag.adb
19609         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
19610         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
19611         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
19612         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
19613         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
19614         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
19615         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
19616         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
19617         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
19618         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
19619         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
19620         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
19621         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
19622         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
19623         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
19624         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
19625         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
19626         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
19627         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
19628         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
19629         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
19630         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
19631         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
19632         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
19633         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
19634         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
19635         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
19636         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
19637         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
19638         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
19639         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
19640         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
19641         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
19642         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
19643         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
19644         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
19645         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
19646         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
19647         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
19648         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
19649         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
19650         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
19651         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
19652         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
19653         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
19654         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
19655         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
19656         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
19657         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
19658         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
19659         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
19660         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
19661         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
19662         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
19663         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
19664         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
19665         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
19666         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
19667         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
19668         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
19669         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
19670         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
19671         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
19672         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
19673         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
19674         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
19675         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
19676         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
19677         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
19678         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
19679         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
19680         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
19681         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
19682         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
19683         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
19684         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
19685         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
19686         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
19687         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
19688         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
19689         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
19690         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
19691         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
19692         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
19693         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
19694         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
19695         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
19696         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
19697         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
19698         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
19699         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
19700         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
19701         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
19702         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
19703         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
19704         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
19705         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
19706         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
19707         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
19708         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
19709         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
19710         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
19711         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
19712         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
19713         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
19714         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
19715         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
19716         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
19717         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
19718         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
19719         stringt.ads stringt.h style.adb style.ads stylesw.adb
19720         stylesw.ads switch.adb switch.ads sysdep.c system.ads
19721         table.adb table.ads targparm.adb targparm.ads targtyps.c
19722         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
19723         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
19724         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
19725         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
19726         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
19727         usage.ads utils.c utils2.c validsw.adb validsw.ads
19728         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
19729         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
19730         xtreeprs.adb: Correct statements in comments about maintainership
19731         of GNAT.
19733 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
19735         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
19736         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
19737         * gnatvsn.ads: Gnat_Version_String is now a function.
19738         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
19739         copy the C version_string into a String and return it.
19740         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
19741         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
19742         Remove pragma Ident (Gnat_Version_String).  If this was the
19743         sole use of package Gnatvsn, remove the with statement too.
19744         * gnat1drv.adb: Tweak -gnatv output.
19746 2002-09-17  Richard Henderson  <rth@redhat.com>
19748         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
19749         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
19750         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
19751         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
19752         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
19753         and real_2expN instead of a loop.
19754         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
19755         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
19757 2002-08-25  Andre Leis <a.leis@gmx.net>
19758             David Billinghurst (David.Billinghurst@riotinto.com>
19760         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
19762 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19764         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
19765         Remove $(CONFIG_H) dependency.
19767 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
19769         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
19771 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19773         * adadecode.c (ada_demangle): Use xstrdup in lieu of
19774         xmalloc/strcpy.
19775         * misc.c (gnat_decode_option): Likewise.
19777 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
19779         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
19780         function approach did not work well because of a side effect (the
19781         function call could reallocate the table which was being indexed
19782         using its result). Fixes ada/4851. [RESURRECTED]
19784 2002-07-01  Roger Sayle  <roger@eyesopen.com>
19786         * ada/utils.c (builtin_function): Accept an additional parameter.
19788 2002-06-28  Andreas Jaeger  <aj@suse.de>
19790         PR ada/7144
19791         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
19792         <adi@thur.de>.
19794 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19796         * Makefile.in (SHELL): Set to @SHELL@.
19798 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19800         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
19801         array size calculation.
19803 2002-06-04  Andreas Jaeger  <aj@suse.de>
19805         * Make-lang.in (gnatbind): Readd rule that has been lost in last
19806         patch.
19808 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
19810         Merge from pch-branch:
19812         * config-lang.in (gtfiles): Add ada-tree.h.
19813         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
19814         (SET_TYPE_MODULUS): New.
19815         (SET_TYPE_INDEX): New.
19816         (SET_TYPE_DIGITS_VALUE): New.
19817         (SET_TYPE_RM_SIZE): New.
19818         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
19819         (SET_TYPE_ADA_SIZE): New.
19820         (SET_TYPE_ACTUAL_BOUNDS): New.
19821         (SET_DECL_CONST_CORRESPONDING_VAR): New.
19822         (SET_DECL_ORIGINAL_FIELD): New.
19823         (TREE_LOOP_ID): Correct typo.
19824         * decl.c: Use new macros.
19825         * utils.c: Include debug.h, use new macros.
19826         * utils2.c: Use new macros.
19828         * ada-tree.h: Update all macros for new tree description.
19829         (struct tree_loop_id): New.
19830         (union lang_tree_node): New.
19831         (struct lang_decl): New.
19832         (struct lang_type): New.
19833         * misc.c (gnat_mark_tree): Delete.
19834         (LANG_HOOKS_MARK_TREE): Delete.
19835         * trans.c (tree_transform): No longer any need to cast
19836         for TREE_LOOP_ID.
19838         * utils.c (struct language_function): New dummy structure.
19840         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
19841         (misc.o): Likewise.
19842         (utils.o): Likewise; also gtype-ada.h.
19843         * Make-lang.in (gnat1): Add dependency on s-gtype.
19844         (gnatbind): Add dependency on $(CONFIG_H).
19845         * utils.c: Correct last #include.
19846         (stuct e_stack): Remove unnecessary 'static'.
19847         (mark_e_stack): Remove unused prototype.
19849         * scn-nlit.adb: Remove whitespace after version number to
19850         keep lines under 80 chars.
19851         * snames.adb: Likewise.
19852         * treepr.ads: Likewise.
19854         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
19855         (misc.o): Likewise.
19856         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
19857         * config-lang.in (gtfiles): New.
19858         * decl.c: Use gengtype for roots.
19859         * gigi.h: Use gengtype for roots.
19860         * trans.c: Use gengtype for roots.
19861         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
19863 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
19865         * misc.c (gnat_init): Adjust setting of internal_error_function.
19867 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
19869         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
19870         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
19871         gnat_ug_wnt.texi: Regenerate.
19873 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
19875         * 5ntaprop.adb (with System.OS_Primitives): Remove.
19877         * cstreams.c (max_path_len): Move from here ...
19878         * adaint.c (__gnat_max_path_len): ... to here.
19879         * adaint.c (__gnat_max_path_len): Declare.
19880         * g-dirope.adb (Max_Path): Adjust.
19881         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
19882         * i-cstrea.ads (max_path_len): Adjust.
19883         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
19884         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
19886         * Makefile.in, Make-lang.in: Documentation is now built in
19887         Make-lang.in.  Store Info and generated Texinfo files in the
19888         source directory.
19889         * gnat_ug.texi: Remove CVS keywords, correct version number.
19890         Set file name correctly.
19892         * gnat_ug_*.texi: Add.
19893         * .cvsignore: Ignore generated Texinfo files.
19895 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
19897         * ada.h: Add MI guard macro.
19898         (SUBTYPE): Define constants with an anonymous enum, not static
19899         const variables.
19900         (IN): Cast constants to appropriate type before use.
19902 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
19904         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
19905         (experimental)".
19907 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19909         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
19910         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
19911         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
19912         (ALL_ADA_CFLAGS): Likewise.
19913         (ADA_INCLUDES): Likewise.
19914         Adapt for new working dir.
19915         (GNATBIND): Use Makefile.in version.
19916         (.SUFFIXES): Copy from Makefile.in.
19917         (ada-warn): Define.
19918         (.adb.o, .ads.o): Copy from Makefile.in.
19919         Added $(OUTPUT_OPTION).
19920         (GNAT1_C_OBJS): Moved from Makefile.in.
19921         Prefix with ada subdir.
19922         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
19923         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
19924         Adapt for new working dir.
19925         (EXTRA_GNATBIND_OBJS): Likewise.
19926         (ADA_BACKEND): Moved from Makefile.in.
19927         Renamed to avoid conflict with global BACKEND.
19928         Use that one.
19929         (TARGET_ADA_SRCS): Moved from Makefile.in.
19930         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
19931         Use ADA_BACKEND.
19932         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
19933         (ada_extra_files): Moved from Makefile.in.
19934         Prefix with ada subdir.
19935         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
19936         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
19937         (ada/nmake.ads): Likewise.
19938         (update-sources): Moved from Makefile.in.
19939         Prefix with ada subdir.
19940         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
19941         (ADA_TREE_H): Likewise.
19942         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
19943         (ada/memtrack.o): Likewise.
19944         (ada/adadecode.o): Likewise.
19945         Update dependencies.
19946         (ada/adaint.o): New.
19947         (ada/argv.o): Moved from Makefile.in.
19948         Prefix with ada subdir.
19949         Update dependencies.
19950         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
19951         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
19952         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
19953         Prefix with ada subdir.
19954         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
19955         (GNAT DEPENDENCIES): Regenerate.
19956         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
19957         toplevel Makefile.in.
19958         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
19959         (TARGET_ADA_SRCS): Removed.
19960         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
19961         (GNATBIND_OBJS): Likewise.
19962         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
19963         (BACKEND): Removed.
19964         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
19965         (TREE_H): Likewise.
19966         (ada_extra_files): Likewise.
19967         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
19968         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
19969         (update-sources): Likewise.
19970         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
19971         (ADA_TREE_H): Likewise.
19972         (adadecoce.o): Likewise.
19973         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
19974         (GNAT DEPENDENCIES): Likewise.
19976 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19978         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
19979         * Makefile.in: Likewise.
19981 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19983         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
19984         Restore $(CONFIG_H) and prefix.o dependencies.
19985         (ada.stage[1-4]): Depend on stage?-start.
19987         * Makefile.in (b_gnatb.c): Depend on interfac.o.
19989 2002-05-02  Jim Wilson  <wilson@redhat.com>
19991         * utils.c (finish_record_type): Change record_size to record_type.
19993 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19995         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
19996         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
19997         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
19999 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
20001         * misc.c (gnat_parse_file): Update.
20003 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
20005         * misc.c (gnat_init): Don't set lang_attribute_common.
20007 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
20009         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
20011 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
20013         * gnat_ug.texi: New file.
20015         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
20016         instead of gfdl.texi
20018         * xgnatug.adb, ug_words: New files.
20020         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
20021         gnat_rm and gnat-style manuals.
20023 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
20025         * gigi.h (incomplete_type_error): Remove.
20026         * utils.c (incomplete_type_error): Remove.
20028 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
20030         * trans.c (tree_transform): Add has_scope argument to
20031         expand_start_stmt_expr.
20033 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
20035         * gigi.h (truthvalue_conversion): Rename.
20036         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
20037         * trans.c (tree_transform): Update.
20038         * utils2.c (truthvalue_conversion): Rename, update.
20039         (build_binary_op, build_unary_op): Update.
20041 2002-04-04  Laurent Guerby  <guerby@acm.org>
20043         * make.adb: Implement -margs, remove restriction about file name placement.
20044         * makeusg.adb: Documentation update.
20045         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
20046         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
20048 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
20050         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
20051         (builtin_function): Similarly.
20053 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
20055         * decl.c (gnat_to_gnu_entity): Update.
20056         * gigi.h (mark_addressable): Rename.
20057         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
20058         * trans.c (tree_transform): Update.
20059         * utils.c (create_var_decl): Update.
20060         * util2.c (build_binary_op, build_unary_op,
20061         fill_vms_descriptor): Update.
20062         (mark_addressable): Rename, update.
20064 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
20066         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
20067         Rename.
20068         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
20069         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
20070         * trans.c (tree_transform, convert_with_check): Update.
20071         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
20072         Rename.
20074 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
20076         * gigi.h (finish_incomplete_decl): Rename.
20077         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
20078         * utils.c (gnat_init_decl_processing): Don't set hook.
20079         (finish_incomplete_decl): Rename.
20081 2002-03-29  Andreas Schwab  <schwab@suse.de>
20083         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
20084         directory.
20086 2001-03-28  Robert Dewar <dewar@gnat.com>
20088         * checks.ads:
20089         (Remove_Checks): New procedure
20091         * checks.adb:
20092         (Remove_Checks): New procedure
20094         * exp_util.adb:
20095         Use new Duplicate_Subexpr functions
20096         (Duplicate_Subexpr_No_Checks): New procedure
20097         (Duplicate_Subexpr_No_Checks_Orig): New procedure
20098         (Duplicate_Subexpr): Restore original form (checks duplicated)
20099         (Duplicate_Subexpr): Call Remove_Checks
20101         * exp_util.ads:
20102         (Duplicate_Subexpr_No_Checks): New procedure
20103         (Duplicate_Subexpr_No_Checks_Orig): New procedure
20104         Add 2002 to copyright notice
20106         * sem_util.adb: Use new Duplicate_Subexpr functions
20108         * sem_eval.adb:
20109         (Eval_Indexed_Component): This is the place to call
20110         Constant_Array_Ref and to replace the value. We simply merge
20111         the code of this function in here, since it is now no longer
20112         used elsewhere. This fixes the problem of the back end not
20113         realizing we were clever enough to see that this was
20114         constant.
20115         (Expr_Val): Remove call to Constant_Array_Ref
20116         (Expr_Rep_Val): Remove call to Constant_Array_Ref
20117         Minor reformatting
20118         (Constant_Array_Ref): Deal with string literals (patch
20119         suggested by Zack Weinberg on the gcc list)
20121 2001-03-28  Ed Schonberg <schonber@gnat.com>
20123         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
20124         Duplicate_Subexpr_Move_Checks.
20126         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
20127         Duplicate_Subexpr_Move_Checks.
20129         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
20130         value of array exists before retrieving it (it may a private
20131         protected component in a function).
20133 2002-03-28   Geert Bosch <bosch@gnat.com>
20135         * prj-pp.adb : New file.
20137         * prj-pp.ads : New file.
20139 2002-03-28  Andreas Jaeger  <aj@suse.de>
20141         * Makefile.in (stamp-sdefault): Fix path for Makefile.
20143 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
20145         * misc.c (gnat_expand_expr): Move prototype.
20147 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
20149         * misc.c (insert_default_attributes): Remove.
20151 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
20153         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
20154         (gnat_init): Don't set hook.
20155         (gnat_expand_expr): Fix prototype.
20157 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
20159         * misc.c (ggc_p): Remove.
20161 2002-03-27  Geert Bosch  <bosch@gnat.com>
20163         * prj-makr.ads, prj-makr.adb : New files.
20165 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
20167         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
20168         (lang_mark_tree): Make static, rename.
20170 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
20172         * misc.c (maybe_build_cleanup): Remove.
20174 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
20176         * gigi.h (yyparse): Remove.
20178 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
20180         * gnat_rm.texi: Sync with ACT version.
20181           (From Ben Brosgol <brosgol@gnat.com>)
20183 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
20185         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
20186         (gnat_init): Remove old hook.
20188 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
20190         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
20191         (yyparse): Rename gnat_parse_file.
20193 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
20195         Delete all lines containing "$Revision:".
20196         * xeinfo.adb: Don't look for revision numbers.
20197         * xnmake.adb: Likewise.
20198         * xsinfo.adb: Likewise.
20199         * xsnames.adb: Likewise.
20200         * xtreeprs.adb: Likewise.
20202 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20204         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
20205         gnat_tree_code_name): Delete.
20206         (tree_code_type, tree_code_length, tree_code_name): Define.
20207         (gnat_init): Don't try to copy into the various tree_code
20208         arrays.
20210 2002-03-11  Richard Henderson  <rth@redhat.com>
20212         * Makefile.in (.NOTPARALLEL): Add fake tag.
20214 2002-03-07  Geert Bosch  <bosch@gnat.com>
20216         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
20217         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
20218         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
20219         switch-m.adb, switch-m.ads : New files.
20221 2002-03-07  Geert Bosch  <bosch@gnat.com>
20223         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
20224         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
20225         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
20226         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
20227         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
20228         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
20229         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
20230         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
20231         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
20232         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
20233         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
20234         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
20235         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
20236         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
20237         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
20238         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
20239         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
20240         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
20241         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
20242         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
20243         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
20244         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
20245         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
20246         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
20247         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
20248         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
20249         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
20250         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
20251         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
20252         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
20253         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
20254         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
20255         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
20256         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
20257         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
20258         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
20259         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
20260         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
20261         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
20262         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
20263         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
20264         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
20265         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
20266         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
20267         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
20268         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
20269         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
20270         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
20271         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
20272         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
20273         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
20274         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
20275         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
20276         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
20277         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
20278         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
20279         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
20280         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
20281         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
20282         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
20283         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
20284         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
20285         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
20286         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
20287         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
20288         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
20289         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
20290         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
20291         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
20292         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
20293         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
20294         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
20295         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
20296         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
20297         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
20298         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
20299         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
20300         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
20301         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
20302         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
20303         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
20304         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
20305         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
20306         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
20307         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
20308         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
20309         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
20310         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
20311         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
20312         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
20313         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
20314         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
20315         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
20316         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
20317         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
20318         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
20319         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
20321         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
20322         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
20323         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
20324         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
20326         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
20327         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
20329         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
20330         to mdll-fil.ad[bs] and mdll-util.ad[bs]
20332         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
20333         from mdllfile.ad[bs] and mdlltool.ad[bs]
20335 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20337         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
20338         lieu of explicit sizeof/sizeof.
20340 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
20342         * misc.c (copy_lang_decl): Remove.
20344 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
20346         * misc.c: Delete traditional-mode-related code copied from the
20347         C front end but not used, or used only to permit the compiler
20348         to link.
20350 2002-02-07  Richard Henderson  <rth@redhat.com>
20352         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
20353         * adaint.h (__gnat_to_gm_time): Update prototype.
20355 2002-01-30  Richard Henderson  <rth@redhat.com>
20357         * trans.c (tree_transform) [N_Loop_Statement]: Use
20358         expand_exit_loop_top_cond.
20360 2001-12-23  Richard Henderson  <rth@redhat.com>
20362         * utils.c (end_subprog_body): Push GC context around
20363         rest_of_compilation for nested functions.
20365 2001-12-23  Richard Henderson  <rth@redhat.com>
20367         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
20369 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
20371         * gnat-style.texi (Declarations and Types): Remove ancient style
20372         rule which was mandated by code generation issues.
20374         * gnat-style.texi (header): Add @dircategory, @direntry.
20375         (title page): Remove date.
20376         (general) Add @./@: where approriate, and two spaces after the
20377         full stop at the end of a sentence.  Use @samp markup when
20378         referring concrete lexical entities (keywords, attribute names
20379         etc.), and @syntax for ARM grammar elements. Use @r for English
20380         text in comments.  Use @emph for emphasis.  Change "if-statements"
20381         etc. to "if statements" (without @samp). Break long lines.  Make
20382         casing of section names consistent.
20383         (Identifiers): Use @samp markup for variable names.
20384         (Comments): Use @samp markup for comment characters. Line-end
20385         comments may follow any Ada code, not just statements.  Fix
20386         misspelling of "Integer" as "integer".
20387         (Loop statements): Do not use variable name "I", use "J".
20388         (Subprogram Declarations): Document alignment.
20389         (Subprogram Bodies, Block statements): Document empty line before
20390         "begin".
20392 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
20394         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
20395         function approach did not work well because of a side effect (the
20396         function call could reallocate the table which was being indexed
20397         using its result). Fixes ada/4851.
20399 2001-12-19  Robert Dewar <dewar@gnat.com>
20401         * bindgen.adb: Minor reformatting
20403         * cstand.adb: Minor reformatting
20405         * fmap.adb: Minor reformatting
20406         Change name from Add for Add_To_File_Map (Add is much too generic)
20407         Change Path_Name_Of to Mapped_Path_Name
20408         Change File_Name_Of to Mapped_File_Name
20409         Fix copyright dates in header
20411         * fmap.ads:
20412         Change name from Add for Add_To_File_Map (Add is much too generic)
20413         Change Path_Name_Of to Mapped_Path_Name
20414         Change File_Name_Of to Mapped_File_Name
20415         Fix copyright dates in header
20417         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
20418         Add use clause for Fmap.
20420         * make.adb: Minor reformatting
20422         * osint.adb: Minor reformatting.  Change of names in Fmap.
20423         Add use clause for Fmap.
20425         * prj-env.adb: Minor reformatting
20427         * prj-env.ads: Minor reformatting
20429         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
20430         error found (there were odd exceptions to this general rule in
20431         -gnatec/-gnatem processing)
20433 2001-12-19  Olivier Hainque <hainque@gnat.com>
20435         * raise.c (__gnat_eh_personality): Exception handling personality
20436         routine for Ada.  Still in rough state, inspired from the C++ version
20437         and still containing a bunch of debugging artifacts.
20438         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
20439         inspired from the C++ library.
20441         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
20442         exception handling integration.
20444 2001-12-19  Arnaud Charlet <charlet@gnat.com>
20446         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
20447         (HIE_SOURCES): Add s-secsta.ad{s,b}.
20448         (HIE_OBJS): Add s-fat*.o
20449         (RAVEN_SOURCES): Remove files that are no longer required. Add
20450         interrupt handling files.
20451         (RAVEN_MOD): Removed, no longer needed.
20453 2001-12-19  Robert Dewar <dewar@gnat.com>
20455         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
20456         Add 2001 to copyright date
20458         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
20459         need to force universal inlining for these cases.
20461 2001-12-19  Arnaud Charlet <charlet@gnat.com>
20463         * s-taprob.adb: Minor clean ups so that this unit can be used in
20464         Ravenscar HI.
20466         * exp_ch7.adb: Allow use of secondary stack in HI mode.
20467         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
20469 2001-12-19  Vincent Celier <celier@gnat.com>
20471         * prj-tree.ads (Project_Node_Record): Add comments for components
20472         Pkg_Id and Case_Insensitive.
20474 2001-12-19  Pascal Obry <obry@gnat.com>
20476         * g-socket.adb: Minor reformatting. Found while reading code.
20478 2001-12-19  Robert Dewar <dewar@gnat.com>
20480         * prj-tree.ads: Minor reformatting
20482 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
20484         * config-lang.in (diff_excludes): Remove.
20486 2001-12-17  Ed Schonberg <schonber@gnat.com>
20488         * sem_res.adb (Resolve_Selected_Component): do not generate a
20489         discriminant check if the selected component is a component of
20490         the argument of an initialization procedure.
20492         * trans.c (tree_transform, case of arithmetic operators): If result
20493         type is private, the gnu_type is the base type of the full view,
20494         given that the full view itself may be a subtype.
20496 2001-12-17  Robert Dewar <dewar@gnat.com>
20498         * sem_res.adb: Minor reformatting
20500         * trans.c (tree_transform, case N_Real_Literal): Add missing third
20501         parameter in call to Machine (unknown horrible effects from this
20502         omission).
20504         * urealp.h: Add definition of Round_Even for call to Machine
20505         Add third parameter for Machine
20507 2001-12-17  Ed Schonberg <schonber@gnat.com>
20509         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
20510         predefined units in No_Run_Time mode.
20512 2001-12-17  Richard Kenner <kenner@gnat.com>
20514         * misc.c (insn-codes.h): Now include.
20516 2001-12-17  Olivier Hainque <hainque@gnat.com>
20518         * a-except.adb: Preparation work for future integration of the GCC 3
20519         exception handling mechanism
20520         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
20521         to factorize previous code sequences and make them externally callable,
20522         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
20523         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
20524         Use the new notification routines.
20526 2001-12-17  Emmanuel Briot <briot@gnat.com>
20528         * prj-tree.ads (First_Choice_Of): Document the when others case
20530 2001-12-17  Arnaud Charlet <charlet@gnat.com>
20532         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
20533         HI-E mode, in order to support Ravenscar profile properly.
20535         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
20536         mode on 32 bits targets.
20538 2001-12-17  Vincent Celier <celier@gnat.com>
20540         * fmap.adb: Initial version.
20542         * fmap.ads: Initial version.
20544         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
20545         If search is successfully done, add to mapping.
20547         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
20549         * make.adb:
20550         (Gnatmake): Add new local variable Mapping_File_Name.
20551          Create mapping file when using project file(s).
20552          Delete mapping file before exiting.
20554         * opt.ads (Mapping_File_Name): New variable
20556         * osint.adb (Find_File): Use path name found in mapping, if any.
20558         * prj-env.adb (Create_Mapping_File): New procedure
20560         * prj-env.ads (Create_Mapping_File): New procedure.
20562         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
20563         (Mapping_File)
20565         * usage.adb: Add entry for new switch -gnatem.
20567         * Makefile.in: Add dependencies for fmap.o.
20569 2001-12-17  Ed Schonberg <schonber@gnat.com>
20571         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
20572         is a package instantiation rewritten as a package body.
20573         (Install_Withed_Unit): Undo previous change, now redundant.
20575 2001-12-17  Gary Dismukes <dismukes@gnat.com>
20577         * layout.adb:
20578         (Compute_Length): Move conversion to Unsigned to callers.
20579         (Get_Max_Size): Convert Len expression to Unsigned after calls to
20580         Compute_Length and Determine_Range.
20581         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
20582         Compute_Length and Determine_Range.
20583         Above changes fix problem with length computation for supernull arrays
20584         where Max (Len, 0) wasn't getting applied due to the Unsigned
20585         conversion used by Compute_Length.
20587 2001-12-17  Arnaud Charlet <charlet@gnat.com>
20589         * rtsfind.ads:
20590         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
20591          System.Secondary_Stack.
20592         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
20593          in HI-E mode.
20594         Remove unused entity RE_Exception_Data.
20596         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
20598         * rident.ads (No_Secondary_Stack): New restriction.
20600 2001-12-17  Joel Brobecker <brobecke@gnat.com>
20602         * gnat_rm.texi: Fix minor typos. Found while reading the section
20603         regarding "Bit_Order Clauses" that was sent to a customer.
20604         Very interesting documentation!
20606 2001-12-17  Robert Dewar <dewar@gnat.com>
20608         * sem_case.adb (Choice_Image): Avoid creating improper character
20609         literal names by using the routine Set_Character_Literal_Name. This
20610         fixes bombs in certain error message cases.
20612 2001-12-17  Arnaud Charlet <charlet@gnat.com>
20614         * a-reatim.adb: Minor reformatting.
20616 2001-12-17  Ed Schonberg <schonber@gnat.com>
20618         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
20619         case where the formal is an extension of another formal in the current
20620         unit or in a parent generic unit.
20622 2001-12-17  Arnaud Charlet <charlet@gnat.com>
20624         * s-tposen.adb: Update comments.  Minor reformatting.
20625         Minor code clean up.
20627         * s-tarest.adb: Update comments.  Minor code reorganization.
20629 2001-12-17  Gary Dismukes <dismukes@gnat.com>
20631         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
20632         when Java_VM.
20634 2001-12-17  Robert Dewar <dewar@gnat.com>
20636         * exp_attr.adb: Minor reformatting
20638 2001-12-17  Ed Schonberg <schonber@gnat.com>
20640         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
20641         derivations nested within a child unit: verify that the parent
20642         type is declared in an outer scope.
20644 2001-12-17  Robert Dewar <dewar@gnat.com>
20646         * sem_ch12.adb: Minor reformatting
20648 2001-12-17  Ed Schonberg <schonber@gnat.com>
20650         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
20651         warning if current unit is a predefined one, from which bodies may
20652         have been deleted.
20654 2001-12-17  Robert Dewar <dewar@gnat.com>
20656         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
20657         Fix header format. Add 2001 to copyright date.
20659         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
20660         which caused CE during compilation if checks were enabled.
20662 2001-12-17  Vincent Celier <celier@gnat.com>
20664         * make.adb:
20665         (Switches_Of): New function
20666         (Test_If_Relative_Path): New procedure
20667         (Add_Switches): Use new function Switches_Of
20668         (Collect_Arguments_And_Compile): Use new function Switches_Of.
20669         When using a project file, test if there are any relative
20670         search path. Fail if there are any.
20671         (Gnatmake): Only add switches for the primary directory when not using
20672         a project file. When using a project file, change directory to the
20673         object directory of the main project file. When using a project file,
20674         test if there are any relative search path. Fail if there are any.
20675         When using a project file, fail if specified executable is relative
20676         path with directory information, and prepend executable, if not
20677         specified as an absolute path, with the exec directory.  Make sure
20678         that only one -o switch is transmitted to the linker.
20680         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
20682         * prj-nmsc.adb:
20683         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
20684         when using a non standard naming scheme.
20685         (Check_Ada_Naming_Scheme): Make sure that error messages
20686         do not raise exceptions.
20687         (Is_Illegal_Append): Return True if there is no dot in the suffix.
20688         (Language_Independent_Check): Check the exec directory.
20690         * prj.adb (Project_Empty): Add new component Exec_Directory
20692         * prj.ads:
20693         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
20694         (Project_Data): Add component Exec_Directory
20696         * snames.adb: Updated to match snames.ads revision 1.215
20698         * snames.ads: Added Exec_Dir
20700 2001-12-17  Robert Dewar <dewar@gnat.com>
20702         * make.adb: Minor reformatting
20704         * prj-nmsc.adb: Minor reformatting
20706         * snames.adb: Updated to match snames.ads
20708         * snames.ads: Alphebetize entries for project file
20710 2001-12-17  Ed Schonberg <schonber@gnat.com>
20712         * trans.c (process_freeze_entity): Do nothing if the entity is a
20713         subprogram that was already elaborated.
20715 2001-12-17  Richard Kenner <kenner@gnat.com>
20717         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
20718         and Esize if object is referenced via pointer.
20720 2001-12-17  Ed Schonberg <schonber@gnat.com>
20722         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
20723         is discrete before analyzing choices.
20725 2001-12-17  Joel Brobecker <brobecke@gnat.com>
20727         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
20728         containing the name of the Ada Main Program. This string is mainly
20729         intended for the debugger.
20730         (Gen_Output_File_C): Do the equivalent change when generating a C file.
20732 2001-12-17  Robert Dewar <dewar@gnat.com>
20734         * ali.adb: Set new Dummy_Entry field in dependency entry
20736         * ali.ads: Add Dummy_Entry field to source dependency table
20738         * bcheck.adb (Check_Consistency): Ignore dummy D lines
20740         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
20742         * lib-writ.ads: Document dummy D lines for missing files.
20744         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
20746 2001-12-17  Robert Dewar <dewar@gnat.com>
20748         * ali.adb: Type reference does not reset current file.
20750         * ali.adb: Recognize and scan renaming reference
20752         * ali.ads: Add spec for storing renaming references.
20754         * lib-xref.ads: Add documentation for handling of renaming references
20756         * lib-xref.adb: Implement output of renaming reference.
20758         * checks.adb:
20759         (Determine_Range): Document local variables
20760         (Determine_Range): Make sure Hbound is initialized. It looks as though
20761          there could be a real problem here with an uninitialized reference
20762          to Hbound, but no actual example of failure has been found.
20764 2001-12-17  Laurent Pautet <pautet@gnat.com>
20766         * g-socket.ads:
20767         Fix comment of Shutdown_Socket and Close_Socket. These functions
20768         should not fail silently because if they are called twice, this
20769         probably means that there is a race condition in the user program.
20770         Anyway, this behaviour is consistent with the rest of this unit.
20771         When an error occurs, an exception is raised with the error message
20772         as exception message.
20774 2001-12-17  Robert Dewar <dewar@gnat.com>
20776         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
20777         that it happens before modification of Sloc values for -gnatD.
20779         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
20780         so that it happens before modification of Sloc values for -gnatD.
20782         * switch.adb: Minor reformatting
20784 2001-12-15  Richard Henderson  <rth@redhat.com>
20786         * sem_ch7.adb: Wrap comment.
20788 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
20790         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
20791         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
20792         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
20793         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
20794         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
20795         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
20796         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
20797         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
20798         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
20799         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
20800         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
20801         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
20802         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
20803         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
20804         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
20805         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
20806         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
20807         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
20808         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
20809         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
20810         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
20811         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
20812         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
20813         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
20814         spelling errors.
20816 2001-12-14  Vincent Celier <celier@gnat.com>
20818         * osint.adb(Create_Debug_File): When an object file is specified,
20819         put the .dg file in the same directory as the object file.
20821 2001-12-14  Robert Dewar <dewar@gnat.com>
20823         * osint.adb: Minor reformatting
20825         * lib-xref.adb (Output_Instantiation): New procedure to generate
20826         instantiation references.
20828         * lib-xref.ads: Add documentation of handling of generic references.
20830         * ali.adb (Read_Instantiation_Ref): New procedure to read
20831         instantiation references
20833         * ali.ads: Add spec for storing instantiation references
20835         * bindusg.adb: Minor reformatting
20837         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
20839         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
20841         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
20843         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
20845         * csets.ads:
20846         Fix header format
20847         Add 2001 to copyright date
20848         Add entry for Latin-5 (Cyrillic ISO-8859-5)
20850 2001-12-14  Matt Gingell <gingell@gnat.com>
20852         * adaint.c: mktemp is a macro on Lynx and can not be used as an
20853         expression.
20855 2001-12-14  Richard Kenner <kenner@gnat.com>
20857         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
20858         if operand is CONSTRUCTOR.
20860 2001-12-14  Ed Schonberg <schonber@gnat.com>
20862         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
20863         before emiting check on right-hand side, so that exception information
20864         is correct.
20866 2001-12-14  Richard Kenner <kenner@gnat.com>
20868         * utils.c (create_var_decl): Throw away initializing expression
20869         if just annotating types and non-constant.
20871 2001-12-14  Vincent Celier <celier@gnat.com>
20873         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
20874         Default_Ada_...
20876         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
20877         Remove functions.
20878         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
20880         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
20881         Remove functions.
20882         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
20884 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
20886         * ChangeLog: Remove piece of diff output.
20888 2001-12-14  Geert Bosch <bosch@gnat.com>
20890         * config-lang.in: Update copyright notice
20892         * layout.adb: Remove commented out code.
20894         * mdllfile.ads: Update copyright notice. Fix header format.
20896         * sem_case.ads: Likewise.
20898         * sem_ch3.adb: Minor reformatting.
20900 2001-12-12  Geert Bosch <bosch@gnat.com>
20902         * freeze.ads: Update copyright date.
20904         * g-comlin.ads: Minor reformatting.
20906         * gnat-style.texi: Fix typo.
20908 2001-12-12  Geert Bosch <bosch@gnat.com>
20910         *  einfo.h: Regenerate.
20912 2001-12-12  Ed Schonberg <schonber@gnat.com>
20914         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
20915         on known node types, rather than untyped fields. Further cleanups.
20917 2001-12-12  Robert Dewar <dewar@gnat.com>
20919         * sem_ch12.adb:
20920         (Save_Entity_Descendant): Minor comment update.
20921         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
20922          of an N_Attribute_Reference node. As per note below, this does not
20923         eliminate need for Associated_Node in attribute ref nodes.
20924         (Associated_Node): Documentation explicitly mentions attribute
20925         reference nodes, since this field is used in such nodes.
20927         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
20929 2001-12-12  Robert Dewar <dewar@gnat.com>
20931         * s-stalib.adb: Add more comments on with statements being needed
20933         * par-ch12.adb: Minor reformatting
20935         * prj-dect.ads: Fix copyright header
20937         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
20938         inputs fit in 32 bits, but the result still overflows.
20940         * s-fatgen.ads: Minor comment improvement
20942 2001-12-12  Ed Schonberg <schonber@gnat.com>
20944         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
20945         formal derived type, look for an inherited component from the full
20946         view of the parent, if any.
20948 2001-12-12  Robert Dewar <dewar@gnat.com>
20950         * checks.ads (Apply_Alignment_Check): New procedure.
20952         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
20953         ensure that the alignment of objects with address clauses is
20954         appropriate, and raise PE if not.
20956         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
20957         Exp_Pakd.Known_Aligned_Enough
20959         * mdllfile.ads: Minor reformatting
20961         * mlib-fil.ads: Minor reformatting
20963 2001-12-12  Ed Schonberg <schonber@gnat.com>
20965         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
20966         fix to any component reference if enclosing record has non-standard
20967         representation.
20969 2001-12-12  Vincent Celier <celier@gnat.com>
20971         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
20972         Iteration
20974 2001-12-12  Ed Schonberg <schonber@gnat.com>
20976         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
20977         sem_attr.
20979 2001-12-12  Robert Dewar <dewar@gnat.com>
20981         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
20983 2001-12-12  Emmanuel Briot <briot@gnat.com>
20985         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
20986         and it adds dependencies to system.io.
20988 2001-12-12  Pascal Obry <obry@gnat.com>
20990         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
20991         variable name.
20993 2001-12-11  Ed Schonberg <schonber@gnat.com>
20995         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
20996         that is the parent of other generics, the instance body replaces the
20997         instance node.  Retrieve the instance of the spec, which is the one
20998         that is visible in clients and within the body.
21000 2001-12-11  Vincent Celier <celier@gnat.com>
21002         * gnatmain.adb: Initial version.
21004         * gnatmain.ads: Initial version.
21006         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
21008         * snames.adb: Updated to match snames.ads.
21010         * snames.ads: Added Gnatstub.
21012 2001-12-11  Vincent Celier <celier@gnat.com>
21014         * prj-attr.adb (Initialization_Data): Change name from
21015         Initialisation_Data.
21017 2001-12-11  Emmanuel Briot <briot@gnat.com>
21019         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
21020         + and * applied to backslashed expressions like \r.
21022 2001-12-11  Vasiliy Fofanov <fofanov@gnat.com>
21024         * g-os_lib.ads: String_List type added, Argument_List type is now
21025         subtype of String_List.
21027 2001-12-11  Robert Dewar <dewar@gnat.com>
21029         * g-os_lib.ads: Change copyright to FSF
21030         Add comments for String_List type
21032 2001-12-11  Vincent Celier <celier@gnat.com>
21034         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
21035         string to the buffer).
21037 2001-12-11  Ed Schonberg <schonber@gnat.com>
21039         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
21040         sem_attr.
21042         * sem_attr.adb: Simplify previous fix for Address.
21043         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
21044         to avoid anomalies where the bound of the type appears to raise
21045         constraint error.
21047 2001-12-11  Robert Dewar <dewar@gnat.com>
21049         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
21050         handled.
21052 2001-12-11  Ed Schonberg <schonber@gnat.com>
21054         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
21055         renamed unit before checking for recursive instantiations.
21057 2001-12-11  Emmanuel Briot <briot@gnat.com>
21059         * prj.ads: Add comments for some of the fields.
21061 2001-12-11  Robert Dewar <dewar@gnat.com>
21063         * lib-xref.adb (Output_Refs): Don't output type references outside
21064         the main unit if they are not otherwise referenced.
21066 2001-12-11  Ed Schonberg <schonber@gnat.com>
21068         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
21069         code and diagnose additional illegal uses
21071         * sem_util.adb (Is_Object_Reference): An indexed component is an
21072         object only if the prefix is.
21074 2001-12-11  Vincent Celier <celier@gnat.com>
21076         * g-diopit.adb: Initial version.
21078         * g-diopit.ads: Initial version.
21080         * g-dirope.adb:
21081         (Expand_Path): Avoid use of Unbounded_String
21082         (Find, Wildcard_Iterator): Moved to child package Iteration
21084         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
21086 2001-12-11  Robert Dewar <dewar@gnat.com>
21088         * sem_attr.adb: Minor reformatting
21090 2001-12-11  Ed Schonberg <schonber@gnat.com>
21092         * sem_ch3.adb: Clarify some ???.
21094 2001-12-11  Robert Dewar <dewar@gnat.com>
21096         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
21097         Exp_Pakd.Known_Aligned_Enough
21099         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
21100         version is moved to Exp_Ch13.
21102 2001-12-11  Robert Dewar <dewar@gnat.com>
21104         * einfo.ads: Minor reformatting
21106         * exp_ch5.adb: Add comment for previous.change
21108         * ali.adb: New interface for extended typeref stuff.
21110         * ali.ads: New interface for typeref stuff.
21112         * checks.adb (Apply_Alignment_Check): New procedure.
21114         * debug.adb: Add -gnatdM for modified ALI output
21116         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
21118         * lib-xref.adb: Extend generation of <..> notation to cover
21119         subtype/object types. Note that this is a complete rewrite,
21120         getting rid of the very nasty quadratic algorithm previously
21121         used for derived type output.
21123         * lib-xref.ads: Extend description of <..> notation to cover
21124         subtype/object types. Uses {..} for these other cases.
21125         Also use (..) for pointer types.
21127         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
21129         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
21130         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
21132 2001-12-11  Vincent Celier <celier@gnat.com>
21134         * gnatcmd.adb:
21135         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
21136         Changed /BIND_ONLY to /ACTIONS=BIND
21137         Changed /LINK_ONLY to /ACTIONS=LINK
21139 2001-12-11  Ed Schonberg  <schonber@gnat.com>
21141         * sem_ch8.adb (Find_Selected_Component): improved search for a
21142         candidate package in case of error.
21144         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
21145         chain back on scope stack before reinstalling use clauses.
21147         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
21148         is enabled, do not kill the code for the condition, to preserve
21149         warning.
21151 2001-12-11  Robert Dewar <dewar@gnat.com>
21153         * checks.adb (Insert_Valid_Check): Apply validity check to expression
21154         of conversion, not to result of conversion.
21156 2001-12-11  Ed Schonberg <schonber@gnat.com>
21158         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
21159         before freezing parent. If the declarations are mutually recursive,
21160         an access to the current record type may be frozen before the
21161         derivation is complete.
21163 2001-12-05  Vincent Celier <celier@gnat.com>
21165         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
21166         -c /COMPILE_ONLY, -l /LINK_ONLY
21168         * opt.ads:
21169         (Bind_Only): New Flag
21170         (Link_Only): New flag
21172         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
21173         and -l (Link_Only)
21175         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
21177         * make.adb:
21178         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
21179         (Gnatmake): Set the step flags. Only perform a step if the
21180         corresponding step flag is True.
21181         (Scan_Make_Arg): Reset the bind and link step flags when -u
21182         or -gnatc has been specified.
21184 2001-12-05  Ed Schonberg <schonber@gnat.com>
21186         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
21187         get bounds from right operand.
21189         * sem_eval.adb: Minor reformatting
21191         * exp_util.adb (Make_Literal_Range): use bound of literal rather
21192         than Index'First, its lower bound may be different from 1.
21194         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
21195         and C48009J
21197 2001-12-05  Vincent Celier <celier@gnat.com>
21199         * prj-nmsc.adb Minor reformatting
21201         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
21202         set and libraries are not supported.
21204 2001-12-05  Ed Schonberg <schonber@gnat.com>
21206         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
21207         private view explicitly, so the back-end can treat as a global
21208         when appropriate.
21210 2001-12-05  Ed Schonberg <schonber@gnat.com>
21212         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
21213          unit, always replace instance node with new body, for ASIS use.
21215 2001-12-05  Vincent Celier <celier@gnat.com>
21217         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
21218         libraries are not supported and both attributes Library_Name and
21219         Library_Dir are specified.
21221         * prj-proc.adb (Expression): Set location of Result to location of
21222         first term.
21224         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
21225         (prj-nmsc is now importing MLib.Tgt)
21227         * prj-proc.adb: Put the change indicated above that was forgotten.
21229 2001-12-05  Robert Dewar <dewar@gnat.com>
21231         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
21233 2001-12-05  Ed Schonberg <schonber@gnat.com>
21235         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
21236         constraint, introduce explicit subtype declaration and derive from it.
21238         * sem_ch3.adb: Minor reformatting
21240 2001-12-05  Robert Dewar <dewar@gnat.com>
21242         * checks.adb (Determine_Range): Increase cache size for checks.
21243         Minor reformatting
21245         * exp_ch6.adb: Minor reformatting
21246         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
21247         a parameter whose root type is System.Address, since treating such
21248         subprograms as pure in the code generator is almost surely a mistake
21249         that will lead to unexpected results.
21251         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
21252         change handling of conversions.
21254         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
21256 2001-12-05  Ed Schonberg <schonber@gnat.com>
21258         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
21259         aggregate with static wrong size, attach generated Raise node to
21260         declaration.
21262 2001-12-05  Robert Dewar <dewar@gnat.com>
21264         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
21265         Fixes compilation abandoned bomb in B24009B.
21267 2001-12-05  Ed Schonberg <schonber@gnat.com>
21269         * sem_ch12.adb:
21270         Document use of Associated_Node on Selected_Components.
21271         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
21272         to clarify use of untyped descendant fields.
21274 2001-12-05  Robert Dewar <dewar@gnat.com>
21276         * prj-dect.ads: Add ??? comment
21277         Add 2001 to copyright notice (was not done in after all)
21279         * prj-part.adb: Minor reformatting. Reword one awkward error message.
21281         * prj.ads: Minor reformatting throughout, and add some ??? comments
21283         * snames.ads: Minor reformatting
21285 2001-12-05  Geert Bosch <bosch@gnat.com>
21287         * snames.adb: Autoupdate
21289 2001-12-05  Vincent Celier <celier@gnat.com>
21291         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
21293         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
21295         * prj-env.adb: Minor comment changes (modifying -> extends).
21297         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
21299         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
21300         Tok_Extends.
21302         * prj.adb (Initialize): Change Modifying to Extends.
21304         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
21306         * prj.ads: Minor comment change (Modifying -> extending).
21308         * snames.ads: Change modifying to extends.
21310 2001-12-05  Robert Dewar <dewar@gnat.com>
21312         * sem_warn.adb: Remove stuff for conditionals, we are not going to
21313         do this after all.
21315         * sem_warn.ads: Remove stuff for conditionals, we are not going to
21316         do this after all.  Add 2001 to copyright notice
21318 2001-12-04  Geert Bosch <bosch@gnat.com>
21320         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
21322 2001-12-04  Robert Dewar <dewar@gnat.com>
21324         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
21325         location if we already have errors. Stops some cases of cascaded
21326         errors.
21328         * errout.adb: Improve comment.
21330 2001-12-04  Robert Dewar <dewar@gnat.com>
21332         * sem_ch12.adb:
21333         (Analyze_Formal_Type_Definition): Defend against Error.
21334         (Analyze_Formal_Subprogram): Defend against Error.
21336         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
21337         remove following semicolon if present. Removes cascaded error.
21339 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
21341         * bindgen.adb:
21342         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
21343          exceptions equals 0.
21344         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
21345         Fixes PIWG E tests (which have to be run with -gnatL).
21347 2001-12-04  Robert Dewar <dewar@gnat.com>
21349         * einfo.ads: Minor reformatting
21351 2001-12-04  Ed Schonberg <schonber@gnat.com>
21353         * einfo.ads: Block_Node points to the identifier of the block, not to
21354         the block node itself, to preserve the link when the block is
21355         rewritten, e.g. within an if-statement with a static condition.
21357         * inline.adb (Cleanup_Scopes): recover block statement from block
21358         entity using new meaning of Block_Node.
21360         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
21361         identifier of block node, rather than to node itself.
21363 2001-12-04  Gary Dismukes <dismukes@gnat.com>
21365         * layout.adb:
21366         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
21367         (Discrimify): Go back to setting the Etypes of the selected component
21368         because the Vname component does not exist at this point and will
21369         fail name resolution. Also set Analyzed.
21370         Remove with and use of Sem_Res.
21372 2001-12-04  Arnaud Charlet <charlet@gnat.com>
21374         * Makefile.in: (HIE_SOURCES): add s-fat*.
21376 2001-12-04  Robert Dewar <dewar@gnat.com>
21378         * sem_attr.adb:
21379         (Compile_Time_Known_Attribute): New procedure.
21380         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
21381          proper range check.
21383 2001-12-04  Ed Schonberg <schonber@gnat.com>
21385         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
21386         processing discriminants to diagnose illegal default values.
21388 2001-12-04  Ed Schonberg <schonber@gnat.com>
21390         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
21391         access discriminant within a type extension that constrains its
21392         parent discriminants.
21394 2001-12-04  Ed Schonberg <schonber@gnat.com>
21396         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
21397         is malformed, use instance of Any_Id to allow analysis to proceed.
21399         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
21400         type definition is illegal.
21401         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
21402         misplaced.
21404 2001-12-04  Ed Schonberg <schonber@gnat.com>
21406         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
21407         constants.
21409 2001-12-04  Robert Dewar <dewar@gnat.com>
21411         * errout.adb: Minor reformatting
21413 2001-12-04  Robert Dewar <dewar@gnat.com>
21415         * exp_util.adb: Minor reformatting from last change
21417         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
21418         which is a rewriting of an expression, traverse the original
21419         expression to remove warnings that may have been posted on it.
21421 2001-12-04  Ed Schonberg <schonber@gnat.com>
21423         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
21424         record that has other packed components.
21426 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
21428         * adaint.c: Minor cleanups.
21430 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
21432         * adaint.c: Do not use utime.h on vxworks.
21434 2001-12-04  Arnaud Charlet <charlet@gnat.com>
21436         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
21437         more confusion than it solves.
21439 2001-12-04  Geert bosch <bosch@gnat.com>
21441         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
21443 2001-12-04  Geert Bosch  <bosch@gnat.com>
21445         * Makefile.in (update-sources): New target.
21446         For use by gcc_release script.
21448 2001-12-04  Ed Schonberg <schonber@gnat.com>
21450         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
21451         a configuration pragma, it is now legal wherever a pragma can appear.
21453 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
21455         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
21456         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
21457         is now @CROSS@ -DIN_GCC; update comment.
21459 2001-12-04  Robert Dewar <dewar@gnat.com>
21461         * einfo.adb (Has_Pragma_Pure_Function): New flag.
21462         Fix problem that stopped ceinfo from working
21464         * einfo.ads (Has_Pragma_Pure_Function): New flag.
21466         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
21468 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
21470         * gnatchop.adb:
21471         (File_Time_Stamp): New procedure.
21472         (Preserve_Mode): New boolean.
21473         (Write_Unit): Pass time stamp.
21474         Implement -p switch (preserve time stamps).
21476         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
21478         * gnatchop.adb: Do usage info for -p switch
21480         * adaint.h (__gnat_set_file_time_name): New function
21482         * adaint.c (__gnat_set_file_time_name): Implement
21484         * adaint.h: Fix typo
21486 2001-12-03  Robert Dewar <dewar@gnat.com>
21488         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
21489         have Associated_Node.
21491 2001-12-03  Robert Dewar <dewar@gnat.com>
21493         * prj-proc.adb: Minor reformatting
21495         * make.adb: Minor reformatting
21497 2001-12-03  Geert Bosch <bosch@gnat.com>
21499         * make.adb: Minor reformatting.
21501 2001-12-03 Robert Dewar  <dewar@gnat.com>
21503         * sem_ch12.adb: Minor reformatting
21505 2001-12-03  Ed Schonberg <schonber@gnat.com>
21507         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
21508         push Standard on the stack before analyzing the instance body,
21509         in order to have a clean visibility environment.
21511         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
21513 2001-12-03  Ed Schonberg <schonber@gnat.com>
21515         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
21516         instantiation of a body that contains an inlined body.
21518 2001-12-03  Ed Schonberg <schonber@gnat.com>
21520         * sem_ch12.adb:
21521         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
21522         to prevent freezing within formal packages.
21523         (Freeze_Subprogram_Body): If body comes from another instance that
21524         appeared before its own body, place freeze node at end of current
21525         declarative part, to prevent a back-end crash.
21526         (Inline_Instance_Body): Handle properly a package instance within
21527         a subprogram instance that is a child unit.
21529 2001-12-01  Graham Stott  <grahams@redhat.com>
21531         * Makefile.in (misc.o): Add missing $(srcdir) prefix
21532         and add optabs.h dependency.
21534         * misc.c: Include optabs.h
21535         (gnat_tree_code_type): Make static and const.
21536         (gnat_tree_code_length): Likewise.
21537         (gnat_tree_code_name): Likewise.
21538         (update_setjmp_buf): Obtain operands mode from insn_data.
21540 2001-11-29  Richard Henderson  <rth@redhat.com>
21542         * init.c: Remove obsolete dwarf2 frame.h section.
21544 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
21546         * Make-lang.in (ada.generated-manpages): New dummy target.
21548 2001-11-29  Ed Schonberg <schonber@gnat.com>
21550         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
21551         into Command, an array conversion is illegal here. Uncovered by
21552         ACATS B460005.
21554 2001-11-28  Geert Bosch <bosch@gnat.com>
21556         * init.c: Minor whitespace changes.
21558 2001-11-28  Doug Rupp <rupp@gnat.com>
21560         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
21561         signal stack.
21563 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
21565         * misc.c (gnat_expand_constant): Move declaration above
21566         definition of lang_hooks.
21567         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
21568         (gnat_init): lang_expand_constant no longer exists.
21570         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
21571         always have vprintf.
21572         (gnat_init): Always call set_internal_error_function.
21574 2001-11-27  Andreas Jaeger  <aj@suse.de>
21576         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
21578 2001-11-27  Laurent Guerby  <guerby@acm.org>
21580         * Makefile.in: Regenerate Ada dependencies.
21582 2001-11-26  Richard Henderson  <rth@redhat.com>
21584         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
21585         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
21586         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
21588 2001-11-25  Laurent Guerby  <guerby@acm.org>
21590         * sysdep.c (rts_get_*): Fix style.
21592 2001-11-19  Laurent Guerby  <guerby@acm.org>
21594         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
21595         since it is of no apparent use and cause warnings.
21597 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
21599         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
21600         static too.
21601         (gnat_init): Don't return NULL.
21602         (finish_parse): Remove.
21604 2001-11-17  Laurent Guerby  <guerby@acm.org>
21606         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
21607         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
21608         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
21609         * lang-spec.h: Add missing struct field to silence warnings.
21610         * sysdep.c (rts_get_*): Provide K&R prototype.
21611         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
21612         * traceback.c (Unlock_Task, Lock_Task): Likewise.
21613         * tracebak.c (__gnat_backtrace): Remove unused variable.
21614         * utils.c (end_subprog_body): Move to K&R style.
21616 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21618         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
21620 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
21622         * misc.c (gnat_init): Change prototype.  Include the
21623         functionality of the old init_parse and init_decl_processing.
21624         (gnat_init_decl_processing): New prototype.
21625         (init_parse): Remove.
21626         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
21628 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
21630         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
21631         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
21632         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
21633         set_yydebug): Remove.
21635 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
21637         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
21638         (struct lang_hooks): Constify.
21639         (language_string, lang_identify): Remove.
21640         * utils.c (init_decl_processing): Update.
21642 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
21644         * misc.c: Include langhooks-def.h.
21645         * Makefile.in: Update.
21647 2001-10-30  Robert Dewar <dewar@gnat.com>
21649         * style.adb:
21650         (Check_Identifier): Rewrite circuit to be compatible with use of letters
21651         in the upper half of ASCII.
21652         (Check_Identifier): Minor reformatting
21654 2001-10-30  Geert Bosch <bosch@gnat.com>
21656         * (Associated_Node, Set_Associated_Node): Do not check for
21657         Freeze_Entity.
21659 2001-10-30  Robert Dewar <dewar@gnat.com>
21661         * a-reatim.ads: Minor reformatting
21663 2001-10-30  Robert Dewar <dewar@gnat.com>
21665         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
21666         undocumented declarations.
21668 2001-10-30  Pascal Obry <obry@gnat.com>
21670         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
21671         to the binder and linker.
21672         Minor style fix.
21674         * mdll.ads: Fix layout.  Update copyright notice.
21676         * mdll.adb: Fix layout.  Update copyright notice.
21678 2001-10-30  Robert Dewar <dewar@gnat.com>
21680         * usage.adb: Minor fix to output for -gnaty.
21682 2001-10-30  Ed Schonberg <schonber@gnat.com>
21684         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
21685         to accommodate all its possible values.
21687         * a-reatim.adb (Split): Special-case handling of Time_Span_First
21688         and of small absolute values of T.
21690 2001-10-30  Richard Kenner <kenner@gnat.com>
21692         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
21693         set_mem_attributes since not needed and wrong if RESULT if a REG;
21694         fixes ACATS failures.
21696 2001-10-30  Geert Bosch <bosch@gnat.com>
21698         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
21699         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
21701 2001-10-30  Robert Dewar <dewar@gnat.com>
21703         * bindusg.adb: Undocument -f switch.
21705         * gnatcmd.adb: Remove /FULL_ELABORATION.
21707         * opt.ads (Force_RM_Elaboration_Order): Document that this is
21708         obsolescent.
21710         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
21712         * gnatbind.adb: Minor update of warning msg.
21714 2001-10-30  Vincent Celier <celier@gnat.com>
21716         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
21717         for project file switches (-P (/PROJECT_FILE=),
21718          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
21719         or MEDIUM or HIGH)
21721 2001-10-30  Geert Bosch <bosch@gnat.com>
21723         * decl.c: Minor whitespace fixes.
21725 2001-10-30  Richard Kenner <kenner@gnat.com>
21727         * utils2.c (build_allocator): Test for SIZE overflow in array case too
21729 2001-10-30  Geert Bosch <bosch@gnat.com>
21731         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
21732         Found due to GCC 3.0 warning of using uninitialized value.
21734         * layout.adb:
21735         (Get_Max_Size): Use variant record for tracking value/expression.
21736          Makes logic clearer and prevents warnings for uninitialized variables.
21737         (Layout_Array_Type): Use variant record for tracking value/expression.
21738          Makes logic clearer and prevents warnings for uninitialized variables.
21740 2001-10-30  Robert Dewar <dewar@gnat.com>
21742         * lib.adb: Minor reformatting
21744         * s-taprop.ads: Minor reformatting
21746 2001-10-29  Laurent Guerby  <guerby@acm.org>
21748         * init.c:
21749         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
21750         const.
21751         (_gnat_error_handler): Make MSG const.
21753 2001-10-29  Richard Kenner <kenner@gnat.com>
21755         * sysdep.c: Fix localtime_r problem on LynxOS.
21756         Also remove #elif to avoid warnings.
21758         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
21759         used by this.
21761         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
21763 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
21765         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
21766         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
21767         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
21768         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
21769         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
21770         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
21771         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
21772         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
21773         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
21774         types.ads, urealp.adb: Fix spelling errors.
21776 2001-10-27  Laurent Guerby <guerby@acm.org>
21778         * trans.c (gigi): Fix non determinism leading to bootstrap
21779         comparison failures for debugging information.
21781 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
21783         * gnat_rm.texi: Use @./@: where appropriate.
21785 2001-10-26  Robert Dewar <dewar@gnat.com>
21787         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
21789 2001-10-26  Richard Kenner <kenner@gnat.com>
21791         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
21793 2001-10-26  Richard Kenner <kenner@gnat.com>
21795         * decl.c (validate_size): Modify message for bad size to avoid
21796         implication that compiler is modifying the size.
21798 2001-10-26  Robert Dewar <dewar@gnat.com>
21800         * prj-util.adb: Minor reformatting. Fix bad header format.
21802 2001-10-26  Robert Dewar <dewar@gnat.com>
21804         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
21806         * sinfo.ads: Clarify use of Associated_Node (documentation only).
21808         * sem_ch12.adb: Change Node4 to Associated_Node. Change
21809         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
21810         much more narrowly in places where needed. These are cleanups.
21812 2001-10-26  Joel Brobecker <brobecke@gnat.com>
21814         * 5zosinte.ads (null_pthread): new constant.
21816         * 5ztaprop.adb:
21817         (Initialize_TCB): Initialize thread ID to null, to be able to verify
21818          later that this field has been set.
21819         (Finalize_TCB): ditto.
21820         (Suspend_Task): Verify that the thread ID is not null before using it.
21821         (Resume_Task): ditto.
21823         * s-tasdeb.adb:
21824         (Resume_All_Tasks): Lock the tasks list before using it.
21825         (Suspend_All_Tasks): ditto.
21827 2001-10-26  Richard Kenner <kenner@gnat.com>
21829         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
21830         Make constant variant of designated type for Is_Access_Constant.
21831         Call update_pointer_to with main variant.
21833         * trans.c (process_freeze_entity, process_type):
21834         Call update_pointer_to on main variant.
21836         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
21837         If main variant, update all other variants.
21839         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
21840         TREE_STATIC.
21842 2001-10-26  Robert Dewar <dewar@gnat.com>
21844         * prj-util.adb: Minor reformatting
21846 2001-10-26  Robert Dewar <dewar@gnat.com>
21848         * prj-util.adb: Minor reformatting
21850 2001-10-26  Robert Dewar <dewar@gnat.com>
21852         * prj-attr.adb: Minor reformatting throughout
21854 2001-10-26  Robert Dewar <dewar@gnat.com>
21856         * prj-attr.ads: Minor reformatting
21857         Add ??? comment (this whole spec has almost no comments)
21859 2001-10-26  Vincent Celier <celier@gnat.com>
21861         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
21862         ("//") that precede the drive letter on Interix.
21864 2001-10-26  Geert Bosch <bosch@gnat.com>
21866         * gnat_rm.texi: Add GNAT Reference Manual.
21868 2001-10-25  Robert Dewar <dewar@gnat.com>
21870         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
21871         is Error. Similar change for other renaming cases.
21873 2001-10-25  Robert Dewar <dewar@gnat.com>
21875         * s-atacco.ads: Add pragma Inline_Always for functions.
21876         Fix header format. Add copyright 2001
21878 2001-10-25  Ed Schonberg <schonber@gnat.com>
21880         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
21881         return Error rather than Empty so that analysis can proceed.
21883 2001-10-25  Ed Schonberg <schonber@gnat.com>
21885         * sem_util.adb (Enter_Name): better handling of cascaded error
21886         messages when a unit appears in its own context.
21888 2001-10-25  Ed Schonberg <schonber@gnat.com>
21890         * sem_util.adb (Defining_Entity): in case of error, attach created
21891         entity to specification, so that semantic analysis can proceed.
21893 2001-10-25  Robert Dewar <dewar@gnat.com>
21895         * sem_util.adb
21896         (Defining_Entity): Deal with Error.
21897         (Process_End_Label): Deal with bad end label for.
21899 2001-10-25  Ed Schonberg <schonber@gnat.com>
21901         * sem_elab.adb (Check_A_Call): refine message when call is in an
21902         instance but callee is not declared in the generic unit.
21904 2001-10-25  Ed Schonberg <schonber@gnat.com>
21906         * sem_elab.adb (Check_A_Call): check for renaming before finding the
21907         enclosing unit, which may already be different from the calling unit.
21909 2001-10-25  Geert Bosch <bosch@gnat.com>
21911         * 4gintnam.ads: fix header format.
21913 2001-10-25  Ed Schonberg <schonber@gnat.com>
21915         * sem_res.adb (Resolve_Call): if the call is actually an indexing
21916         operation on the result of a parameterless call, perform elaboration
21917         check after the node has been properly rewritten.
21919         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
21920         inlined within the generic tree, the defining identifier is not a
21921         compilation_unit.
21923 2001-10-25  Ed Schonberg <schonber@gnat.com>
21925         * sem_res.adb (Resolve): special-case resolution of Null in an
21926          instance or an inlined body to avoid view conflicts.
21928         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
21929          compatibility by retrieving the access type of the generic copy.
21931 2001-10-25  Robert Dewar <dewar@gnat.com>
21933         * sem_ch3.adb:
21934         (Analyze_Number_Declaration): Handle error expression.
21935         (Signed_Integer_Type_Declaration): Handle error bound.
21936         (Analyze_Subtype_Indication): Handle error range.
21938         * sem_util.adb (Get_Index_Bounds): Check for Error.
21940 2001-10-25  Robert Dewar <dewar@gnat.com>
21942         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
21943         in no run time mode.
21945 2001-10-25  Pascal Obry <obry@gnat.com>
21947         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
21948         mode case for ALLOC case.
21950         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
21951         all platforms. Improvement of last change.
21953 2001-10-25  Robert Dewar <dewar@gnat.com>
21955         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
21957 2001-10-25  Geert Bosch  <bosch@gnat.com>
21959         * osint.adb (Is_Relative): Remove duplicate.
21961 2001-10-25  Pascal Obry <obry@gnat.com>
21963         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
21964         pathnames in UNIX and DOS style with drive letter.
21965         (Is_Relative): new routine.
21967         * osint.adb: Minor reformatting
21969         * osint.adb (Is_Relative): implementation using
21970         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
21972 2001-10-25  Pascal Obry <obry@gnat.com>
21974         * g-dirope.adb (Basename): correctly compute offset between the
21975         original Path and the translated one.
21977         * g-dirope.adb: (Base_Name): add some comments.
21979 2001-10-25  Robert Dewar <dewar@gnat.com>
21981         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
21982         in HIE mode, avoids compilation abandoned message
21984         * exp_imgv.adb: Correct typo in previous change
21986         * exp_imgv.adb: Correct typo in previous change (not my day!)
21988 2001-10-25  Robert Dewar <dewar@gnat.com>
21990         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
21992 2001-10-25  Pascal Obry <obry@gnat.com>
21994         * g-awk.ads: Move all pragma inlines next to the routine
21995          declarations. This is more uniform with other GNAT spec.
21997 2001-10-22  Geert Bosch  <bosch@gnat.com>
21999         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
22001 2001-10-19  Geert Bosch  <bosch@gnat.com>
22003         * Makefile.in (tools, gnattools): Remove gnatmem.
22005 2001-10-17  Richard Henderson  <rth@redhat.com>
22007         * Makefile.in (misc.o): Depend on langhooks.h.
22008         * misc.c: Include it.
22009         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
22010         (LANG_HOOKS_DECODE_OPTION): New.
22011         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
22013 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
22015         * trans.c (tree_transform): Adjust to recent change in
22016         expand_asm_operands to implement named asm operands.
22018 2001-10-11  Ed Schonberg  <schonber@gnat.com>
22020         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
22021         renaming of discriminant for mutable record type.
22023 2001-10-11  Robert Dewar  <dewar@gnat.com>
22025         * validsw.adb: Properly save -gnatVn status.
22027 2001-10-11  Robert Dewar <dewar@gnat.com>
22029         * usage.adb: Add lines for V switch.
22031         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
22032         (/VALIDITY_CHECKING).
22034 2001-10-11  Ed Schonberg <schonber@gnat.com>
22036         * sem_type.adb (Add_One_Interp): an operator for a type declared in
22037         an extension of System is known to be visible.
22039 2001-10-11  Ed Schonberg <schonber@gnat.com>
22041         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
22042         properly. Fixes regression on ACATS C34005G.
22044 2001-10-11  Robert Dewar <dewar@gnat.com>
22046         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
22047         loop in generic instance, since this is likely not very useful.
22049 2001-10-11  Robert Dewar <dewar@gnat.com>
22051         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
22052         the error message for high integrity mode.
22054         * rtsfind.adb (RTE): Give message if we try to find an entity that
22055         is not available in high integrity mode.
22057         * rtsfind.ads:
22058         (OK_To_Use_In_HIE_Mode): New array.
22059         (RTE): May return Empty in high integrity mode.
22061         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
22062         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
22064         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
22065         unit if not inlined always and in no runtime mode. Fixes problem
22066         caused by new Rtsfind changes.
22068         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
22069         body is deleted.
22071         * rtsfind.adb (RTE): Make sure we do not try to load unit after
22072         giving message for entity not available in high integrity mode.
22074 2001-10-11  Pascal Obry <obry@gnat.com>
22076         * impunit.adb: Add GNAT.CRC32.
22078 2001-10-11  Ed Schonberg <schonber@gnat.com>
22080         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
22081         properly the case where one universal operand in a non-static
22082         exponentiation of a real literal.
22084 2001-10-11  Ed Schonberg <schonber@gnat.com>
22086         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
22087         clause, return the gobal finalization list, for lack of anthing else.
22089 2001-10-11  Ed Schonberg <schonber@gnat.com>
22091         * exp_ch7.adb (Make_Transient_Block): if statement is within
22092         exception handler, always use new transient scope to place Clean
22093         procedure.
22095 2001-10-11  Pascal Obry <obry@gnat.com>
22097         * Makefile.in:
22098         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
22099         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
22100         (GNATLS_RTL_OBJS): add g-crc32.o
22101         (GNATMAKE_RTL_OBJS): add g-crc32.o
22103         * ali-util.adb:
22104         (CRC_Match): new function.
22105         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
22106         instead of the previous simple checksum algorithm.
22107         (Time_Stamp_Mismatch): use CRC_Match for comparison.
22108         (Set_Source_Table): idem.
22110         * ali-util.ads:
22111         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
22112         instead of simple checksum.
22113         (CRC_Match): new function.
22114         (CRC_Error): new constant.
22116         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
22117         a CRC now and not a simple checksum. A CRC uses lower-case hex
22118         letters, fixes ambiguity in parsing.
22120         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
22121         is what this variable will store.
22123         * bcheck.adb: Change reference to chechsum in comments by CRC.
22124         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
22125         rename All_Checksum_Match to All_CRC_Match. Change due to API
22126         renaming since now GNAT does not use a simple checksum but a
22127         CRC using GNAT.CRC32.
22129         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
22130         now and not anymore a simple checksum.
22132         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
22133         places.
22135         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
22137         * scans.adb:
22138         (Restore_Scan_State): rename Checksum to CRC.
22139         (Save_Scan_State): idem.
22141         * scans.ads:
22142         With GNAT.CRC32.
22143         (Checksum): rename to CRC.
22144         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
22146         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
22147         GNAT.CRC32).  Update copyright notice.
22149         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
22150         GNAT.CRC32).  Update copyright notice.
22152         * scn.adb:
22153         (Accumulate_Checksum): removed.
22154         (Update): new procedure. Add a wide-character into the CRC.
22156         * sinput-l.adb:
22157         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
22158         (Load_File): fix initialization of S (change Source_Checksum to
22159         Source_CRC)
22161         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
22162         Source_CRC in S initialization.
22164         * sinput.adb (Source_Checksum): renamed to Source_CRC.
22166         * sinput.ads (Source_Checksum): renamed to Source_CRC.
22167         Update comments for the CRC.
22169         * types.adb (Hex): Use lowercase for the letter part.
22171         * types.ads (Get_Hex_String): Returns the hexadecimal representation
22172         for a word. This is currently used only for CRC. In previous version,
22173         the checksum was using a representation with all letter being
22174         upper-case. With the new implementation (using CRC) we do not remove
22175         the 32th bit of the CRC, so we can have an upper-case starting letter
22176         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
22177         It is ambigous since the CRC was optional and could be followed by
22178         options like EB, EE. So now this routines uses lower-case letter for
22179         the hexadecimal representation. Strange enough only lower case letters
22180         where checked in Scan_ALI (even if this was not a possible case).
22182         * gnatvsn.ads (Library_Version): changed to 3.15a.
22184         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
22185         for the compiler.
22187         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
22188         for the compiler.
22190         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
22191         Add 2001 to copyright notice
22192         (Accumulate_Checksum): Modify to use System.CRC32.
22194         * ali-util.ads: Redo changes of previous revision to continue to use
22195         the word Checksum. Add 2001 to copyright notice.
22197         * ali.adb: Undo some of previous changes, not needed.
22198         Keep the change for lower case letters in the checksum.
22200         * ali.ads: Undo previous change not needed.
22202         * bcheck.adb: Undo most of previous change, not needed.
22203         But do use Checksums_Match for checksum comparison.
22205         * gnatls.adb: Undo most of previous change, not needed.
22206         But do use Checksums_Match for comparing checksums.
22208         * lib-load.adb: Undo previous change, not needed.
22210         * lib-writ.adb: Undo previous change, not needed.
22212         * lib-writ.ads: Document that checksums use lower case,
22213         not upper case letters.
22215         * scans.adb: Undo previous change, not needed
22217         * scans.ads: Undo previous change, not needed.
22219         * scn-nlit.adb: Undo previous changes, not needed.
22221         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
22223         * scn.adb:
22224         (Accumulate_Checksum): Use System.CRC32.
22225         (Initialize_Checksum): New procedure.
22226         Remove other changes of previous revision.
22228         * sinput-p.adb: Undo previous change, not needed.
22230         * sinput.adb: Undo previous change, not needed.
22232         * sinput-l.adb: Undo previous change, not needed.
22234         * sinput.ads: Undo previous change, not needed.  Keep only comment
22235         on new checksum algorithm
22237         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
22238         Also remove a-tags and a-stream from GNAT sources.
22240         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
22242         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
22244 2001-10-11  Geert Bosch  <bosch@gnat.com>
22246         * einfo.h: Regenerate.
22248         * nmake.ads: Regenerate.
22250         * nmake.adb: Regenerate.
22252         * sinfo.h: Regenerate.
22254         * treeprs.adb: Regenerate.
22256 2001-10-10  Geert Bosch  <bosch@gnat.com>
22258         * gnat-style.texi: New file describing coding guidelines for Ada.
22260 2001-10-10  Ed Schonberg <schonber@gnat.com>
22262         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
22263         is Flag174.
22265 2001-10-10  Geert Bosch  <bosch@gnat.com>
22267         * snames.ads: Add new names for project facility.
22269         * snames.adb: Update to reflect snames.ads changes.
22271         * snames.h: Update to reflect snames.ads changes.
22273 2001-10-10  Vincent Celier <celier@gnat.com>
22275         * make.adb:
22276         (Add_Switches): reflect the changes for the switches attributes
22277         Default_Switches indexed by the programming language,
22278         Switches indexed by the file name.
22279         (Collect_Arguments_And_Compile): Idem.
22280         Reflect the attribute name changes.
22282         * prj-attr.adb:
22283         (Initialisation_Data): Change the names of some packages and
22284         attributes.
22285         (Initialize): process case insensitive associative arrays.
22287         * prj-attr.ads:
22288         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
22290         * prj-dect.adb:
22291         (Parse_Attribute_Declaration): For case insensitive associative
22292          arrays, set the index string to lower case.
22294         * prj-env.adb:
22295         Reflect the changes of the project attributes.
22297         * prj-nmsc.adb:
22298         Replace Check_Naming_Scheme by Ada_Check and
22299         Language_Independent_Check.
22301         * prj-nmsc.ads:
22302         Replaced Check_Naming_Scheme by 2 procedures:
22303         Ada_Check and Language_Independent_Check.
22305         * prj-proc.adb:
22306         (Process_Declarative_Items): For case-insensitive associative
22307         arrays, set the index string to lower case.
22308         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
22309         Prj.Nmsc.Check_Naming_Scheme.
22311         * prj-tree.adb:
22312         (Case_Insensitive): New function
22313         (Set_Case_Insensitive): New procedure
22315         * prj-tree.ads:
22316         (Case_Insensitive): New function
22317         (Set_Case_Insensitive): New procedure
22318         (Project_Node_Record): New flag Case_Insensitive.
22320         * prj-util.adb:
22321         (Value_Of): new function to get the string value of a single
22322         string variable or attribute.
22324         * prj-util.ads:
22325         (Value_Of): new function to get the string value of a single
22326         string variable or attribute.
22328         * prj.adb:
22329         (Ada_Default_Spec_Suffix): New function
22330         (Ada_Default_Impl_Suffix): New function
22331         Change definitions of several constants to reflect
22332         new components of record types.
22334         * prj.ads:
22335         (Naming_Data): Change several components to reflect new
22336         elements of naming schemes.
22337         (Project_Data): New flags Sources_Present and
22338         Language_Independent_Checked.
22339         (Ada_Default_Spec_Suffix): New function.
22340         (Ada_Default_Impl_Suffix): New function.
22342         * snames.ads:
22343         Modification of predefined names for project manager: added
22344         Implementation, Specification_Exceptions, Implementation_Exceptions,
22345         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
22346         Default_Switches, _Languages, Builder, Cross_Reference,
22347         Finder. Removed Body_Part, Specification_Append, Body_Append,
22348         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
22349         Gnatlink.
22351         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
22352         Add comments.
22354         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
22355         not that it is Nil_Variable_Value.
22357         * prj.ads: Add ??? for uncommented declarations
22359 2001-10-10  Ed Schonberg <schonber@gnat.com>
22361         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
22362         constant, do not indicate possible modification, so that gigi can
22363         treat it as a bona fide constant.
22365 2001-10-10  Robert Dewar <dewar@gnat.com>
22367         * sem_prag.adb: Add processing for pragma External.
22369         * snames.ads: Add entry for pragma External.
22371         * par-prag.adb: Add pragma External.
22373         * snames.adb: Updated to match snames.ads.
22375 2001-10-10  Ed Schonberg <schonber@gnat.com>
22377         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
22378         a dynamic task if the allocator appears in an indexed assignment
22379         or selected component assignment.
22381         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
22382         For a dynamic task in an assignment statement, use target of
22383         assignment to generate meaningful name.
22385 2001-10-10  Ed Schonberg <schonber@gnat.com>
22387         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
22388         a generic package.
22390         * einfo.ads: Body_Entity is also defined for generic package.
22391         Documentation change only
22393         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
22394         others_choice for a discriminated component initialization,
22395         convert discriminant references into the corresponding discriminals.
22397         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
22398         only if original type is private and expression has to be wrapped
22399         in a conversion.
22401         * checks.adb:
22402         (Apply_Constraint_Check): Do not perform length check
22403         if expression is an aggregate with only an others_choice.
22404         (Length_N_Cond): two references to the same in_parameter
22405         (typically the discriminal in an init_proc) denote the same value.
22406         Two useful optimization uncovered by bugfixes above.
22408 2001-10-10  Robert Dewar <dewar@gnat.com>
22410         * xeinfo.adb: Change int to char in translation of enumeration types.
22411         This fixes a problem in the C representation of component alignment.
22412         Add 2001 to copyright notice
22414 2001-10-10  Richard Kenner <kenner@gnat.com>
22416         * decl.c: (validate_size): Do check size of object of integral type
22417         if it is a packed array type.
22419 2001-10-10  Richard Kenner <kenner@gnat.com>
22421         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
22422         VAR_DECL for constant if not Is_Public but -O0.
22424 2001-10-10  Richard Kenner  <kenner@gnat.com>
22426         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
22428 2001-10-10  Geert Bosch  <bosch@gnat.com>
22430         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
22431         use '/' as switch character, allowing for absolute file names.
22433 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
22435         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
22436         FSF address.
22438 2001-10-08  Geert Bosch  <bosch@gnat.com>
22440         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
22441         Automatically build utilities when files need to be regenerated.
22443 2001-10-08  Geert Bosch  <bosch@gnat.com>
22445         * xsnames.adb: New utility for updating snames.ads and snames.adb
22447 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
22449         * Make-lang.in (ADAFLAGS): Add -W -Wall.
22450         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
22451         (gnat1): Also depend on attribs.o.
22452         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
22453         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
22454         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
22455         (ADAFLAGS): Add -W -Wall.
22456         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
22457         take out CFLAGS.
22459         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
22460         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
22461         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
22462         Use $(ADAC), not $(CC), as compilation command.
22464         (gnattools): Depend directly on tools to build, don't use
22465         recursive make.
22466         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
22468         * einfo.h, sinfo.h: New files (autogenerated).
22470 2001-10-08  Richard Henderson  <rth@redhat.com>
22472         * comperr.adb (Abort_In_Progress): New.
22473         (Compiler_Abort): Use it to prevent recursion.
22475 2001-10-08  Robert Dewar <dewar@gnat.com>
22477         * atree.adb: Set Error_Posted in Error node, helps error recovery.
22479         * par-endh.adb (Output_End_Expected): We should also not test
22480         Error_Posted on the Error node, since now it is always set.
22482         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
22483         to help error recovery. Part of general work on 9407-004.
22485         * par.adb: Add ??? for misuse of error
22487         * sem_res.adb:
22488         (Resolve): Defend against Error, fixes 9407-003.
22489         (Resolve_Discrete_Subtype_Indication): Defend against Error.
22491         * sinfo.ads (N_Error): Now has Etype field (which will be set
22492         to Any_Type to help error recovery).
22494 2001-10-08  Richard Kenner (kenner@gnat.com)
22496         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
22497         Consistently set MEM attributes from expression; fixes
22498         bootstrap failure on x86.
22500 2001-10-08  Geert Bosch  (bosch@gnat.com)
22502         * 5oosinte.adb: Add 2001 to copyright notice.
22504 2001-10-08  Geert Bosch  (bosch@gnat.com)
22506         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
22508         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
22510 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
22512         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
22514 2001-10-05  Geert Bosch  (bosch@gnat.com)
22516         * adaint.h: Small formatting fix.
22518 2001-10-04  Geert Bosch  <bosch@gnat.com>
22520         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
22521         Arg is int, not FILE *, in dummy version of functions.
22523         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
22524         Arg is int, not FILE *.
22526 2001-10-04  Geert Bosch  <bosch@gnat.com>
22528         * 3lsoccon.ads: Added file, missed with initial check ins.
22530         * 4lintnam.ads: Fix header format.
22531         Change Linux to GNU/Linux.
22533         * 5iosinte.adb: Change Linux to GNU/Linux.
22535         * 5iosinte.ads: Change Linux to GNU/Linux.
22537         * 5itaprop.adb: Change Linux to GNU/Linux.
22539         * 5itaspri.ads: Change Linux to GNU/Linux.
22540         Update copyright notice.
22542         * 5lintman.adb: Change Linux to GNU/Linux.
22544         * 5lml-tgt.adb: Change Linux to GNU/Linux.
22546         * 5losinte.ads: Change Linux to GNU/Linux.
22548         * 5lsystem.ads: Change Linux to GNU/Linux.
22550         * 5qosinte.adb: Change Linux to GNU/Linux.
22552         * 5qosinte.ads: Change Linux to GNU/Linux.
22554         * 5qparame.ads: Change Linux to GNU/Linux.
22556         * 5qtaprop.adb: Change Linux to GNU/Linux.
22558         * 5qtaspri.ads: Change Linux to GNU/Linux.
22559         Add 2001 to copyright notice.
22561         * 5vintman.ads: Change Linux to GNU/Linux.
22562         Fix header format.  Add 2001 to copyright notice.
22564         * g-soccon.ads: Change Linux to GNU/Linux.
22566         * g-trasym.ads: Change Linux to GNU/Linux.
22567         Add 2001 to copyright notice.
22569         * memtrack.adb: Change Linux to GNU/Linux.
22571         * s-intman.ads: Change Linux to GNU/Linux.
22572         Add 2001 to copyright notice.  Fix header format.
22574         * s-stache.adb: Change Linux to GNU/Linux.
22576         * adaint.c: Change Linux to GNU/Linux.
22578         * cio.c: Change Linux to GNU/Linux.
22580         * cstreams.c: Change Linux to GNU/Linux.
22582         * init.c: Change Linux to GNU/Linux.
22584         * gmem.c: Change Linux to GNU/Linux.
22586         * tracebak.c: Change Linux to GNU/Linux.
22589 2001-10-02  Geert Bosch  <bosch@gnat.com>
22591         * misc.c (insert_default_attributes): Add dummy version.