OSDN Git Service

8257e4265f215ed611c22339c7ffe4042b1713b8
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2
3         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
4
5 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
6
7         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
8         needed.
9
10 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
11
12         * Make-lang.in: Update dependencies
13
14 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
15
16         * Make-lang.in: Add rule for ada/exp_sel.o
17
18 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
19
20         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
21
22 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
23
24         * gnatvsn.ads (Library_Version): Bump to version 4.2
25         (ASIS_Version_Number): Bumped.
26
27 2005-12-09  Doug Rupp  <rupp@adacore.com>
28
29         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
30         Ada bind file prefix on VMS from b$ to b__.
31         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
32         __init.
33
34         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
35         Targparm.OpenVMS_On_Target.
36         (Object_Suffix): Initialize with target object suffix.
37         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
38
39         * butil.adb: Change some Hostparm.OpenVMS checks to
40         Targparm.OpenVMS_On_Target.
41
42         * clean.adb: Change some Hostparm.OpenVMS checks to
43         Targparm.OpenVMS_On_Target.
44         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
45         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
46         Ada bind file prefix on VMS from b$ to b__.
47
48         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
49         --GCC so that Get_Target_Parameters can find system.ads.
50         (Gnatlink): Call Get_Target_Parameters in mainline.
51         Initialize standard packages for Targparm.
52         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
53         (Process_Args): Also Check for object files with target object
54         extension.
55         (Make_Binder_File_Names): Create with target object extension.
56         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
57         to b__.
58
59         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
60         Targparm.OpenVMS_On_Target.
61         ({declaration},Build_Library,Check_Library): Change Ada bind file
62         prefix on VMS from b$ to b__.
63
64         * osint-b.adb: Change some Hostparm.OpenVMS checks to
65         Targparm.OpenVMS_On_Target.
66         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
67         b__.
68
69         * targext.c: New file.
70
71         * Makefile.in: add support for vxworks653 builds
72         (../../vxaddr2line): gnatlink with targext.o.
73         (TOOLS_LIBS): Move targext.o to precede libgnat.
74         (init.o, initialize.o): Minor clean up in dependencies.
75         (GNATLINK_OBJS): Add targparm.o, snames.o
76         Add rules fo building targext.o and linking it explicitly with all
77         tools.
78         Also add targext.o to gnatlib.
79
80         * Make-lang.in: Add rules for building targext.o and linking it in
81         with gnat1 and gnatbind.
82         Add entry for exp_sel.o.
83
84         * osint.adb Change some Hostparm.OpenVMS checks to
85         Targparm.OpenVMS_On_Target.
86         (Object_File_Name): Use target object suffix.
87
88         * osint.ads (Object_Suffix): Remove, no longer used.
89         (Target_Object_Suffix): Initialize with target object suffix.
90
91         * rident.ads: Add special exception to license.
92
93         * targparm.adb (Get_Target_Parameters): Set the value of
94         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
95         value.
96         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
97         
98         * targparm.ads: Add special exception to license.
99
100         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
101         function.
102         (Copy_File): Make sure from file is closed if error on to file
103         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
104
105         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
106         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
107
108         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
109         target object suffix.
110
111 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
112             Quentin Ochem  <ochem@adacore.com>
113             Florian Villoing  <villoing@adacore.com>
114
115         * a-taster.ads, a-taster.adb: New files.
116
117         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
118         link to the version that does nothing. This way the task termination
119         routine is not executed twice for the environment task when finishing
120         because of an unhandled exception.
121
122         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
123         handler because of an unhandled exception.
124
125         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
126         System.Tasking.Utilities instead of that in System.Tasking.Stages.
127
128         * s-finimp.adb (initialization code): Modify the soft link for the
129         finalization of the global list instead of Adafinal.
130
131         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
132         non-tasking version of the soft link for task termination. We do
133         nothing since if we are using the non-tasking version it
134         means that the task termination functionality is not used.
135         (Null_Finalize_Global_List): Add this null version for the procedure
136         in charge of finalizing the global list for controlled objects.
137         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
138         instead for handling run-time termination in a more flexible way.
139         (Adafinal_NT): This new procedure will take care of finalizing the
140         global list for controlled objects if needed, but no tasking
141         finalization.
142
143         * s-tarest.adb (Task_Lock): Do not try to lock again the
144         Global_Task_Lock if we already own it. Otherwise, we get blocked in
145         some run-time operations.
146         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
147         until all nested locks have been released.
148         (Task_Wrapper): Call the fall-back task termination handler. It
149         applies to all tasks but the environment task.
150         (Finalize_Global_Tasks): Add the call for the task termination
151         procedure for the environment task.
152         (Task_Wrapper): suppress warnings around declaration of
153         Secondary_Stack_Address.
154
155         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
156         moved to the Common_ATCB record.
157         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
158         Common_ATCB record.
159         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
160         Common_ATCB record.
161
162         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
163         Fall_Back_Handler, and Specific_Handler.
164
165         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
166         defined in Ada.Task_Termination, to avoid circular dependencies.
167         (Termination_Handler): Redefine this type here, alredy defined in
168         Ada.Task_Termination, for avoiding circular dependencies.
169         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
170         for storing task termination handlers. In addition,
171         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
172         Common_ATCB because it is used by both the regular and the restricted
173         run times.
174         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
175         Common_ATCB because it is used by both the regular and the restricted
176         run times.
177         (Common_ATCB): Added a dynamic task analyzer field.
178
179         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
180         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
181         (Task_Wrapper): Call the task termination handler. It applies to all
182         tasks but the environment task.
183         (Finalize_Global_Tasks): Call the task termination procedure for the
184         environment task. The call to Finalize_Global_List is now performed
185         using the soft links mechanism.
186         (Task_Wrapper): added dynamic stack analysis.
187
188         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
189         potentially blocking operations has been moved from
190         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
191         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
192         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
193         this run-time check.
194
195         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
196         of task termination procedure.
197         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
198         link for the task termination procedure.
199
200         * bindusg.adb: (Bindusg): Added documentation for -u option.
201
202         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
203         (Get_Main_C): Add handling of dynamic stack analysis.
204         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
205
206         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
207         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
208         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
209
210         * opt.ads: Added flags used by dynamic stack measurement.
211         (Max_Line_Length): Remove (not used anymore)
212
213         * s-io.ads, s-io.adb (Standard_Error): new subprogram
214         (Standart_Output): new subprogram
215         (Set_Output): new subprogram
216         (Put): now uses the value of Current_Out to know if the output has to be
217         send to stderr or stdout.
218         
219         * s-stausa.ads: Complete implementation.
220
221         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
222         
223         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
224         list of Ada 05 files.
225         (GNAT Library Units): Add AltiVec files.
226
227         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
228         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
229         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
230
231 2005-12-09  Nicolas Setton  <setton@adacore.com>
232
233         * adaint.c (__gnat_locate_regular_file): Return immediately if
234         file_name is empty.
235
236 2005-12-09  Javier Miranda  <miranda@adacore.com>
237             Hristian Kirtchev  <kirtchev@adacore.com>
238
239         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
240         to the specification because the frontend generates code that uses this
241         subprogram.
242         (Set_Interface_Table): Add missing assertion.
243         Update documentation describing the run-time structure.
244         (Displace): New subprogram that displaces the pointer to the object
245         to reference one of its secondary dispatch tables.
246         (IW_Membership): Modified to use the new table of interfaces.
247         (Inherit_TSD): Modified to use the new table of interfaces.
248         (Register_Interface_Tag): Use the additional formal to fill the
249         contents of the new table of interfaces.
250         (Set_Interface_Table): New subprogram that stores in the TSD the
251         pointer to the table of interfaces.
252         (Set_Offset_To_Top): Use the additional formal to save copy of
253         the offset value in the table of interfaces.
254         Update structure of GNAT Primary and Secondary dispatch table diagram.
255         Add comment section on GNAT dispatch table prologue.
256         (Offset_To_Signature): Update the constant value of the Signature field.
257         (Dispatch_Table): Update comment on hidden fields in the prologue.
258         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
259         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
260         the type of formal parameter T to Tag, introduce additional assertions.
261         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
262         conversion.
263         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
264
265         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
266         in all the calls to Expand_Interface_Thunk. Instead of referencing the
267         record component containing the tag of the secondary dispatch table we
268         have to use the Offset_To_Top run-time function to get this information;
269         otherwise if the pointer to the base of the object has been displace
270         we get a wrong value if we use the 'position attribute.
271
272         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
273         all the calls to Expand_Interface_Thunk.
274         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
275         interfaces; hence the call to Set_Interface_Table was clearly wrong.
276         (Collect_All_Interfaces): Modify the internal subprogram Collect to
277         ensure that the interfaces implemented by the ancestors are placed
278         at the header of the generated list.
279         (Expand_Interface_Conversion): Handle the case in which the displacement
280         associated with the interface conversion is not statically known. In
281         this case we generate a call to the new run-time subprogram Displace.
282         (Make_DT): Generate and fill the new table of interfaces.
283         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
284         Get_Tagged_Kind and Set_Tagged_Kind.
285         (Tagged_Kind): New function that determines the tagged kind of a type
286         with respect to limitedness and concurrency and returns a reference to
287         RE_Tagged_Kind.
288         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
289         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
290         primary dispatch table for a type.
291         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
292         secondary dispatch table respectively of a tagged type.
293
294         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
295         (Expand_Interface_Conversion): New subprogram to indicate if the
296         displacement of the type conversion is statically known.
297         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
298
299         * rtsfind.ads (RE_Offset_To_Top): New entity
300         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
301         accessible to users.
302         (Re_Displace): New entity
303         (RE_Interface_Data): New entity
304         (RE_Set_Interface_Data): New_Entity
305         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
306         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
307         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
308         RE_TK_Tagged, RE_TK_Task.
309
310         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
311         Init_Secondary_Tags_Internal to allow its use with interface types and
312         also to generate the code for the new additional actual required
313         by Set_Offset_To_Top.
314         (Build_Init_Statements): In case of components associated with abstract
315         interface types there is no need to generate a call to its IP.
316         (Freeze_Record_Type): Generate Select Specific Data tables only for
317         concurrent types.
318         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
319         the bodies and specifications of the predefined primitive operations
320         dealing with dispatching selects and abort, 'Callable, 'Terminated only
321         for concurrent types.
322
323         * exp_sel.ads, exp_sel.adb: New files.
324
325         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
326         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
327         properly protected objects and attach handler in the case of the
328         restricted profile.
329         Move embeded package Select_Expansion_Utilities into a separate external
330         package.
331         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
332         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
333         (Build_K, Build_S_Assignment): New subprograms, part of the select
334         expansion utilities.
335         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
336         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
337         where the trigger is a dispatching procedure of a limited tagged type.
338
339 2005-12-09  Olivier Hainque  <hainque@adacore.com>
340
341         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
342         pointer initialization values. Make a SAVE_EXPR instead. Add comments
343         about the use and expansion of SAVE_EXPRs in the various possible
344         renaming handling cases.
345         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
346         abusing DECL_FCONTEXT.
347
348 2005-12-09  Matthew Heaney  <heaney@adacore.com>
349
350         * a-convec.adb (Merge): Added assertions to check whether vector params
351         are sorted.
352
353         * a-coinve.adb (Merge): Added assertions to check whether vector params
354         are sorted.
355
356         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
357         draft.
358         (Cursor'Read): raises PE
359
360         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
361         to its default value.
362
363         * a-cihama.adb: Manually check whether cursor's key and elem are
364         non-null
365
366         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
367         (Merge): Assert that target and source lists are in order
368         (Swap): Declare non-const temporaries, to pass to Splice
369
370         * a-cdlili.ads: (Splice): Changed param name and param mode
371
372         * a-cdlili.adb: (Splice): Changed param name and param mode
373         (Merge): Assert that target and source lists are in order
374         (Swap): Declare non-const temporaries, to pass to Splice
375
376         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
377         (Write): declare Stream param as not null
378
379         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
380         an exception message.
381
382 2005-12-09  Thomas Quinot  <quinot@adacore.com>
383             Robert Dewar  <dewar@adacore.com>
384
385         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
386         which is the absolute maximum length we can support.
387
388         * frontend.adb: For the processing of configuration pragma files,
389         remove references to Opt.Max_Line_Length, which is not checked anymore.
390
391         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
392         length.
393
394         * scn.adb, scng.adb: 
395         Always check line length against the absolute supported maximum,
396         Hostparm.Max_Line_Length.
397
398         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
399         value for the maximum line length is Max_Line_Length (not
400         Column_Number'Last).
401         Minor error msg update
402         (Set_Style_Check_Options): New interface returning error msg
403         Minor code reorganization (processing for 'M' was out of alpha order)
404
405         * switch-c.adb: New interface for Set_Style_Check_Options
406
407         * stylesw.ads (Set_Style_Check_Options): New interface returning error
408         msg.
409
410 2005-12-09  Javier Miranda  <miranda@adacore.com>
411
412         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
413         with IP subprogram were only supported if there were limited types.
414
415         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
416         records with IP subprogram were only supported if there were limited
417         types.
418
419 2005-12-09  Olivier Hainque  <hainque@adacore.com>
420             Eric Botcazou  <ebotcazou@adacore.com>
421
422         * trans.c (tree_transform, emit_check): Adjust calls to
423         build_call_raise, passing the now expected GNAT_NODE argument.
424
425         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
426         source line information than what the current global locus indicates
427         when appropriate.
428
429         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
430         field has overflowed.
431         (build_call_raise): Add a GNAT_NODE argument to convey better source
432         line information than what the current global locus indicates when
433         appropriate.
434         (build_component_ref): Adjust call to build_call_raise.
435
436 2005-12-09  Pascal Obry  <obry@adacore.com>
437
438         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
439         the iterator is quitting iteration on parent directory.
440
441 2005-12-09  Javier Miranda  <miranda@adacore.com>
442
443         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
444         and the assignment to a class-wide object, before the assignment we
445         generate a run-time check to ensure that the tag of the Target is
446         covered by the tag of the source.
447
448 2005-12-09  Robert Dewar  <dewar@adacore.com>
449
450         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
451         parameter in call to Image_Wide_Character.
452
453         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
454         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
455         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
456         annoying FFFE/FFFF inconsistency.
457
458 2005-12-09  Robert Dewar  <dewar@adacore.com>
459             Javier Miranda  <miranda@adacore.com>
460             Ed Schonberg  <schonberg@adacore.com>
461
462         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
463         of type conversion.
464         (Find_Interface): New subprogram that given a tagged type and one of its
465         component associated with the secondary table of an abstract interface
466         type, return the entity associated with such abstract interface type.
467         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
468         base type to create anonymous subtype, because entity may be a locally
469         declared subtype or generic actual.
470         (Find_Interface): New subprogram that given a tagged type and one of its
471         component associated with the secondary table of an abstract interface
472         type, return the entity associated with such abstract interface type.
473
474         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
475         conversion cannot be handled at compile time. In this case we pass this
476         information to the expander to generate the appropriate code.
477
478 2005-12-09  Robert Dewar  <dewar@adacore.com>
479             Ed Schonberg  <schonberg@adacore.com>
480             Gary Dismukes  <dismukes@adacore.com>
481             Javier Miranda  <miranda@adacore.com>
482             Hristian Kirtchev  <kirtchev@adacore.com>
483
484         * einfo.adb (Itype_Printed): New flag
485         (Is_Limited_Type): Derived types do not inherit limitedness from
486         interface progenitors.
487         (Is_Return_By_Reference_Type): Predicate does not apply to limited
488         interfaces.
489
490         * einfo.ads (Itype_Printed): New flag
491         Move Is_Wrapper_Package to proper section
492         Add missing Inline for Is_Volatile
493
494         * output.ads, output.adb (Write_Erase_Char): New procedure
495         (Save/Restore_Output_Buffer): New procedures
496         (Save/Restore_Output_Buffer): New procedures
497
498         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
499         Add missing support for anonymous access type
500         (Write_Id): Insert calls to Write_Itype
501         (Write_Itype): New procedure to output itypes
502
503         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
504         use of "limited" in declaration.
505
506         * sinfo.ads, sinfo.adb: 
507         Formal derived types can carry an explicit "limited" indication.
508
509         * sem_ch3.adb: Add with and use of Targparm.
510         (Create_Component): If Frontend_Layout_On_Target is True and the
511         copied component does not have a known static Esize, then reset
512         the size and positional fields of the new component.
513         (Analyze_Component_Declaration): A limited component is
514         legal within a protected type that implements an interface.
515         (Collect_Interfaces): Do not add to the list the interfaces that
516         are implemented by the ancestors.
517         (Derived_Type_Declaration): If the parent of the full-view is an
518         interface perform a transformation of the tree to ensure that it has
519         the same parent than the partial-view. This simplifies the job of the
520         expander in order to generate the correct object layout, and it is
521         needed because the list of interfaces of the full-view can be given in
522         any order.
523         (Process_Full_View): The parent of the full-view does not need to be
524         a descendant of the parent of the partial view if both parents are
525         interfaces.
526         (Analyze_Private_Extension_Declaration): If declaration has an explicit
527         "limited" the parent must be a limited type.
528         (Build_Derived_Record_Type): A derived type that is explicitly limited
529         must have limited ancestor and progenitors.
530         (Build_Derived_Type): Ditto.
531         (Process_Full_View): Verify that explicit uses of "limited" in partial
532         and full declarations are consistent.
533         (Find_Ancestor_Interface): Remove function.
534         (Collect_Implemented_Interfaces): New procedure used to gather all
535         implemented interfaces by a type.
536         (Contain_Interface): New function used to check whether an interface is
537         present in a list.
538         (Find_Hidden_Interface): New function used to determine whether two
539         lists of interfaces constitute a set equality. If not, the first
540         differing interface is returned.
541         (Process_Full_View): Improve the check for the "no hidden interface"
542         rule as defined by AI-396.
543
544 2005-12-09  Robert Dewar  <dewar@adacore.com>
545
546         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
547         types, not on record subtypes.
548         (Freeze_Entity): Code cleanup. Add barrier to the loop
549         that generates the references for primitive operations. This allows to
550         remove an unnecessary exception handler.
551         Code reformatting and comment clean ups.
552
553 2005-12-09  Vincent Celier  <celier@adacore.com>
554
555         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
556         If GNAT CHECK is called with a project file, but with no
557         source on the command line, call gnatcheck with all the compilable
558         sources of the project.
559         Take into account the new command Check, for gnatcheck. Treat as for
560         other ASIS tools: take into account project, specific package Check and
561         Compiler switches.
562         For ASIS tools, add the switches in package Compiler for
563         the invocation of the compiler.
564
565         * prj-attr.adb: Add package Check and its attributes
566
567         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
568
569         * vms_conv.adb (Initialize): Change Params of command Check to
570         unlimited files.
571         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
572         Add data for new command Check
573
574         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
575         ELIM.
576         Add qualifiers for Check command options
577         (Command_Type): New command Check
578
579 2005-12-09  Thomas Quinot  <quinot@adacore.com>
580
581         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
582         command line switch overruns the output buffer.
583
584 2005-12-09  Robert Dewar  <dewar@adacore.com>
585
586         * sem_prag.adb: Processing for new pragma Complete_Representation
587         (Analyze_Pragma, case Debug): Implement two argument form.
588
589         * par-prag.adb: Entry for new pragma Complete_Representation
590         (Prag, case Debug): Recognize two argument form of pragma Debug
591         New interface for Set_Style_Check_Options.
592
593         * sem_ch13.adb: Implement new pragma Complete_Representation.
594
595         * snames.adb, snames.ads, snames.h: Entry for new pragma
596         Complete_Representation.
597
598 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
599
600         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
601         available user-specified stream attributes on limited parameters to
602         also test the type directly rather than only its underlying type (for
603         Ada 95) and, in the case of Ada 2005, to check that the user-specified
604         attributes are visible at the point of the subprogram declaration.
605         For Ada 2005, the error message is modified to indicate that the
606         type's stream attributes must be visible (again, only for -gnat05).
607
608 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
609
610         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
611         anonymous access types.
612
613         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
614         matching of anonymous access types and anonymous access to subprogram
615         types. 'R'M 4.9.1 (2/2).
616
617 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
618
619         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
620         rule prematurely when operands are universal, remaining ambiguities
621         will be removed during resolution.
622         Code cleanup.
623
624         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
625         that are Ada 2005 functions.
626         (Has_Abstract_Interpretation): Subsidiary to
627         Remove_Conversions, to remove ambiguities caused by abstract operations
628         on numeric types when operands are universal.
629
630 2005-12-09  Robert Dewar  <dewar@adacore.com>
631
632         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
633         for case where spec is categorized.
634
635 2005-12-09  Javier Miranda  <miranda@adacore.com>
636
637         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
638         types use the corresponding record type. This was not needed before
639         the implementation of Ada 2005 synchronized types because
640         concurrent types were never tagged types in Ada 95.
641
642 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
643
644         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
645         first subtype of the type of the expression to verify that it is a
646         legal Time type.
647
648 2005-12-09  Robert Dewar  <dewar@adacore.com>
649
650         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
651         decoded names.
652
653 2005-12-09  Quentin Ochem  <ochem@adacore.com>
654             Robert Dewar  <dewar@adacore.com>
655             Ed Falis  <falis@adacore.com>
656             Florian Villoing  <villoing@adacore.com>
657             Thomas Quinot  <quinot@adacore.com>
658             Arnaud Charlet  <charlet@adacore.com>
659
660         * gnat_ugn.texi: Created section "Stack Related Tools"
661         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
662         "Stack Related Tools"
663         Added subsection "Static Stack Usage Analysis"
664         Added subsection "Dynamic Stack Usage Analysis"
665         Include documentation of itypes in sprint listing (-gnatG)
666         Documented gnatbind -D switch (default sec stack size for fixed sec
667         stacks).
668         Added Interrupt_State and Persistent_BSS to list of configuration
669         pragmas.
670         Add missing doc for maximum value of nnn in -gnatyMnnn
671
672         * gnat_rm.texi: Document the AltiVec binding.
673         Add documentation for pragma Complete_Representation
674         Shortened an overly long line (> 79 chars)
675         Clarify documentation of unchecked conversion in implementation
676         defined cases.
677         Document two argument form of pragma Debug
678
679         * types.ads (Column_Number): Update documentation.
680
681         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
682         library level Finalize_Storage_Only objects (these are not attached to
683         any finalization list).
684
685         * system-mingw.ads: (Underlying_Priorities): Update comment.
686
687 2005-12-09  Robert Dewar  <dewar@adacore.com>
688
689         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
690         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
691         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
692         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
693         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
694         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
695         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
696         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
697         reformatting.
698
699 2005-12-09  Robert Dewar  <dewar@adacore.com>
700
701         * s-vaflop-vms-alpha.adb: (Ne_F): New function
702         (Ne_G): New function
703
704         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
705         for tag assignment.
706         (Rewrite_Comparison): Handle case where operation is not a comparison
707         and ignore, and also handle type conversion case.
708
709 2005-12-09  Thomas Quinot  <quinot@adacore.com>
710
711         * exp_aggr.ads: Fix typo in comment.
712         ???-mark Convert_Aggr_In_Assignment as needing documentation.
713
714 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
715
716         * layout.adb: Replace various uses of byte by storage unit throughout.
717         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
718         static size, convert to storage units before returning, to conform to
719         spec.
720
721 2005-12-09  Matthew Gingell  <gingell@adacore.com>
722
723         * g-exctra.ads: Fix typo in comment.
724
725 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
726
727         * utils.c: Minor reformatting.
728
729 2005-12-09  Robert Dewar  <dewar@adacore.com>
730
731         * g-soccon.ads: 
732         Further comment fixes to make the status of the default file clear
733
734         * s-bitops.adb: Clarify comment for Bits_Array
735
736 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
737
738         * Make-lang.in (ada.install-normal): Remove.
739
740 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
741
742         * Make-lang.in: Remove all dependencies on s-gtype.
743
744 2005-12-05  Richard Guenther  <rguenther@suse.de>
745
746         * utils.c (convert): Use fold_convert where appropriate.
747
748 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
749
750         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
751         a period is meant.
752
753 2005-12-02  Richard Guenther  <rguenther@suse.de>
754
755         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
756
757 2005-12-01  Roger Sayle  <roger@eyesopen.com>
758
759         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
760         nodes.
761
762 2005-11-23  Laurent GUERBY  <laurent@guerby.net>
763
764         * mlib-prj.adb (Build_Library): Initialize Delete.
765
766 2005-11-21  Joel Sherrill <joel.sherrill@oarcorp.com>
767
768         * socket.c: Add extern int h_errno for rtems since networking header
769         files are not available at this point in a tool bootstrap. Newlib
770         only has basic C library header files.
771
772 2005-11-19  Richard Guenther  <rguenther@suse.de>
773         Roger Sayle  <roger@eyesopen.com>
774
775         PR ada/23717
776         * misc.c (internal_error_function): Don't use vsprintf to format
777         the error message text, instead use pp_format_text and the new
778         pretty printer APIs.  This allows handling of %qs, %w, etc.
779
780 2005-11-18  Laurent GUERBY  <laurent@guerby.net>
781
782         PR ada/24857
783         * Makefile.in: Use s-auxdec-empty for RTEMS.
784
785 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
786
787         PR ada/22333
788         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
789         a temporary if taking the address of something that is neither
790         reference, declaration, or constant, since the gimplifier
791         can't handle that case.
792
793 2005-11-17  Laurent GUERBY  <laurent@guerby.net>
794
795         PR ada/24857
796         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
797         
798 2005-11-16  Richard Guenther  <rguenther@suse.de>
799
800         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
801
802 2005-11-16  Joel Sherrill <joel.sherrill@oarcorp.com>
803
804         PR ada/24855
805         * raise-gcc.c: Add missing stdarg.h include.
806  
807 2005-11-16  Richard Guenther  <rguenther@suse.de>
808
809         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
810         (ada/misc.o): Likewise.
811
812 2005-11-14  Thomas Quinot  <quinot@adacore.com>
813
814         * g-soccon.ads: Minor reformatting. Update comments.
815
816         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
817         gain visibility on the declaration of struct timeval.
818
819         * g-soccon-freebsd.ads,
820         g-soccon-darwin.ads,
821         g-soccon-tru64.ads,
822         g-soccon-aix.ads,
823         g-soccon-irix.ads,
824         g-soccon-hpux.ads,
825         g-soccon-solaris.ads,
826         g-soccon-vms.ads,
827         g-soccon-mingw.ads,
828         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
829
830         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
831         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
832         g-soccon-linux-x86.ads: New files.
833
834         * g-socthi-mingw.adb: 
835         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
836
837         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
838         (time_t, suseconds_t): New types constructed to match the tv_sec
839         and tv_usec fields of C struct timeval.
840         (Timeval): Construct structure in terms of the new types.
841         (Host_Errno): New function (imported from socket.c), returns last hosts
842         database error.
843
844         * g-socthi-vxworks.adb:  Add error handling circuitry.
845
846         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
847         components of struct timeval.
848         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
849         (Check_Selector): In error conditions, clear internal socket sets to
850         avoid a memory leak.
851         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
852         Send_Timeout, Receive_Timeout.
853
854         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
855         the tv_sec and tv_usec fields of C struct timeval.
856         (Timeval): Construct structure in terms of the new types.
857         (Host_Errno): New function (imported from socket.c), returns last hosts
858         database error.
859
860         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
861         hosts database last error code.
862
863         * gen-soccon.c: Complete value expansion should not be performed on
864         TARGET, as it has the form of a math expression, and some components
865         may be platform-defined macros.
866         For VxWorks, generate the OK and ERROR values.
867         New constants giving the sizes of the components of C struct timeval.
868
869 2005-11-14  Robert Dewar  <dewar@adacore.com>
870             Ed Schonberg  <schonberg@adacore.com>
871
872         PR ada/18434
873
874         * types.ads: Include All_Checks in Suppress_Array
875
876         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
877         not(a=b), since we no longer do this rewriting, and hence it is not
878         needed.
879         (Elaboration_Checks_Suppressed): Add special casing to
880         deal with different cases of static and dynamic elaboration checks (all
881         checks does not count in the first case, but does in the second).
882         (Expr_Known_Valid): Do not assume that the result of any arbitrary
883         function call is valid, since this is not the case.
884         (Ensure_Valid): Do not apply validity check to a real literal
885         in a universal or fixed context
886
887         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
888         elementary types using the operator in standard. It is cleaner not to
889         modify the programmers intent, especially in the case of floating-point.
890         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
891         it did not matter because we always rewrote a/=b to not(a=b).
892         (Expand_Allocator_Expression): For an allocator expression whose nominal
893         subtype is an unconstrained packed type, convert the expression to its
894         actual constrained subtype.
895         Implement warning for <= or >= where < or > not possible
896         Fix to Vax_Float tests (too early in many routines, causing premature
897         Vax_Float expansions.
898
899         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
900         to be used with packages and generic packages as well as with
901         subprograms.
902         (Suppress): Set All_Checks, but not Elaboration_Check, for case
903         of pragma Suppress (All_Checks)
904         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
905         a string literal for precise control over warnings.
906         Avoid raise of pragma in case of unrecognized pragma and just return
907         instead.
908
909         * sem_prag.ads: Minor reformatting
910
911         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
912         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
913         Switch. Do not handle any exception.
914         Include -gnatwx as part of -gnatg (warn on redundant parens)
915         Allow optional = after -gnatm
916         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
917         longer sets Elaboration_Checks.
918         Code to set warning mode moved to Sem_Warn
919         so that it can be shared by pragma processing.
920
921         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
922         statement.
923
924         * s-taprop-solaris.adb: 
925         Change some <= to =, to avoid new warning
926
927         * a-exexda.adb, prj-proc.adb: 
928         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
929         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
930
931 2005-11-14  Robert Dewar  <dewar@adacore.com>
932
933         * exp_vfpt.adb: Handle /= case
934         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
935         so that we do not get duplicate scaling for fixed point conversions.
936
937         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
938
939 2005-11-14  Matthew Gingell  <gingell@adacore.com>
940
941         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
942         Increase default priority on Lynx from 15 to 17, and meet the Ada
943         requirement that Default_Priority be ((Priority'First +
944         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
945
946 2005-11-14  Vincent Celier  <celier@adacore.com>
947
948         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
949         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
950         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
951         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
952         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
953         mlib-tgt-lynxos.adb (DLL_Prefix): New function
954
955 2005-11-14  Doug Rupp  <rupp@adacore.com>
956
957         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
958         private part.
959
960 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
961
962         * s-traces-default.adb, s-trafor-default.ads,
963         s-tratas-default.adb: Fix compilation errors.
964
965 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
966
967         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
968         raising the exception so the memory used is freed.
969
970 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
971
972         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
973         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
974         (convert_address): Update comments and list of platforms using this.
975
976         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
977         no longer used.
978
979 2005-11-14  Pascal Obry  <obry@adacore.com>
980             Vincent Celier  <celier@adacore.com>
981
982         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
983         GNAT.Command_Line.
984
985         * memroot.adb: Remove redundant with/use clause on
986         System.Storage_Elements.
987
988 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
989
990         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
991         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
992         related code to a-exexpr.adb
993         (Save_Occurrence_And_Private): Move GCC EH related code to
994         a-exexpr-gcc.adb
995         (Raise_Current_Excep): Add new variable Id with pragma
996         volatile, to ensure that the variable lives on stack.
997
998         * a-exexpr-gcc.adb, raise-gcc.c: New file.
999
1000         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
1001         from a-except.adb.
1002         Move GCC EH related code to a-exexpr-gcc.adb
1003
1004         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
1005         64-bit Solaris
1006         Split the Linux version of g-soccon into separate variants for 32 and 64
1007         bit platforms.
1008         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
1009         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
1010         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
1011         of host variable $(RANLIB_FLAGS).
1012         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
1013         Code clean up: remove unused/obsolete targets.
1014         (EH_MECHANISM): New variable introduced to differenciate between the
1015         two EH mechanisms statically.
1016         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
1017         (LIBGNAT_OBJS): Add raise-gcc.o
1018         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
1019         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
1020         supports VxWorks 6 RTPs.
1021         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
1022         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
1023
1024         * raise.c: Move all GCC EH-related routines to raise-gcc.c
1025
1026 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
1027
1028         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
1029         deferral level, when abort is not allowed, to a later stage (the
1030         Task_Wrapper).
1031         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
1032         it will not get changed by the generated code. It was previously done
1033         in Create_Task.
1034
1035 2005-11-14  Thomas Quinot  <quinot@adacore.com>
1036             Olivier Hainque  <hainque@adacore.com>
1037             Eric Botcazou  <ebotcazou@adacore.com>
1038
1039         * decl.c:
1040         Factor common code to build a storage type for an unconstrained object
1041         from a fat or thin pointer type and a constrained object type.
1042         (annotate_value): Handle BIT_AND_EXPR.
1043         (annotate_rep): Don't restrict the back annotation of inherited
1044         components to the type_annotate_only case.
1045         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
1046         we are not defining the type.
1047         <E_Record_Type>: Likewise.
1048         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
1049         to get advantage of the new maybe_stabilize_reference interface, to
1050         ensure that what we reference is indeed stabilized instead of relying
1051         on assumptions on what the stabilizer does.
1052         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
1053         type imported through a limited_with clause, use its non-limited view.
1054         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
1055         differentiation.
1056         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
1057         of #if sections + explicit comparisons of convention identifiers.
1058         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
1059         before early-returning for certain types when code generation is
1060         disabled.
1061         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
1062         nullification of gnu_expr we do for objects with address clause and
1063         that we are not defining.
1064         (elaborate_expression_1): Do not create constants when creating
1065         variables needed by the debug info: the dwarf2 writer considers that
1066         CONST_DECLs is used only to represent enumeration constants, and emits
1067         nothing for them.
1068         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
1069         object with an address clause into an indirect reference, drop the
1070         initializing expression.
1071         Include "expr.h".
1072         (STACK_CHECK_BUILTIN): Delete.
1073         (STACK_CHECK_PROBE_INTERVAL): Likewise.
1074         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
1075         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
1076         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
1077         corresponding to the renamed object as ignored for debugging purposes.
1078
1079         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
1080         related): For a prefix that is a dereference of a fat or thin pointer,
1081         if there is an actual subtype provided by the front-end, use that
1082         subtype to build an actual type with bounds template.
1083         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
1084         is provided by the front-end, use that subtype to compute the size of
1085         the deallocated object.
1086         (gnat_to_gnu): When adding a statement into an elaboration procedure,
1087         check for a potential violation of a No_Elaboration_Code restriction.
1088         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
1089         with extra arguments to control whether to recurse through non-values
1090         and to let the caller know if the stabilization has succeeded.
1091         (gnat_stabilize_reference): Now a simple wrapper around
1092         maybe_stabilize, for common uses without restriction on lvalues and
1093         without need to check for the success indication.
1094         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
1095         pass false instead of 0 as the FORCE argument which is a bool.
1096         (Identifier_to_gnu): Remove checks ensuring that an renamed object
1097         attached to a renaming pointer has been properly stabilized, as no such
1098         object is attached otherwise.
1099         (call_to_gnu): Invoke create_var_decl to create the temporary when the
1100         function uses the "target pointer" return mechanism.
1101         Reinstate conversion of the actual to the type of the formal
1102         parameter before any other specific treatment based on the passing
1103         mechanism. This turns out to be necessary in order for PLACEHOLDER
1104         substitution to work properly when the latter type is unconstrained.
1105
1106         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
1107         common pattern.
1108         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
1109         with extra arguments to control whether to recurse through non-values
1110         and to let the caller know if the stabilization has succeeded.
1111
1112         * utils2.c (gnat_build_constructor): Only sort the fields for possible
1113         static output of record constructor if all the components are constant.
1114         (gnat_build_constructor): For a record type, sort the list of field
1115         initializers in increasing bit position order.
1116         Factor common code to build a storage type for an unconstrained object
1117         from a fat or thin pointer type and a constrained object type.
1118         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
1119         types variants, and process special cases of VIEW_CONVERT expressions
1120         as their NOP_EXPR counterpart to ensure we get to the
1121         CORRESPONDING_VARs associated with CONST_DECls.
1122         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
1123         on the right-hand side.
1124
1125         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
1126         a common pattern.
1127         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
1128         are converting back to its original type.
1129         (convert) <JM input>: Fallthrough regular conversion code instead of
1130         extracting the object if converting to a type variant.
1131         (create_var_decl): When a variable has an initializer requiring code
1132         generation and we are at the top level, check for a potential violation
1133         of a No_Elaboration_Code restriction.
1134         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
1135         SIZE and SIZE_UNIT which we need for later back-annotations.
1136         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
1137         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
1138         is an unchecked union.
1139         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
1140         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
1141         main variant, just replace the VIEW_CONVERT_EXPR.
1142         <UNION_TYPE>: Revert 2005-03-02 change.
1143
1144         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
1145
1146         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
1147
1148 2005-11-14  Matthew Heaney  <heaney@adacore.com>
1149
1150         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
1151         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
1152         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
1153         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
1154         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
1155         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
1156         Compiles against the spec for ordered maps described in sections
1157         A.18.6 of the most recent (August 2005) AI-302 draft.
1158
1159 2005-11-14  Olivier Hainque  <hainque@adacore.com>
1160
1161         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
1162         to ensure bias adjustments take place when need be and to prevent
1163         occurrences of intermediate overflows.
1164
1165 2005-11-14  Matthew Gingell  <gingell@adacore.com>
1166             Olivier Hainque  <hainque@adacore.com>
1167
1168         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
1169         ia64 HP-UX.
1170
1171         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
1172         tracebacks on ia64 HP-UX and provide explanatory comment.
1173         Enable backtraces on ia64 GNU/Linux.
1174         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
1175         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
1176
1177 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
1178             Javier Miranda  <miranda@adacore.com>
1179
1180         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
1181         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
1182         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
1183         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
1184
1185         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
1186         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
1187         assertions).
1188
1189         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
1190         subprogram that generates the external name associated with a
1191         secondary dispatch table.
1192         (Get_Secondary_DT_External_Name): New subprogram that generates the
1193         external name associated with a secondary dispatch table.
1194
1195 2005-11-14  Emmanuel Briot  <briot@adacore.com>
1196
1197         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
1198         line in the ALI file to include both an instantiation reference, and a
1199         returned value.
1200
1201 2005-11-14  Vincent Celier  <celier@adacore.com>
1202
1203         * clean.adb (Check_Project): Look for Ada code in extending project,
1204         even if Ada is not specified as a language.
1205         Use new function DLL_Prefix for DLL_Name
1206         (Clean_Interface_Copy_Directory): New procedure
1207         (Clean_Library_Directory): New procedure
1208         (Clean_Directory): Remove procedure, no longer used
1209         (Clean_Project): Do not delete any file in an externally built project
1210
1211         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
1212         directory of an extending project, even when there are no Ada source
1213         present.
1214         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
1215         (Set_Ada_Paths.Add.Recursive_Add): Ditto
1216
1217         * mlib-prj.adb (Check_Library): For all library projects, get the
1218         library file timestamp.
1219         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
1220         (Build_Library): Use new function DLL_Prefix for the DLL_Name
1221         (Clean): Remove procedure, no longer used
1222         (Ultimate_Extension_Of): New function
1223         (Build_Library): When cleaning the library directory, only remove an
1224         existing library file and any ALI file of a source of the project.
1225         When cleaning the interface copy directory, remove any source that
1226         could be a source of the project.
1227
1228         * prj.ads, prj.adb (Project_Empty): Add values of new components
1229         Library_TS and All_Imported_Projects.
1230         (Project_Empty): Add values for new components of Project_Data:
1231         Library_ALI_Dir and Display_Library_ALI_Dir
1232
1233         * prj-attr.adb: New project level attribute name Library_ALI_Dir
1234
1235         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
1236         attribute Library_ALI_Dir.
1237         (Check_Library_Attributes): The library directory cannot be the same as
1238         any source directory of the project tree.
1239         (Check_Stand_Alone_Library): The interface copy directory cannot be
1240         the same as any source directory of the project tree.
1241
1242         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
1243         all temporary files.
1244
1245 2005-11-14  Robert Dewar  <dewar@adacore.com>
1246             Ed Schonberg  <schonberg@adacore.com>
1247
1248         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
1249         (Check_Elab_Call): A call within a protected body is never an
1250         elaboration call, and does not require checking.
1251         (Same_Elaboration_Scope): Take into account protected types for both
1252         entities.
1253         (Activate_Elaborate_All_Desirable): New procedure
1254
1255         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
1256         desirable
1257
1258         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
1259         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
1260
1261         * lib-writ.ads, lib-writ.adb: 
1262         Implement new AD/ED for Elaborate_All/Elaborate desirable
1263         Use new Elaborate_All_Desirable flag in N_With_Clause node
1264
1265         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
1266         N_Free_Statement nodes.
1267         Define new class N_Subprogram_Instantiation
1268         Add Elaborate_Desirable flag to N_With_Clause node
1269         Add N_Delay_Statement (covering two kinds of delay)
1270
1271         * debug.adb: Introduce d.f flag for compiler
1272         Add -da switch for binder
1273
1274 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
1275             Cyrille Comar  <comar@adacore.com>
1276
1277         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
1278         for task component, in the case of a limited aggregate. The enclosed
1279         object declaration will create it earlier. Otherwise, in the case of a
1280         nested aggregate, the object may appear in the wrong scope.
1281         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
1282         (Gen_Assign): If the component being assigned is an array type and the
1283         expression is itself an aggregate, wrap the assignment in a block to
1284         force finalization actions on the temporary created for each row of the
1285         enclosing object.
1286         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
1287         structures are initialized after all discriminants are set so that
1288         they can be accessed even when their offset is dynamic.
1289
1290 2005-11-14  Robert Dewar  <dewar@adacore.com>
1291             Hristian Kirtchev  <kirtchev@adacore.com>
1292
1293         * sem_attr.adb: Implement Machine_Rounding attribute
1294         (Analyze_Access_Attribute): The access attribute may appear within an
1295         aggregate that has been expanded into a loop.
1296         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
1297         'Terminated whenever the prefix is of a task interface class-wide type.
1298         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
1299         the prefix is of a task interface class-wide type.
1300
1301         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
1302         to avoid warnings.
1303
1304         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
1305         Remove pragma Inline for [Unaligned_]Valid.
1306         Add comments that Valid routines do not work for Vax_Float
1307
1308         * exp_attr.adb: Implement Machine_Rounding attribute
1309
1310         * snames.h: Add entry for Machine_Rounding attribute
1311
1312 2005-11-14  Javier Miranda  <miranda@adacore.com>
1313             Robert Dewar  <dewar@adacore.com>
1314             Hristian Kirtchev  <kirtchev@adacore.com>
1315
1316         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
1317         and related): For a prefix that is an explicit dereference of an
1318         access to unconstrained packed array type, annotate the dereference
1319         with an actual subtype so GIGI can make a correct size computation.
1320         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
1321         'Unrestricted_Access, if the designated type is an interface we
1322         add a type conversion to force the displacement of the pointer
1323         to the secondary dispatch table.
1324         Use Universal_Real instead of Long_Long_Float when we need a high
1325         precision float type for the generated code (prevents gratuitous
1326         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
1327         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
1328         'Terminated for task interface class-wide objects. Generate a call to
1329         the predefined dispatching routine used to retrieve the _task_id from
1330         a task corresponding record.
1331         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
1332
1333         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
1334         (Check_Dispatching_Operation): Protect the frontend againts
1335         previously detected errors.
1336
1337         * Makefile.rtl: Add new instantiations of system.fat_gen
1338
1339         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
1340         Change name of instantiated package for better consistency
1341         with newly added system.fat_gen instantiations.
1342
1343         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
1344         s-fvagfl.ads: New files.
1345
1346 2005-11-14  Cyrille Comar  <comar@adacore.com>
1347             Thomas Quinot  <quinot@adacore.com>
1348
1349         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
1350         assignment of a value of a tagged type that has been rewritten to a
1351         block statement, it is known by construction that no checks are
1352         necessary for the statements within the block: analyze it with checks
1353         suppressed.
1354         (Expand_N_If_Statement): When killing a dead then-branch in an
1355         if-statement that has elsif_parts, recompute the Current_Value node
1356         for any entity whose value is known from the condition of the first
1357         elsif_part.
1358         (Expand_N_Return_Statement): When returning a mutable record, convert
1359         the return value into its actual subtype in order to help the backend
1360         to return the actual size instead of the maximum. This is another
1361         aftermath of not returning mutable records on the sec-stack anymore.
1362
1363         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
1364         handling of error msg for suspicious reverse range iteration.
1365         (Check_Possible_Current_Value_Condition): Move declaration from body to
1366         spec, to allow this subprogram to be called from exp_ch5.
1367
1368 2005-11-14  Thomas Quinot  <quinot@adacore.com>
1369
1370         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
1371         generate a set of nested array aggregates instead of a single flat
1372         aggregate for multi-dimensional arrays.
1373
1374 2005-11-14  Pascal Obry  <obry@adacore.com>
1375
1376         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
1377         by spawnve is a process handle, no need to convert. Add a parameter
1378         close to control wether the process handle must be closed.
1379         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
1380         a process handle, not need to convert.
1381         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
1382
1383         * g-expect.adb: (Kill): Document the new close parameter.
1384         (Close): Do not release the process handle in the kill there as
1385         waitpid() is using it.
1386         (Send_Signal): Release the process handle.
1387
1388 2005-11-14  Robert Dewar  <dewar@adacore.com>
1389
1390         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
1391         need a high precision float type for the generated code (prevents
1392         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
1393         used).
1394
1395         * exp_imgv.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).
1399         (Expand_Width_Attribute): In configurable run-time, the attribute is not
1400         allowed on non-static enumeration subtypes. Force a load error to emit
1401         the correct diagnostic.
1402
1403 2005-11-14  Thomas Quinot  <quinot@adacore.com>
1404             Robert Dewar  <dewar@adacore.com>
1405             Ed Schonberg  <schonberg@adacore.com>
1406
1407         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
1408         subtype to compute the size of the designated object at run-time,
1409         create such a subtype and store it in the Actual_Designated_Subtype
1410         attribute of the N_Free_Statement.
1411         Generate itype for classwide designated object in both cases of
1412         user-specified storage pool: specific and class-wide, not only in the
1413         specific case.
1414         Raise CE when trying to set a not null access type object to null.
1415         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
1416         an explicit loop, because freeze nodes make its position variable.
1417
1418         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
1419         null object.
1420
1421 2005-11-14  Javier Miranda  <miranda@adacore.com>
1422
1423         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
1424         Build_Stream_Procedure): Add the null-excluding attribute to the first
1425         formal.
1426         This has no semantic meaning under Ada95 mode but it is a
1427         requirement under Ada05 mode.
1428
1429         * par-ch3.adb (P_Access_Definition): Addition of warning message if
1430         the null exclusion is used under Ada95 mode
1431         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
1432         (P_Access_Definition): Remove assertion that forbids the use of
1433         the null-exclusion feature in Ada95.
1434
1435 2005-11-14  Robert Dewar  <dewar@adacore.com>
1436
1437         * impunit.adb: Exclude container helper units not intended for use by
1438         users.
1439
1440 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
1441
1442         * freeze.adb (Freeze_Entity): For an access formal that is an access
1443         to subprogram, freeze the anonymous subprogram type at the same time,
1444         to prevent later freezing in the wrong scope, such as the enclosing
1445         subprogram body.
1446         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
1447         subprogram whenever available.
1448
1449 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
1450
1451         PR ada/23732
1452         * gnatvsn.ads (Library_Version): Bump to 4.1
1453
1454 2005-11-14  Robert Dewar  <dewar@adacore.com>
1455
1456         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
1457         Storage_Offset to avoid wrap around causing invalid results.
1458
1459 2005-11-14  Pascal Obry  <obry@adacore.com>
1460
1461         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
1462         cross-compiler.
1463         (Scan_Bind_Arg): Fail with an error message if -M option is used
1464         on a native compiler.
1465
1466 2005-11-14  Robert Dewar  <dewar@adacore.com>
1467             Vincent Celier  <celier@adacore.com>
1468
1469         * gprep.adb: Implement -C switch to scan comments
1470
1471         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
1472
1473         * scans.ads: Comment updates (including new use of Tok_Comment in
1474         preprocessing)
1475
1476         * opt.ads: Add documentation for flags that are used by gprmake,
1477         currently and in the next version of gprmake.
1478         (Verbosity_Level): New variable
1479         Add Replace_In_Comments switch
1480
1481         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
1482         and -vm.
1483         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
1484
1485 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
1486
1487         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
1488         message, friendlier.
1489
1490 2005-11-14  Robert Dewar  <dewar@adacore.com>
1491
1492         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
1493
1494 2005-11-14  Doug Rupp  <rupp@adacore.com>
1495
1496         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
1497
1498 2005-11-14  Robert Dewar  <dewar@adacore.com>
1499
1500         * interfac.ads: Change declarations of IEEE float types so that we no
1501         longer need a separate version of this package for VMS.
1502
1503 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
1504
1505         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
1506         internal entity created for the declaration of a child subprogram body
1507         with no spec as coming from source, to generate proper cross-reference
1508         information.
1509
1510 2005-11-14  Vincent Celier  <celier@adacore.com>
1511
1512         * make.adb (Compile_Sources): Change verbose message to minimum
1513         verbosity level High for "is in an Ada library", "is a read-only
1514         library" and "is an internal library",
1515         (Create_Binder_Mapping_File): Path name of ALI file for library project
1516         must include the library directory, not the object directory.
1517         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
1518         for new switches -vl, -vm and -vh.
1519         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
1520         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
1521         (Compile_Sources): Do not attempt to compile if an ALI file is missing
1522         in a project that is externally built.
1523         (Compute_All_Imported_Projects): New procedure
1524         (Gnatmake): Check if importing libraries should be regenerated because
1525         at least an imported library is more recent.
1526         (Initialize): For each project compute the list of the projects it
1527         imports directly or indirectly.
1528         (Add_Library_Search_Dir): New procedure, used in place of
1529         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
1530         put in the search paths.
1531         (Add_Source_Search_Dir): New procedure, used in place of
1532         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
1533         put in the search paths.
1534         (Mark_Directory): Resolve the absolute path the directory before marking
1535         it.
1536
1537         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
1538         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
1539         Switch. Do not handle any exception.
1540         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
1541         so that the switch is recognized as valid.
1542         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
1543
1544 2005-11-14  GNAT Script  <nobody@adacore.com>
1545
1546         * Make-lang.in: Makefile automatically updated
1547
1548 2005-11-14  Pascal Obry  <obry@adacore.com>
1549
1550         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
1551         used.
1552         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
1553         In both cases the last argument was dropped.
1554
1555 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
1556
1557         * namet.h: (Column_Numbe): New type.
1558         (Get_Column_Number): Define to sinput__get_column_number.
1559         (Instantiation): Define to sinput__instantiation.
1560         (Get_Column_Number): Declare.
1561         (Instantiation): Likewise.
1562
1563 2005-11-14  Robert Dewar  <dewar@adacore.com>
1564
1565         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
1566         syntax, which could cause compiler hangs.
1567
1568 2005-11-14  Vincent Celier  <celier@adacore.com>
1569
1570         * prj-ext.adb: Take into account new environment variable
1571         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
1572         are defined.
1573         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
1574         normalize its path name, making it absolute and resolving symbolic
1575         links, and replace the original if resolved path is different.
1576
1577 2005-11-14  Vincent Celier  <celier@adacore.com>
1578
1579         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
1580         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
1581
1582 2005-11-14  Emmanuel Briot  <briot@adacore.com>
1583
1584         * prj-pp.adb (Print): Do not output the with statement if the
1585         associated name is empty, which happens for virtual extending projects.
1586         (Print): Preserve the "extends all" attribute when printing the project.
1587
1588         * prj-tree.ads (String_Value_Of): Add comment about returned value for
1589         a virtual extending project.
1590
1591 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
1592
1593         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
1594         rhs of an assignment even if the type is unconstrained, when the
1595         context is non-expanding.
1596         In an inlined body, if the context type is private,
1597         resolve with its full view, which must be a composite type.
1598
1599 2005-11-14  Robert Dewar  <dewar@adacore.com>
1600             Ed Schonberg  <schonberg@adacore.com>
1601
1602         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
1603         Do not give obsolescent warning on with of subprogram (since we
1604         diagnose calls)
1605         (Analyze_With_Clause): Add test for obsolescent package
1606         (Install_Context_Clauses): If the unit is the body of a child unit, do
1607         not install twice the private declarations of the parents, to prevent
1608         circular lists of Use_Clauses in a parent.
1609         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
1610         compiling body of child unit.
1611         Use new class N_Subprogram_Instantiation
1612         (Expand_With_Clause): If this is a private with_clause for a child unit,
1613         appearing in the context of a package declaration, then the implicit
1614         with_clauses generated for parent units are private as well.
1615         (License_Check): Do not generate message if with'ed unit is internal
1616
1617 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
1618             Ed Schonberg  <schonberg@adacore.com>
1619             Thomas Quinot  <quinot@adacore.com>
1620
1621         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
1622         names are internal, because they will not have a corresponding partner
1623         in the actual package.
1624         (Analyze_Formal_Package): Move the setting of the formal package spec's
1625         Generic_Parent field so that it occurs prior to analyzing the package,
1626         to allow proper operation of Install_Parent_Private_Declarations.
1627         (Analyze_Package_Instantiation): Set the instantiated package entity's
1628         Package_Instantiation field.
1629         (Get_Package_Instantiation_Node): Move declaration to package spec.
1630         Retrieve the N_Package_Instantiation node when the Package_Instantiation
1631         field is present.
1632         (Check_Generic_Child_Unit): Within an inlined call, the only possible
1633         instantiation is Unchecked_Conversion, for which no parents are needed.
1634         (Inline_Instance_Body): Deinstall and record the use_clauses for all
1635         parent scopes of a scope being removed prior to inlining an instance
1636         body.
1637         (Analyze_Package_Instantiation): Do not perform front-end inlining when
1638         the current context is itself an instance within a non-instance child
1639         unit, to prevent scope stack errors.
1640         (Save_References): If the node is an aggregate that is an actual in a
1641         call, rewrite as a qualified expression to preserve some type
1642         information, to resolve possible ambiguities in the instance.
1643         (Instance_Parent_Unit): New global variable to record the ultimate
1644         parent unit associated with a generic child unit instance (associated
1645         with the existing Parent_Unit_Visible flag).
1646         (type Instance_Env): New component Instance_Parent_Unit for stacking
1647         parents recorded in the global Instance_Parent_Unit.
1648         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
1649         stack.
1650         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
1651         it's not a top-level unit, and only do this if Instance_Parent_Unit is
1652         not already set. Replace test of Is_Child_Unit with test of parent's
1653         scope against package Standard. Add comments and a ??? comment.
1654         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
1655         on a child instance parent to test that the parent equals
1656         Instance_Parent rather than simply checking that the unit is not a
1657         child unit.
1658         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
1659         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
1660         a formal interface are ancestors of the corresponding actual.
1661         (Validate_Formal_Interface_Type): Additional legality checks.
1662         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
1663         interface types with ancestors.
1664         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
1665         to diagnose attempts to use generic within its own declaration.
1666
1667 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
1668             Javier Miranda  <miranda@adacore.com>
1669
1670         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
1671         discriminant.
1672         (Build_Private_Derived_Type): The entity of the created full view of the
1673         derived type does not come from source. If after installing the private
1674         declarations of the parent scope the parent is still private, use its
1675         full view to construct the full declaration of the derived type.
1676         (Build_Derived_Record_Type): Relax the condition that controls the
1677         execution of the check that verifies that the partial view and
1678         the full view agree in the set of implemented interfaces. In
1679         addition, this test now only takes into account the progenitors.
1680         (Derive_Interface_Subprograms): No need to derive subprograms
1681         of ancestors that are interfaces.
1682         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
1683         associated code.
1684         Change name Is_Package to Is_Package_Or_Generic_Package
1685         (Complete_Subprograms_Derivation): Handle the case in which the full
1686         view is a transitive derivation of the ancestor of the partial view.
1687         (Process_Full_View): Rename local subprogram Find_Interface_In_
1688         Descendant to Find_Ancestor_Interface to leave the code more clear.
1689         Remove wrong code that avoids the generation of an error message
1690         when the immediate ancestor of the partial view is an interface.
1691         In addition some minor reorganization of the code has been done to
1692         leave it more clear.
1693         (Analyze_Type_Declaration): If type has previous incomplete tagged
1694         partial view, inherit properly its primitive operations.
1695         (Collect_Interfaces): Make public, for analysis of formal
1696         interfaces.
1697         (Analyze_Interface_Declaration): New procedure for use for regular and
1698         formal interface declarations.
1699         (Build_Derived_Record_Type): Add support for private types to the code
1700         that checks if a tagged type implements abstract interfaces.
1701         (Check_Aliased_Component_Type): The test applies in the spec of an
1702         instance as well.
1703         (Access_Type_Declaration): Clean up declaration of malformed type
1704         declared as an access to its own classwide type, to prevent cascaded
1705         crash.
1706         (Collect_Interfaces): For private extensions and for derived task types
1707         and derived protected types, the parent may be an interface that must
1708         be included in the interface list.
1709         (Access_Definition): If the designated type is an interface that may
1710         contain tasks, create Master_Id for it before analyzing the expression
1711         of the declaration, which may be an allocator.
1712         (Record_Type_Declaration): Set properly the interface kind, for use
1713         in allocators, the creation of master id's for task interfaces, etc.
1714
1715 2005-11-14  Javier Miranda  <miranda@adacore.com>
1716             Ed Schonberg  <schonberg@adacore.com>
1717
1718         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
1719         omitted in case of stream attribute subprograms.
1720         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
1721         appear immediately after a subprogram body, when there is no previous
1722         subprogram declaration.
1723         Change name Is_Package to Is_Package_Or_Generic_Package
1724         (Process_Formals): A non null qualifier on a non null named access
1725         type is not an error, and is a warning only if Redundant_Constructs
1726         are flagged.
1727
1728 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
1729             Ed Schonberg  <schonberg@adacore.com>
1730
1731         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
1732         nested within Analyze_Package_Specification to install the private
1733         declarations and use clauses within each of the parent units of a
1734         package instance of a generic child package.
1735         (Analyze_Package_Specification): When entering a private part of a
1736         package associated with a generic instance or formal package, the
1737         private declarations of the parent must be installed (by calling new
1738         procedure Install_Parent_Private_Declarations).
1739         Change name Is_Package to Is_Package_Or_Generic_Package
1740         (Preserve_Full_Attributes): For a synchronized type, the corresponding
1741         record is absent in a generic context, which does not indicate a
1742         compiler error.
1743
1744 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
1745
1746         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
1747         not try to rewrite a renamed stream attribute, because the operations
1748         on the type may not have been generated.
1749         Handle properly a renaming_as_body generated for a stream operation
1750         whose default is abstract because the object type itself is abstract.
1751         (Find_Type): If the type is incomplete and appears as the prefix of a
1752         'Class reference, it is tagged, and its list of primitive operations
1753         must be initialized properly.
1754         (Chain_Use_Clauses): When chaining the use clauses that appear in the
1755         private declaration of a parent unit, prior to compiling the private
1756         part of a child unit, find on the scope stack the proper parent entity
1757         on which to link the use clause.
1758         (Note_Redundant_Use): Emit a warning when a redundant use clause is
1759         detected.
1760         (Analyze_Object_Renaming): An attribute reference is not a legal object
1761         if it is not a function call.
1762
1763 2005-11-14  Robert Dewar  <dewar@adacore.com>
1764             Ed Schonberg  <schonberg@adacore.com>
1765
1766         * sem_eval.adb: Implement d.f flag
1767         (Subtype_Statically_Match): A generic actual type has unknown
1768         discriminants when the corresponding actual has a similar partial view.
1769         If the routine is called to validate the signature of an inherited
1770         operation in a child instance, the generic actual matches the full view,
1771
1772 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
1773             Ed Schonberg  <schonberg@adacore.com>
1774             Robert Dewar  <dewar@adacore.com>
1775             Thomas Quinot  <quinot@adacore.com>
1776
1777         * sem_res.adb (Resolve_Call): Provide a better error message whenever
1778         a procedure call is used as a select statement trigger and is not an
1779         entry renaming or a primitive of a limited interface.
1780         (Valid_Conversion): If the operand has a single interpretation do not
1781         remove address operations.
1782         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
1783         statement to inhibit warning.
1784         (Resolve_Unary_Op): Do not produce a warning when
1785         processing an expression of the form -(A mod B)
1786         Use Universal_Real instead of Long_Long_Float when we need a high
1787         precision float type for the generated code (prevents gratuitous
1788         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
1789         (Resolve_Concatenation_Arg): Improve error message when argument is an
1790         ambiguous call to a function that returns an array.
1791         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
1792         there is an implicit operator in the given scope if we are within an
1793         instance: legality check has been performed on the generic.
1794         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
1795         after resolving operand, to avoid false warnings on overloaded calls.
1796
1797 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
1798             Javier Miranda  <miranda@adacore.com>
1799
1800         PR ada/15604
1801
1802         * sem_type.adb (Covers): In an inlined body, a composite type matches
1803         a private type whose full view is a composite type.
1804         (Interface_Present_In_Ancestor): Protect the frontend against
1805         previously detected errors to ensure that its compilation
1806         with assertions enabled gives the same output that its
1807         compilation without assertions.
1808         (Interface_Present_In_Ancestor): Add support for private types.
1809         Change name In_Actual to In_Generic_Actual (clean up)
1810         (Disambiguate): New predicate In_Actual, to recognize expressions that
1811         appear in the renaming declaration generated for generic actuals, and
1812         which must be resolved in the outer context.
1813
1814 2005-11-14  Robert Dewar  <dewar@adacore.com>
1815             Thomas Quinot  <quinot@adacore.com>
1816             Hristian Kirtchev  <kirtchev@adacore.com>
1817             Ed Schonberg  <schonberg@adacore.com>
1818
1819         * sem_util.ads, sem_util.adb: Change name Is_Package to
1820         Is_Package_Or_Generic_Package.
1821         (Check_Obsolescent): New procedure.
1822         (Set_Is_Public): Remove obsolete junk test.
1823         (Set_Public_Status): Do not set Is_Public on an object whose declaration
1824         occurs within a handled_sequence_of_statemets.
1825         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
1826         for a parameterless procedure.
1827         (Enter_Name): Recognize renaming declarations created for private
1828         component of a protected type within protected operations, so that
1829         the source name of the component can be used in the debugger.
1830
1831 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
1832             Robert Dewar  <dewar@adacore.com>
1833
1834         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
1835         of a generic subprogram are not visible outside the body.
1836         (Set_Warning_Switch): New procedure (code to set warning mode moved
1837         here from Switch.C so that it can be shared by pragma processing.
1838         (Check_References): Special case warning for non-modified non-imported
1839         volatile objects.
1840         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
1841         form with a string literal argument
1842
1843 2005-11-14  Javier Miranda  <miranda@adacore.com>
1844
1845         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
1846         anonymous access.
1847         (Write): Addition of "not null" to the anonymous access.
1848         (Read): Addition of "not null" to the anonymous access.
1849         (Write): Addition of "not null" to the anonymous access.
1850
1851         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
1852         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
1853         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
1854         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
1855         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
1856         "not null" to the anonymous access.
1857
1858 2005-11-14  Robert Dewar  <dewar@adacore.com>
1859
1860         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
1861         offset values
1862
1863 2005-11-14  Vincent Celier  <celier@adacore.com>
1864
1865         * switch.adb (Bad_Switch): New procedure
1866         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
1867         message when in error.
1868
1869         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
1870         Too_Many_Output_Files): Remove declarations, no longer used.
1871         (Scan_Nat): New parameter Switch
1872         (Scan_Pos): Ditto
1873         (Bad_Switch): New procedure
1874
1875         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
1876         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
1877         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
1878         to Osint.Fail. Do not handle any exception.
1879
1880 2005-11-14  Vincent Celier  <celier@adacore.com>
1881
1882         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
1883         designates a non existent directory.
1884
1885 2005-11-14  Robert Dewar  <dewar@adacore.com>
1886
1887         * xgnatugn.adb: Replace invalid membership test by 'Valid
1888
1889 2005-11-14  Vincent Celier  <celier@adacore.com>
1890
1891         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
1892         there is no object directory.
1893
1894 2005-11-14  Robert Dewar  <dewar@adacore.com>
1895
1896         * usage.adb: Minor adjustment to output format, use nn instead of nnn
1897         (so that -gnateInnn does not run into next column)
1898
1899 2005-11-14  Ed Falis  <falis@adacore.com>
1900
1901         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
1902         "constrained"
1903
1904 2005-11-14  Cyrille Comar  <comar@adacore.com>
1905
1906         * s-chepoo.ads: Add comments on Dereference.
1907         Remove unnecessary inherited abstract primitives.
1908         Cosmetic cleanup.
1909
1910 2005-11-14  Robert Dewar  <dewar@adacore.com>
1911
1912         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
1913         node parameter, not needed, since it is available as Declaration_Node.
1914
1915 2005-11-14  Geert Bosch  <bosch@adacore.com>
1916
1917         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
1918         grammatically correct.
1919
1920 2005-11-14  Vincent Celier  <celier@adacore.com>
1921
1922         * s-fileio.ads: Correct spelling error in comment
1923
1924 2005-11-14  Cyrille Comar  <comar@adacore.com>
1925             Robert Dewar  <dewar@adacore.com>
1926             Vincent Celier  <celier@adacore.com>
1927             Ben Brosgol  <brosgol@adacore.com>
1928             Jose Ruiz  <ruiz@adacore.com>
1929             Pascal Obry  <obry@adacore.com>
1930
1931         * gnat_ugn.texi: 
1932         Document that -fstack-check is needed for strict compliance with the
1933         Ada 95 Reference Manual.
1934         Correct reference to VAX systems to meet HP guidelines
1935         Add documentation for new gnatmake switches -vl, -vm and -vh
1936         Replace DEC Ada by HP Ada
1937         Replace DIGITAL by HP
1938         Remove empty section on tools in compatibility section
1939         Clarify the Windows convention semantics.
1940         Document the Win32 calling convention.
1941         The Stdcall, Win32 and DLL convention are synonyms.
1942         Add a note in -gnatR description about zero size record components
1943         Note on new >= and <= warnings for -gnatwc
1944         Document that equal sign after -gnatm is optional.
1945         Note that strip is working fine on DLL built with a Library
1946         Project. The restriction apply only to DLL built with gnatdll.
1947         Update section about the way to debug a DLL.
1948         Update information about the DLL convention.
1949         Document -C switch for gnatprep
1950         Document new attribute Library_ALI_Dir
1951         Update elaboration doc to include implicit Elaborate pragmas now
1952         generated for subprogram instantiations.
1953         Document limitation on executable names that include spaces for --GCC,
1954         --GNATBIND, and --GNATLINK switches.
1955         Document that -w causes -gnatws to be added at start of gcc switches
1956
1957         * gnat_rm.texi: Document that -mieee is needed for generating infinite
1958         and NaN values in case of overflow on machines that are not fully
1959         compliant with the IEEE floating-point standard.
1960         Create a section describing the set of compiler options needed for
1961         strict compliance with the Ada 95 Reference Manual.
1962         Add documentation for pragma Obsolescent applied to a package
1963         Clarify potential issues of mixed language programs related to the
1964         I/O buffering enabling in the elaboration of the GNAT runtime.
1965         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
1966         This documentation only patch adds extra documentsion for pragma
1967         Restrictions (No_Elaboration_Code), explaining why it is not possible
1968         to document this restriction in terms of allowed source constructs.
1969         Document string literal form of pragma Warnings
1970         Document new attribute Library_ALI_Dir
1971         Add documentation on stable attributes in project files that was missing
1972
1973         * gnat-style.texi: Indicate that paragraphs within a single comment
1974         should be separated by empty comment lines
1975
1976         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
1977         /05 respectively)
1978
1979         * bindusg.adb: Minor cleanup, put -m before -M for consistency
1980
1981 2005-11-14  Robert Dewar  <dewar@adacore.com>
1982
1983         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
1984         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
1985         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
1986         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
1987         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
1988         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
1989         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
1990         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
1991         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
1992         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
1993         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
1994         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
1995         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
1996         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
1997         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
1998         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
1999         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
2000         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
2001         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
2002         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
2003         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
2004         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
2005         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
2006         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
2007         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
2008         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
2009         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
2010         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
2011         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
2012         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
2013         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
2014         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
2015         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
2016         system-interix.ads, system-solaris-sparc.ads,
2017         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
2018         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
2019         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
2020         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
2021         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
2022         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
2023         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
2024         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
2025         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
2026         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
2027         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
2028         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
2029         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
2030         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
2031         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
2032         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
2033         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
2034         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
2035         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
2036         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
2037         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
2038         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
2039         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
2040         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
2041         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
2042         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
2043         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
2044         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
2045         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
2046         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
2047         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
2048         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
2049         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
2050         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
2051         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
2052         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
2053         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
2054         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
2055         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
2056         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
2057         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
2058         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
2059         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
2060         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
2061         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
2062         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
2063         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
2064         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
2065         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
2066         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
2067         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
2068         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
2069         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
2070         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
2071         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
2072         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
2073         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
2074         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
2075         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
2076         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
2077         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
2078         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
2079         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
2080         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
2081         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
2082         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
2083         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
2084         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
2085         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
2086         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
2087         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
2088         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
2089         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
2090         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
2091         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
2092         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
2093         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
2094         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
2095         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
2096         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
2097         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
2098         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
2099         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
2100         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
2101         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
2102         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
2103         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
2104         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
2105         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
2106         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
2107         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
2108         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
2109         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
2110         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
2111         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
2112         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
2113         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
2114         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
2115         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
2116         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
2117         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
2118         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
2119         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
2120         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
2121         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
2122         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
2123         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
2124         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
2125         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
2126         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
2127         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
2128         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
2129         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
2130         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
2131         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
2132         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
2133         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
2134         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
2135         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
2136         a-numaux-darwin.ads, a-numaux-darwin.adb,
2137         a-swuwha.ads, a-stunha.ads: Minor reformatting
2138
2139 2005-11-14  Robert Dewar  <dewar@adacore.com>
2140
2141         PR ada/18434
2142         * osint-m.adb: Add pragma Elaborate_All for Osint
2143
2144 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2145
2146         PR ada/23995
2147         * trans.c (call_to_gnu): Restore statement lost in translation.
2148
2149 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
2150
2151         * init.c: Use the Linux-specific section for the IA-64/Linux target.
2152         (__gnat_adjust_context_for_raise): Add conditional code so that the
2153         IA-64 is also supported.
2154
2155 2005-11-03  James E Wilson  <wilson@specifix.com>
2156
2157         PR ada/23427
2158         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
2159         TREE_OVERFLOW check.
2160
2161 2005-09-21  Olivier Hainque  <hainque@adacore.com>
2162
2163         PR ada/22418
2164         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
2165         as we create them to store a size in bits.
2166
2167 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
2168
2169         PR ada/21937
2170         PR ada/22328
2171         PR ada/22381
2172         PR ada/22383
2173         PR ada/22419
2174         PR ada/22420
2175         * utils2.c (build_return_expr): New helper function.
2176         * gigi.h (build_return_expr): Declare it.
2177         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
2178         of manually building the RETURN_EXPR tree.
2179         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
2180         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
2181         build_binary_op for the "target pointer" case.  Use build_return_expr
2182         instead of manually building the RETURN_EXPR tree.
2183
2184 2005-09-16  Laurent GUERBY  <laurent@guerby.net>
2185
2186         PR ada/23788
2187         * s-tpinop.ads: Make this unit Preelaborate.
2188
2189 2005-09-16  Andreas Jaeger  <aj@suse.de>
2190
2191         * socket.c: Add string.h for memcpy.
2192
2193 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
2194
2195         * dec-io.ads, dec-io.adb: Removed, no longer used.
2196
2197 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
2198
2199         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
2200
2201         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
2202         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
2203         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
2204         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
2205         dependent units are Preelaborate.
2206         (Initialize): Call Interrupt_Managemeent.Initialize and
2207         OS_Primitives.Initialize to ensure proper initialization of this unit.
2208         Remove use of System.Soft_Links
2209         Make this unit Preelaborate.
2210
2211         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
2212         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
2213         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
2214         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
2215         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
2216         s-tratas.ads, s-tasinf.ads: Minor reformatting.
2217         Add pragma Preelaborate, since these packages are suitable for this
2218         categorization.
2219         Update comments.
2220
2221         * s-traent-vms.ads, s-intman-dummy.adb,
2222         s-taprop-dummy.adb: Make this unit Preelaborate.
2223
2224         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
2225         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
2226         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
2227         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
2228         s-intman-solaris.adb, s-intman-irix-athread.adb,
2229         s-intman-irix.adb: Mark this unit Preelaborate.
2230         (Initialize): New procedure.
2231         Update comments.
2232
2233         * s-taspri-linux.ads: Removed.
2234
2235         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
2236         as done by other implementations (e.g. posix).
2237
2238         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
2239         responsible for deferring abort.
2240         Mark this unit Preelaborate.
2241
2242         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
2243         proper initialization of the tasking run-time.
2244
2245         * s-tasdeb.ads: Mark this unit Preelaborate.
2246         (Known_Tasks): Add explicit default value to avoid elaboration code.
2247
2248         * s-inmaop-vms.adb (Elaboration code): Add call to
2249         Interrupt_Management.Initialize since the elaboration code depends on
2250         proper initialization of this package.
2251
2252         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
2253         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
2254         s-osprim-posix.adb: Make this unit Preelaborate.
2255
2256         * a-calend.adb: Add call to OS_Primitives.Initialize
2257
2258         * a-elchha.adb: Update use of Except.Id.Full_Name.
2259         Minor reformatting.
2260         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
2261
2262         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
2263         Move with clauses outside Warnings Off now that dependent units are
2264         Preelaborate.
2265         Use raise xxx with "..."; Ada 2005 form.
2266
2267         * a-taside.ads, a-taside.adb:
2268         Remove some dependencies, to make it easier to make this unit truly
2269         Preelaborate.
2270         Rewrite some code to be conformant with Preelaborate rules.
2271
2272         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
2273         marked Preelaborate in the future.
2274
2275         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
2276         these units Preelaborate.
2277
2278         * s-exctab.adb: Update use of Except.Id.Full_Name.
2279
2280         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
2281         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
2282         Set_Exc_Stack_Addr): Removed, no longer used.
2283         Remove reference to *Machine_State_Addr*, no longer needed.
2284
2285         * s-stalib.ads: Mark this unit as Preelaborate[_05].
2286         (Exception_Data): Full_Name is now a System.Address so that this unit
2287         can be made Preelaborate.
2288         Clean up/simplify code thanks to Full_Name being a System.Address.
2289         Remove obsolete pragma Suppress (All_Checks), no longer needed.
2290
2291         * s-taskin.ads, s-taskin.adb:
2292         Move with clauses outside Warnings Off now that dependent units are
2293         Preelaborate.
2294         Make this unit Preelaborate.
2295         (Initialize): New proceduure, replace elaboration code and makes the
2296         set up of the tasking run-time cleaner.
2297         (Detect_Blocking): Now a function instead of a deferred boolean, to
2298         obey Preelaborate rules.
2299
2300         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
2301         soft links, no longer used.
2302
2303         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
2304         packages are suitable for this categorization.
2305
2306         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
2307         since we compile run-time sources in Ada 2005 mode.
2308         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
2309         avoid having s-taprop*.adb depend on s-soflin and to avoid code
2310         duplication.
2311         Remove reference to *Machine_State_Addr*, no longer needed.
2312
2313 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
2314
2315         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
2316         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
2317         Remove reference to System.Exceptions.
2318
2319         * s-mastop-x86.adb: Removed, no longer used.
2320
2321         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
2322
2323         * a-excach.adb: Minor reformatting.
2324
2325         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
2326         instead fix new warnings that were hidden by this change.
2327         (AAA, ZZZ): Removed, replaced by...
2328         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
2329         are used instead of constants, to help make Ada.Exception truly
2330         preelaborate.
2331         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
2332         Raise_Storage_Error): File is now a System.Address, to simplify code.
2333         (Elab code): Removed, no longer used.
2334         (Null_Occurrence): Remove Warnings Off and make this construct
2335         preelaborate.
2336         Remove code related to front-end zero cost exception handling, since
2337         it is no longer used.
2338         Remove -gnatL/-gnatZ switches.
2339
2340         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
2341         Update use of Except.Msg.
2342
2343         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
2344         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
2345         to front-end zero cost exception handling, since it is no longer used.
2346         Remove -gnatL/-gnatZ switches.
2347
2348         * lib-writ.ads: Minor reformatting
2349         Remove doc of UX
2350
2351         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
2352
2353         * Make-lang.in: Remove references to s-except.ads
2354
2355         * s-except.ads: Removed, no longer used.
2356
2357         * s-mastop.ads, s-mastop.adb:
2358         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
2359         Remove reference to System.Exceptions.
2360
2361         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
2362         switch-b.adb: Remove code related to front-end zero cost exception
2363         handling, since it is no longer used.
2364         Remove -gnatL/-gnatZ switches.
2365
2366 2005-09-01  Robert Dewar  <dewar@adacore.com>
2367             Gary Dismukes  <dismukes@adacore.com>
2368             Javier Miranda  <miranda@adacore.com>
2369
2370         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
2371         type by valid test and generate warning.
2372         (Tagged_Membership): Generate call to the run-time
2373         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
2374         Change formal name Subtype_Mark to Result_Definition in several calls to
2375         Make_Function_Specification.
2376         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
2377         check for proper accessibility of the operand of a class-wide allocator.
2378         The check can be left out if checks are suppressed or if the expression
2379         has a specific tagged type whose level is known to be safe.
2380
2381         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
2382         generates the run-time check associated with null-excluding entities.
2383         (Expand_N_Return_Statement): Add tests to determine if the accessibility
2384         check on the level of the return expression of a class-wide function
2385         can be elided. The check usually isn't needed if the expression has a
2386         specific type (unless it's a conversion or a formal parameter). Also
2387         add a test for whether accessibility checks are suppressed. Augment
2388         the comments to describe the conditions for performing the check.
2389
2390 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
2391             Javier Miranda  <miranda@adacore.com>
2392             Gary Dismukes  <dismukes@adacore.com>
2393             Ed Schonberg  <schonberg@adacore.com>
2394
2395         * a-tags.adb (IW_Membership): Give support to
2396         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
2397         subprogram has been extended to look for the tag in the ancestors tag
2398         table.
2399         Update the structure of the GNAT Dispatch Table to reflect the
2400         additional two tables used in dispatching selects.
2401         Introduce appropriate array types and record components in
2402         Type_Specific_Data to reflect the two tables.
2403         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
2404         the TSD of a tag, indexed by position.
2405         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
2406         operation kind in the TSD of a tag, indexed by position.
2407
2408         * a-tags.ads: Introduce an enumeration type to capture different
2409         primitive operation kinds. Define a constant reflecting the number of
2410         predefined primitive operations.
2411         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
2412         of an entry wrapper.
2413         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
2414         callable entity of a primitive operation.
2415
2416         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
2417         primitive operations used in dispatching selects for limited
2418         interfaces, limited tagged, task and protected types what implement a
2419         limited interface.
2420         (Freeze_Type): Generate the bodies of the primitive operations used in
2421         dispatching selects for limited tagged, task and protected types that
2422         implement a limited interface. Generate statements to populate the two
2423         auxiliary tables used for dispatching in select statements.
2424         (Freeze_Record_Type): Add call to initialize the dispatch table entries
2425         associated with predefined interface primitive operations.
2426         (Build_Dcheck_Function): Change Set_Subtype_Mark to
2427         Set_Result_Definition.
2428         (Build_Variant_Record_Equality): Change Subtype_Mark to
2429         Result_Definition.
2430         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
2431         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
2432         (Build_Assignment): Simplify the code that adds the run-time-check.
2433         (Expand_N_Object_Declaration): Code cleanup.
2434
2435         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
2436         entries when there is a protected type that implements a limited
2437         interface.
2438
2439         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
2440         common routines used in expansion of dispatching selects.
2441         (Add_Private_Declarations): Select the appropriate protection type when
2442         there is a protected type that implements a limited interface.
2443         (Build_Parameter_Block): Generate a wrapped parameter block.
2444         (Build_Protected_Subprogram_Body): Select the appropriate type for
2445         locking entries when there is a protected type that implements a
2446         limited interface.
2447         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
2448         classified as entry wrappers.
2449         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
2450         asynchronous selects.
2451         (Expand_N_Conditional_Entry_Call): Add support for expansion of
2452         dispatching conditional selects.
2453         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
2454         protection when there is a protected type that implements limited
2455         interfaces.
2456         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
2457         timed selects.
2458         (Extract_Dispatching_Call): Extract the entity of the name of a
2459         dispatching call, the object parameter, actual parameters and
2460         corresponding formals.
2461         (Make_Initialize_Protection): Correct logic of protection initialization
2462         when there is a protected type that implements a limited interface.
2463         (Parameter_Block_Pack): Populate a wrapped parameter block with the
2464         values of actual parameters.
2465         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
2466         block and assign them to the original actual parameters.
2467
2468         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
2469         (Build_Protected_Sub_Specification): Change the type and name of the
2470         last formal to account for the increased variety of protection modes.
2471
2472         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
2473         entities. Used to save the value of the Is_Hidden attribute when the
2474         limited-view is installed.
2475         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
2476         the attribute of procedures classified as entry wrappers.
2477         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
2478         entity of a primitive wrapper.
2479         (Write_Entity_Flags): Output the name and value of the
2480         Is_Primitive_Wrapper attribute.
2481         (Write_Field27_Name): Output the name and entity of the field Wrapped_
2482         Entity.
2483         (Underlying_Type): If we have an incomplete entity that comes from
2484         the limited view then we return the Underlying_Type of its non-limited
2485         view if it is already available.
2486         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
2487         including operators.
2488         (Write_Field26_Name): Add entry for Overridden_Operation
2489         (Overridden_Operation): New attribute of functions and procedures.
2490
2491         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
2492         predefined position in the dispatch table for the primitive operations
2493         used in dispatching selects.
2494         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
2495         predefined primitive operations and replace it with
2496         Default_Prim_Op_Count.
2497         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
2498         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
2499         the names of the generated primitive operations used in dispatching
2500         selects.
2501         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
2502         case of abstract interface types. They will be inherit by the objects
2503         implementing the interface.
2504         (Make_DT): There is no need to inherit the dispatch table of the
2505         ancestor interface for the elaboration of abstract interface types.
2506         The dispatch table will be inherited by the object implementing the
2507         interface.
2508         (Copy_Secondary_DTs): Add documentation.
2509         (Validate_Position): Improve this static check in case of
2510         aliased subprograms because aliased subprograms must have
2511         the same position.
2512         (Init_Predefined_Interface_Primitives): New subprogram that initializes
2513         the entries associated with predefined primitives of all the secondary
2514         dispatch tables.
2515         (Build_Anonymous_Access_Type): Removed.
2516         (Expand_Interface_Actuals): With the previous cleanup there is no need
2517         to build an anonymous access type. This allows further cleanup in the
2518         code generated by the expander.
2519         (Expand_Interface_Conversion): If the actual is an access type then
2520         build an internal function to handle the displacement. If the actual
2521         is null this function returns null because no displacement is
2522         required; otherwise performs a type conversion that will be
2523         expanded in the code that returns the value of the displaced actual.
2524         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
2525         conversions that have no effect in the generated code because no
2526         displacement is required. Code cleanup; use local variables to
2527         avoid repeated calls to the subprogram directly_designated_type().
2528
2529         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
2530         Classify the primitive operations used in dispatching selects as
2531         predefined.
2532         (Implements_Limited_Interface): Determine whether some type either
2533         directly implements a limited interface or extends a type that
2534         implements a limited interface.
2535         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
2536         (Expand_Subtype_From_Expr): Do not build actual subtype if the
2537         expression is limited.
2538         (Find_Interface_Tag): Add code to handle class-wide types and
2539         entities from the limited-view.
2540
2541         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
2542         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
2543         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
2544         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
2545         Set_Prim_Op_Kind.
2546
2547         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
2548         of procedure name or prefix that appears as a trigger in a triggering
2549         alternative.
2550
2551         * uintp.ads: Introduce constants Uint_11 and Uint_13.
2552
2553 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
2554
2555         * s-tataat.adb, a-tasatt.adb:
2556         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
2557
2558         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
2559         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
2560         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
2561         longer used.
2562
2563 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
2564             Jose Ruiz  <ruiz@adacore.com>
2565
2566         * s-taprop-vxworks.adb:
2567         Move with clauses outside Warnings Off now that dependent units are
2568         Preelaborate.
2569         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
2570         initialization of this unit.
2571         (Specific): Add new procedures Initialize and Delete so that this
2572         package can be used for VxWorks 5.x and 6.x
2573         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
2574         differences between VxWorks 5.x and 6.x
2575         Minor reformatting.
2576         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
2577         caller.
2578         Use only Preelaborate-compatible constructs.
2579
2580         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
2581         Primitives.Operations.
2582         (Delete, Initialize): New procedures.
2583
2584         * s-osinte-vxworks.adb: Body used to handle differences between
2585         VxWorks 5.x and 6.x
2586         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
2587
2588         * s-osinte-vxworks.ads: Minor reformatting.
2589         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
2590         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
2591         and 6.
2592         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
2593         between Vxworks 5 and 6.
2594         (taskLock, taskUnlock): Removeed, no longer used.
2595
2596         * adaint.c: The wait.h header is not located in the sys directory on
2597         VxWorks when using RTPs.
2598         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
2599         using RTPs.
2600         (__gnat_dup): dup is available on Vxworks when using RTPs.
2601         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
2602
2603         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
2604
2605         * expect.c: The wait.h header is not located in the sys directory on
2606         VxWorks when using RTPs.
2607
2608 2005-09-01  Thomas Quinot  <quinot@adacore.com>
2609
2610         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
2611
2612         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
2613
2614         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
2615         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
2616         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
2617         g-soccon-freebsd.ads: Add new constants:
2618          IP_MULTICAST_IF
2619          SO_RCVTIMEO/SO_SNDTIMEO
2620          IOV_MAX
2621
2622         * gen-soccon.c:
2623         Move all target-specific file inclusions and macro definitions to
2624         gsocket.h, in order to ensure that any C code in socket.c will see a
2625         set of constants that is consistent with the contents of g-soccon.ads.
2626
2627         * gsocket.h: Code imported from 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 set
2630         of constants that is consistent with the contents of g-soccon.ads.
2631         This change also makes gen-soccon self-contained (removing dependencies
2632         upon GCC internal headers).
2633
2634         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
2635         iovecs at a time.
2636         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
2637
2638         * socket.c: Minor reformatting.
2639
2640 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
2641             Thomas Quinot  <quinot@adacore.com>
2642
2643         * fname-sf.adb, mlib-tgt.ads,
2644         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
2645         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
2646         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
2647         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
2648         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
2649         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
2650         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
2651         makegpr.adb: Remove redundant use_clauses.
2652
2653 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
2654
2655         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
2656         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
2657         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
2658         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
2659         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
2660         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
2661         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
2662         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
2663         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
2664         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
2665         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
2666         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
2667         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
2668         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
2669         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
2670         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
2671         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
2672         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
2673         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
2674         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
2675         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
2676         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
2677         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
2678         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
2679         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
2680         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
2681         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
2682         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
2683         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
2684         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
2685         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
2686         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
2687         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
2688         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
2689         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
2690         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
2691         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
2692         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
2693         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
2694         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
2695         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
2696         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
2697         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
2698         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
2699         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
2700         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
2701         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
2702         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
2703         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
2704         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
2705         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
2706         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
2707         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
2708         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
2709         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
2710         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
2711         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
2712         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
2713         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
2714         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
2715         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
2716         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
2717         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
2718         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
2719         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
2720         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
2721         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
2722         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
2723         and always use the no parameter form for consistency.
2724
2725         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
2726
2727 2005-09-01  Robert Dewar  <dewar@adacore.com>
2728
2729         * binde.adb: Minor reformatting
2730         (Find_Elab_Order): Output warning if -p used with static elab order
2731
2732 2005-09-01  Robert Dewar  <dewar@adacore.com>
2733
2734         * checks.adb (Check_Needed): New procedure, deals with removing checks
2735         based on analysis of short-circuited forms. Also generates warnings for
2736         improper use of non-short-circuited forms.
2737         Code clean ups.
2738
2739 2005-09-01  Robert Dewar  <dewar@adacore.com>
2740
2741         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
2742         with 'Valid tests.
2743
2744 2005-09-01  Robert Dewar  <dewar@adacore.com>
2745
2746         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
2747         spec.
2748         Implement new insertion char < (conditional warning)
2749         * errutil.adb, erroutc.adb: Implement new insertion char <
2750         (conditional warning).
2751         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
2752         (Error_Msg_Warn): New variable for < insertion char.
2753         * prj-nmsc.adb: Implement new errout insertion char < (conditional
2754         warning).
2755         (Check_For_Source): Change value of Source_Id only after the current
2756         source has been dealt with.
2757
2758 2005-09-01  Robert Dewar  <dewar@adacore.com>
2759             Doug Rupp  <rupp@adacore.com>
2760
2761         * exp_attr.adb: Handle vax fpt for 'Valid attribute
2762         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
2763         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
2764         (Valid_D, Valid_F, Valid_G): New functions
2765
2766 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
2767             Hristian Kirtchev  <kirtchev@adacore.com>
2768             Javier Miranda  <miranda@adacore.com>
2769
2770         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
2771         from object notation, the original node is unanalyzed and carries no
2772         semantic information, so that accessiblity checks must be performed on
2773         the type of the actual itself.
2774         (Expand_N_Subprogram_Declaration): Change last actual parameter for
2775         compatibility with Build_Protected_Sub_Specification.
2776         (Check_Overriding_Inherited_Interfaces): Add suport to handle
2777         overloaded primitives.
2778         (Register_Interface_DT_Entry): Use the new name of the formal
2779         the the calls to Expand_Interface_Thunk
2780
2781         * exp_dbug.ads: Augment comments on encoding of protected types to
2782         include the generation of dispatching subprograms when the type
2783         implements at least one interface.
2784
2785         * lib.ads: Extend information in Load_Stack to include whether a given
2786         load comes from a Limited_With_Clause.
2787
2788         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
2789         whether a potential circularity is harmless, because it includes units
2790         loaded through a limited_with clause. Extends previous treatment which
2791         did not handle properly arbitrary combinations of limited and
2792         non-limited clauses.
2793
2794 2005-09-01  Nicolas Setton  <setton@adacore.com>
2795
2796         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
2797         to be encoded as typ___XBLU_lowerbound__upperbound instead of
2798         typ___XB_lowerbound__upperbound.
2799
2800 2005-09-01  Thomas Quinot  <quinot@adacore.com>
2801
2802         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
2803         dummy access formal for RACW/RAS TypeCode TSS.
2804         (Build_TypeCode_Call): Do not generate dummy null access actual for
2805         calls to the TypeCode TSS.
2806
2807 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
2808
2809         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
2810         fully qualified name, to distinguish instances with the same local name.
2811
2812         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
2813         fully qualified.
2814
2815 2005-09-01  Robert Dewar  <dewar@adacore.com>
2816
2817         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
2818         packed arrays.
2819
2820 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
2821
2822         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
2823         (Free): New deallocation procedure for filter elements
2824         (Close): Deallocate any existing filter for the concerned connection
2825
2826 2005-09-01  Laurent Pautet  <pautet@adacore.com>
2827
2828         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
2829         position set is provided, we compute one in order to reduce the maximum
2830         length of the keys.  This computation first selects a character
2831         position between 1 and the minimum length of the keys in order to
2832         avoid reducing one of the keys to an empty string.
2833         (Initialize, Compute): When the ratio V to K is too low, the algorithm
2834         does not converge. The initialization procedure now comes with a
2835         maximum number of iterations such that when exceeded, an exception is
2836         raised in Compute. The user can initialize this ratio to another value
2837         and try again
2838         Reformating and updated headers.
2839
2840 2005-09-01  Javier Miranda  <miranda@adacore.com>
2841
2842         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
2843         that given an entity T creates and returns an Itype that duplicates the
2844         contents of T. The returned Itype has the null-exclusion
2845         attribute set to True, and its Etype attribute references T
2846         to keep the association between the two entities.
2847         Update copyright notice
2848
2849         * sem_aggr.adb (Check_Can_Never_Be_Null,
2850         Aggregate_Constraint_Checks, Resolve_Aggregate,
2851         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
2852
2853         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
2854
2855 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
2856             Robert Dewar  <dewar@adacore.com>
2857             Hristian Kirtchev  <kirtchev@adacore.com>
2858
2859         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
2860         Result_Definition.
2861
2862         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
2863         function specs.
2864         Call Set_Result_Definition instead of Set_Subtype_Mark.
2865         (P_Subprogram_Specification): Add parsing of anonymous access result
2866         plus null exclusions. Call Set_Result_Definition instead of
2867         Set_Subtype_Mark.
2868
2869         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
2870         (P_Access_Type_Definition): Add parsing for an anonymous access result
2871         subtype, plus parsing for null exclusions. Call Set_Result_Definition
2872         instead of Set_Subtype_Mark.
2873
2874         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
2875         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
2876         (Result_Definition): New function for N_Function_Specifications.
2877         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
2878         N_Function_Specification.
2879         (Set_Null_Exclusion_Present): Allow this flag for
2880         N_Function_Specification.
2881         (Set_Result_Definition): New procedure for N_Function_Specifications.
2882         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
2883         and N_Function_Specification.
2884
2885         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
2886         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
2887         Add support for LIMITED NEW for Ada 2005 AI-419
2888         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
2889         syntax for anonymous access results.
2890         Replace Subtype_Mark field by Result_Definition in
2891         N_Function_Specification and N_Access_Definition specs.
2892         Add Null_Exclusion_Present to spec of N_Function_Specification.
2893         (Result_Definition): New function for N_Function_Specification and
2894         N_Access_Function_Definition.
2895         (Set_Result_Definition): New procedure for N_Function_Specification and
2896         N_Access_Function_Definition.
2897
2898         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
2899         Result_Definition for cases of N_Access_Function_Definition and
2900         N_Function_Specification.
2901         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
2902
2903 2005-09-01  Vincent Celier  <celier@adacore.com>
2904
2905         * lib-writ.adb: Update Copyright notice
2906         (Write_With_Lines): On platforms where file names are case-insensitive,
2907         record the file names in lower case.
2908         (Write_ALI): For D lines, on platforms where file names are
2909         case-insensitive, record the file names in lower case.
2910
2911 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
2912             Emmanuel Briot  <briot@adacore.com>
2913
2914         * lib-xref.adb (Output_Overridden_Op): Display information on
2915         overridden operation.
2916
2917         * lib-xref.ads: Add documentation on overridden operations.
2918
2919         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
2920         information.
2921
2922         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
2923         overriding entity information.
2924
2925 2005-09-01  Vincent Celier  <celier@adacore.com>
2926
2927         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
2928         including those that are inherited.
2929
2930 2005-09-01  Robert Dewar  <dewar@adacore.com>
2931
2932         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
2933
2934         * par-prag.adb: Implement new pragma Debug_Policy
2935
2936         * sem_prag.adb Implement new pragma Debug_Policy
2937         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
2938         Component_Size attribute specification. Give warning for ignored pragma
2939         Pack.
2940
2941         * snames.h, snames.ads, snames.adb: Introduce entries in
2942         Preset_Names for Name_Disp_Asynchronous_Select,
2943         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
2944         Name_Disp_Timed_Select.
2945         New pragma Debug_Policy
2946
2947         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
2948         explicitly.
2949         Switch -gnata also sets Debug_Pragmas_Enabled
2950
2951         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
2952         handle an explicit -gnata when compiling predefined files.
2953
2954 2005-09-01  Vincent Celier  <celier@adacore.com>
2955
2956         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
2957         directories of projects that have no Ada sources.
2958
2959 2005-09-01  Robert Dewar  <dewar@adacore.com>
2960
2961         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
2962         (makes a difference for wide characters)
2963
2964         * widechar.adb, widechar.ads:
2965         Add Wide_Char_Byte_Count feature to count chars vs bytes
2966
2967 2005-09-01  Thomas Quinot  <quinot@adacore.com>
2968             Ed Schonberg  <schonberg@adacore.com>
2969             Robert Dewar  <dewar@adacore.com>
2970
2971         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
2972         'Address attribute reference with an overloaded prefix, use the
2973         location of the prefix (not the location of the attribute reference) as
2974         the error location.
2975         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
2976         a function renaming thereof, is a valid prefix for 'Size (where it is
2977         intepreted as a function call).
2978         (Statically_Denotes_Entity): New predicate to determine whether the
2979         prefix of an array attribute can be considered static.
2980
2981         PR ada/9087
2982         (Eval_Attr): Fix failure to evaluate Component_Size for
2983         unconstrained arrays (resulted in wrong value in packed case, since
2984         back end cannot handle this case)
2985
2986 2005-09-01  Robert Dewar  <dewar@adacore.com>
2987
2988         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
2989         error msgs for most common cases.
2990         Use new errout insertion char < (conditional warning)
2991
2992 2005-09-01  Javier Miranda  <miranda@adacore.com>
2993             Ed Schonberg  <schonberg@adacore.com>
2994
2995         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
2996         become local to the whole package.
2997         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
2998         the package was already analyzed the new algorithm "replaces" the
2999         real entities by the shadow ones. This is required to ensure that
3000         the order of these entities in the homonym chains does not change;
3001         otherwise we can have undefined references at linking time because
3002         in case of conflicts the external name of the entities will have
3003         a suffix that depends on the order of the entities in the chain.
3004         (Remove_Limited_With_Clause): Complementary code that completes the
3005         new algorithm and replaces the shadow entities by the real ones.
3006         (Install_Limited_Withed_Unit): When unchaining entities before the
3007         installation of the shadow entities, only regular entities of the
3008         public part must be taken into account. This is required to
3009         keep this routine in synch with the work done by Remove_Limited_
3010         With_Clause
3011         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
3012         even if unit is analyzed, because the analysis of the unit is
3013         idempotent in any case, and the limited view of the unit may have to
3014         be installed for proper visibility.
3015         (Expand_Limited_With_Clause): Even if the unit in the implicit
3016         with_clause has been analyzed already, a limited view of the package
3017         must be built for the current context, if it does not exist yet.
3018
3019 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
3020             Javier Miranda  <miranda@adacore.com>
3021             Gary Dismukes  <dismukes@adacore.com>
3022
3023         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
3024         defining entity for the instance body, make a new defining identifier
3025         rather than copying the entity of the spec, to prevent accidental
3026         sharing of the entity list.
3027         (Check_Private_View): When exchanging views of private types, build the
3028         list of exchanged views as a stack, to ensure that on exit the exchanges
3029         are undone in the proper order.
3030         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
3031         Restore the compilation environment in case of instantiation_error.
3032         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
3033         for an anonymous access result.
3034         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
3035         (Formal_Entity): Handle properly the case of a formal package that
3036         denotes a generic package renaming.
3037
3038 2005-09-01  Thomas Quinot  <quinot@adacore.com>
3039
3040         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
3041         clause if the array aggregate is surrounded by parentheses.
3042
3043 2005-09-01  Cyrille Comar  <comar@adacore.com>
3044             Gary Dismukes  <dismukes@adacore.com>
3045             Ed Schonberg  <schonberg@adacore.com>
3046             Javier Miranda  <miranda@adacore.com>
3047
3048         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
3049         underlying type
3050         to check if a type is Constrained in cases related to code generation
3051         (rather than semantic checking) since otherwise we do not generate
3052         similar code for mutable private types depending if their
3053         discriminants are visible or not.
3054         (Check_Abstract_Overriding): Do not complain about failure to override
3055         the primitive operations used in dispatching selects since they will
3056         always be overriden at the freeze point of the type.
3057         (Access_Definition): Separate out handling for resetting the scope
3058         of an anonymous access function result type. Retrieve the scope
3059         of the associated function rather than using Current_Scope, which
3060         does not have a consistent value (depends on whether we're in the
3061         middle of analyzing formal parameters). Add ??? comment about
3062         finding a cleaner way to handle the special cases of scope setting.
3063         (Process_Incomplete_Dependents): A protected operation is never a
3064         dispatching operation (only its wrapper may be).
3065         (Build_Derived_Record_Type): In case of tagged private types that
3066         implement interfaces add derivation of predefined primitive
3067         operations.
3068         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
3069         by two parameters that are used in case of derivation from abstract
3070         interface types: No_Predefined_Prims is used to avoid the derivation
3071         of predefined primitives from the interface, and Predefined
3072         Prims_Only is used to complete the derivation predefined primitives
3073         in case of private tagged types implementing interfaces.
3074         Fix typo in comments
3075         (Find_Interface_In_Descendant): Protect the frontend against
3076         wrong code with large circularity chains.
3077         (Is_Private_Overriding): Add support for entities overriding interface
3078         subprograms. The test failed because Entities associated with overriden
3079         interface subprograms are always marked as hidden (and used to build
3080         the secondary dispatch table); in this case the overriden entity is
3081         available through the field abstract_interface_alias (cf. override_
3082         dispatching_operation)
3083         (Access_Definition): Set the scope of the type to Current_Scope for the
3084         case of a function with an anonymous access result type.
3085         (Access_Subprogram_Declaration): Handle creation of the type entity for
3086         an access-to-function type with an anonymous access result.
3087         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
3088         in handling for N_Access_Function_Definition.
3089         (Analyze_Subtype_Declaration): Modify the text of error message.
3090         (Derived_Type_Declaration): Modify the text of error message.
3091         (Process_Subtype): Modify the text of error message plus cleanup
3092         of one redundant error message.
3093         (Analyze_Component_Declaration): Code cleanup.
3094         (Analyze_Object_Declaration): Code cleanup.
3095         (Analyze_Subtype_Declaration): Propagate the null-exclusion
3096         attribute in case of access types. Code cleanup.
3097         (Array_Type_Declaration): Code cleanup.
3098         (Process_Discriminants): Create the new null-excluding itype
3099         if required. Code cleanup.
3100         (Process_Subtype): Create the new null-excluding itype if
3101         required. Code cleanup.
3102         (Build_Derived_Record_Type): Code cleanup to avoid calling
3103         twice the subprogram derive_subprograms in case of private
3104         types that implement interfaces. In this particular case the
3105         subprogram Complete_Subprograms_Derivation already does the
3106         job associated with the second call.
3107
3108         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
3109         conversion to the full view when generating an operation for a
3110         discriminant whose type may currently be private.
3111
3112 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
3113             Javier Miranda  <miranda@adacore.com>
3114
3115         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
3116         V (Obj.F), the rewriting does not involve the indexed component, but
3117         only the selected component itself.
3118         Do not apply the transformation if the analyzed node is an actual of a
3119         call to another subprogram.
3120         (Complete_Object_Operation): Retain the entity of the
3121         dispatching operation in the selector of the rewritten node. The
3122         entity will be used in the expansion of dispatching selects.
3123         (Analyze_One_Call): Improve location of the error message associated
3124         with interface.
3125         (Analyze_Selected_Component): No need to resolve prefix when it is a
3126         function call, resolution is done when parent node is resolved, as
3127         usual.
3128         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
3129         when attempting to resolve a call transformed from its object notation.
3130         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
3131         of the argument list for each interpretation of the operation.
3132         (Try_Object_Operation): The designated type of an access parameter may
3133         be an incomplete type obtained through a limited_with clause, in which
3134         case the primitive operations of the type are retrieved from its full
3135         view.
3136         (Analyze_Call): If this is an indirect call, and the return type of the
3137         access_to_subprogram is incomplete, use its full view if available.
3138
3139 2005-09-01  Javier Miranda  <miranda@adacore.com>
3140             Gary Dismukes  <dismukes@adacore.com>
3141
3142         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
3143         access types the null-exclusion and access-to-constant attributes must
3144         also match.
3145         (Analyze_Return_Statement): When the result type is an anonymous access
3146         type, apply a conversion of the return expression to the access type
3147         to ensure that appropriate accessibility checks are performed.
3148         (Analyze_Return_Type): For the case of an anonymous access result type,
3149         generate the Itype and set Is_Local_Anonymous_Access on the type.
3150         Add ??? placeholder for check to disallow returning a limited object
3151         in Ada 2005 unless it's an aggregate or a result of a function call.
3152         Change calls from Subtype_Mark to Result_Definition.
3153         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
3154         Result_Definition in call to Make_Function_Specification.
3155         (Build_Body_To_Inline): Change Set_Subtype_Mark to
3156         Set_Result_Definition.
3157         (Make_Inequality_Operator): Change formal Subtype_Mark to
3158         Result_Definition in call to Make_Function_Specification.
3159         (Process_Formals): Create the new null-excluding itype if required.
3160         (New_Overloaded_Entity): For an entity overriding an interface primitive
3161         check if the entity also covers other abstract subprograms in the same
3162         scope. This is required to handle the general case, that is, overriding
3163         other interface primitives and overriding abstract subprograms inherited
3164         from some abstract ancestor type.
3165         (New_Overloaded_Entity): For an overriding entity that comes from
3166         source, note the operation that it overrides.
3167         (Check_Conformance, Type_Conformant): Addition of one new formal
3168         to skip controlling formals in the analysis. This is used to
3169         handle overloading of abstract interfaces.
3170         (Base_Types_Match): Add missing case for types imported from
3171         limited-with clauses
3172         (New_Overloaded_Entity): Add barrier to protect the use of
3173         the "alias" attribute.
3174
3175 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
3176
3177         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
3178         verify that the procedure and the entry are mode conformant.
3179         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
3180         as a different operator, which is often a cut-and-paste error.
3181
3182 2005-09-01  Javier Miranda  <miranda@adacore.com>
3183             Ed Schonberg  <schonberg@adacore.com>
3184
3185         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
3186         used in controlling parameters exclude null because it is necessary to
3187         read the tag to dispatch, and null has no tag.
3188         (Override_Dispatching_Operation): If the previous operation is inherited
3189         from an interface, it becomes hidden  and does not participate in later
3190         name resolution.
3191
3192 2005-09-01  Javier Miranda  <miranda@adacore.com>
3193             Ed Schonberg  <schonberg@adacore.com>
3194             Gary Dismukes  <dismukes@adacore.com>
3195
3196         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
3197         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
3198         the expander will generate the corresponding run-time check to evaluate
3199         the expression.
3200         (Resolve_Call): Check for legal type of procedure name or prefix that
3201         appears as a trigger in a triggering alternative.
3202         (Valid_Conversion): If expression is ambiguous and the context involves
3203         an extension of System, remove System.Address interpretations.
3204         (Resolve_Qualified_Expression): Reject the case of a specific-type
3205         qualification applied to a class-wide argument. Enhance comment
3206         to explain checking of Original_Node.
3207         (Resolve_Type_Conversion): The location of the error message was not
3208         general enough to handle the general case and hence it has been removed.
3209         In addition, this patch improves the text of the message.
3210         (Resolve_Type_Conversion): Add missing support for access to interface
3211         types.
3212         (Resolve_Type_Conversion): If the target is a class-wide interface type,
3213         do not expand if the expression is the actual in a call, because proper
3214         expansion will take place when the call itself is expanded.
3215         (Resolve_Allocator): If the context is an unchecked conversion, the
3216         allocator inherits its storage pool, if any, from the target type of
3217         the conversion.
3218
3219 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
3220             Javier Miranda  <miranda@adacore.com>
3221
3222         * sem_type.adb (Add_One_Interp): If a candidate operation is an
3223         inherited interface operation that has an implementation, use the
3224         implementation to avoid spurious ambiguities.
3225         (Interface_Present_In_Ancestor): In case of concurrent types we can't
3226         use the Corresponding_Record_Typ attribute to look for the interface
3227         because it is set by the expander (and hence it is not always
3228         available). For this reason we traverse the list of interfaces
3229         (available in the parent of the concurrent type).
3230         (Interface_Present_In_Ancestor): Handle entities from the limited view
3231
3232 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
3233
3234         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
3235         from the list of required components.
3236         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
3237         primitive procedure of a limited interface with a controlling first
3238         parameter.
3239         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
3240         of an entry.
3241         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
3242         capture if it is generated in the second operand of a short-circuit
3243         operation.
3244         Do not capture values for variables with address clauses.
3245         (Is_Object_Reference): Treat a function call as an object reference only
3246         if its type is not Standard_Void_Type.
3247
3248 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
3249
3250         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
3251         to a variable that is statically known to be constant.
3252
3253 2005-09-01  Geert Bosch  <bosch@adacore.com>
3254             Robert Dewar  <dewar@adacore.com>
3255
3256         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
3257         (VAXGF_Safe_First): Idem.
3258
3259 2005-09-01  Robert Dewar  <dewar@adacore.com>
3260             Arnaud Charlet  <charlet@adacore.com>
3261
3262         * g-dirope.ads: Minor reformatting
3263         Document that bounds of result of Base_Name match the input index
3264         positions.
3265         Add documentation on environment variable syntax for Expand_Path
3266
3267         * gnat_ugn.texi: Update documentation to include mention of -m switches
3268         Document new treatment of wide characters in max line length
3269         style check.
3270         Remove -gnatL/-gnatZ switches, no longer used.
3271         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
3272         of -gnata switch.
3273
3274         * gnat_rm.texi: Add doc for two argument form of pragma
3275         Float_Representation.
3276         Add documentation for pragma No_Strict_Aliasing
3277         Add note that explicit component clause overrides pragma Pack.
3278         Add documentation of pragma Debug_Policy
3279
3280 2005-09-01  Matthew Heaney  <heaney@adacore.com>
3281
3282         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
3283         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
3284         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
3285         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
3286         draft (Draft 13, August 2005) of Ada Amendment 1.
3287
3288 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
3289
3290         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
3291         Note that the platform-specific version of g-soccon.ads for VMS is now
3292         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
3293         really is a package spec).
3294         Replace s-taspri-linux.ads by s-taspri-posix.ads
3295         Remove references to s-mastop-x86.adb
3296
3297         * system-vxworks-xscale.ads: Removed, no longer used.
3298         * s-vxwork-xscale.ads: Removed, no longer used.
3299
3300 2005-09-01  Robert Dewar  <dewar@adacore.com>
3301
3302         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
3303         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
3304         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
3305         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
3306         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
3307         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
3308         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
3309         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
3310         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
3311         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
3312         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
3313         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
3314         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
3315         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
3316         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
3317         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
3318         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
3319         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
3320         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
3321         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
3322         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
3323
3324 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
3325
3326         PR ada/23187
3327         * adaint.c
3328         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
3329
3330 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
3331             Doug Rupp  <rupp@adacore.com>
3332
3333         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
3334         when needed.
3335         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
3336         this code in the GNAT run-time.
3337
3338         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
3339
3340         PR ada/21053
3341         * init.c (__gnat_error_handler [many]): Mark "msg" as const
3342         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
3343
3344         (__gnat_inside_elab_final_code): Moved here from
3345         Standard_Library and only defined for the compiler.
3346         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
3347         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
3348         using RTPs because directly vectored Interrupt routines are not
3349         supported on this configuration.
3350         (getpid): Do not redefine this function on VxWorks when using RTPs
3351         because this primitive is well supported by the RTP libraries.
3352         (copy_msg): Correct the code that checks for buffer overflow.
3353         Discovered during code reading.
3354
3355 2005-08-29  Olivier Hainque  <hainque@adacore.com>
3356
3357         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
3358         a library level mutable variable with an initializer, tell
3359         build_allocator to ignore the initializer's size. It may not be large
3360         enough for all the values that might be assigned to the variable later
3361         on.
3362
3363 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
3364             Eric Botcazou  <ebotcazou@adacore.com>
3365
3366         * trans.c: Protect < in error msg with quote
3367         Replace GCC_ZCX by Back_End_Exceptions.
3368         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
3369         has been sufficiently aligned in the record.
3370
3371 2005-08-15  James E. Wilson  <wilson@specifix.com>
3372
3373         * system-linux-alpha.ads: Change ia64 to alpha.
3374
3375 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
3376
3377         * decl.c, utils.c: Fix comment typos.
3378
3379 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
3380
3381         * decl.c, init.c, initialize.c: Fix comment typos.
3382
3383 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
3384
3385         Make CONSTRUCTOR use VEC to store initializers.
3386         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
3387         CONSTRUCTOR_ELTS.
3388         * trans.c (extract_values): Likewise.
3389         * utils.c (convert, remove_conversions): Likewise.
3390         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
3391         gnat_build_constructor): Likewise.
3392
3393 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
3394
3395         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
3396         DECL_SECTION_NAME.
3397         (compare_field_bitpos): Likewise.
3398
3399 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
3400
3401         * utils.c (create_var_decl): Only set DECL_COMMON on
3402         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
3403         VAR_OR_FUNCTION_DECL_P.
3404
3405 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
3406
3407         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
3408         removed.
3409
3410 2005-07-07  Pascal Obry  <obry@adacore.com>
3411
3412         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
3413         returned type on Windows.
3414
3415         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
3416         routine.
3417
3418         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
3419         exception in this case.
3420         Simplify the code as "Image (Image'Range)" = "Image".
3421
3422 2005-07-07  Vincent Celier  <celier@adacore.com>
3423
3424         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
3425         the destructor/constructor attributes for <lib>final/<lib>init.
3426
3427         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
3428
3429 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
3430
3431         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
3432         type if the parameter is not passed by copy but reference by default.
3433
3434 2005-07-07  Javier Miranda  <miranda@adacore.com>
3435
3436         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
3437         Reimplementation of the support for abstract interface types in order
3438         to leave the code more clear and easy to maintain.
3439
3440         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
3441         abstract interface types in order to leave the code clearer and easier
3442         to maintain.
3443
3444         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
3445         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
3446         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
3447         appropriate entry of the secondary dispatch table.
3448         (Make_DT): Add code to inherit the secondary dispatch tables of
3449         the ancestors.
3450
3451         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
3452         implementing both functionalities by means of a common routine, each
3453         routine has its own code.
3454
3455 2005-07-07  Javier Miranda  <miranda@adacore.com>
3456
3457         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
3458
3459         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
3460         types:
3461         --
3462           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3463         --
3464
3465         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
3466         use of tag incomplete types.
3467
3468         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
3469         give support to tagged incomplete types.
3470
3471         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
3472         expression is a discriminant reference and its type is private, as can
3473         happen within a stream operation for a mutable record, use the full
3474         view of the type to resolve the case alternatives.
3475         (Analyze_Assignment): Check wrong dereference of incomplete types.
3476
3477         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
3478         types.
3479
3480         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
3481         incomplete types.
3482
3483         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
3484         N_Incomplete_Type_Declaration nodes.
3485
3486         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
3487         Tag_Present to give support to tagged incomplete types:
3488         --
3489           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3490         --
3491
3492 2005-07-07  Olivier Hainque  <hainque@adacore.com>
3493
3494         PR ada/22301
3495
3496         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
3497         definitions for the Unwind wrappers in the compiler case.
3498
3499 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
3500             Javier Miranda  <miranda@adacore.com>
3501
3502         * par-load.adb (Load): If a child unit is loaded through a limited_with
3503         clause, each parent must be loaded as a limited unit as well.
3504
3505         * sem_ch10.adb (Previous_Withed_Unit): Better name for
3506         Check_Withed_Unit. Return true if there is a previous with_clause for
3507         this unit, whether limited or not.
3508         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
3509         the current unit.
3510         (Is_Visible_Through_Renamings): New local subprogram of install_limited
3511         _withed_unit that checks if some package installed through normal with
3512         clauses has a renaming declaration of package whose limited-view is
3513         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
3514         of the current Draft document for Ada 2005.
3515         (Analyze_Context): Complete the list of compilation units that
3516         are allowed to contain limited-with clauses. It also contains
3517         checks that were previously done by Install_Limited_Context_Clauses.
3518         This makes the code more clear and easy to maintain.
3519         (Expand_Limited_With_Clause) It is now a local subprogram of
3520         Install_Limited_Context_Clauses, and contains the code that adds
3521         the implicit limited-with clauses for parents of child units.
3522         This functionality was prevously done by Analyze_Context.
3523
3524         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
3525         incomplete type.
3526
3527         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
3528         been erroneously named in a limited-with clause of its own context.
3529         In this case the error has been previously notified by Analyze_Context.
3530
3531 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
3532
3533         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
3534         generic package that contains local declarations with the same name.
3535         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
3536
3537 2005-07-07  Bernard Banner  <banner@adacore.com>
3538
3539         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
3540         ia64 platform only on platforms that you the GCC unwind library
3541         rather than the system unwind library.
3542
3543 2005-07-07  Thomas Quinot  <quinot@adacore.com>
3544
3545         * expect.c: Minor reformatting
3546
3547 2005-07-07  Sergey Rybin  <rybin@adacore.com>
3548
3549         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
3550         --no-separate-is
3551
3552         * gnat_ugn.texi: Add description for new gnatpp option
3553         (--no-separate-is)
3554
3555 2005-07-04  Thomas Quinot  <quinot@adacore.com>
3556
3557         * g-expect-vms.adb, g-expect.ads, g-expect.adb
3558         (Get_Command_Output): New subprogram to launch a process and get its
3559         standard output as a string.
3560
3561 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
3562             Olivier Hainque  <hainque@adacore.com>
3563
3564         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
3565         fetch a code-range descriptor associated with the machine state. On
3566         failure set the machine state's PC to 0; on success, pass the
3567         descriptor to exc_virtual_unwind.
3568
3569         * init.c (Tru64 section): New function __gnat_set_code_loc.
3570
3571 2005-07-04  Vincent Celier  <celier@adacore.com>
3572
3573         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3574         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
3575         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
3576         Remove all auto-initialization code, as this is now done through the
3577         constructor mechanism.
3578
3579         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
3580         __gnat_sals_init_using_constructors): New functions.
3581
3582         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
3583         Linker_Constructor and Linker_Destructor when switch -a is used.
3584
3585         * bindusg.adb: Add line for new switch -a
3586
3587         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
3588         (Gnatbind): When switch -a is used, check if it is allowed
3589
3590         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
3591
3592 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
3593
3594         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
3595         This prevents us from hitting a limitation during the debug info
3596         generation when using stabs.
3597         (Prims_Ptr): Likewise.
3598
3599 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
3600             Ed Schonberg  <schonberg@adacore.com>
3601             Javier Miranda  <miranda@adacore.com>
3602
3603         * checks.adb (Null_Exclusion_Static_Checks): In the case of
3604         N_Object_Declaration, only perform the checks if the Object_Definition
3605         is not an Access_Definition.
3606
3607         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
3608         where the parent of an the access definition is an N_Object_Declaration
3609         when determining the Associated_Node_For_Itype and scope of an
3610         anonymous access-to-subprogram type.
3611
3612         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
3613         Corresponding_Spec on the body created for a null procedure. Add ???
3614         comment. Remove New_Copy_Tree call on body argument to
3615         Set_Body_To_Inline.
3616
3617         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
3618         discriminants, use the type of the actual as well, because the
3619         discriminants may be read by the called subprogram.
3620
3621         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
3622         access type we do not need to handle non-limited views.
3623         (Build_Derived_Record_Type): Additional check to check that in case of
3624         private types, interfaces are only allowed in private extensions.
3625
3626 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
3627
3628         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
3629         <Pragma_Linker_Destructor>: Likewise.
3630
3631         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
3632         Pragma_Linker_Destructor.
3633
3634         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
3635         ATTR_LINK_DESTRUCTOR.
3636         (static_ctors, static_dtors): New variables.
3637
3638         * misc.c (gnat_expand_body): Output current function as constructor
3639         and destructor if requested.
3640
3641         * par-prag.adb: Add processing for pragma Linker_Constructor and
3642         Linker_Destructor.
3643
3644         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
3645         extracted from Check_Interrupt_Or_Attach_Handler.
3646         (Check_Interrupt_Or_Attach_Handler): Invoke it.
3647         Implement pragma Linker_Constructor and Linker_Destructor with the
3648         help of Find_Unique_Parameterless_Procedure.
3649         Replace Name_Alias with Name_Target for pragma Linker_Alias.
3650
3651         * snames.h, snames.ads, snames.adb:
3652         Add Name_Linker_Constructor and Name_Linker_Destructor.
3653         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
3654         * snames.adb: Remove Name_Alias.
3655
3656         * trans.c: Include cgraph.h.
3657         (build_global_cdtor): New function.
3658         (Compilation_Unit_to_gnu): Build global constructor and destructor if
3659         needed.
3660         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
3661         of objects too.
3662         (addressable_p) <COMPONENT_REF>: Unconditionally test
3663         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
3664
3665         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
3666         variable if it is external.
3667
3668         (static_ctors, static_dtors): New global variables.
3669         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
3670         <ATTR_LINK_DESTRUCTOR>: Likewise.
3671         (end_subprog_body): Chain function as constructor and destructor
3672         if requested.
3673
3674         * exp_util.adb (Force_Evaluation): Unconditionally invoke
3675         Remove_Side_Effects with Variable_Ref set to true.
3676         (Remove_Side_Effects): Handle scalar types first. Use a renaming
3677         for non-scalar types even if Variable_Ref is true and for class-wide
3678         expressions.
3679
3680 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
3681
3682         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
3683         to prevent spurious warnings.
3684
3685 2005-07-04  Thomas Quinot  <quinot@adacore.com>
3686
3687         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
3688         Itypes. Itypes are really unexpected there.
3689         (Build_TypeCode_Function): Generalise special processing for Itypes to
3690         handle the case of numeric implicit base types as well as enumerated
3691         ones.
3692
3693 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
3694
3695         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
3696         controlled, indicate the expected type of the dereference that is
3697         created for the call to Deep_Finalize, to prevent spurious errors when
3698         the designated type is private and completed with a derivation from
3699         another private type.
3700
3701 2005-07-04  Vincent Celier  <celier@adacore.com>
3702
3703         * make.adb (Change_To_Object_Directory): When unable to change the
3704         current dir to the object directory, output the full path of the
3705         directory.
3706
3707 2005-07-04  Matthew Gingell  <gingell@adacore.com>
3708
3709         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
3710
3711         * indepsw-linux.adb: Replace by...
3712
3713         * indepsw-gnu.adb: ...this new file
3714
3715 2005-07-04  Vincent Celier  <celier@adacore.com>
3716
3717         * mlib-prj.adb (Auto_Initialize): New constant String
3718         (SALs_Use_Constructors): New Boolean function
3719         (Build_Library): Call gnatbind with Auto_Initialize switch when
3720         SALs_Use_Constructors returns True.
3721
3722         * mlib-tgt.ads: Minor reformatting
3723
3724         * mlib-utl.ads: Minor reformatting
3725
3726         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
3727
3728 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
3729
3730         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
3731         single protected declarations can have an interface list.
3732         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
3733         with seriously malformed entry declarations, and lead to compilation
3734         abandoned messages.
3735
3736 2005-07-04  Javier Miranda  <miranda@adacore.com>
3737
3738         * par-load.adb: Load the context items in two rounds.
3739
3740 2005-07-04  Robert Dewar  <dewar@adacore.com>
3741
3742         * scng.adb: Do not consider Mod used as an attribute to be a keyword
3743
3744 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
3745             Javier Miranda  <miranda@adacore.com>
3746
3747         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
3748         type extension needs a limited view.
3749         Remove previous restriction on private types available through the
3750         limited-view (only tagged private types were previously allowed).
3751         (Install_Withed_Unit): In the code that implements the
3752         legality rule given in AI-377, exclude a child unit with the name
3753         Standard, because it is a homonym of the Standard environment package.
3754
3755 2005-07-04  Thomas Quinot  <quinot@adacore.com>
3756
3757         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
3758         overloaded function call, carry interpretations from the original tree
3759         to the copy.
3760
3761 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
3762
3763         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
3764         types check whether some designated type is a limited view, and use
3765         the non-limited view if available.
3766
3767 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
3768
3769         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
3770         constraint of full view of a private view T1 if present, when T2 is a
3771         discriminated full view.
3772
3773 2005-07-04  Thomas Quinot  <quinot@adacore.com>
3774
3775         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
3776         actual that is a view conversion of a bit packed array reference.
3777
3778 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
3779
3780         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
3781         present before checking whether an interface type covers a synchronized
3782         type.
3783
3784 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
3785
3786         * sem_util.adb (Is_Object_Reference): An indexed or selected component
3787         whose prefix is an implicit dereference is an object reference. Removes
3788         spurious errors when compiling with -gnatc.
3789
3790 2005-07-04  Robert Dewar  <dewar@adacore.com>
3791
3792         PR ada/22039
3793
3794         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
3795
3796 2005-07-04  Matthew Gingell  <gingell@adacore.com>
3797
3798         * tracebak.c: Enable tracebacks on ia64 platforms
3799
3800 2005-07-04  Vincent Celier  <celier@adacore.com>
3801
3802         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
3803         the GNAT BIND command, as gnatbind accepts multiples ALI files with
3804         the -L or -n switches.
3805
3806 2005-07-04  Vincent Celier  <celier@adacore.com>
3807
3808         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
3809         correctly computed and the main project data is not modified while
3810         doing so.
3811         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
3812         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
3813         c++linker as this does not work on some platforms.
3814
3815 2005-07-04  Matthew Heaney  <heaney@adacore.com>
3816
3817         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
3818         was changed.
3819         * a-coinve.adb: Perform constraint checks explicitly.
3820
3821 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3822             Thomas Quinot  <quinot@adacore.com>
3823
3824         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
3825         new target gen-soccon.
3826
3827 2005-07-04  Robert Dewar  <dewar@adacore.com>
3828
3829         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
3830
3831 2005-07-04  Thomas Quinot  <quinot@adacore.com>
3832
3833         * g-socket.ads (Check_Selector): Minor rewording of comment.
3834
3835 2005-07-04  Vincent Celier  <celier@adacore.com>
3836
3837         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
3838
3839 2005-07-04  Thomas Quinot  <quinot@adacore.com>
3840
3841         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
3842
3843 2005-07-04  Sergey Rybin  <rybin@adacore.com>
3844
3845         * gnat_ugn.texi: Add description of --eol gnatpp option
3846
3847 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
3848             Thomas Quinot  <quinot@adacore.com>
3849
3850         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
3851         if the user wants all calls of a subprogram to be flagged,
3852         independently of whether they are made from within the same unit or
3853         another unit.
3854         Mention restriction for pragma Linker_Alias on some platforms.
3855         Document pragma Linker_Constructor and Linker_Destructor.
3856         Rewrite documentation of Weak_External, Linker_Section and
3857         Linker_Alias pragmas.
3858
3859 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
3860
3861         * s-stausa.ads, s-stausa.adb: New files.
3862
3863 2005-06-30  Kelley Cook
3864
3865         * all files:  Update FSF address in copyright headers.
3866         * gen-soccon.co (main): Output new FSF address in generated files.
3867
3868 2005-06-28  Paul Brook  <paul@codesourcery.com>
3869
3870         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
3871
3872 2005-06-14  Olivier Hainque  <hainque@adacore.com>
3873             Eric Botcazou  <ebotcazou@adacore.com>
3874
3875         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
3876         exc_unwind, now that we are generating proper .debug_frame output for
3877         that target.
3878
3879         * tracebak.c: Remove the mips-irix section, as we are now using the
3880         s-mastop based unwinder again.
3881         Under SPARC/Solaris, take into account the stack bias to compute the
3882         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
3883         ABI.
3884
3885 2005-06-14  Doug Rupp  <rupp@adacore.com>
3886
3887         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
3888
3889         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
3890
3891 2005-06-14  Pascal Obry  <obry@adacore.com>
3892
3893         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
3894         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
3895         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
3896         package name).
3897
3898         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
3899         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
3900         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
3901         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
3902         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
3903         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
3904         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
3905         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
3906         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
3907         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
3908         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
3909         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
3910         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
3911         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
3912         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
3913         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
3914         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
3915         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
3916         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
3917         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
3918         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
3919         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
3920         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
3921         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
3922         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
3923         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
3924         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
3925         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
3926         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
3927         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
3928         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
3929         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
3930         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
3931         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
3932         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
3933         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
3934         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
3935         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
3936         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
3937         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
3938         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
3939         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
3940         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
3941         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
3942         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
3943         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
3944         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
3945         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
3946         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
3947         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
3948         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
3949         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
3950         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
3951         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
3952         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
3953         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
3954         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
3955         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
3956         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
3957         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
3958         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
3959         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
3960         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
3961         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
3962         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
3963         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
3964         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
3965         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
3966         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
3967         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
3968         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
3969         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
3970         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
3971         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
3972         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
3973         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
3974         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
3975         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
3976         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
3977         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
3978         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
3979         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
3980         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
3981         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
3982         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
3983         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
3984         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
3985         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
3986         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
3987         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
3988         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
3989         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
3990         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
3991         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
3992         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
3993         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
3994         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
3995         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
3996         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
3997         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
3998         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
3999         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
4000         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
4001         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
4002         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
4003         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
4004         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
4005         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
4006         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
4007         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
4008         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
4009         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
4010         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
4011         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
4012         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
4013         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
4014         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
4015         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
4016         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
4017         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
4018         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
4019         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
4020         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
4021         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
4022         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
4023         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
4024         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
4025         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
4026         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
4027         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
4028         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
4029         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
4030         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
4031
4032 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
4033             Arnaud Charlet  <charlet@adacore.com>
4034
4035         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
4036         longer protected objects. They have been replaced by lower-level
4037         suspension objects made up by a mutex and a condition variable (or
4038         their equivalent given a particular OS) plus some internal data to
4039         reflect the state of the suspension object.
4040         (Initialize, Finalize): Add this initialization procedure for
4041         Suspension_Object, which is a controlled type.
4042         (Finalize): Add the finalization procedure for Suspension_Object,
4043         which is a controlled type.
4044
4045         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
4046         Ada.Synchronous_Task_Control because there is no longer a need for a
4047         VxWorks specific version of this package. Target dependencies
4048         has been moved to System.Task_Primitives.Operations.
4049
4050         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
4051         longer needed.
4052         (InitializeCriticalSection, EnterCriticalSection,
4053         LeaveCriticalSection, DeleteCriticalSection): Replace the type
4054         pCriticalSection by an anonymous access type so that we avoid problems
4055         of accessibility to local objects.
4056
4057         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
4058         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
4059         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
4060         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
4061         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
4062         set the environment task mask here.
4063         (Current_State): Add this function that returns the state of the
4064         suspension object.
4065         (Set_False): Add this procedure that sets the state of the suspension
4066         object to False.
4067         (Set_True): Add this procedure that sets the state of the suspension
4068         object to True, releasing the task that was suspended, if any.
4069         (Suspend_Until_True): Add this procedure that blocks the calling task
4070         until the state of the object is True. Program_Error is raised if
4071         another task is already waiting on that suspension object.
4072         (Initialize): Add this procedure for initializing the suspension
4073         object. It initializes the mutex and the condition variable which are
4074         used for synchronization and queuing, and it sets the internal state
4075         to False.
4076         (Finalize): Add this procedure for finalizing the suspension object,
4077         destroying the mutex and the condition variable.
4078
4079         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
4080         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
4081         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
4082         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
4083         which provides a low-level abstraction (using operating system
4084         primitives) for Ada.Synchronous_Task_Control.
4085         This object is made up by a mutex (for ensuring mutual exclusion), a
4086         condition variable (for queuing threads until the condition is
4087         signaled), a Boolean (State) indicating whether the object is open,
4088         and a Boolean (Waiting) reflecting whether there is a task already
4089         suspended on this object.
4090
4091         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
4092         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
4093         s-intman-vms.ads, s-intman-mingw.adb,
4094         (Initialize_Interrupts): Removed, no longer used.
4095
4096         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
4097         (Setup_Interrupt_Mask): New procedure.
4098
4099         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
4100
4101         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
4102
4103         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
4104         this is no longer done in the body of s-taprop
4105         (Server_Task): Explicitely test for Pending_Action in case
4106         System.Parameters.No_Abort is True.
4107
4108         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
4109         is no longer done in the body of s-taprop
4110
4111 2005-06-14  Robert Dewar  <dewar@adacore.com>
4112
4113         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
4114         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
4115         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
4116         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
4117         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
4118         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
4119         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
4120         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
4121         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
4122         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
4123         system-linux-hppa.ads, system-vms_64.ads,
4124         system-vxworks-alpha.ads: Minor comment update for
4125         AI-362 (unit is Pure).
4126
4127         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
4128         Add pragma Pure_05 for AI-362
4129         Make remaining conversion functions obsolescent in Ada 95
4130
4131         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
4132         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
4133         Add entries for a-wichun and a-zchuni
4134         Add a-widcha a-zchara for AI-395
4135         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
4136
4137         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
4138         Add entries for a-wichun.o and a-zchuni.o
4139         Entries for a-widcha.o and a-zchara.o
4140         Add entry for a-chacon.o
4141
4142         * a-ztenau.adb: Add with of Ada.Characters.Conversions
4143
4144         * a-chacon.ads, a-chacon.adb: New files.
4145
4146         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
4147         categorization violations.
4148
4149         * a-strmap.ads: Add pragma Pure_05 for AI-362
4150         * a-strmap.ads: Add note on implicit categorization for AI-362
4151
4152         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
4153
4154         * par-prag.adb: Dummy entry for pragma Persistent_BSS
4155         Set Ada_Version_Explicit, for implementation of AI-362
4156         Add processing for pragma Pure_05 and Preelaborate_05
4157         Add entry for Assertion_Policy pragma
4158
4159         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
4160         when needed for proper processing of categorization stuff
4161
4162         * sem_cat.adb:
4163         For several cases, make errors in preealborate units warnings,
4164         instead of errors, if GNAT_Mode is set. For AI-362.
4165
4166         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
4167         preelaborate unit is now warning if in GNAT mode
4168
4169         * s-stoele.ads: Document AI-362 for pragma preelaborate
4170
4171 2005-06-14  Doug Rupp  <rupp@adacore.com>
4172
4173         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
4174         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
4175         Default_Exception_Msg_Max_Length: new parameter.
4176
4177         * a-except.ads: (Exception_Msg_Max_Length): Set to
4178         System.Parameters.Default_Exception_Msg_Max_Length
4179         Add pragma Preelaborate_05 for AI-362
4180         Add warnings off to allow categorization violations for AI-362
4181
4182 2005-06-14  Vincent Celier  <celier@adacore.com>
4183
4184         * gnatsym.adb: Adapt to modification of package Symbols: procedure
4185         Process is now in package Processing.
4186
4187         * symbols.ads, symbols.adb:
4188         (Processing): New package, containing procedure Process
4189
4190         * symbols-vms-alpha.adb:
4191         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
4192
4193         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
4194         symbols-processing-vms-ia64.adb: New files.
4195
4196 2005-06-14  Pascal Obry  <obry@adacore.com>
4197
4198         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
4199         implementation. This new version generates the proper DllMain routine
4200         to initialize the SAL. The DllMain is generated in Ada and compiled
4201         before being added as option to the library build command.
4202
4203 2005-06-14  Doug Rupp  <rupp@adacore.com>
4204             Pascal Obry  <obry@adacore.com>
4205
4206         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
4207         call to decc$translate_vms.
4208         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
4209         need to remove those quotes before catenating the filename.
4210         (__gnat_locate_exec_on_path): improvements to the Win32 section:
4211         * avoid allocating the memory twice for better efficiency;
4212         * allocate 32K buffer for environment expansion as suggested by MSDN;
4213         * prepend ".;" to the path so that current directory is searched too.
4214
4215 2005-06-14  Robert Dewar  <dewar@adacore.com>
4216
4217         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
4218         instead of raising CE (AI-241)
4219         Add warnings off to allow categorization violations for AI-362
4220
4221 2005-06-14  Robert Dewar  <dewar@adacore.com>
4222
4223         * ali-util.adb, gnatbind.adb: Remove references to
4224         Force_RM_Elaboration_Order.
4225
4226         * switch-b.adb: Remove recognition of -f switch
4227
4228 2005-06-14  Pascal Obry  <obry@adacore.com>
4229
4230         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
4231         implementation which is slightly more efficient.
4232
4233 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
4234             Javier Miranda  <miranda@adacore.com>
4235             Ed Schonberg  <schonberg@adacore.com>
4236             Hristian Kirtchev  <kirtchev@adacore.com>
4237
4238         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
4239         allocator's designated type is a class-wide type, and compiling for
4240         Ada 2005, emit a run-time check that the accessibility level of the
4241         type given in the allocator's expression is not deeper than the level
4242         of the allocator's access type.
4243
4244         (Tagged_Membership): Modified to gives support to abstract interface
4245         types.
4246
4247         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
4248         Access_Level.
4249         (Descendant_Tag): New predefined function
4250         (Is_Descendant_At_Same_Level): New predefined function
4251         (Get_Access_Level): New private function
4252         (Set_Access_Level): New private procedure
4253         (IW_Membership): New function. Given the tag of an object and the tag
4254         associated with an interface, evaluate if the object implements the
4255         interface.
4256         (Register_Interface_Tag): New procedure used to initialize the table of
4257         interfaces used by the IW_Membership function.
4258         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
4259         of the dispatch table.
4260         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
4261         table of interfaces of the parent.
4262         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
4263         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
4264         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
4265         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
4266         Ada 2005 semantics for the new predefined function.
4267
4268         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
4269         call to Descendant_Tag rather than Internal_Tag.
4270         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
4271         the accessibility level of the attribute's Item parameter is not deeper
4272         than the level of the attribute's prefix type. Tag_Error is raised if
4273         the check fails. The check is only emitted for Ada_05.
4274         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
4275         requested stream attribute, use it.
4276         (Expand_N_Attribute_Reference): If the designated type is an interface
4277         then rewrite the referenced object as a conversion to force the
4278         displacement of the pointer to the secondary dispatch table.
4279         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
4280         is a dereference of an object with a constrained partial view.
4281
4282         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
4283         type is a class-wide type, emit a run-time check that the accessibility
4284         level of the returned object is not deeper than the level of the
4285         function's master (only when compiling for Ada 2005).
4286
4287         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
4288         Action_Nb_Arg): Add entries for new Get_Access_Level and
4289         Set_Access_Level routines in these tables.
4290         (Make_DT): Generate a call to set the accessibility level of the
4291         tagged type in its TSD.
4292         (Make_DT): Code cleanup. The functionality of generating all the
4293         secondary dispatch tables has been moved to freeze_record_type.
4294         (Make_Abstract_Interface_DT): Minor code cleanup.
4295         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
4296         this subprogram implements a new algorithm that provides the
4297         same functionality and it is more clear in case of primitives
4298         associated with abstract interfaces.
4299         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
4300         clean up, the functionality of this subprogram is now provided
4301         by Set_All_DT_Position.
4302         (Write_DT): New subprogram: a debugging procedure designed to be called
4303         within gdb to display the dispatch tables associated with a tagged
4304         type.
4305         (Collect_All_Interfaces): New subprogram that collects the whole list
4306         of interfaces that are directly or indirectly implemented by a tagged
4307         type.
4308         (Default_Prim_Op_Position): New subprogram that returns the fixed
4309         position in the dispatch table of the default primitive operations.
4310         (Expand_Interface_Actuals): New subprogram to generate code that
4311         displaces all the actuals corresponding to class-wide interfaces to
4312         reference the interface tag of the actual object.
4313         (Expand_Interface_Conversion): New subprogram. Reference the base of
4314         the object to give access to the interface tag associated with the
4315         secondary dispatch table.
4316         (Expand_Interface_Thunk): New subprogram that generates the code of the
4317         thunk. This is required for compatibility with the C+ ABI.
4318         (Make_Abstract_Interface_DT): New subprogram that generate the
4319         declarations for the secondary dispatch tables associated with an
4320         abstract interface.
4321         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
4322         attribute for each primitive operation covering interface subprograms
4323         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
4324         These subprograms were upgraded to give support to abstract interfaces
4325
4326         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
4327         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
4328         RE_Set_Access_Level.
4329         (RE_Unit_Table): Add entries for new Ada.Tags operations.
4330         Add support to call the followig new run-time subprograms:
4331         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
4332
4333         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
4334         match its full declaration when both have an access definition with
4335         statically matching designated subtypes.
4336         (Analyze_Component_Declaration): Delete commented out code that was
4337         incorrectly setting the scope of an anonymous access component's type.
4338         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
4339         an access discriminant when the containing type is nonlimited.
4340         (Make_Incomplete_Type_Declaration): Create an incomplete type
4341         declaration for a record type that includes self-referential access
4342         components.
4343         (Check_Anonymous_Access_Types): Before full analysis of a record type
4344         declaration, create anonymous access types for each self-referential
4345         access component.
4346         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
4347         an access component in this context is a Local_Anonymous_Access, for
4348         proper accessibility checks.
4349         (Access_Definition): Set properly the scope of the anonymous access type
4350         created for a stand-alone access object.
4351         (Find_Type_Of_Object): An object declaration may be given with an access
4352         definition.
4353         (Complete_Subprograms_Derivation): New subprogram used to complete
4354         type derivation of private tagged types implementing interfaces.
4355         In this case some interface primitives may have been overriden
4356         with the partial-view and, instead of re-calculating them, they
4357         are included in the list of primitive operations of the full-view.
4358         (Build_Derived_Record_Type): Modified to give support to private
4359         types implemening interfaces.
4360         (Access_Definition): Reject ALL on anonymous access types.
4361         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
4362         type derivation to occur at a deeper accessibility level than the
4363         parent type.
4364         For the case of derivation within a generic body however, disallow the
4365         derivation if the derived type has an ancestor that is a formal type
4366         declared in the formal part of an enclosing generic.
4367         (Analyze_Object_Declaration): For protected objects, remove the check
4368         that they cannot contain interrupt handlers if not declared at library
4369         level.
4370         (Add_Interface_Tag_Components): New subprogram to add the tag components
4371         corresponding to all the abstract interface types implemented by a
4372         record type or a derived record type.
4373         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
4374         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
4375         Process_Full_View, Record_Type_Declaration): Modified to give
4376         support to abstract interface types
4377         (Collect_Interfaces): New subprogram that collects the list of
4378         interfaces that are not already implemented by the ancestors
4379         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
4380         when partial view has no discriminants and full view has defaults.
4381         (Constrain_Access): Reject a constraint on a general access type
4382         if the discriminants of the designated type have defaults.
4383         (Access_Subprogram_Declaration): Associate the Itype node with the inner
4384         full-type declaration or subprogram spec. This is required to handle
4385         nested anonymous declarations.
4386         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
4387         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
4388         Process_Full_View, Record_Type_Declaration): Modified to give
4389         support to abstract interface types
4390         (Derive_Subprograms): Addition of a new formal to indicate if
4391         we are in the case of an abstact-interface derivation
4392         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
4393         to the specification because it is requied to analyze all the
4394         identifiers found in a list of interfaces
4395
4396         * debug.adb: Complete documentation of flag "-gnatdZ"
4397
4398         * exp_ch3.adb: Implement config version of persistent_bss pragma
4399         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
4400         testing for TSS presence to properly enforce visibility rules.
4401         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
4402         Make_Abstract_Interfaces_DT to generate the secondary tables
4403         associated with abstract interfaces.
4404         (Build_Init_Procedure): Modified to initialize all the tags
4405         corresponding.
4406         (Component_Needs_Simple_Initialization): Similar to other tags,
4407         interface tags do not need initialization.
4408         (Freeze_Record_Type): Modified to give support to abstract interface
4409         types.
4410         (Expand_N_Object_Declaration): Do not generate an initialization for
4411         a scalar temporary marked as internal.
4412
4413         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
4414         in-out parameter that is a component in an initialization procedure,
4415         whose constraint might depend on discriminants, and that may be
4416         misaligned because of packing or representation clauses.
4417         (Is_Legal_Copy): New predicate to determine whether a possibly
4418         misaligned in-out actual can actually be passed by copy/return. This
4419         is an error in case the type is by_reference, and a warning if this is
4420         the consequence of a DEC import pragma on the subprogram.
4421         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
4422         interface types
4423         (Expand_Inlined_Call): Mark temporary generated for the return value as
4424         internal, so that no useless scalar normalization is generated for it.
4425         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
4426         null procedure can always be inlined.
4427         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
4428         procedure, generate an explicit empty body for it.
4429
4430         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
4431         Given a type implementing an interface, returns the corresponding
4432         access_disp_table value.
4433         (Find_Interface_Tag): New subprogram. Given a type implementing an
4434         interface, returns the record component containing the tag of the
4435         interface.
4436         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
4437         previous ones that return the corresponding tag and access_disp_table
4438         entities.
4439         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
4440         is a predefined primitive operation.
4441         (Expand_Subtype_From_Expr): If the expression is a selected component
4442         within an initialization procedure, compute its actual subtype, because
4443         the component may depend on the discriminants of the enclosing record.
4444
4445         * i-cpp.ads, i-cpp.adb:
4446         This package has been left available for compatibility with previous
4447         versions of the frontend. As part of the new layout this is now a
4448         dummy package that uses declarations available at a-tags.ads
4449
4450         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
4451         "constant access" and "aliased [constant] access" when not compiling
4452         with -gnat05.
4453         Suppress Ada 2005 keyword warning if -gnatwY used
4454         (P_Identifier_Declarations): Add support for object declarations with
4455         access definitions.
4456         (Private_Extension_Declaration): Complete the documentation
4457         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
4458         attribute in case of private extension declaration
4459         (P_Type_Declaration): Mark as "abstract" the type declarations
4460         corresponding with protected, synchronized and task interfaces
4461         (P_Declarative_Items): "not" and "overriding" are overriding indicators
4462         for a subprogram or instance declaration.
4463
4464         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
4465         instantiation that is a dispatching operation has controlling access
4466         parameters that are null excluding.
4467         Save and restore Ada_Version_Explicit, for implementation of AI-362
4468         (Validate_Derived_Type_Instance): Add check for abstract interface
4469         types.
4470         (Analyze_Formal_Package): Establish Instantiation source for the copy of
4471         the generic that is created to represent the formal package.
4472         (Analyze_Package_Instantiation): Instantiate body immediately if the
4473         package is a predefined unit that contains inlined subprograms, and
4474         we are compiling for a Configurable_Run_Time.
4475         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
4476         If the program has a null default, generate an empty body for it.
4477
4478         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
4479         error message condition, null procedures are correctly detected now.
4480         (New_Overloaded_Entity): Bypass trivial overriding indicator check
4481         for subprograms in the context of protected types. Instead, the
4482         indicator is examined in Sem_Ch9 while analysing the subprogram
4483         declaration.
4484         (Check_Overriding_Indicator): Check consistency of overriding indicator
4485         on subprogram stubs as well.
4486         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
4487         the library level.
4488         (Analize_Subprogram_Specification): When analyzing a subprogram in which
4489         the type of the first formal is a concurrent type, replace this type
4490         by the corresponding record type.
4491         (Analyze_Subprogram_Body): Undo the previous work.
4492         (Analyze_Procedure_Call): If the call has the form Object.Op, the
4493         analysis of the prefix ends up analyzing the call itself, after which
4494         we are done.
4495         (Has_Interface_Formals): New subprogram subsidiary to analyze
4496         subprogram_specification that returns true if some non
4497         class-wide interface subprogram is found
4498         (New_Overloaded_Entity): Modified to give support to abstract
4499         interface types
4500         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
4501         access to subprograms must be recursive.
4502         (Is_Unchecked_Conversion): Improve the test that recognizes
4503         instantiations of Unchecked_Conversion, and allows them in bodies that
4504         are to be inlined by the front-end. When the body comes from an
4505         instantiation, a reference to Unchecked_Conversion will be an
4506         Expanded_Name, even though the body has not been analyzed yet.
4507         Replace Is_Overriding and Not_Overriding in subprogram_indication with
4508         Must_Override and Must_Not_Override, to better express intent of AI.
4509         (Analyze_Subprogram_Body): If an overriding indicator is given, check
4510         that it is consistent with the overrinding status of the subprogram
4511         at this point.
4512         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
4513         always inlined.
4514         If the subprogram is a null procedure, indicate that it does not need
4515         a completion.
4516
4517         * sem_disp.adb (Check_Controlling_Type): Give support to entities
4518         available through limited-with clauses.
4519         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
4520         allowed as the last primitive of a tagged type if it has no previous
4521         spec.
4522         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
4523         to give support to abstract interface types
4524
4525         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
4526         in the case where the target type is an anonymous access type of an
4527         object or component (that is, when Is_Local_Anonymous_Access is true).
4528         Prevent the special checks for conversions of access discriminants in
4529         the case where the discriminant belongs to a nonlimited type, since
4530         such discriminants have their accessibility level defined in the same
4531         way as a normal component of an anonymous access type.
4532         (Resolve_Allocator): When an allocator's designated type is a class-wide
4533         type, check that the accessibility level of type given in the
4534         allocator's expression or subtype indication is not statically deeper
4535         than the level of the allocator's access type.
4536         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
4537         name in a discriminant constraint of a record component.
4538         (Resolve_Explicit_Dereference): Do not check whether the type is
4539         incomplete when the dereference is a use of an access discriminant in
4540         an initialization procedure.
4541         (Resolve_Type_Conversion): Handle conversions to abstract interface
4542         types.
4543         (Valid_Tagged_Conversion): The conversion of a tagged type to an
4544         abstract interface type is always valid.
4545         (Valid_Conversion): Modified to give support to abstract interface types
4546         (Resolve_Actuals): Enable full error reporting on view conversions
4547         between unrelated by_reference array types.
4548         The rule for view conversions of arrays with aliased components is
4549         weakened in Ada 2005.
4550         Call to obsolescent subprogram is now considered to be a violation of
4551         pragma Restrictions (No_Obsolescent_Features).
4552         (Check_Direct_Boolean_Operator): If the boolean operation has been
4553         constant-folded, there is nothing to check.
4554         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
4555         check on possible violation of restriction No_Direct_Boolean_Operators
4556         until after expansion of operands, to prevent spurious errors when
4557         operation is constant-folded.
4558
4559         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
4560         Has_Compatible_Type): Modified to give support to abstract interface
4561         types.
4562         (Interface_Present_In_Ancestor): New function to theck if some ancestor
4563         of a given type implements a given interface
4564
4565         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
4566         prefix is a parameterless function that returns an access_to_procedure.
4567         (Transform_Object_Operation): Handle properly function calls of the
4568         form Obj.Op (X), which prior to analysis appear as indexed components.
4569         (Analyze_One_Call): Complete the error notification to help new Ada
4570         2005 users.
4571         (Analyze_Allocator): For an allocator without an initial value, where
4572         the designated type has a constrained partial view, a discriminant
4573         constraint is illegal.
4574
4575 2005-06-14  Robert Dewar  <dewar@adacore.com>
4576
4577         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
4578         do with treatment of Set_Col when positioned at end of line character.
4579
4580 2005-06-14  Robert Dewar  <dewar@adacore.com>
4581
4582         * atree.adb: (Elist*): Protect against uninitialized field
4583
4584 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
4585
4586         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
4587         for an attribute reference that returns an access type.
4588         (Apply_Discriminant_Check): No need for check if (designated) type has
4589         constrained partial view.
4590
4591         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
4592         both bound checks, rather than a conjunction.
4593         (Insert_Valid_Check): If the expression is an actual that is an indexed
4594         component of a bit-packed array, force expansion of the packed element
4595         reference, because it is specifically inhibited elsewhere.
4596
4597 2005-06-14  Vincent Celier  <celier@adacore.com>
4598
4599         * clean.adb (Clean_Project): Correctly delete executable specified as
4600         absolute path names.
4601
4602         * make.adb (Gnatmake): Allow relative executable path names with
4603         directory information even when project files are used.
4604         (Change_To_Object_Directory): Fail gracefully when unable to change
4605         current working directory to object directory of a project.
4606         (Gnatmake): Remove exception handler that could no longer be exercized
4607         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
4608         may be deallocated by Normalize_Arguments.
4609         (Collect_Arguments): Eliminate empty arguments
4610
4611         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
4612         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
4613         (Check_Project): Return False when Project is No_Project. Return True
4614         when All_Projects is True.
4615         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
4616         All_Projects to True.
4617         Minor reformatting
4618
4619 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
4620             Javier Miranda  <miranda@adacore.com>
4621             Thomas Quinot  <quinot@adacore.com>
4622             Robert Dewar  <dewar@adacore.com>
4623             Hristian Kirtchev  <kirtchev@adacore.com>
4624             Gary Dismukes  <dismukes@adacore.com>
4625
4626         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
4627         anonymous access types, to indicate that the accessibility level of
4628         the type is determined by that of the enclosing declaration.
4629         (Has_Persistent_BSS): New flag
4630         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
4631         of this attribute with functions.
4632         (Is_Primitive_Wrapper): Remove the barrier.
4633         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
4634         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
4635         New subprograms.
4636         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
4637         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
4638         New subprograms.
4639         (Is_Pure_Unit_Access_Type): New flag
4640         (Abstract_Interfaces): Complete the assertion to cover all usages.
4641         (Set_Is_Interface): Complete the assertion to cover all usages.
4642         (Is_Primitive_Wrapper): New attribute.
4643         (Is_Obsolescent): Now applies to all entities (though it is only set
4644         for subprograms currently)
4645         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
4646         which solves various problems concerning access subtypes.
4647         (Has_Persistent_BSS): New flag
4648         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
4649         Remove these subprograms because this attribute is currently
4650         not used.
4651         New entity flags:
4652         Has_Specified_Stream_Input (Flag190)
4653         Has_Specified_Stream_Output (Flag191)
4654         Has_Specified_Stream_Read (Flag192)
4655         Has_Specified_Stream_Write (Flag193)
4656         Present in all type and subtype entities. Set for a given view if the
4657         corresponding stream-oriented attribute has been defined by an
4658         attribute definition clause. When such a clause occurs, a TSS is set
4659         on the underlying full view; the flags are used to track visibility of
4660         the attribute definition clause for partial or incomplete views.
4661         (Is_Pure_Unit_Access_Type): New flag
4662         Clarify use of Is_Internal.
4663         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
4664         internally generated to wrap the invocation of tasks and protected
4665         types that implement interfaces.
4666         (Implementation_Base_Type): Documentation correction
4667         (Is_Obsolescent): Now applies to all entities (though it is only set
4668         for subprograms currently)
4669         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
4670         which solves various problems concerning access subtypes.
4671
4672         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
4673         for examined parameters. Identify unequal parameter list lengths as
4674         non-conformant parameters.
4675         (Overriding_Possible): Do not check for "All" qualifier in declaration
4676         of controlling access parameter, following prescription of AI-404.
4677         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
4678         that build the procedure body that wraps an entry invocation
4679         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
4680         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
4681         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
4682         give support to abstract interface types
4683
4684         * freeze.adb (Freeze_Entity): Issue error message if
4685         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
4686         type has no storage pool (Ada 2005) AI-366.
4687         Also modified to give support to abstract interface types
4688         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
4689         Inline_Always pragma.
4690
4691         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
4692         now begin an entry declaration.
4693         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
4694         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
4695         a subprogram declaration preceded by an overriding indicator.
4696         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
4697         declarations or subprogram declarations preceded by reserved words
4698         "not" or "overriding".
4699         (P_Entry_Declaration): Update comment. Parse and check overriding
4700         indicator, set semantic flags of entry declarations.
4701         (P_Task): New error message in case of private applied
4702         to a task type declaration.
4703         (P_Protected): New error message in case of private applied
4704         to a task type declaration.
4705
4706         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
4707         in which the full view of a type implementing an interface is a
4708         concurrent type.
4709         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
4710         Declare_Inherited_Private_Subprograms): If an explicit operation
4711         overrides an operation that is inherited in the private part, mark the
4712         explicit one as overriding, to enable overriding indicator checks.
4713         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
4714         full view to partial view, to simplify handling in back-end.
4715
4716         * sprint.adb: Print interface lists where needed: derived types,
4717         protected types, task types.
4718         output "is null" for null procedures. Part of implementation of
4719
4720         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
4721         relaxation of rules for access types in pure, shared passive partitions.
4722
4723         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
4724         first read discriminants into temporary objects, performing checks on
4725         the read values, then possibly performing discriminant checks on the
4726         actual (if it is constrained), and only finally reading the components
4727         into a constrained temporary object.
4728         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
4729         case of reading discriminants of a mutable record type to recognize
4730         the new form of the code generated by
4731         Build_Mutable_Record_Read_Procedure.
4732
4733         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
4734         of a simple call to Make_TSS_Name.
4735         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
4736         buffer, in order for Is_TSS to work correctly on local TSS names.
4737
4738         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
4739         Is_Local_Anonymous_Access to check legaliy of attributes in the
4740         context of  access components and stand-alone access objects.
4741         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
4742         treated as available for a limited private type if there is an
4743         attribute_definition_clause that applies to its full view, but not in
4744         other cases where the attribute is available for the full view
4745         (specifically, the sole fact that the full view is non-limited does not
4746         make the attribute available for the partial view).
4747         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
4748         non-overloaded intrinsic subprogram.
4749         (Check_Stream_Attribute): Reject an attribute reference for an
4750         unavailable stream attribute even if the prefix is not a limited type
4751         (case of a 'Input attribute reference for an abstract, non-classwide
4752         type)
4753         (Stream_Attribute_Available): New function to determine whether a stream
4754         attribute is available at a place.
4755         (Check_Attribute): Use Stream_Attribute_Available instead of just
4756         testing for TSS presence on the implementation base type.
4757         (Analyze_Attribute): Modified to give support to task interfaces.
4758         (Analyze_Access_Attribute): Add error check for use of an Access (or
4759         Unrestricted_Access) attribute with a subprogram marked as
4760         Inline_Always.
4761         (Analyze_Attribute, case Attribute_Address): Add error check for use of
4762         an Address attribute with a subprogram marked as Inline_Always.
4763         Update Eval_Attribute to handle new value of Width from AI-395
4764
4765         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
4766         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
4767         Factor common code across the stream-oriented attribute circcuits into
4768         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
4769         processing is functionally identical to the previous duplicated one,
4770         except that an expression that denotes an abstract subprogram will now
4771         be rejected, as mandated by AI-195 item 5.
4772
4773         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
4774         Is_Local_Anonymous_Access to apply accessibility checks to access
4775         components and stand-alone access objects.
4776         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
4777         elsewhere.
4778         (Is_Potentially_Persistent_Type): New function
4779         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
4780         a heap-object whose type has a constrained partial view, the object is
4781         unconstrained and the component may depend on a discriminant, making its
4782         renaming illegal.
4783
4784         * sinfo.ads, sinfo.adb
4785         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
4786         (Must_Override): Flag applicable to N_Entry_Declaration.
4787         Indicate that interface_list can appear in single task and single
4788         protected declarations.
4789         Replace Is_Overriding and Not_Overriding with Must_Override and
4790         Must_Not_Override, to better express intent of AI.
4791         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
4792         of an overriding indicator in a subprogram or instance.
4793         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
4794         Add the overriding indicator [[not] overriding] construct to the
4795         following grammar productions:
4796          ENTRY_DECLARATION
4797          GENERIC_INSTANTIATION
4798          SUBPROGRAM_SPECIFICATION
4799
4800         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
4801         can start with an overriding indicator.
4802
4803         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
4804         flags accordingly on subrogram specifications or instances.
4805
4806         * sem_ch8.adb:
4807         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
4808         overriding_indicator, if present, is consistent with status of spec.
4809         Improve error message for null-excluding checks on controlling access
4810         parameters.
4811         (Check_In_Previous_With_Clause): Protect the frontend against
4812         previously reported critical errors in the context clauses.
4813         Save and restore Ada_Version_Explicit, for implementation of AI-362
4814         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
4815         operation verify that controlling formals of the renamed entity that
4816         are access parameters are explicitly non-null.
4817         (Find_Expanded_Name): Improve error message when prefix is an illegal
4818         reference to a private child unit.
4819
4820         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
4821         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
4822         Rewrite to correspond to new wide character names in AI-395
4823
4824         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
4825         default procedures.
4826
4827 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
4828             Robert Dewar  <dewar@adacore.com>
4829
4830         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
4831         code, not on the bodies of predefined operations, to cut down on
4832         spurious noise.
4833
4834 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
4835
4836         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
4837         be expanded in place. The size computation does not require a
4838         subtraction, which would raise an exception on a compiler built with
4839         assertions when the upper bound is Integer'first.
4840         (Flatten): For an array of composite components, take into account the
4841         size of the components to determine whether it is safe to expand the
4842         array into a purely positional representation.
4843
4844 2005-06-14  Thomas Quinot  <quinot@adacore.com>
4845
4846         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
4847         denoting a formal parameter into account.
4848
4849 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
4850
4851         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
4852         the entry_call alternative of a conditional entry call, wrap the
4853         conditional entry call itself.
4854
4855 2005-06-14  Nicolas Setton  <setton@adacore.com>
4856             Ed Schonberg  <schonberg@adacore.com>
4857
4858         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
4859         the "simple_choice" member in a variant record, in accordance with the
4860         description in the package spec: the information output for a constant
4861         should be "S number", not "SS number".
4862         (Get_Encoded_Name): Return at once if not generating code. Avoids name
4863         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
4864
4865 2005-06-14  Thomas Quinot  <quinot@adacore.com>
4866
4867         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
4868         RACW without any primitives, do not generate the if statement for
4869         dispatching by name in the PolyORB/DSA case, as it would be malformed
4870         (it would have an Elsif_Parts list that is not No_List, but with a
4871         length of 0).
4872
4873 2005-06-14  Robert Dewar  <dewar@adacore.com>
4874
4875         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
4876
4877 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
4878
4879         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
4880         can determine whether pragma Suppress_Exception_Locations is in effect.
4881
4882         * utils2.c (build_call_raise): Do not pass the file name to the
4883         exception handler if pragma Suppress_Exception_Locations is in effect.
4884         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
4885
4886 2005-06-14  Emmanuel Briot  <briot@adacore.com>
4887
4888         * g-debpoo.adb (Deallocate, Dereference): Improve output.
4889
4890 2005-06-14  Nicolas Roche  <roche@adacore.com>
4891
4892         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
4893         to ""
4894         (Next_Level): Fix minor bug in handling of ../dir case
4895         (Read): Add dir separator to Directory name so that "" is understood as
4896          "/"
4897
4898 2005-06-14  Pascal Obry  <obry@adacore.com>
4899
4900         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
4901         releasing the items.
4902
4903 2005-06-14  Vincent Celier  <celier@adacore.com>
4904             Cyrille Comar  <comar@adacore.com>
4905
4906         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
4907         with output file descriptor and with output file name.
4908         (Dup, Dup2): Now global procedures as they are used by two subprograms
4909         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
4910
4911 2005-06-14  Thomas Quinot  <quinot@adacore.com>
4912
4913         PR ada/6717
4914
4915         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
4916         broadcast address.
4917         (Create_Selector): Bind listening socket used to create the signalling
4918         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
4919         Set listen backlog to 1 to ensure that we detect socket theft by a
4920         failure of our own connect(2) call.
4921         (Check_Selector): Improve documentation of the selector mechanism.
4922         (Broadcast_Inet_Addr): New constant.
4923
4924 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
4925
4926         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
4927         type which turns out to be an incomplete and incorrect fix.
4928         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
4929         of the type is declared in a record (for determination of insertion
4930         type).
4931         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
4932         a private type and ensure that the primary entity is used for the type
4933         of the newly created function's V formal by taking the Etype of the
4934         view.
4935
4936 2005-06-14  Javier Miranda  <miranda@adacore.com>
4937             Jose Ruiz  <ruiz@adacore.com>
4938             Robert Dewar  <dewar@adacore.com>
4939             Ed Schonberg  <schonberg@adacore.com>
4940
4941         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
4942         that indicates if we are parsing a compilation unit found in a
4943         limited-with clause.
4944         It is use to avoid the circularity check.
4945
4946         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
4947         we are parsing a compilation unit found in a limited-with clause. This
4948         is use to avoid the circularity check.
4949
4950         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
4951         unit as a consequence of parsing a limited-with clause. This is used
4952         to avoid the circularity check.
4953
4954         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
4955         (Analyze_Context): Limited-with clauses are now allowed
4956         in more compilation units.
4957         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
4958         againts previously reported critical errors in context clauses
4959         (Install_Limited_Withed_Unit): Code cleanup plus static detection
4960         of two further errors: renamed subprograms and renamed packages
4961         are not allowed in limited with clauses.
4962         (Install_Siblings): Do not install private_with_clauses on the package
4963         declaration for a non-private child unit.
4964         (Re_Install_Parents): When a parent of the subunit is reinstalled,
4965         reset visibility of child units properly.
4966         (Install_Withed_Unit): When a child unit appears in a with_clause of its
4967         parent, it is immediately visible.
4968
4969 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
4970             Emmanuel Briot  <briot@adacore.com>
4971
4972         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
4973         declared within an inlined body as referenced, to prevent spurious
4974         warnings.
4975         (Output_One_Ref): If an entity renames an array component, indicate in
4976         the ALI file that this aliases (renames) the array. Capture as well
4977         function renamings that rename predefined operations.
4978         Add information about generic parent for package and subprogram
4979         instances.
4980         (Get_Type_Reference): For a subtype that is the renaming of an actual in
4981         an instantiation, use the first_subtype to ensure that we don't generate
4982         cross-reference information for internal types.
4983         For objects and parameters of a generic private type, retain the '*'
4984         indicator to distinguish such an entity from its type.
4985
4986         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
4987         to store information about instantiated entities.
4988
4989         * ali.adb (Scan_ALI): Add support for parsing the reference to the
4990         generic parent
4991
4992         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
4993         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
4994         information.
4995
4996 2005-06-10  Doug Rupp  <rupp@adacore.com>
4997             Arnaud Charlet  <charlet@adacore.com>
4998             Olivier Hainque  <hainque@adacore.com>
4999             Jose Ruiz  <ruiz@adacore.com>
5000
5001         * Make-lang.in: Add initialize.o when needed.
5002         Remove obsolete references to RT_FLAGS.
5003         Add missing dependencies for sdefault.o
5004
5005         * initialize.c: New file.
5006
5007         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
5008         [VMS] cond_signal_table: Fix problem in declaration.
5009         [VMS] __gnat_error_handler: rewrite.
5010         Move all __gnat_initialize() routines to initialize.c
5011         Specialize the former "hpux" section to "hppa hpux", as this is what the
5012         section really is here for and we now have other hpux ports that need
5013         different contents.
5014         (__gnat_adjust_context_for_raise) i386-linux: First version of this
5015         function for this target. Adjust PC by one in the machine context. This
5016         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
5017         it is more reliable to do that in the signal handler itself.
5018         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
5019         flags, so that the handler is passed the context structure to adjust
5020         prior to the raise.
5021         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
5022         SA_SIGINFO sigaction should look like. Call
5023         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
5024         Machine_State_Operations stuff.
5025         Add conditional code so that the x86_64 is also supported.
5026
5027 2005-06-14  Pascal Obry  <obry@adacore.com>
5028
5029         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
5030         the library name.
5031
5032 2005-06-14  Robert Dewar  <dewar@adacore.com>
5033
5034         * opt.ads, opt.adb: New flags for persistent_bss mode
5035         Add Ada_Version_Explicit, for implementation of AI-362
5036         Add Assertions_Enabled_Config and associated handling
5037         Needed since setting can be changed with Assertion_Policy pragma
5038         Add new flag Warn_On_Ada_2005_Compatibility
5039
5040         * switch-c.adb: Recognize -gnatwy/Y
5041         Set Ada_Version_Explicit, for implementation of AI-362
5042         The -gnatg switch now includes -gnatyu
5043
5044         * usage.adb: Add -gnatwy/Y
5045         Remove wrong asterisk on -gnatwX line
5046         Add line for -gnatyu switch
5047
5048 2005-06-14  Vincent Celier  <celier@adacore.com>
5049
5050         * osint.adb (Add_Default_Search_Dirs): Put source and object
5051         directories of project files before directories coming from
5052         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
5053
5054 2005-06-14  Robert Dewar  <dewar@adacore.com>
5055
5056         PR ada/15613
5057
5058         * par-ch2.adb (Scan_Pragma_Argument): New procedure
5059         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
5060
5061 2005-06-14  Vincent Celier  <celier@adacore.com>
5062
5063         * prep.adb (Preprocess): Ignore error when scanning the first token of
5064         a line.
5065
5066 2005-06-14  Vincent Celier  <celier@adacore.com>
5067
5068         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
5069         (Check_Stand_Alone_Library): If the specified reference symbol file does
5070         not exist, only issue a warning when the symbol policy is not
5071         Controlled. And, when symbol policy is Compliant, set the symbol
5072         policy to Autonomous.
5073
5074 2005-06-14  Vincent Celier  <celier@adacore.com>
5075
5076         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
5077         when the project file in a with clause is not the last one, that is the
5078         project file name is followed by a comma.
5079         * prj-pp.adb: (First_With_In_List): New Boolean global variable
5080         (Print): Issue list of project files separated by commas in with clauses
5081         according to the values returned by Is_Not_Last_In_List.
5082         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
5083         (Set_Is_Not_Last_In_List): New procedure
5084
5085 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
5086
5087         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
5088
5089 2005-06-14  Robert Dewar  <dewar@adacore.com>
5090
5091         * scng.adb: Add call to new Check_EOF routine
5092         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
5093         Add some comments regarding wide character handling
5094
5095         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
5096
5097         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
5098
5099         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
5100         characters are now considered graphic characters and hence yield false
5101         in this call.
5102
5103         * nmake.adt: Modify header so that xnmake does not generate output
5104         files with multiple blank lines.
5105
5106         * treeprs.adt: Remove a blank line so that output from xtreeprs does
5107         not have an extra blank line
5108
5109 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
5110
5111         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
5112         expression when the component type is an anonymous access type to
5113         ensure that appropriate accessibility checks are done.
5114
5115         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
5116         expression of an assignment when the target object is of an anonymous
5117         access type. This ensures that required accessibility checks are done.
5118         (One_Bound): Move the check for type Universal_Integer to
5119         Process_Bounds.
5120         (Process_Bounds): Check whether the type of the preanalyzed range is
5121         Universal_Integer, and in that case set Typ to Integer_Type prior
5122         to setting the type of the original range and the calls to One_Bound.
5123
5124 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
5125
5126         * sem_case.adb (Expand_Others_Choice): Improve warning.
5127
5128 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
5129
5130         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
5131         constraint of full view if present, when other type is discriminated.
5132         (Eval_Relational_Op): Recognize tests of pointer values against Null,
5133         when the pointer is known to be non-null, and emit appropriate warning.
5134
5135 2005-06-14  Robert Dewar  <dewar@adacore.com>
5136             Ed Schonberg  <schonberg@adacore.com>
5137
5138         PR ada/10671
5139
5140         * sem_prag.adb: Implement pragma Persistent_BSS
5141         Remove obsolete pragma Persistent_Data, Persistent_Object
5142         Set Ada_Version_Explicit, for implementation of AI-362
5143         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
5144         Add processing for pragma Pure_05 and Preelaborate_05
5145         Add processing for Assertion_Policy pragma
5146         Add pragma identifiers for Assert
5147         (Analyze_Pragma, case Assert): Check number of arguments
5148         (Process_Inline): Additional guard against an illegal program, where the
5149         argument of the pragma is undefined, and warnings on redundant
5150         constructs are enabled.
5151         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
5152         Ada_05 to this pragma, specifying that the pragma is only active in
5153         Ada_05 mode.
5154         (Check_Arg_Order): New procedure
5155         Add appropriate calls to this procedure throughout
5156         Also throughout, check entity name before doing any other checks
5157
5158         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
5159         Remove obsolete pragma Persistent_Data, Persistent_Object
5160         Add entries for pragma Pure_05 and Preelaborate_05
5161         Add entries for Assertion_Policy pragma and associated names
5162         Add some names for pragma argument processing
5163
5164         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
5165
5166 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
5167
5168         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
5169         appears within a negation (either from source or as a rewriting of
5170         inequality) adjust text of warning accordingly.
5171
5172 2005-06-14  Thomas Quinot  <quinot@adacore.com>
5173
5174         * s-strxdr.adb: Follow AI95-00132
5175
5176 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
5177
5178         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
5179
5180 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
5181             Jose Ruiz  <ruiz@adacore.com>
5182
5183         * s-tposen.adb, s-tpobop.adb
5184         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
5185         the exception id.
5186         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
5187         there is no violation of the Max_Entry_Queue_Length restriction (if it
5188         has been set); Program_Error is raised otherwise.
5189         (Requeue_Call): Before requeuing the task on the target entry queue we
5190         check that there is no violation of the Max_Entry_Queue_Length
5191         restriction (if it has been set); Program_Error is raised otherwise.
5192
5193 2005-06-14  Robert Dewar  <dewar@adacore.com>
5194
5195         * styleg.adb: Fix several remaining problems in -gnatyu switch
5196         Blank line count not reset at start
5197         Scanning outside source buffer in some cases
5198         Confusing message for blanks at end of file
5199         Non-empty blank lines not recognized
5200
5201         * nmake.adt: Modify header so that xnmake does not generate output
5202         files with multiple blank lines.
5203
5204         * treeprs.adt: Remove a blank line so that output from xtreeprs does
5205         not have an extra blank line
5206
5207 2005-06-14  Sergey Rybin  <rybin@adacore.com>
5208
5209         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
5210
5211 2005-06-14  Doug Rupp  <rupp@adacore.com>
5212             Vincent Celier  <celier@adacore.com>
5213
5214         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
5215         Update copyright.
5216
5217         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
5218         Remove "Library" command.
5219         Change keyword for style check -gnatyd from NOCRLF to
5220         DOS_LINE_ENDINGS.
5221         Remove useless second style check keyword NONE
5222         Remove help documentation for inexistent style check keyword
5223         RM_COLUMN_LAYOUT.
5224         Add help documentation for style check keywords DOS_LINE_ENDINGS,
5225         UNNECESSARY_BLANK_LINES and XTRA_PARENS
5226         Add UNNECESSARY_BLANK_LINES for -gnatyu
5227         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
5228
5229         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
5230
5231 2005-06-14  Vincent Celier  <celier@adacore.com>
5232
5233         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
5234         gprmake was invoked with -d.
5235         (Compile_Sources): If -d was used, output the "completed ..." message
5236         for each compilation.
5237         (Scan_Arg): Recognize new switch -d
5238         When -c and at least one main is specified, set
5239         Unique_Compile to True to guarantee that no other sources will be
5240         compiled.
5241
5242 2005-06-14  Matthew Heaney  <heaney@adacore.com>
5243
5244         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
5245         * a-swuwha.ads, a-swuwha.adb: New files
5246
5247         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
5248         * a-szuzha.ads, a-szuzha.adb: New files.
5249
5250         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
5251         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
5252         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
5253         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
5254         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
5255         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
5256         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
5257         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
5258         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
5259         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
5260         Ada 2005 RM.
5261
5262 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
5263             Olivier Hainque  <hainque@adacore.com>
5264             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5265             Pascal Obry  <obry@adacore.com>
5266
5267         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
5268
5269         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
5270         making a temporary around a procedure call because of non-addressable
5271         actual parameter.
5272         (process_freeze_entity): If entity is a private type, capture size
5273         information that may have been computed for the full view.
5274         (tree_transform, case N_Allocator): If have initializing expression,
5275         check type for Has_Constrained_Partial_View and pass that to
5276         build_allocator.
5277         (tree_transform, case N_Return_Statement): Pass extra arg to
5278         build_allocator.
5279
5280         * decl.c (annotate_value): Remove early return if -gnatR is not
5281         specified.
5282         (gnat_to_gnu_field): Don't make a packable type for a component clause
5283         if the position is byte aligned, the field is aliased, and the clause
5284         size isn't a multiple of the packable alignment. It serves no useful
5285         purpose packing-wise and would be rejected later on.
5286         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
5287
5288         PR ada/20515
5289         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
5290         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
5291         instead.
5292         (create_concat_name): Idem.
5293
5294 2005-06-10  Robert Dewar  <dewar@adacore.com>
5295             Eric Botcazou  <ebotcazou@adacore.com>
5296             Ben Brosgol  <brosgol@adacore.com>
5297             Cyrille Comar  <comar@adacore.com>
5298             Sergey Rybin  <rybin@adacore.com>
5299             Pascal Obry  <obry@adacore.com>
5300
5301         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
5302         Document second argument (Ada_05) of pragma Obsolescent
5303         Add note that call to subprogram marked with pragma Obsolescent
5304         is now considered to be a violation of program Restrictions
5305         (No_Obsolescent_Features).
5306         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
5307         that only machine-dependent attributes are supported.
5308
5309         * gnat_ugn.texi:
5310         Commented out menu lines and empty section for gnatclean examples
5311         Document -gnatwy/Y
5312         Fix some over long lines
5313         Clarify and enhance documentation of ADA_PROJECT_PATH.
5314         Rework section 2.11.2(3) about linking with a non-GNU compiler.
5315         Mention new switch -fcallgraph-info.
5316         Mention new switch -fstack-usage.
5317         For gnatpp, replace '-notab' with '-N' and add this option to Index
5318         Corrected VMS example.
5319         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
5320         Minor reformatting
5321         Add documentation for -gnatyu switch (unnecessary blank lines)
5322         Document new switch -U for GNAT PRETTY and GNAT METRIC
5323         Add note about Stdcall being handled as C convention on non Windows OS.
5324         Remove some junk typo in description of gnatbind -S switch
5325         Remove reference to Extensions_Allowed pragma
5326         Document the new order of the directories to be searched (source and
5327         object directories of project files before directories in ADA_*_PATH
5328         environment variables.
5329
5330         * g-trasym.ads: Document that IRIX is supported
5331
5332 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
5333
5334         * Makefile.in: Add initialize.o when needed.
5335         Adapt to new VMS package body Symbols and subunits
5336         No specialized version of a-sytaco is needed for VxWorks.
5337
5338         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
5339         * a-zchara.ads, a-widcha.ads: New files.
5340
5341         * system-hpux-ia64.ads: New file.
5342
5343         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
5344         is imported from the VxWorks kernel.
5345
5346 2005-06-14  Robert Dewar  <dewar@adacore.com>
5347
5348         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
5349         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
5350         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
5351         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
5352         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
5353         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
5354         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
5355         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
5356         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
5357         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
5358         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
5359         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
5360
5361 2005-06-14  Thomas Quinot  <quinot@adacore.com>
5362
5363         * xeinfo.adb: Fix typo in comment
5364
5365 2005-06-14  Javier Miranda  <miranda@adacore.com>
5366
5367         * repinfo.ads: Fix typo in comment
5368
5369 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
5370
5371         * s-finimp.adb (Parent_Tag): Delete this imported function (function
5372         Parent_Tag is now in the visible part of Ada.Tags).
5373         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
5374         using imported function.
5375
5376 2005-06-14  Bernard Banner  <banner@adacore.com>
5377
5378         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
5379         also apply for handling support for VxSim 653.
5380
5381 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
5382
5383         * xsnames.adb: Add automatic generation of snames.h.
5384
5385 2005-06-14  Thomas Quinot  <quinot@adacore.com>
5386
5387         * gen-soccon.c: Add IP_MULTICAST_IF constant
5388         Minor reformatting and adjustments to prevent warnings.
5389
5390 2005-06-14  Pascal Obry  <obry@adacore.com>
5391
5392         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
5393
5394 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
5395
5396         * trans.c (gnat_gimplify_expr): Call
5397         recompute_tree_invarant_for_addr_expr when we change
5398         the operand of the ADDR_EXPR.
5399
5400 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5401
5402         * misc.c: Don't include errors.h.
5403
5404 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5405
5406         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
5407
5408 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
5409
5410         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
5411         comment typos.
5412         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
5413
5414 2005-05-16  Nathanael Nerode <neroden@gcc.gnu.org>
5415
5416         PR ada/20270
5417         * Makefile.in: Make TGT_LIB behave correctly.
5418
5419 2005-04-23  DJ Delorie  <dj@redhat.com>
5420
5421         * misc.c: Adjust warning() callers.
5422
5423 2005-04-16  Laurent GUERBY  <laurent@guerby.net>
5424
5425         PR ada/18847
5426         * a-nudira.adb (Value): Check for valid string.
5427         * a-nuflra.adb (Value): Likewise.
5428
5429 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
5430
5431         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
5432
5433 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
5434
5435         * adaint.c, init.c, tracebak.c: Fix comment typos.
5436         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
5437
5438 2005-04-07  Laurent GUERBY  <laurent@guerby.net>
5439             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5440
5441         * Makefile.in: Add make ifeq define for hppa linux tasking support.
5442         * system-hpux.ads: Define Signed_Zeros to be True.
5443         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
5444
5445 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
5446
5447         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
5448         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
5449         typos.
5450
5451 2005-03-30  Tom Tromey  <tromey@redhat.com>
5452
5453         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
5454
5455 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
5456
5457         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
5458
5459 2005-03-29  Robert Dewar  <dewar@adacore.com>
5460
5461         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
5462         fixed-point expression has value that is not a multiple of the Small
5463         value.
5464
5465         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
5466
5467         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
5468         nanoseconds.
5469
5470         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
5471
5472 2005-03-29  Vincent Celier  <celier@adacore.com>
5473
5474         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
5475         (Build_Dynamic_Library.Version_String): Return the empty string when
5476         Lib_Version is empty or when the symbol policy is not Autonomous.
5477
5478         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
5479         a symbol is not in the reference symbol file, increase the Major ID
5480         and set the Minor ID to 0.
5481         Use gsmatch=lequal instead of gsmatch=equal
5482
5483 2005-03-29  Doug Rupp  <rupp@adacore.com>
5484
5485         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
5486         name and translate.
5487
5488 2005-03-29  Javier Miranda  <miranda@adacore.com>
5489
5490         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
5491         (Inherit_DT): The first formal has been redefined as a Tag.
5492         This allows us the removal of the subprogram Get_TSD.
5493         (TSD): Replace the call to Get_TSD by the actual code.
5494
5495         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
5496         (Make_DT): Upgrade the call to Inherit_TSD according to the
5497         new interface: the first formal is now a Tag.
5498
5499         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
5500         redefined as a Tag.
5501         This change allows us to remove the subprogram Get_TSD.
5502         (CPP_Get_TSD): Subprogram removed.
5503         (TSD): Replace the call to CPP_Get_TSD by the actual code.
5504
5505         * rtsfind.ads: Remove support to call the run-time
5506         subprogram Get_TSD
5507
5508 2005-03-29  Robert Dewar  <dewar@adacore.com>
5509
5510         * errutil.adb, errout.adb:
5511         Minor comment updates on Line_Terminator references
5512
5513         * par-ch10.adb: Add ??? comment about line terminator
5514
5515         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
5516         (check dos line terminator).
5517         (Check_Line_Max_Length): New procedure, split off from the existing
5518         Check_Line_Terminator routine. Separating this out allows -gnatyf to
5519         be properly recognized.
5520
5521         * styleg.adb: Add ??? comment for line terminator reference
5522
5523         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
5524         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
5525
5526         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
5527         (check dos line terminator).
5528         (Check_Line_Max_Length): New procedure, split off from the existing
5529         Check_Line_Terminator routine. Separating this out allows -gnatyf to
5530         be properly recognized.
5531
5532         * stylesw.ads, stylesw.adb:
5533         Add handling for new -gnatyd switch (check dos line terminator)
5534
5535         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
5536         Recognize -gnatwb/-gnatwB switches
5537         Include Warn_On_Bad_Fixed_Value for -gnatg
5538
5539         * usage.adb:
5540         Add line for new -gnatyd switch (check dos line terminator)
5541
5542         * usage.adb: Add lines for -gnatwb/-gnatwB
5543
5544         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
5545
5546         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
5547
5548         * gnat_ugn.texi: Fix overlong lines
5549         Document new -gnatyd switch
5550         Document new -gnatwb/-gnatwB switches
5551
5552 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
5553
5554         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
5555         order to retrieve the component list of the type, before examining
5556         individual components.
5557
5558         * sem_type.adb (Covers): Types are compatible if one is the base type
5559         of the other, even though their base types might differ when private
5560         views are involved.
5561
5562 2005-03-29  Thomas Quinot  <quinot@adacore.com>
5563
5564         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
5565         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
5566         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
5567         analyzed if expansion is disabled (which could otherwise cause spurious
5568         error messages if expansion has been disabled due to previous
5569         (unrelated) errors).
5570
5571         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
5572         is disabled, the entity denoted by the argument is the access type
5573         itself, not an underlying record type, so there is no need to go back
5574         to the Corresponding_Remote_Type.
5575
5576 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
5577             Robert Dewar  <dewar@adacore.com>
5578
5579         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
5580         expand a call to an instance of
5581         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
5582         Constructor actual of the instance. A class-wide membership
5583         check is also generated, to ensure that the tag passed to the instance
5584         denotes a type in the class.
5585         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
5586         of Name_Generic_Dispatching_Constructor.
5587
5588         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
5589         05 unit for AI-260-02).
5590
5591         * a-tgdico.ads: New file.
5592
5593         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
5594         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
5595
5596         * snames.ads, snames.adb (Preset_Names): Add entry for
5597         Generic_Dispatching_Constructor.
5598
5599         PR ada/20300
5600
5601         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
5602         character type cases.
5603         (Analyze_Subprogram_Renaming): Add special handling for
5604         the case of renaming of stream attributes when the renaming denotes a
5605         generic formal subprogram association for an abstract formal subprogram.
5606         Check that the attribute is a primitive stream attribute (and not
5607         a class-wide stream attribute) and then rewrite the attribute name
5608         as the name of the appropriate compiler-generated stream primitive.
5609
5610 2005-03-29  Robert Dewar  <dewar@adacore.com>
5611
5612         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
5613         recursive calls.
5614         (Is_Possibly_Unaligned_Object): Correct typo that
5615         resulted in inaccurate result for unaligned scalars within records.
5616
5617 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
5618
5619         * freeze.adb (Freeze_Record_Type): If the type of the component is an
5620         itype whose parent is controlled and not yet frozen, do not create a
5621         freeze node for the itype if expansion is disabled.
5622
5623 2005-03-29  Vincent Celier  <celier@adacore.com>
5624
5625         * make.adb (Gnatmake): Don't fail if the main project file is declared
5626         as having no Ada sources. Do not display message "no sources to
5627         compile" in quiet output.
5628
5629 2005-03-29  Doug Rupp  <rupp@adacore.com>
5630
5631         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
5632         extra tools.
5633
5634 2005-03-29  Robert Dewar  <dewar@adacore.com>
5635
5636         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
5637         child.
5638
5639 2005-03-29  Robert Dewar  <dewar@adacore.com>
5640
5641         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
5642         missing TYPE Improve the error message generated when compiling a
5643         limited interface in Ada83 or Ada95 mode.
5644
5645 2005-03-29  Robert Dewar  <dewar@adacore.com>
5646
5647         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
5648         rather than proceed ahead using a junk attribute name.
5649
5650 2005-03-29  Vincent Celier  <celier@adacore.com>
5651
5652         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
5653
5654         * prj-part.adb (Parse_Single_Project): Set the location of a project
5655         on its defining identifier, rather than on the reserved word "project".
5656
5657         * prj-proc.adb (Expression): Adapt to the fact that default of external
5658         references may be string expressions, not always literal strings.
5659         (Recursive_Process): Set Display_Name equal to Name
5660         when Location is No_Location, that is when there is no actual file.
5661         Get the Display_Name of the project from the source, when it is not a
5662         virtual project.
5663         (Process): Use the Display_Name in error messages
5664
5665         * prj-strt.adb (External_Reference): Allow default to be string
5666         expressions, not only literal strings.
5667
5668 2005-03-29  Vincent Celier  <celier@adacore.com>
5669
5670         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
5671         file and the reference symbol file to be the same file.
5672
5673 2005-03-29  Thomas Quinot  <quinot@adacore.com>
5674
5675         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
5676         forbid conversion of a local access-to-subprogram type to a remote one.
5677
5678         * sem_util.adb (Wrong_Type): For a record type that is the expanded
5679         equivalent type for a remote access-to-subprogram type, go back to the
5680         original RAS entity when displaying an error message, so the casing is
5681         the original source casing.
5682
5683 2005-03-29  Robert Dewar  <dewar@adacore.com>
5684
5685         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
5686         on param update.
5687
5688 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
5689
5690         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
5691         subtype if code is being pre-analyzed, to prevent un-expanded
5692         references to protected formals, among others.
5693         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
5694         interpretation that can be a call, include the result of the call as a
5695         possible interpretation of the dereference.
5696
5697         * sem_ch5.adb (Process_Bounds): Determine type of range by
5698         pre-analyzing a copy of the original range, and then analyze the range
5699         with the expected type.
5700
5701         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
5702         with an overloaded prefix where not all interpretations yield an
5703         access to subprogram, do not rewrite node as a call.
5704         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
5705         the node as a call once the context identifies the interpretation of
5706         the prefix whose call yields the context type.
5707         (Valid_Conversion): For the case of a conversion between
5708         local access-to-subprogram types, check subtype conformance using
5709         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
5710         detailed error message.
5711
5712 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
5713
5714         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
5715         indicator, indicate that the formal can never be null.
5716         (Process_Formals): If a formal has a non_null indicator, insert the
5717         resulting subtype immediately before the enclosing subprogram decl,
5718         and not at the beginning of the corresponding declarative part, to
5719         prevent access before elaboration (Ada2005).
5720
5721 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5722
5723         PR ada/19956
5724         * utils.c (finish_record_type): Use variable_size when setting sizes.
5725
5726 2005-03-29  Robert Dewar  <dewar@adacore.com>
5727
5728         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
5729         guarantee Unix style line terminators for the output files, even when
5730         running on windows.
5731
5732 2005-03-29  Robert Dewar  <dewar@adacore.com>
5733
5734         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
5735         buffer if an exception is raised.
5736
5737 2005-03-29  Ed Falis  <falis@adacore.com>
5738
5739         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
5740         VxWorks 653 1.4
5741
5742 2005-03-29  Robert Dewar  <dewar@adacore.com>
5743
5744         * sem_util.ads: Minor reformatting
5745         * gnat_rm.texi: Minor editing.
5746
5747 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
5748
5749         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
5750         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
5751
5752 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
5753
5754         * adaint.c (__gnat_portable_spawn): Adjust cast.
5755
5756 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
5757
5758         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
5759
5760 2005-03-17  Pascal Obry  <obry@adacore.com>
5761
5762         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
5763         used.
5764
5765         * expect.c (__gnat_waitpid): Moved here from adaint.c.
5766         Reimplement under Win32 using Win32 API.
5767
5768         (__gnat_kill) [Win32]: Properly close the process handle before leaving
5769         this routine.
5770
5771 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
5772
5773         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
5774         (DECL_RENAMED_OBJECT): New accessor macro.
5775         (SET_DECL_RENAMED_OBJECT): New setter macro.
5776
5777         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
5778         object in all cases.  Attach the renamed object to the VAR_DECL.
5779         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
5780         field is not prescribed.
5781
5782         * misc.c (gnat_handle_option): Handle -gnatO separately.
5783         (gnat_print_decl) <VAR_DECL>: New case.
5784         Print the DECL_RENAMED_OBJECT node.
5785
5786         * lang.opt:  Declare separate -gnatO option.
5787
5788         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
5789         pointer, replace it with the renamed object.
5790         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
5791         pointer type if the source is not a fat pointer type whose underlying
5792         array has the same non-zero alias set as that of the destination array.
5793
5794 2005-03-17  Javier Miranda  <miranda@adacore.com>
5795
5796         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
5797         (Get_Inheritance_Depth): Removed.
5798         (Set_Inheritance_Depth): Removed.
5799
5800         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
5801         subprogram Get_Expanded_Name because it is not referenced by the
5802         frontend.
5803
5804         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
5805         (CPP_Get_Inheritance_Depth): Removed.
5806         (CPP_Set_Inheritance_Depth): Removed.
5807
5808         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
5809
5810 2005-03-17  Robert Dewar  <dewar@adacore.com>
5811
5812         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
5813         3, since we now expect GCC 3 to do all the work.
5814
5815 2005-03-17  Javier Miranda  <miranda@adacore.com>
5816
5817         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
5818         of one barrier to avoid wrong usage of this attribute.
5819
5820         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
5821         First_Private_Entity.
5822
5823         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
5824         the subprogram against wrong usage.
5825         Adapt the code to traverse the entities in the
5826         scope of a record_type because in addition to its usage regarding
5827         packages, this subprogram is also called by Expand_N_Freeze_Entity
5828         to install the visible declarations of the enclosing scope of a
5829         record_type_with_private to establish the proper visibility before
5830         freezing the entity and related subprograms.
5831
5832 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
5833
5834         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
5835         entry formals.
5836
5837 2005-03-17  Thomas Quinot  <quinot@adacore.com>
5838
5839         * exp_ch3.adb (Check_Attr): New subprogram.
5840         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
5841         into a new Check_Attr subprogram, in order to provide a more
5842         explanatory error message (including the name of the missing attribute).
5843         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
5844         subprogram determines whether a default implementation exists for a
5845         given stream attribute.
5846         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
5847         Determine whether to generate a default implementation for each stream
5848         attribute separately, as this depends on the specific attribute.
5849
5850         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
5851         limited extension where a stream attribute is missing for a limited
5852         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
5853         generate a bogus reference to the missing attribute to prevent
5854         cascaded errors. Instead, generate a null statement.
5855
5856         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
5857         available for a limited type if it has been specified for an ancestor
5858         of the type.
5859
5860 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
5861
5862         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
5863         entity is an operator.
5864
5865 2005-03-17  Thomas Quinot  <quinot@adacore.com>
5866
5867         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
5868         spec, to make this predicate available to other units.
5869
5870         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
5871         reimplementing it.
5872
5873         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
5874         when no distribution runtime library is available.
5875
5876         * sem_res.adb, sem_dist.adb: Disable expansion of remote
5877         access-to-subprogram types when no distribution runtime library is
5878         available.
5879         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
5880         predicate available to other units.
5881
5882         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
5883         spec, to make this predicate available to other units.
5884
5885 2005-03-17  Vincent Celier  <celier@adacore.com>
5886
5887         * make.adb (Insert_Project_Sources): Make sure the Q is always
5888         initialized.
5889
5890         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
5891         the default for the tree, not the global default naming.
5892
5893         * prj-proc.adb (Recursive_Process): No need to put the default naming
5894         in the project data, it's already there.
5895
5896 2005-03-17  Doug Rupp  <rupp@adacore.com>
5897
5898         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
5899
5900         * 5xcrtl.ads: Renamed to...
5901         * s-crtl-vms64.ads: ...this new file
5902
5903 2005-03-17  Robert Dewar  <dewar@adacore.com>
5904
5905         PR ada/19519
5906
5907         * namet.adb (Copy_One_Character): Set proper wide character encoding
5908         for upper half character if we have upper half encoding.
5909
5910 2005-03-17  Robert Dewar  <dewar@adacore.com>
5911
5912         * par.adb (Par): Improved msg for attempt to recompile predefined unit
5913
5914 2005-03-17  Thomas Quinot  <quinot@adacore.com>
5915
5916         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
5917         tagged limited type, the TSS is a newly built renaming declaration:
5918         insert it using Set_TSS, not Copy_TSS.
5919
5920 2005-03-17  Javier Miranda  <miranda@adacore.com>
5921
5922         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
5923         Try_Object_Operation): Analyze the object that is accessible
5924         through the prefix of the subprogram call before we apply
5925         the transformation of the object-operation notation.
5926
5927 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
5928
5929         * s-taprob.adb (Initialize_Protection): Initialize the protected
5930         object's owner to Null_Task.
5931         (Lock): If pragma Detect_Blocking is in effect and the caller of this
5932         procedure is already the protected object's owner then Program_Error
5933         is raised. In addition the protected object's owner is updated.
5934         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
5935         of this procedure is already the protected object's owner then
5936         Program_Error is raised.
5937         In addition the protected object's owner is updated.
5938         (Unlock): Remove the ownership of the protected object.
5939
5940         * s-taprob.ads (Protection): Add the field Owner, used to store the
5941         protected object's owner.
5942         This component is needed for detecting one type of potentially blocking
5943         operations (external calls on a protected subprogram with the same
5944         target object as that of the protected action). Document the rest of
5945         the components.
5946
5947         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
5948         Initialize the protected object's owner to Null_Task.
5949         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
5950         caller of this procedure is already the protected object's owner then
5951         Program_Error is raised.
5952         Do not raise Program_Error when this procedure is called from a
5953         protected action.
5954         (Unlock_Entries): Remove the ownership of the protected object.
5955         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
5956         of this procedure is already the protected object's owner then
5957         Program_Error is raised.
5958         Do not raise Program_Error when this procedure is called from
5959         a protected action.
5960
5961         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
5962         used to store the protected object's owner.
5963
5964         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
5965         effect and this procedure (a potentially blocking operation) is called
5966         from whithin a protected action, Program_Error is raised.
5967         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
5968         and this procedure (a potentially blocking operation) is called from
5969         whithin a protected action, Program_Error is raised.
5970
5971 2005-03-17  Vincent Celier  <celier@adacore.com>
5972             Nicolas Setton  <setton@adacore.com>
5973
5974         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
5975         switch, not supported by the linker on Darwin. Add '_' before
5976         <library>init, as this character is added unconditionally by the
5977         compiler.
5978         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
5979         correct one ".dylib". This fixes detection of the archive files when
5980         building library projects.
5981
5982 2005-03-17  Vincent Celier  <celier@adacore.com>
5983
5984         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
5985         -gnat83, -gnat95 and -gnat05.
5986
5987 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
5988
5989         * gnat_ugn.texi: Document gnatmem restriction
5990
5991 2005-03-17  Thomas Quinot  <quinot@adacore.com>
5992
5993         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
5994         cleanup
5995
5996 2005-03-17  Robert Dewar  <dewar@adacore.com>
5997
5998         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
5999         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
6000         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
6001
6002         * casing.adb: Comment improvements
6003
6004 2005-03-17  Pascal Obry  <obry@adacore.com>
6005
6006         * g-expect.adb: Minor reformatting.
6007
6008 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
6009
6010         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
6011         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
6012         to dependencies.
6013
6014 2005-03-15  Vincent Celier  <celier@adacore.com>
6015
6016         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
6017         Add new parameter In_Tree to specify the project tree: needed
6018         by the project manager. Adapt to changes in project manager
6019         using new parameter In_Tree.
6020
6021 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
6022
6023         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
6024         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
6025         ada/bldtools to avoid make -jN failures.
6026
6027 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
6028
6029         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
6030         to NULL_TREE on entry.
6031
6032 2005-03-15  Robert Dewar  <dewar@adacore.com>
6033
6034         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
6035         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
6036         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
6037         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
6038         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
6039         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
6040         system-interix.ads, system-solaris-sparc.ads,
6041         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
6042         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
6043         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
6044         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
6045         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
6046         Compiler_System_Version to be False.
6047
6048         * opt.ads: Add new flag Opt.Address_Is_Private
6049
6050         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
6051         Add new parameter Compiler_System_Version to avoid checking for
6052         completeness of parameters when compiler is compiling itself.
6053         Allows old versions of GNAT to be compiled with new compiler.
6054
6055 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
6056
6057         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
6058         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
6059         calling thread.
6060         (Stack_Base_Available): New flag.
6061         (Get_Page_Size): New overloaded functions imported from C.
6062         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
6063         PROT_ON, PROT_OFF): New constants.
6064         (mprotect): New function imported from C.
6065         (pthread_teb_t): New record type.
6066
6067         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
6068         (Create_Task): Account for the Yellow Zone and the guard page.
6069
6070 2005-03-15  Vincent Celier  <celier@adacore.com>
6071
6072         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
6073         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
6074         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
6075         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
6076         Library_File_Name_For): Add new parameter In_Tree
6077         to specify the project tree: needed by the project manager.
6078         Adapt to changes in project manager using new parameter In_Tree.
6079         Remove local imports, use functions in System.CRTL.
6080
6081         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
6082         to use the project manager.
6083
6084         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
6085         In_Tree to designate the project tree. Adapt to changes in the project
6086         manager, using In_Tree.
6087
6088         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
6089         Copy_Interface_Sources): Add new parameter In_Tree to specify the
6090         project tree: needed by the project manager.
6091         (Build_Library): Check that Arg'Length >= 6 before checking if it
6092         contains "--RTS=...".
6093
6094         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
6095         Library_File_Name_For): Add new parameter In_Tree to specify the
6096         project tree: needed by the project manager.
6097
6098         * prj.ads, prj.adb: Major modifications to allow several project trees
6099         in memory at the same time.
6100         Change tables to dynamic tables and hash tables to dynamic hash
6101         tables. Move tables and hash tables from Prj.Com (in the visible part)
6102         and Prj.Env (in the private part). Move some constants from the visible
6103         part to the private part. Make other constants deferred.
6104         (Project_Empty): Make it a variable, not a function
6105         (Empty_Project): Add parameter Tree. Returns the data with the default
6106         naming data of the project tree Tree.
6107         (Initialize): After updating Std_Naming_Data, copy its value to the
6108         component Naming of Project Empty.
6109         (Register_Default_Naming_Scheme): Use and update the default naming
6110         component of the project tree, instead of the global variable
6111         Std_Naming_Data.
6112         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
6113         Tree is not defaulted, return the default naming data of the Tree.
6114         (Initial_Buffer_Size): Constant moved from private part
6115         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
6116         variables initialized in procedure Initialize.
6117         (Add_To_Buffer): Add two in out parameters to replace global variables
6118         Buffer and Buffer_Last.
6119         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
6120         functions.
6121         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
6122         hash tables.
6123         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
6124         for the project tree.
6125         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
6126         constant at the beginning of the package spec, so that they cane be used
6127         in subprograms before their full declarations.
6128         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
6129         (Empty_Project): Add parameter of type Project_Node_Ref
6130         (Private_Project_Tree_Data): Add component Default_Naming of type
6131         Naming_Data.
6132         (Buffer, Buffer_Last): remove global variables
6133         (Add_To_Buffer): Add two in out parameters to replace global variables
6134         Buffer and Buffer_Last.
6135         (Current_Packages_To_Check): Remove global variable
6136         (Empty_Name): Move to private part
6137         (No-Symbols): Make it a constant
6138         (Private_Project_Tree_Data): New type for the private part of the
6139         project tree data.
6140         (Project_Tree_Data): New type for the data of a project tree
6141         (Project_Tree_Ref): New type to designate a project tree
6142         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
6143         for the project tree.
6144
6145         * prj-attr.ads: Add with Table; needed, as package Prj no longer
6146         imports package Table.
6147
6148         * prj-com.adb: Remove empty, no longer needed body
6149
6150         * prj-com.ads: Move most of the content of this package to package Prj.
6151
6152         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
6153         designate the project node tree and Packages_To_Check to replace
6154         global variable Current_Packages_To_Check.
6155         Add new parameters In_Tree and Packages_To_Check to local subprograms,
6156         when needed. Adapt to changes in project manager with project node tree
6157         In_Tree.
6158
6159         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
6160         project tree to most subprograms. Move tables and hash tables to
6161         private part of package Prj.
6162         Adapt to changes in project manager using project tree In_Tree.
6163
6164         * prj-makr.adb (Tree): New constant to designate the project node tree
6165         Adapt to change in project manager using project node tree Tree
6166
6167         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
6168         display the Library_Src_Dir and the Library_Dir.
6169         Add new parameter In_Tree to designate the project node tree to most
6170         subprograms. Adapt to changes in the project manager, using project tree
6171         In_Tree.
6172         (Check_Naming_Scheme): Do not alter the casing on platforms where
6173         the casing of file names is not significant.
6174         (Check): Add new parameter In_Tree to designate the
6175
6176         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
6177         designate the project tree.
6178         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
6179
6180         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
6181         to replace those that were in the private part of package Prj.
6182         Add new parameter In__Tree to designate the project node tree to most
6183         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
6184         (Post_Parse_Context_Clause): When specifying the project node of a with
6185         clause, indicate that it is a limited with only if there is "limited"
6186         in the with clause, not necessarily when In_Limited is True.
6187         (Parse): Add new parameter In_Tree to designate the project node tree
6188
6189         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
6190         designate the project node tree. Adapt to change in Prj.Tree with
6191         project node tree In_Tree.
6192
6193         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
6194         tree In_Tree in the call to function Empty_Process to give its initial
6195         value to the project data Processed_Data.
6196         Add new parameters In_Tree to designate the project tree and
6197         From_Project_Node_Tree to designate the project node tree to several
6198         subprograms. Adapt to change in project manager with project tree
6199         In_Tree and project node tree From_Project_Node_Tree.
6200
6201         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
6202         to replace those that were in the private part of package Prj.
6203         Add new parameter In_Tree to designate the project node tree to most
6204         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
6205
6206         * prj-tree.ads, prj-tree.adb: Add new parameter of type
6207         Project_Node_Tree_Ref to most subprograms.
6208         Use this new parameter to store project nodes in the designated project
6209         node tree.
6210         (Project_Node_Tree_Ref): New type to designate a project node tree
6211         (Tree_Private_Part): Change table to dynamic table and hash tables to
6212         dynamic hash tables.
6213
6214         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
6215         the project tree to most subprograms. Adapt to changes in project
6216         manager using project tree In_Tree.
6217
6218         * makegpr.adb (Project_Tree): New constant needed to use project
6219         manager.
6220
6221 2005-03-15  Olivier Hainque  <hainque@adacore.com>
6222
6223         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
6224         for sigactions with SA_SIGINFO set. Call
6225         __gnat_adjust_context_for_raise before raising, to perform the
6226         potentially required adjustments to the machine context for the GCC
6227         unwinder.
6228
6229         * raise.h (__gnat_adjust_context_for_raise): New prototype.
6230
6231         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
6232         Adjust PC by one in the provided machine context.
6233         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
6234         so that the handler is passed the context structure to adjust prior to
6235         the raise.
6236         (__gnat_error_handler) HPUX: Adjust the signature to match what an
6237         SA_SIGINFO sigaction should look like. Call
6238         __gnat_adjust_context_for_raise before actually raising.
6239         (__gnat_adjust_context_for_raise): Default noop to help PC
6240         adjustments before raise from signal handlers.
6241         (__gnat_error_handler): Indirectly call a predicate function to
6242         determine if a condition should be resignaled or not.
6243         (__gnat_set_resignal_predicate): User interface to modify the predicate.
6244         (__gnat_default_resignal_p): Default GNAT predicate.
6245
6246 2005-03-15  Doug Rupp  <rupp@adacore.com>
6247
6248         * adaint.c: Prefix #include of VMS system header files with vms/
6249         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
6250         Do not define a dummy function "convert_addresses" under Darwin,
6251         not needed.
6252
6253         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
6254         with vms/
6255
6256 2005-03-15  Nicolas Setton  <setton@adacore.com>
6257
6258         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
6259         PPC/AIX.
6260
6261 2005-03-15  Robert Dewar  <dewar@adacore.com>
6262
6263         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
6264         AI-386.
6265
6266         * a-retide.ads: Minor comment changes
6267
6268 2005-03-15  Robert Dewar  <dewar@adacore.com>
6269
6270         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
6271         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
6272         Realloc_For_Chunk to private part of package.
6273         New subprograms for AI-301
6274
6275         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
6276         Get_Line procedure.
6277         Avoid unnecessary use of Get/Set_Wide_String
6278
6279 2005-03-15  Robert Dewar  <dewar@adacore.com>
6280
6281         PR ada/13470
6282
6283         * a-stunau.ads, a-stunau.adb:
6284         Change interface to allow efficient (and correct) implementation
6285         The previous changes to allow extra space in unbounded strings had
6286         left this interface a bit broken.
6287
6288         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
6289
6290         * g-spipat.ads, g-spipat.adb: New interface for Get_String
6291         Minor reformatting (function specs)
6292
6293         * g-spitbo.adb: New interface for Get_String
6294
6295         * g-spitbo.ads: Minor reformatting
6296
6297         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
6298
6299         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
6300
6301 2005-03-15  Javier Miranda  <miranda@adacore.com>
6302             Robert Dewar  <dewar@adacore.com>
6303             Thomas Quinot  <quinot@adacore.com>
6304             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6305
6306         * atree.ads, atree.adb: Add support for Elist24 field
6307
6308         * atree.h: Fix wrong definition of Field27
6309         Add support for Elist16 field
6310         Add support for Elist24 field
6311
6312         * einfo.ads, einfo.adb (Abstract_Interfaces,
6313         Set_Abstract_Interfaces): New subprograms.
6314         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
6315         subprograms.
6316         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
6317         entities rather than a single node.
6318         (Is_Interface, Set_Is_Interface): New subprogram
6319         (First_Tag_Component): New syntesized attribute
6320         (Next_Tag_Component): New synthesized attribute
6321         (Write_Entity_Flags): Upgraded to write Is_Interface
6322         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
6323         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
6324         (Task_Body_Procedure): New subprogram to read this attribute.
6325         (Set_Task_Body_Procedure): New subprogram to set this attribute.
6326         (Has_Controlled_Component): Now applies to all entities.
6327         This is only a documentation change, since it always worked to apply
6328         this to other than composite types (yielding false), but now this is
6329         official.
6330         Update documentation on Must_Be_Byte_Aligned for new spec
6331
6332         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
6333         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
6334         uses of the Access_Disp_Table attribute to reference the first dispatch
6335         table associated with a tagged type. As
6336         part of the implementation of abstract interface types,
6337         Access_Disp_Table has been redefined to contain a list of dispatch
6338         tables (rather than a single dispatch table).
6339         Similarly, upgrade all the references to Tag_Component by the
6340         new attribute First_Tag_Component.
6341         (Find_Inherited_TSS): Moved to exp_tss.
6342         Clean up test in Expand_N_Object_Declaration for cases
6343         where we need to do a separate assignment of the initial value.
6344         (Expand_N_Object_Declaration): If the expression in the
6345         declaration of a tagged type is an aggregate, no need to generate an
6346         additional tag assignment.
6347         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
6348         is to be deleted.
6349         Bit packed array ops are only called if operands are known to be
6350         aligned.
6351         (Component_Equality): When returning an N_Raise_Program_Error statement,
6352         ensure that its Etype is set to Empty to avoid confusing GIGI (which
6353         expects that only expressions have a bona fide type).
6354         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
6355         determine the amount of data to be copied.
6356
6357         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
6358         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
6359             INTERFACE_TYPE_DEFINITION ::=
6360               [limited | task | protected | synchronized] interface
6361                 [AND interface_list]
6362
6363         * par-ch3.adb (P_Type_Declaration): Modified to give support to
6364         interfaces.
6365         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
6366         interfaces.
6367         (P_Interface_Type_Definition): New subprogram that parses the new
6368         syntax rule of Ada 2005 interfaces
6369         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
6370         messages by the correct RENAMES (quotes removed).
6371
6372         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
6373         attribute First_Tag_Component.
6374
6375         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
6376         (Interface_List, Set_Interface_List): New subprograms.
6377         (Interface_Present, Set_Interface_Present): New subprograms.
6378         (Limited_Present, Set_Limited_Present): Available also in derived
6379         type definition nodes.
6380         (Protected_Present, Set_Protected_Present): Available also in
6381         record type definition and
6382         derived type definition nodes.
6383         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
6384         (Task_Present, Set_Task_Present): New subprogram.
6385         (Task_Body_Procedure): Removed.
6386         (Set_Task_Body_Procedure): Removed.
6387         These subprogram have been removed because the attribute
6388         Task_Body_Procedure has been moved to the corresponding task type
6389         or task subtype entity to leave a field free to store the list
6390         of interfaces implemented by a task (for AI-345)
6391         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
6392         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
6393         expression flag Do_Range_Check
6394         (Exception_Junk): Change to Flag7 to accomodate above change
6395         (Box_Present, Default_Name, Specification, Set_Box_Present,
6396         Set_Default_Name, Set_Specification): Expand the expression
6397         "X in N_Formal_Subprogram_Declaration" into the corresponding
6398         two comparisons. Required to use the csinfo tool.
6399
6400         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
6401         "with string" given.
6402
6403         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
6404         expression given.
6405
6406         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
6407         in 2005 mode
6408
6409         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
6410         attribute Task_Body_Procedure rather than the old semantic field that
6411         was available in the task_type_declaration node.
6412
6413         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
6414         interface type definitions.
6415         (P_Formal_Derived_Type_Definition): Modified to handle the list of
6416         interfaces.
6417
6418         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
6419         task type declaration.
6420         (P_Protected): Modified to handle the list of interfaces in a
6421         protected type declaration.
6422
6423 2005-03-15  Doug Rupp  <rupp@adacore.com>
6424             Vincent Celier  <celier@adacore.com>
6425
6426         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
6427         (Gen_Output_File_C): Likewise.
6428         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
6429
6430 2005-03-15  Thomas Quinot  <quinot@adacore.com>
6431
6432         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
6433         is an N_Raise_Constraint_Error node, create a new copy of it without
6434         going through a call to Duplicate_Subexpr.
6435
6436 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
6437             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6438             Nicolas Setton  <setton@adacore.com>
6439             Ed Schonberg  <schonberg@adacore.com>
6440
6441         PR ada/19900
6442         PR ada/19408
6443         PR ada/19140
6444         PR ada/20255
6445
6446         * decl.c (gnat_to_gnu_field): Reject aliased components with a
6447         representation clause that prescribes a size not equal to the rounded
6448         size of their types.
6449         (gnat_to_gnu_entity, case E_Component): Always look at
6450         Original_Record_Component if Present and not the entity.
6451         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
6452         of tagged extension types by not making field for components that are
6453         inside the parent.
6454         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
6455         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
6456         expression to the type of the object when the object is constant.
6457         Reverse defer_debug_incomplete_list before traversing it, so that trees
6458         are processed in the order at which they were added to the list. This
6459         order is important when using the stabs debug format.
6460         If we are deferring the output of debug information, also defer this
6461         output for a function return type.
6462         When adding fields to a record, prevent emitting debug information
6463         for incomplete records, emit the information only when the record is
6464         complete.
6465         (components_to_record): New parameter defer_debug.
6466         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
6467         (gnat_to_gnu_field_decl): New function.
6468         (substitution_list, annotate_rep): Call it.
6469         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
6470         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
6471         No longer update discriminants to not be a COMPONENT_REF.
6472         (copy_alias_set): Strip padding from input type; also handle
6473         unconstrained arrays properly.
6474
6475         * gigi.h (write_record_type_debug_info): New function.
6476         Convert to use ANSI-style prototypes. Remove unused
6477         declarations for emit_stack_check, elab_all_gnat and
6478         set_second_error_entity.
6479         (gnat_to_gnu_field_decl): New decl.
6480
6481         * utils.c (write_record_type_debug_info): New function.
6482         (finish_record_type): Delegate generation of debug information to
6483         write_record_type_debug_info.
6484         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
6485         (update_pointer_to): Fix pasto.
6486         (convert) <UNION_TYPE>: Accept slight type variations when
6487         converting to an unchecked union type.
6488
6489         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
6490         replace the N_Freeze_Entity with a null statement.
6491
6492         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
6493         within a constrained subcomponent of an enclosing record, place the
6494         freeze nodes in the scope stack entry for the enclosing record.
6495         (Undelay_Type): New Subprogram.
6496         (Set_Small_Size): Pass T, the type to modify; all callers changed.
6497         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
6498         within records; allow them to have freeze nodes if their base types
6499         aren't frozen yet.
6500
6501         * exp_util.adb (Remove_Side_Effects): Properly test for
6502         Expansion_Delayed and handle case when it's inside an
6503         N_Qualified_Expression.
6504
6505         * sem_ch3.adb (Derived_Type_Declaration): New predicate
6506         Comes_From_Generic, to recognize accurately that the parent type in a
6507         derived type declaration can be traced back to a formal type, because
6508         it is one or is derived from one, or because its completion is derived
6509         from one.
6510         (Constrain_Component_Type): If component comes from source and has no
6511         explicit constraint, no need to constrain in in a subtype of the
6512         enclosing record.
6513         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
6514         Minor change to propagate Is_Ada_2005 flag
6515
6516         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
6517         Expansion_Delayed is False.
6518         (assoc_to_constructor): Ignore fields that have a
6519         Corresponding_Discriminant.
6520         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
6521         function returns "by target", dereference the target pointer using the
6522         type of the actual return value.
6523         <all>: Be prepared for a null gnu_result.
6524         (processed_inline_subprograms): Check flag_really_no_inline
6525         instead of flag_no_inline.
6526         (set_second_error_entity): Remove unused function.
6527         (gnat_to_gnu, case N_Selected_Component): Call
6528         gnat_to_gnu_field_decl.
6529         (assoc_to_constructor): Likewise.
6530
6531 2005-03-15  Robert Dewar  <dewar@adacore.com>
6532             Ed Schonberg  <schonberg@adacore.com>
6533             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6534
6535         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
6536         Must_Be_Byte_Aligned for cases where we do not need to use a
6537         System.Pack_nn unit.
6538
6539         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
6540         as procedures.
6541         Needed now that we do some processing for IN parameters as well. This
6542         may well fix some unrelated errors.
6543         (Expand_Call): Handle case of unaligned objects (in particular those
6544         that come from packed arrays).
6545         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
6546         renamed entity is an inherited operation, re-expand the call using the
6547         original operation, which is the one to call.
6548         Detect attempt to inline parameterless recursive subprogram.
6549         (Represented_As_Scalar): Fix to work properly with private types
6550         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
6551         accurate estimate. Yields True in far fewer cases than before,
6552         improving the quality of code that depends on this test.
6553
6554         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
6555         over both visible and private declarations to remove them from tree,
6556         and mark subprograms declared in package as eliminated, to prevent
6557         spurious use in subsequent compilation of generic units in the context.
6558
6559         * exp_util.ads: Minor cleanup in variable names
6560
6561         * sem_eval.ads, sem_eval.adb: Minor reformatting
6562         (Compile_Time_Known_Bounds): New function
6563
6564 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
6565
6566         * exp_ch7.adb (Convert_View): Use base types of underlying types when
6567         determining whether an unchecked conversion is needed for the argument
6568         of an initialization call.
6569
6570 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
6571
6572         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
6573         that appears in the instantiation rather than the internal subtype
6574         generated in the wrapper package, to avoid anomalies in gigi when the
6575         target is derived from a private type whose full view is an access type.
6576
6577 2005-03-15  Robert Dewar  <dewar@adacore.com>
6578
6579         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
6580         not needed.
6581         Add documentation to replace the use of this flag
6582         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
6583         the x86_64.
6584
6585 2005-03-15  Thomas Quinot  <quinot@adacore.com>
6586
6587         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
6588         here from exp_attr so it can be shared between exp_attr and exp_dist.
6589         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
6590         all TSS names, not a subset thereof, and the previous name introduced
6591         an unnecessarily confusion that a distinction might exist between
6592         "OK" TSS names and some "not OK" TSS names.
6593
6594 2005-03-15  Doug Rupp  <rupp@adacore.com>
6595
6596         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
6597         Command_Name.
6598
6599 2005-03-15  Pascal Obry  <obry@adacore.com>
6600             Eric Botcazou  <ebotcazou@adacore.com>
6601
6602         PR ada/20226
6603         PR ada/20344
6604
6605         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
6606         when IN_RTS. This is to work around a bootstrap path problem.
6607
6608         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
6609         table and pass it to __gnat_install_SEH_handler().
6610         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
6611
6612         * lang.opt: Fix specification of -fRTS=.
6613
6614 2005-03-15  Doug Rupp  <rupp@adacore.com>
6615             Bernard Banner  <banner@adacore.com>
6616             Vincent Celier  <celier@adacore.com>
6617             Arnaud Charlet  <charlet@adacore.com>
6618
6619         PR ada/6852
6620         This change works fine when gnatlib is built from the gcc directory,
6621         but does not work when using the libada Makefile, since GCC_FOR_TARGET
6622         is not passed to ada/Makefile.in, so more work is needed by a
6623         Makefile/configure expert.
6624
6625         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
6626         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
6627         Setup gnatlink switch -M for x86_64 linux, as it is already setup
6628         for Linux x86.
6629         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
6630         Run ranlib on libgccprefix.a
6631         Define PREFIX_OBJS for Darwin, to build libgccprefix.
6632         (ADA_INCLUDE_SRCS): Split Ada packages.
6633
6634 2005-03-15  Robert Dewar  <dewar@adacore.com>
6635
6636         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
6637
6638         * impunit.adb: Add GNAT.UTF_32
6639
6640         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
6641
6642         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
6643         now uses GNAT.UTF_32).
6644
6645         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
6646         capabilities for categorizing characters using Unicode categories
6647
6648 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
6649
6650         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
6651         instantiation that has been rewritten as a package body, retrieve spec
6652         to generate proper name for implicit_with_clause.
6653         (Install_Parents): Recognize a parent that is an instantiation but has
6654         been rewritten as a package declaration during analysis.
6655
6656 2005-03-15  Javier Miranda  <miranda@adacore.com>
6657             Ed Schonberg  <schonberg@adacore.com>
6658
6659         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
6660         parameter reported some error we immediately return. This improves the
6661         behaviour of the frontend in case of errors.
6662         (Install_Parent, Remove_Parent): Introduce new flag
6663         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
6664         ancestor of a generic child unit, when the child is being instantiated.
6665         (Inline_Instance_Body): If we are compiling the private
6666         part or the body of a child unit, restore the proper visibility of the
6667         parents after compiling the instance body.
6668
6669 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
6670             Javier Miranda  <miranda@adacore.com>
6671
6672         PR ada/15608
6673         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
6674         of a private type, in which case it is underlying_type that denotes
6675         the proper task. Also modified to use the new entity attribute
6676         that is directly available in the task type and task subtype entities
6677         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
6678         arrays when other dimensions than the first are constrained by
6679         discriminants of an enclosing record.
6680         (Insert_Explicit_Dereference): If the prefix is an indexed component or
6681         a combination of indexed and selected components, find ultimate entity
6682         and generate the appropriate reference for it, to suppress spurious
6683         warnings.
6684         (Note_Possible_Modification): If an entity name has no entity, return.
6685         (Is_Variable): A function call never denotes a variable.
6686         (Requires_Transient_Scope): For record types, recurse only on
6687         components, not on internal subtypes that may have been generated for
6688         constrained components.
6689
6690 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
6691
6692         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
6693         Eliminated as candidates for resolution. Both efficient, and avoids
6694         anomalies with operators declared in deleted code.
6695         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
6696         expansion is disabled (as when compiling a generic) to prevent spurious
6697         warnings on prefixes of selected components.
6698
6699 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
6700
6701         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
6702         attached to a list before checking whether it appears in the private
6703         declarations of the current package.
6704         (Make_Inequality_Operator): Insert declaration in proper declarative
6705         list rather than just setting the Parent field, so that
6706         Is_Private_Declaration can handle it properly.
6707
6708 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
6709
6710         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
6711         a renaming a body, check that the renamed subprogram in not intrinsic.
6712         (Find_Direct_Name): If several use_visible entities hide
6713         each other, and the context is a predefined file compiled through
6714         rtsfind, keep only the entity that comes from a predefined file.
6715
6716 2005-03-15  Geert Bosch  <bosch@adacore.com>
6717
6718         * s-fatgen.adb (Valid): Extend special exceptions to account for long
6719         long float padding to also cover AMD64 and IA64.
6720
6721 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
6722
6723         * s-imgwch.adb: Add with and use of Interfaces.
6724         (Img_Wide_Character): Change type of Val to Unsigned_16.
6725         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
6726
6727 2005-03-15  Matthew Gingell  <gingell@adacore.com>
6728
6729         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
6730
6731 2005-03-15  Robert Dewar  <dewar@adacore.com>
6732
6733         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
6734
6735         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
6736
6737         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
6738
6739 2005-03-15  Robert Dewar  <dewar@adacore.com>
6740
6741         * s-bitops.adb, s-bitops.ads,
6742         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
6743         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
6744         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
6745         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
6746         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
6747         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
6748         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
6749         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
6750         reformatting.
6751
6752 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
6753
6754         * utils2.c (build_binary_op): Fix typo.
6755
6756 2005-03-15  Doug Rupp  <rupp@adacore.com>
6757
6758         * s-crtl.ads (popen,pclose): New imports.
6759
6760 2005-03-15  Cyrille Comar  <comar@adacore.com>
6761
6762         * comperr.adb (Compiler_Abort): remove references to obsolete
6763         procedures in the bug boxes for various GNAT builds.
6764
6765 2005-03-15  Vincent Celier  <celier@adacore.com>
6766
6767         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
6768
6769 2005-03-15  Geert Bosch  <bosch@adacore.com>
6770             Arnaud Charlet  <charlet@adacore.com>
6771             Robert Dewar  <dewar@adacore.com>
6772             Cyrille Comar  <comar@adacore.com>
6773             Sergey Rybin  <rybin@adacore.com>
6774
6775         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
6776         too specific and long-winded to be appropriate for the GNAT User's
6777         Guide.
6778         Warn about use of GCC switches not documented in the GNAT User's Guide,
6779         as these may cause generated code to not conform to Ada semantics.
6780         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
6781         Add documentation for -gnat95 and -gnat05 switches
6782         Remove paragraph documenting obsolete way to refer to third party
6783         libraries.
6784         Add a few references to Ada_05 that were missing.
6785         Update documentation on -gnatZ/-gnatL.
6786         Document limitation when using -m64 under Solaris.
6787         Change the "Name Casing" subsection of the pretty-printer section
6788         according to the changes in the dictionary processing.
6789
6790         * gnat_rm.texi: Document the Ada_05 pragma.
6791         Section on record representation clauses describes the new more
6792         relaxed rules about placement of large packed bit array components.
6793         Add documentation of GNAT.UTF_32
6794
6795 2005-03-12  Daniel Berlin <dberlin@dberlin.org>
6796
6797         * misc.c (gnat_post_options): Turn off structural
6798         aliasing for now.
6799
6800 2005-03-08  Laurent Guerby <laurent@guerby.net>
6801
6802         * system-linux-sparc.ads: Fix typo in previous commit.
6803
6804 2005-03-07  James A. Morrison <phython@gcc.gnu.org>
6805             Laurent Guerby <laurent@guerby.net>
6806
6807         PR ada/20035
6808         * system-linux-sparc.ads: New.
6809         * Makefile.in: Add sparc linux entry.
6810
6811 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
6812
6813         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
6814         parameters as unused.
6815
6816 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
6817         Partial merge from libada-gnattools-branch:
6818
6819         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
6820         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
6821         into code in gnattools/Makefile.in.  Remove direct dependencies on
6822         stamp-tools by tools clauses.
6823         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
6824         * config-lang.in: Add gnattools to $lang_dirs.
6825
6826 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
6827
6828         PR ada/19942
6829         * utils.c (gnat_type_for_mode): Return null instead of ICE because
6830         we asked for an unknown mode.
6831
6832 2005-02-12  Richard Henderson  <rth@redhat.com>
6833
6834         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
6835         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
6836
6837 2005-02-10  Andreas Jaeger  <aj@suse.de>
6838
6839         * init.c (__gnat_initialize): Mark parameter as unused.
6840
6841 2005-02-09  Doug Rupp  <rupp@adacore.com>
6842
6843         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
6844         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
6845
6846 2005-02-09  Doug Rupp  <rupp@adacore.com>
6847
6848         * gnatchop.adb (dup, dup2),
6849         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
6850
6851         * gnatlbr.adb (mkdir),
6852         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
6853
6854         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
6855
6856 2005-02-09  Doug Rupp  <rupp@adacore.com>
6857
6858         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
6859
6860 2005-02-09  Robert Dewar  <dewar@adacore.com>
6861             Thomas Quinot  <quinot@adacore.com>
6862             Javier Miranda  <miranda@adacore.com>
6863             Pascal Obry  <obry@adacore.com>
6864             Ed Schonberg  <schonberg@adacore.com>
6865             Doug Rupp  <rupp@adacore.com>
6866             Gary Dismukes  <dismukes@adacore.com>
6867             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6868
6869         * g-zstspl.ads: New file.
6870
6871         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
6872
6873         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
6874         Ada 95 mode
6875         Add definition of Wide_Wide_Space for AI-285
6876
6877         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
6878         interface (to support Ada 95 and Ada 2005 units).
6879         Add Unbounded_IO files
6880         Add entries for Wide_Wide packages for AI-285
6881         Add list of containers packages to Ada 2005 unit list
6882
6883         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
6884         support new Unbounded_IO package cleanly.
6885
6886         * g-utf_32.ads, g-utf_32.adb: New files.
6887
6888         * Makefile.rtl: Add entry for g-utf_32
6889         Add new files for Unbounded_IO
6890         Adjust make file for new AI-285 wide wide packages
6891         Add AI-302 containers to the run time.
6892
6893         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
6894         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
6895         subprograms for AI-301.
6896
6897         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
6898
6899         * a-stunau.ads: Minor comment correction
6900
6901         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
6902         etc.
6903         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
6904         (Check_RPC): Update to match changes in expanded code.
6905         Clean up unused entity.
6906
6907         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
6908         was not taken into account.
6909         This includes proper initialization with Normalize_Scalars.
6910         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
6911         normalize scalars cases (particularly the latter) to do a better job
6912         of finding invalid representations.
6913
6914         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
6915
6916         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
6917         used
6918
6919         * exp_dist.adb: Add support for wide wide character type
6920         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
6921         private part, generate stub bodies at the end of the private part,
6922         not the visible part.
6923         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
6924         PolyORB support.
6925         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
6926         generic wrapper to execute final processing after completing the
6927         expansion of the RPC receiver for an RACW.
6928
6929         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
6930         packages and attributes.
6931         (Preset_Names): Addition of the new reserved words of Ada 2005,
6932         that is interface, overriding and synchronized.
6933         (Get_Pragma_Id): Give support to the use of the new reserved word
6934         "interface" as a pragma name.
6935         (Is_Pragma_Name): Give support to the use of the new reserved word
6936         "interface" as a pragma name.
6937         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
6938         attribute implementation.
6939
6940         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
6941         checks to entities that are output parameters of Asm operations.
6942         Handle the Stream_Size attribute.
6943         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
6944
6945         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
6946
6947         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
6948         for second parameter being 0.0.
6949         Add support for wide wide character type.
6950         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
6951
6952         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
6953         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
6954         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
6955         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
6956         for wide wide character cases.
6957
6958         * cstand.adb: Create entities for Wide_Wide_Character and
6959         Wide_Wide_String.
6960
6961         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
6962         accordance with AI-258.
6963         Add new declarations for 16/32 bit C character types (Part of AI285)
6964
6965         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
6966         (Obsolescent_Warning): New field
6967         (Rep_Clause): New local subprogram used to share code. Returns the rep
6968         clause for which the name is given in parameter.
6969         (Has_Stream_Size_Clause): New routine.
6970         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
6971         (Address_Clause): Implementation is now using Rep_Clause.
6972         (Alignment_Clause): Idem.
6973         (Size_Clause): Idem.
6974
6975         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
6976         entity in non-Ada 2005 mode and generate warning.
6977
6978         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
6979         (Prag): Code cleanup. Remove old gnat pragma "overriding"
6980
6981         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
6982         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
6983         on the named unit if the pragma is not in the current compilation unit,
6984         so that elaboration calls in the current unit can set up an elaboration
6985         dependency on the named unit, as needed.
6986         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
6987         subprogram as well as for subprograms declared within a package.
6988         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
6989         pragma overriding.
6990
6991         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
6992         to z) to avoid some instances of duplication for Wide_Wide packages.
6993
6994         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
6995         characters.
6996
6997         * scn.adb: Char_Literal_Value field is now a Uint
6998
6999         * scng.adb: Significant rewrite to handle new Ada 2005 features
7000         allowing wide and wide wide characters in program text, e.g. for
7001         identifiers, as described in AI-285.
7002         (Set_Reserved): New procedure, makes setting up keywords cleaner.
7003         (Initialize_Scanner): Register the new reserved words of Ada 2005.
7004         (Scan): Give support to the new reserved words.
7005
7006         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
7007         warning notifying that interface, overriding, and synchronized are
7008         new reserved words.
7009         (P_Pragma): Allow the use of the new reserved word "interface" as
7010         a pragma name.
7011
7012         * gnatls.adb, gnatbind.adb,
7013         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
7014         identifiers named "interface" to "SAL_Interface".
7015
7016         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
7017         (Structured Exception handling).
7018         (Gen_Main_C): Idem.
7019
7020         * bindgen.adb:
7021         (Gen_Main_Ada): Set the default exit code if specified.
7022         (Gen_Main_C): Likewise.
7023         Part of *DC20-006.
7024         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
7025         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
7026
7027         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
7028         new -Xnnn switch.
7029
7030         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
7031         has a collision with the new Ada 2005 "interface" reserved word.
7032
7033         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
7034         generate a warning notifying that interface, overriding, and
7035         synchronized are new reserved words.
7036
7037         * scans.ads (Token_Type): Addition of the tokens corresponding to the
7038         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
7039         and Tok_Synchronized.
7040
7041         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
7042         "dispatching" rather than "primitive" operations, since dispatching
7043         calls are now allowed to abstract formal subprograms (which are not
7044         primitive).
7045         Char_Literal_Value field is now a Uint
7046         (Resolve_Slice): If the prefix is an access to an unconstrained array,
7047         compute the actual subtype of the designated object to impose the proper
7048         index constraints.
7049         (Resolve_Selected_Component): Do not insert an access check if the
7050         prefix is an access type: such a node is expanded into an explicit
7051         dereference, on which the access check is performed anyway. Removes
7052         expensive duplicate checks.
7053         (Resolve_Call): Use new flag Is_Obsolescent and field
7054         Obsolescent_Warning so that pragma Obsolescent works on library
7055         subprograms.
7056         Add support for wide wide character type
7057         (Resolve_Allocator): Replace the error message on wrong null-exclusion
7058         value by a warning message.
7059         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
7060         as fixed-point, and one of the operands is non-static and universal, it
7061         can only be an illegal exponentiation operation, in which case there is
7062         no real value to retrieve.
7063
7064         * exp_strm.adb: Add support for wide wide character type
7065         (Build_Elementary_Input_Call): Compute the size of the stream element by
7066         querying the rep chain to find the Stream_Attribute attribute value.
7067         (Build_Elementary_Write_Call): Ditto.
7068
7069         * sem_aggr.adb: Char_Literal_Value field is now a Uint
7070         Add support for wide wide character type
7071         Replace the error messages on wrong null-exclusion value by warnings
7072         as described in Ada 2005.
7073         (Resolve_Extension_Aggregate): Document the fact that the error
7074         message on class-wide expressions in extensions aggregates.
7075
7076         * sem_case.adb: Add support for wide wide character type
7077
7078         * sem_ch13.adb: Add support for wide wide character type
7079         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
7080
7081         * sem_ch3.adb: Add support for wide wide character type
7082         (Process_Subtype): If constraint is illegal for the type, set Ekind of
7083         now-useless Itype, to prevent cascaded errors on a compiler built
7084         without -gnatp.
7085
7086         * sem_ch8.adb: Add with and use of Sem_Disp.
7087         (Analyze_Subprogram_Renaming): Replace unclean uses of
7088         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
7089         of Corresponding_Spec to Empty).
7090         (Attribute_Renaming): Replace use of Corresponding_Spec with
7091         Corresponding_ Formal_Spec and simplify condition.
7092         (Use_One_Package): Check that scope of homonym of identifier is defined,
7093         before checking whether it is a wrapper package.
7094         Add support for wide wide character type
7095
7096         * sem_eval.adb: Add support for wide wide character type.
7097         (Eval_Arithmetic_Op): Check for compile time known signed integer
7098         overflow in the non-static case.
7099         (Subtypes_Statically_Match): A formal scalar type and its base type do
7100         not statically match.
7101
7102         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
7103         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
7104         subtype).
7105         (Unit_Declaration_Node): Ditto.
7106         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
7107         has a packed array type, the prefix has been rewritten into a type
7108         conversion. Determine variable-ness from the converted expression.
7109         Handle wide wide character cases.
7110
7111         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
7112
7113         * stringt.ads, stringt.adb: Handle full UTF-32 range.
7114         Remove ["0A"] from comment, since it can look like a line terminator.
7115         Currently we don't permit this, but this is under discussion by the
7116         ARG, and it is easy enough to use a different example.
7117
7118         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
7119         handling UTF-32 encoding for wide wide character.
7120         Implement new brackets coding ["hhhhhhhh"]
7121         Add UTF-8 encodings for full UTF-32 range
7122
7123         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
7124
7125         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
7126         bit range Add full UTF-32 support.
7127         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
7128         notify that constraint error will be raised at run-time
7129         because a null value is assigned to a null-excluding object.
7130         Remove some obsolete declarations and make Char_Code
7131         unsigned.
7132
7133         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
7134         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
7135         Rcheck subprograms.
7136
7137         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
7138         wrong null-exclusion value by a warning message.
7139         (Enable_Range_Check): Do range check if the prefix is an
7140         explicit dereference whose designated object is an unconstrained array.
7141         Current algorithm for removing duplicate checks is over-eager in this
7142         case.
7143
7144         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
7145         null-exclusion value by a warning message
7146
7147         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
7148         completely. Add support for Uint2 field
7149
7150         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
7151         exp_prag.adb: Char_Literal_Value field is now a Uint.
7152
7153         * exp_util.adb (Insert_Actions): Replace
7154         N_Formal_Subprogram_Declaration by
7155         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
7156         Char_Literal_Value field is now a Uint.
7157
7158         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
7159         defined for subprogram renaming declarations. When set, the field
7160         indicates the defining entity of a corresponding formal subprogram
7161         when the renaming corresponds to a formal subprogram association in an
7162         instantiation.
7163         (Set_Corresponding_Formal_Spec): New procedure to return
7164         Corresponding_Formal_Spec field.
7165         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
7166         (which is now a subtype).
7167         Char_Literal_Value field is now a Uint
7168
7169         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
7170         pointer to the base of the dispatch table.
7171         Minor changes to comments.
7172         (Controlling_Type): New function for determining the tagged type
7173         associated with a tagged primitive subprogram.
7174         (Expand_Dispatching_Call): Add support for a controlling actual that is
7175         directly a value of type Ada.Tag rather than a tagged object.
7176
7177         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
7178         describing the new layout.
7179         (Dispatch_Table): The expander computes the actual array size, allocates
7180         the Dispatch_Table record accordingly, and generates code that displaces
7181         the base of the record after the Typeinfo_Ptr component. The access to
7182         these components is done by means of local functions.
7183         (Offset_To_Top): New function.
7184         (Typeinfo_Ptr): New function.
7185         (Get_TSD): Modified to access the new position of the TSD.
7186         (Set_TSD): Modified to save the TSD in its new position.
7187
7188         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
7189         case of formal abstract subprograms. Add check and message for -gnat05.
7190         Update comments.
7191
7192         * sem_ch12.adb: Add with and use for Sem_Disp.
7193         (Analyze_Associations): Minor change from "=" to "in" for use of
7194         N_Formal_Subtype_Declaration (which is now a subtype).
7195         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
7196         N_Formal_Subtype_Declaration (which is now a subtype).
7197         (Analyze_Formal_Subprogram): Add handling for
7198         N_Formal_Abstract_Subprogram, marking the formal as abstract and
7199         dispatching, setting the controlling status of the formal parameters
7200         and result, and issuing an error if there is no controlling type for
7201         the formal subprogram.
7202         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
7203         which is an unclean use of that field, we set the new field
7204         Corresponding_Formal_Spec to make the formal subprogram available to
7205         processing in Analyze_Subprogram_Declaration.
7206         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
7207         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
7208         Constrained, so that it is is does not statically match its anonymous
7209         base type.
7210
7211         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
7212         abstract formal subprograms in error check for functions returning
7213         abstract types. Set scope of new designator for
7214         a parameterless subprogram, so that it is available when checking the
7215         body for nested subprograms, before full analysis of said body.
7216         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
7217         subprogram only if inner one comes from source.
7218         (Analyze_Function_Call): If the call is given in object notation, the
7219         analysis of the name rewrites the node and analyzes it with the proper
7220         argument list. After analyzing the name, if the call has been rewritten
7221         and the result type is set, no further analysis is needed.
7222         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
7223         mark in function specification, in a context where the formals are
7224         visible and hide outer homographs.
7225
7226         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
7227         as the tagged type for the cases of abstract formal subprograms and
7228         renamings of those.  Clean up spec comments.
7229         (Check_Dispatching_Context): Add error message to indicate "abstract
7230         procedure", covering the case of a call to a formal abstract procedure
7231         that has statically tagged operands.
7232         (Check_Dispatching_Call): Check for the case of an actual given by
7233         a tag-indeterminate function call whose type is an ancestor of the
7234         containing call's associated tagged type. This situation can occur
7235         for inherited primitives with function defaults. In this case we
7236         use the tagged type's tag directly as the controlling argument for
7237         the calls.
7238         (Expand_Call): Name change on call to Expand_Dispatch_Call.
7239
7240         * sprint.adb (Sprint_Node_Actual): Split
7241         N_Formal_Subprogram_Declaration into two alternatives for the new
7242         cases N_Formal_Abstract_Subprogram_Declaration and
7243         N_Formal_Concrete_Subprogram_Declaration.
7244         Char_Literal_Value field is now a Uint.
7245
7246         * trans.c: Get rid of junk Uint2 reference.
7247         Char_Literal_Value field is now a Uint.
7248         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
7249         (gigi): Correct third arg to gimplify_body.
7250
7251         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
7252         (TYPE_LANG_FLAG_0): Check for record or union.
7253
7254         * treepr.adb: Char_Literal_Value field is now a Uint
7255
7256         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
7257         UI_From_CC.
7258
7259         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
7260         Add full UTF-32 support
7261         Char_Code is now 32 bits
7262
7263         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
7264         wide character UTF_32 line terminators.
7265         Initialize Main_Source_File to avoid error when no main
7266         source is loaded.
7267
7268         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
7269         (Main_Source_File) when no main source has been loaded, to avoid
7270         potential crash.
7271
7272 2005-02-09  Robert Dewar  <dewar@adacore.com>
7273
7274         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
7275         Fix name of Set routine
7276
7277         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
7278         fixed packages.
7279
7280         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
7281         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
7282         fixed packages
7283
7284         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
7285         forms of Get_Line subprograms for AI-301.
7286
7287         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
7288         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
7289         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
7290         a-stwima.ads: Minor reformatting.
7291
7292 2005-02-09  Doug Rupp  <rupp@adacore.com>
7293             Thomas Quinot  <quinot@adacore.com>
7294
7295         * adaint.c, adaint.h
7296         [VMS] (to_ptr32): New function.
7297         (MAYBE_TO_PTR32): New macro.
7298         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
7299         for pointer size.
7300         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
7301         [VMS] (#define fork()): Remove since unneccessary.
7302         (__gnat_set_close_on_exec): New routine to support
7303         GNAT.OS_Lib.Set_Close_On_Exec.
7304
7305         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
7306         the parent side as close-on-exec so that they are not inherited by the
7307         child.
7308
7309         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
7310         set or clear the FD_CLOEXEC flag on a file descriptor.
7311
7312 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
7313             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7314
7315         Fix for c330001 - PR ada/19386
7316
7317         * decl.c:
7318         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
7319         on the field if Pragma Component_Alignment (Storage_Unit).
7320         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
7321         side-effects as if it were a constant; also make SAVE_EXPR to protect
7322         side-effects.
7323         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
7324         UNION_TYPE.
7325         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
7326         (components_to_record): Test it.
7327         Fix improper usage of REFERENCE_CLASS_P.
7328
7329         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
7330         RECORD_TYPE.
7331
7332         * utils2.c: Minor reformatting.
7333
7334         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
7335         handle other cases like RECORD_TYPE.
7336
7337         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
7338
7339 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
7340
7341         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
7342         component of an array of arrays in an assignment context, and the
7343         aggregate has component associations that require sliding on
7344         assignment, force reanalysis of the aggregate to generate a temporary
7345         before the assignment.
7346         (Must_Slide): Make global to the package, for use in Gen_Assign.
7347
7348 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
7349
7350         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
7351         unchecked union with no inferable discriminants, return a
7352         Raise_Program_Error node, rather than inserting it at the point the
7353         type is frozen.
7354         (Expand_Record_Equality, Component_Equality): Handle properly the case
7355         where some subcomponent is an unchecked union whose generated equality
7356         code raises program error.
7357
7358 2005-02-09  Doug Rupp  <rupp@adacore.com>
7359
7360         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
7361         [VMS] (#define exit hack): Remove.
7362
7363 2005-02-09  Pascal Obry  <obry@adacore.com>
7364             Arnaud Charlet <charlet@adacore.com>
7365
7366         * init.c (__gnat_initialize): Add a new parameter eh which contains the
7367         address of the exception registration. The Win32 version of this
7368         routine calls __gnat_install_SEH_handler() to initialize the SEH
7369         (Structured Exception Handling) handler.
7370         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
7371         SEH (Structured Exception Handling) now.
7372         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
7373         (__gnat_initialize for ppc-vxworks): Adjust comments and the
7374         preprocessor condition protecting the call to the extra eh setup
7375         subprogram, which is only available for the ppc target.
7376         (__gnat_clear_exception_count): replaced reference to
7377         variable taskIdCurrent by call to taskIdSelf(), cleaner.
7378
7379         * seh_init.c: New file.
7380
7381         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
7382         (GNATBIND_OBJS): Idem.
7383
7384         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
7385         routine takes a new parameter (a pointer to the exception registration
7386         for the SEH (Structured Exception Handling) support.
7387
7388         * raise.h: (__gnat_install_SEH_handler): New prototype.
7389         Update copyright notice.
7390
7391         * s-tassta.adb (Task_Wrapper): Declare the exception registration
7392         record and initialize it by calling __gnat_install_SEH_handler.
7393
7394 2005-02-09  Vincent Celier  <celier@adacore.com>
7395
7396         * make.adb (Gnatmake): Do not fail when the main project has no object
7397         directory.
7398
7399 2005-02-09  Doug Rupp  <rupp@adacore.com>
7400
7401         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
7402         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
7403         [VMS]: Add translations for g-enblsp.adb.
7404
7405         * s-asthan-vms.adb: Removed.
7406         * s-asthan-vms-alpha.adb: Added.
7407
7408 2005-02-09  Pascal Obry  <obry@adacore.com>
7409
7410         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
7411         (LIBGNAT_OBJS): Add seh_init.o.
7412
7413 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
7414
7415         PR ada/16592
7416
7417         * Makefile.in: Link all gnat tools with -static-libgcc, since
7418         -shared-libgcc is now used by default on some systems (e.g. linux with
7419         recent binutils).
7420         Remove references to Makefile.prolog/generic, no longer used.
7421
7422 2005-02-09  Vincent Celier  <celier@adacore.com>
7423
7424         * prj-makr.adb (Process_Directory): Put file name in canonical case
7425         before matching against the patterns.
7426         If gnatname has been invoked as <prefix>-gnatname
7427         then invoke the compiler as <prefix>-gcc, not just "gcc".
7428
7429 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
7430
7431         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
7432         with expansion disabled. The actual subtype is needed among other
7433         places when the selected component appears in the context of a loop
7434         bound, and denotes a packed array.
7435         (Operator_Check): Always use the first subtype in the
7436         error message, to avoid the appearance of internal base types.
7437         (Transform_Object_Operation): Copy each actual in full
7438         to the parameter associations of the constructed call, rather than
7439         using the shallow copy mechanism of New_Copy_List. This ensures that
7440         the chaining of named associations is done properly.
7441         (Complete_Object_Operation): Rewrite node, rather than
7442         replacing it, so that we can trace back to the original selected
7443         component.
7444
7445         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
7446         and calls that use object notation, if the called function is not
7447         declared  in a withed unit, place the elaboration constraint on the
7448         unit in the context that makes the function accessible.
7449         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
7450         imposes an elaboration constraint between two packages.
7451
7452 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
7453
7454         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
7455         views of a private type after handling its private dependents, to
7456         maintain proper stack discipline between entry and exit from the
7457         package.
7458
7459 2005-02-09  Cyrille Comar  <comar@adacore.com>
7460
7461         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
7462         Minor reformatting.
7463
7464 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
7465
7466         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
7467         fields for foreign threads.
7468
7469 2005-02-09  Doug Rupp  <rupp@adacore.com>
7470
7471         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
7472         recursion warnings when compiled with -gnatdm.
7473
7474 2005-02-09  Robert Dewar  <dewar@adacore.com>
7475
7476         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
7477         Slight fix to documentation of -gnaty with no parameters
7478
7479         * xr_tabls.ads: Add ??? comment for missing overall comment
7480
7481         * xsinfo.adb: Make default file name be sinfo.h, since this is what
7482         we now use by default.
7483
7484         * xsnames.adb: Adjust end of file test to look for five space followed
7485         by '#' instead of six spaces. The format of xsnames.adb was modified
7486         in the last update.
7487
7488         * a-numeri.ads: Add reference to AI-388 for greek letter pi
7489         identifier.
7490
7491         * clean.adb: Minor reformatting.
7492
7493         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
7494         gnatname.adb: Minor reformatting
7495         Add 2005 to copyright output when utility is run
7496
7497         * csets.adb: Eliminate obsolete comment
7498
7499         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
7500         Update comments.
7501
7502         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
7503
7504 2005-02-09  Sergey Rybin  <rybin@adacore.com>
7505
7506         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
7507         the difference between compact and incompact layout and add the record
7508         representation clause to the example illustrating different layouts.
7509         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
7510         component clauses").
7511
7512 2005-02-09  Florian Villoing  <villoing@adacore.com>
7513
7514         * gnat_ugn.texi: Fix typos.
7515         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
7516         @file.
7517         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
7518         in the generated documentation.
7519
7520 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
7521
7522         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
7523         longer supported.
7524         Update linker wrapper when linking with non GNU C++.
7525
7526 2005-02-09  Pascal Obry  <obry@adacore.com>
7527
7528         * gnat_ugn.texi:
7529         Document the procedure to debug the DllMain routine on Windows.
7530         Add note about -funwind-tables and mixed Ada and C/C++ programming in
7531         ZCX mode.
7532         Document new BIND qualifer /RETURN_CODES=VMS.
7533
7534 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
7535
7536         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
7537         Edited gnatmetric chapter
7538
7539 2005-02-09  Robert Dewar  <dewar@adacore.com>
7540
7541         * gnat_rm.texi:
7542         Changes to document new wide wide character support
7543         For AI-285
7544         Update documentation on Normalize_Scalars and Initialize_Scalars
7545
7546 2005-02-09  Pascal Obry  <obry@adacore.com>
7547
7548         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
7549
7550 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
7551
7552         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
7553         from the VxWorks kernel) that is needed for getting the active
7554         priority of the different tasks.
7555
7556         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
7557         Use a pragma Elaborate_Body in the spec file instead.
7558         Noticed by code reading.
7559
7560 2005-02-09  Thomas Quinot  <quinot@adacore.com>
7561
7562         * exp_util.ads: Minor correction in comment.
7563
7564 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
7565
7566         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
7567         since this procedure is now too complex to be worth inlining.
7568
7569 2005-02-09  Richard Henderson  <rth@redhat.com>
7570
7571         * utils.c (gnat_define_builtin): Remove.
7572         (gnat_install_builtins): Use build_common_builtin_nodes.
7573
7574 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
7575
7576         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
7577         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
7578         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
7579         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
7580         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
7581         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
7582         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
7583         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
7584         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
7585         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
7586         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
7587         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
7588         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
7589         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
7590         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
7591         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
7592         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
7593         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
7594         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
7595         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
7596         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
7597         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
7598         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
7599         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
7600         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
7601         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
7602         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
7603         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
7604         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
7605         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
7606         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
7607         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
7608         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
7609         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
7610         library.
7611
7612 2005-01-27  Laurent GUERBY <laurent@guerby.net>
7613
7614         * Makefile.in: Fix a-intnam.ads from previous commit,
7615         add 2005 to copyright.
7616         * a-intman-rtems.ads: Renamed to...
7617         * a-intnam-rtems.ads:
7618
7619 2005-01-27  Laurent GUERBY <laurent@guerby.net>
7620
7621         * Makefile.in: Rename GNAT RTEMS specific files.
7622         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
7623         5rosinte.ads, 5rparame.adb: Replaced by files below.
7624         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
7625         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
7626
7627 2005-01-27  Joel Sherrill <joel.sherrill@oarcorp.com>
7628             Laurent GUERBY <laurent@guerby.net>
7629
7630         PR ada/19488
7631         * 5rosinte.ads: Add No_Key constant.
7632         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
7633         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
7634
7635 2005-01-26  Laurent GUERBY <laurent@guerby.net>
7636
7637         PR ada/19414
7638         * i-cobol.adb (Valid_Numeric): Handle zero length case.
7639
7640 2005-01-20  Richard Henderson  <rth@redhat.com>
7641
7642         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
7643         a-intnam-linux.ads and system-linux-alpha.ads.
7644         * a-intnam-linux-alpha.ads: Remove file.
7645         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
7646         * system-linux-alpha.ads: New file.
7647
7648 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
7649
7650         PR ada/13470
7651         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
7652         set to the new string.
7653
7654 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
7655
7656         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
7657         to True.
7658
7659 2005-01-18  Richard Henderson  <rth@redhat.com>
7660
7661         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
7662         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
7663         for alpha-linux.
7664         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
7665
7666 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
7667
7668         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
7669         (GCC_ZCX_Support): Likewise.
7670
7671 2005-01-11  Bastian Blank  <waldi@debian.org>
7672
7673         * system-linux-s390.ads: Define Preallocated_Stacks.
7674         * system-linux-s390x.ads: Likewise.
7675
7676 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
7677
7678         * gnat_ugn.texi: Fix texi errors with null variables.
7679
7680 2005-01-03  Thomas Quinot  <quinot@adacore.com>
7681
7682         * gen-soccon.c: New utility program to generate g-soccon.ads
7683         automatically.
7684
7685         * socket.c, gsocket.h: Split inclusion of system header files into a
7686         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
7687
7688         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
7689         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
7690         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
7691         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
7692         should not be edited by hand anymore, but should be regenerated using
7693         gen-soccon.
7694
7695 2005-01-03  Robert Dewar  <dewar@adacore.com>
7696             Ed Schonberg  <schonberg@adacore.com>
7697             Vincent Celier  <celier@adacore.com>
7698
7699         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
7700         on/off, since this is an obsolescent feature, for which we now generate
7701         a warning.
7702
7703         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
7704         warning mode is set and obsolescent usage of this attribute occurs.
7705         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
7706         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
7707         predates, and partly motivates, the adoption of the AI.
7708         Implement new Ada 2005 attribute Mod
7709
7710         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
7711         attribute Mod.
7712
7713         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
7714
7715         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
7716         pragma restrictions.
7717         New entry for Ada 2005 attribute Mod.
7718
7719         * par-prag.adb:
7720         Add recognition of new pragma Restrictions No_Dependence
7721         Recognize restriction No_Obsolescent_Features at parse time
7722
7723         * bcheck.adb: Add circuitry for checking for consistency of
7724         No_Dependence restrictions.
7725
7726         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
7727         restrictions.
7728
7729         * restrict.ads, restrict.adb: Add subprograms to deal with
7730         No_Dependence restrictions.
7731
7732         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
7733         restrictions.
7734
7735         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
7736         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
7737
7738         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
7739         dummy parameter to scng instantiation.
7740         Needed for new restriction No_Obsolescent_Features
7741
7742         * scn.adb: (Obsolescent_Check): New procedure
7743         Needed for new restriction No_Obsolescent_Features
7744
7745         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
7746         specified by AI-285, needed for implementation of AI-388 (adding greek
7747         pi to Ada.Numerics).
7748         Add new generic formal to scng, needed for new restriction
7749         No_Obsolescent_Features.
7750
7751         * s-rident.ads: Add new restriction No_Obsolescent_Features.
7752
7753         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
7754         restrictions lines.
7755         (Scan_ALI): When finding an unexpected character on an R line, raise
7756         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
7757         Ignore_Errors is True, default restrictions are set and scanning of the
7758         ALI file continues with the next line. Also, when Bad_R_Line is raised
7759         and Ignore_Errors is True, skip to the end of le line.
7760
7761         * sem_ch10.adb: Check that explicit with's do not violate
7762         No_Dependence restrictions.
7763         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
7764         illegal context clauses containing child units of instance.
7765
7766         * sem_prag.adb: Processing and checking for new No_Dependence
7767         restrictions.
7768         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
7769         analyze and check the External argument.
7770
7771         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
7772
7773 2005-01-03  Robert Dewar  <dewar@adacore.com>
7774
7775         * atree.adb: Add a fifth component to entities
7776         This allows us to add 32 flags and four new fields
7777
7778         * atree.ads: Add a fifth component to entities
7779         This allows us to add 32 flags and four new fields
7780
7781         * einfo.ads, einfo.adb: Document new fields and new flags now available
7782         Add routines for printing new fields
7783
7784         * treepr.adb: Call routines to print out additional fields if present
7785
7786 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
7787
7788         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
7789         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
7790
7791         * Makefile.in: Add support to build shared Ada libraries on solaris x86
7792         Remove gpr2make, replaced by gprmake.
7793         Remove references to gnatmem and libaddr2line.
7794         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
7795         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
7796         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
7797         a-numaux-darwin.ads and a-numaux-darwin.adb
7798         Enable mlib-tgt-lynxos.adb on lynxos.
7799
7800         * Make-lang.in: Remove rules for gpr2make.
7801         When generating sdefault.adb, do not call Relocate_Path
7802         on S3 for function Target_Name, as it is not a path.
7803         Remove references to gnatmem and libaddr2line.
7804
7805         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
7806         files.
7807
7808 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
7809
7810         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
7811         address is incompatible with its base type alignment constraints when
7812         this can be decided statically.
7813
7814 2005-01-03  Olivier Hainque  <hainque@adacore.com>
7815
7816         * decl.c (compatible_signatures_p): New function. The intended purpose
7817         is to check if two function signatures for a call-site and a callee are
7818         compatible enough for the call to be valid. The underlying purpose is
7819         to check if a call to a mapped builtin is using the right interface.
7820         The current code actually does not check antyhing - this a placeholder
7821         for future refinements.
7822         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
7823         builtin calls for convention Intrinsic.
7824
7825         * gigi.h (builtin_decl_for): Declare (new function).
7826
7827         * utils.c (gnat_install_builtins): Install the target specific builtins.
7828         (builtin_decl_for): New function, provide a dummy body for now.
7829
7830 2005-01-03  Geert Bosch  <bosch@adacore.com>
7831
7832         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
7833         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
7834         (Pred): Implement in terms of Succ.
7835
7836         * trans.c (convert_with_check): Reimplement conversion of float to
7837         integer.
7838
7839 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
7840             Vincent Celier  <celier@adacore.com>
7841
7842         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
7843         bounds can be negative, and must be declared Int, not Nat.
7844
7845         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
7846         array is checked after using the index in the array.
7847
7848         * makegpr.adb (Add_Switches): Check if there is a package for the
7849         processor. If there is no package, do not look for switches.
7850
7851 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
7852
7853         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
7854         generation of predefined stream operations (specs and bodies) should
7855         proceed. Under various restrictions these subprograms must not be
7856         generated.
7857
7858 2005-01-03  Thomas Quinot  <quinot@adacore.com>
7859
7860         * exp_dist.adb:
7861         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
7862         amount of PCS-specific code in RACW stubs generation.
7863         (Copy_Specification): Set Etype on copied formal parameter entities, as
7864         this information is needed for PolyORB stubs generation.
7865         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
7866         variable Dynamic_Async.
7867         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
7868         (Build_RPC_Receiver_Specification): Make generic again, as recent
7869         changes have allowed RPC receivers to have the same profile for both
7870         variants of the PCS.
7871         Reorganise RPC receiver generation to reduce differences between the
7872         structure of GARLIC and PolyORB RPC receivers.
7873         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
7874         PCS-specific.
7875         Simplify elaboration code for RCI packages.
7876
7877         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
7878         generation to reduce differences between the structure of GARLIC and
7879         PolyORB RPC receivers.
7880
7881         * s-stratt.adb: Fix typo in comment.
7882
7883 2005-01-03  Thomas Quinot  <quinot@adacore.com>
7884
7885         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
7886         copied from Make_Init_Call).
7887
7888         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
7889         reads and assignments on a temporary variable declared with appropriate
7890         discriminants.
7891
7892 2005-01-03  Robert Dewar  <dewar@adacore.com>
7893
7894         * i-c.adb (To_C): Raise CE if string is null and Append_Null
7895
7896 2005-01-03  Robert Dewar  <dewar@adacore.com>
7897
7898         * i-cstrin.adb (Update): Do not append a null in form called with a
7899         String. This avoids unintended behavior.
7900
7901 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
7902
7903         PR ada/17527
7904         * init.c: Fix warnings on Free BSD section.
7905
7906 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
7907
7908         PR ada/16949
7909         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
7910         xsinfo.adb).
7911
7912 2005-01-03  Vincent Celier  <celier@adacore.com>
7913
7914         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
7915         libraries when Unique_Compile is True (-u switch).
7916         (Gnatmake): ditto.
7917
7918 2005-01-03  Robert Dewar  <dewar@adacore.com>
7919
7920         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
7921         upper case letter or underscore after W, as allowed by spec.
7922
7923 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
7924
7925         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
7926         darwin port by using proper type definitions from header files.
7927         Use SIGTERM instead of SIGABRT for SIGADAABORT.
7928
7929 2005-01-03  Robert Dewar  <dewar@adacore.com>
7930
7931         * par.adb: Enhance error message handling for configuration file
7932         pragmas.
7933
7934 2005-01-03  Robert Dewar  <dewar@adacore.com>
7935
7936         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
7937         removed during the previous update (test properly for case of dividing
7938         largest negative number by -1, which generates overflow).
7939
7940 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
7941             Sergey Rybin  <rybin@adacore.com>
7942
7943         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
7944         to use as the defining identifier for a formal package.
7945         (Remove_Parent): If the instance takes place within (an instance of)
7946         a sibling, preserve private declarations of common parent.
7947
7948 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
7949
7950         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
7951         to determine whether one of the operands is a fixed-point type for
7952         which a user-defined multiplication or division operation might be
7953         defined.
7954
7955         * sem_res.adb (Valid_Conversion): The legality rules for conversions
7956         of access types are symmetric in Ada 2005: either designated type can
7957         be unconstrained.
7958
7959 2005-01-03  Vincent Celier  <celier@adacore.com>
7960
7961         * s-fileio.adb (Temp_File_Record): Change length of string component
7962         Name from L_tmpnam + 1 to max_path_len + 1.
7963
7964 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
7965
7966         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
7967         Self_Id.Deferral_Level = 0.
7968         (Do_Pending_Action): Move this function to the spec.
7969
7970         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
7971         Do_Pending_Action explicitely when needed, in case we're using
7972         No_Abort restrictions.
7973
7974         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
7975         deferral level since it will not get changed by the generated code.
7976         Keeping a default value of 1 would prevent some operations (e.g.
7977         select or delay) to proceed successfully.
7978
7979 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
7980             Robert Dewar  <dewar@adacore.com>
7981             Cyrille Comar  <comar@adacore.com>
7982
7983         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
7984         porting guide chapter (vms version).
7985         Revised doc title (removed "for native platforms") and subtitle.
7986         Add discussion on warning flag for obsolescent features. First we
7987         note that it applies to obsolete GNAT features, which was previously
7988         omitted. Second we contrast the behavior with that of the new
7989         Ada 2005 AI-368 restriction No_Obsolescent_Features.
7990         Preliminary rewriting of GNAT & libraries chapter in order to take
7991         into account default project locations & new project manager
7992         capabilities.
7993
7994 2005-01-03  Robert Dewar  <dewar@adacore.com>
7995
7996         * cstand.adb (Create_Operators): Clean up format and documentation of
7997         unary and binary operator result tables. No change in code, just
7998         reformatting and addition of comments.
7999
8000         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
8001         sem_ch2.adb: Minor reformatting
8002
8003         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
8004         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
8005         comments for Tree_Read and Tree_Write.
8006
8007 2005-01-03  Pascal Obry  <obry@adacore.com>
8008
8009         * exp_attr.ads: Minor reformatting.
8010
8011 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
8012
8013         * comperr.adb (Compiler_Abort): Add specialized message for GAP
8014         versions.
8015
8016 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
8017
8018         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
8019         whether the ancestor type is private, as may be the case with nested
8020         instantiations.
8021
8022 2004-12-30  Sohail Somani <sohail@sohailsomani.com>
8023
8024         PR ada/19128
8025         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
8026
8027 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
8028
8029         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
8030         * utils2.c (build_unary_op): Likewise.
8031
8032 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8033
8034         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
8035
8036 2004-12-19  Richard Henderson  <rth@redhat.com>
8037
8038         * trans.c (gigi): Update gimplify_body call.
8039
8040 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
8041
8042         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
8043
8044 2004-12-07  Ed Falis  <falis@adacore.com>
8045
8046         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
8047         current task being suspended.
8048
8049         * init.c (__gnat_clear_exception): added to reset VxWorks exception
8050         count.
8051         (__gnat_map_signal): removed test for current task being suspended.
8052
8053 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
8054
8055         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
8056         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
8057         targets (such as AAMP).
8058
8059 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
8060
8061         * atree.adb (Visit_Itype): Create a new name for the generated itype,
8062         because the back-end may otherwise treat it as a redefinition of the
8063         old symbol.
8064
8065 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
8066
8067         * back_end.adb (Scan_Back_End_Switches): Accept --param.
8068
8069         * lang-specs.h: Accept --param.
8070
8071 2004-12-07  Vincent Celier  <celier@adacore.com>
8072
8073         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
8074         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
8075         Current_Body_Suffix => Ada_Body_Suffix).
8076         Take into account Externally_Built attribute.
8077
8078         * clean.adb (In_Extension_Chain): Always return False when one of the
8079         parameter is No_Project.
8080         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
8081         Ada_Language_Index).
8082         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
8083         Process_Languages for procedure Parse).
8084
8085         * gnatcmd.adb (Carg_Switches): New table.
8086         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
8087         Adapt to name changes in package Prj (Current_Spec_Suffix =>
8088         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
8089
8090         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
8091         Header_Num and function Hash are now declared in package Prj,
8092         not Prj.Com.
8093
8094         * prj.adb (Suffix_Of): New function.
8095         (Set (Suffix)): New procedure.
8096         (Hash): One function moved from Prj.Com
8097         (Is_Present, Language_Processing_Data_Of): New functions
8098         (Set): Two new procedures
8099         (Add_Language_Name, Display_Language_Name): New procedures
8100
8101         * prj.ads: (Suffix_Of): New function
8102         (Set (Suffix)): New procedure
8103         Add several types and tables for multi-language support.
8104         (Header_Num): Type moved from Prj.Com
8105         (Hash): Two functions moved from Prj.Com
8106         (Is_Present, Language_Processing_Data_Of): New functions
8107         (Set): Two new procedures
8108         (Add_Language_Name, Display_Language_Name): New procedures
8109         (Naming): Component name changes:
8110         Current_Spec_Suffix => Ada_Spec_Suffix,
8111         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
8112         Impl_Suffixes, Supp_Suffixes.
8113         (Project_Data): New components: Externally_Built, Supp_Languages,
8114         First_Language_Processing, Supp_Language_Processing, Default_Linker,
8115         Default_Linker_Path.
8116
8117         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
8118         new package Language_Processing with its attributes (Compiler_Driver,
8119         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
8120         Binder_Driver, Default_Linker).
8121
8122         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
8123         (Header_Num): Type moved to package Prj
8124
8125         * prj-env.adb: Adapt to name changes in package Prj
8126         (Current_Spec_Suffix => Ada_Spec_Suffix,
8127         Current_Body_Suffix => Ada_Body_Suffix).
8128
8129         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
8130         default to the project path, except the "-" is one of the directories
8131         in env var ADA_PROJECT_PATH.
8132         (Current_Project_Path): Global variable, replacing Project_Path
8133         that was in the body of Prj.Part.
8134         (Project_Path): New function
8135         (Set_Project_Path): New procedure
8136         Initialize Current_Project_Path during elaboration of the package
8137         Remove dependency on Prj.Com, no longer needed
8138
8139         * prj-ext.ads (Project_Path): New function
8140         (Set_Project_Path): New procedure
8141
8142         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
8143         suffix is defined for language <lang>.
8144         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
8145         accessing directly the components of Naming.
8146         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
8147         Reorganise of this package.
8148         Break procedure Check in several procedures.
8149
8150         * prj-nmsc.ads: Replace all procedures (Ada_Check,
8151         Other_Languages_Check and Language_Independent_Check) with a single
8152         procedure Check.
8153
8154         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
8155         Process_Languages, no longer needed.
8156
8157         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
8158         Current_Project_Path.
8159         Remove elaboration code, moved to the body of Prj.Ext
8160         Use new function Prj.Ext.Project_Path instead of old variable
8161         Project_Path.
8162         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
8163         When comparing with project paths on the stack, first put the resolved
8164         path in canonical case.
8165         (Parse_Single_Project): Set the path name of the project file in the
8166         tree to the normalized path.
8167
8168         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
8169         parameter Process_Languages, no longer needed.
8170         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
8171         Other_Languages_Check.
8172
8173         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
8174         to store the resolved canonical path of the project file.
8175         Remove dependency to Prj.Com, no longer needed
8176
8177         * prj-util.adb: Adapt to name changes in package Prj
8178         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
8179         Ada_Body_Suffix).
8180
8181         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
8182         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
8183         Externally_Built, Include_Option, Language_Processing.
8184
8185         * makegpr.adb: Numerous changes due to changes in packages
8186         Prj and Prj.Nmsc.
8187
8188         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
8189         default to the project path, except whe "-" is one of the directories
8190         in env var ADA_PROJECT_PATH.
8191         (Gnatls): In verbose mode, add the new section "Project Search Path:"
8192
8193 2004-12-07  Robert Dewar  <dewar@adacore.com>
8194
8195         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
8196
8197         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
8198         set -gnatR3m mode.
8199
8200         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
8201         flag. No longer needed now that we handle this in gnat1drv.adb.
8202
8203         * repinfo.ads: Minor reformatting
8204
8205 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8206             Olivier Hainque  <hainque@adacore.com>
8207             Eric Botcazou  <ebotcazou@adacore.com>
8208
8209         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
8210         TYPE_SIZE_UNIT of result type if SIZE is not specified.
8211         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
8212         of a bitfield, which we know is useless and causes trouble because of
8213         alignment implications.
8214
8215         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
8216         BSS sections.
8217         (process_attributes): Clear DECL_COMMON again when a section attribute
8218         is present.
8219         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
8220         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
8221         (create_field_decl): Special case ADDRESSABLE negative to mean
8222         "no bitfield creation", to be used by make_aligning_type. Don't
8223         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
8224         fields claimed addressable still have to be bitfields. Use
8225         value_factor_p instead of a raw binop construction to check for the
8226         position's alignment.
8227
8228 2004-12-07  Geert Bosch  <bosch@adacore.com>
8229
8230         * eval_fat.adb: Revert previous change.
8231
8232 2004-12-07  Thomas Quinot  <quinot@adacore.com>
8233             Ed Schonberg  <schonberg@adacore.com>
8234
8235         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
8236         with an implicit dereference as its prefix, use
8237         Insert_Explicit_Dereference instead of merely rewriting the prefix into
8238         an explicit dereference. This ensures that a reference to the original
8239         prefix is generated, if appropriate.
8240
8241         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
8242         dereference is rewritten to an explicit one, generate a reference to
8243         the entity denoted by its prefix using the original prefix node, so
8244         the dereference can be properly recorded as a read of the denoted
8245         access value, if appropriate.
8246
8247         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
8248         emitting 'assigned but never read' warning on a variable on the basis
8249         that it has an access type.
8250         (Check_References): Emit unreferenced warning when the scope is a
8251         subprogram body.
8252
8253 2004-12-07  Robert Dewar  <dewar@adacore.com>
8254             Ed Schonberg  <schonberg@adacore.com>
8255
8256         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
8257         intrinsic
8258
8259         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
8260         leaving call unchanged.
8261         This deals with the case where the pragma Import specified
8262         an external name, to be handled by the back end.
8263
8264         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
8265         subprogram which is Imported with convention Intrinsic if an
8266         External_Name argument is specified.
8267         (Process_Import_Or_Interface): Properly diagnose link name argument.
8268         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
8269         with Sem_Ch6.Cannot_Inline.
8270         (Process_Inline): Provide separate warning for inapplicable inline
8271         pragma.
8272         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
8273         treatment is uniform on different targets.
8274
8275 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
8276
8277         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
8278         construct is rewritten, preserve end label to permit source navigation.
8279
8280 2004-12-07  Thomas Quinot  <quinot@adacore.com>
8281
8282         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
8283         Specific_Build_Stub_Target): New subprograms.
8284         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
8285         the PCS implementation used, using the above PCS-customized subprograms.
8286         Minor reformatting.
8287         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
8288         for generation of DSA code targeted to the PolyORB PCS.
8289         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
8290         implementation of the partition communication subsystem in ancillary
8291         subprograms.
8292         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
8293         PolyORB_Support.Build_Stub_Type): New subrograms containing the
8294         PCS-specific part of Add_Stub_Type.
8295         (Insert_Partition_Check): Use runtime library function to perform
8296         E.4(19) check.
8297
8298         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
8299         (RE_Same_Partition): New entity, from s-parint.
8300
8301         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
8302
8303 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
8304
8305         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
8306         Output the copyright message on a separate line from the version
8307         message.
8308
8309 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
8310
8311         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
8312         compile-time warning.
8313
8314 2004-12-07  Robert Dewar  <dewar@adacore.com>
8315
8316         * g-regpat.adb: (Match): Change a misuse of or to or else
8317
8318 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
8319
8320         * lib-xref.adb:
8321         (Generate_Reference): Handle properly a reference to an entry formal,
8322          when an accept statement has a pragma Unreferenced for it.
8323
8324         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
8325         and the Has_Pragma_Unreferenced flag for each formal before analyzing
8326         the body, to ensure that warnings are properly emitted for each accept
8327         statement of a given task entry.
8328
8329 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
8330
8331         * Makefile.in: Add support for foreign threads on VMS.
8332
8333 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8334
8335         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
8336         Remove.
8337         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
8338
8339         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
8340
8341         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
8342         exception.
8343         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
8344
8345 2004-12-07  Robert Dewar  <dewar@adacore.com>
8346
8347         * nlists.adb (Prepend_Debug): Remove parameters and nest within
8348         Prepend.
8349         (Remove_Next_Debug): Same fix
8350
8351         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
8352         maintain back pointers now, though we did not used to, and comments
8353         were out of date).
8354         (Prepend): Remove pragma Inline.
8355         (Remove_Next): Same cleanup
8356
8357 2004-12-07  Thomas Quinot  <quinot@adacore.com>
8358
8359         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
8360         used to record an implicit dereference as a read operation on its
8361         prefix when operating under -gnatc. Necessary to avoid spurious
8362         'variable assigned but never read' warnings in that mode.
8363         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
8364         is a non-overloaded implicit dereference, call the above subprogram to
8365         ensure proper recording of references.
8366
8367 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
8368
8369         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
8370         to be resolved later as part of Analyze_Iteration_Scheme's call to
8371         Make_Index.
8372
8373 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
8374
8375         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
8376         prefix is not a scalar type, place error message on prefix, not on
8377         type entity.
8378
8379 2004-12-07  Bernard Banner  <banner@adacore.com>
8380
8381         * vxaddr2line.adb: Add support for x86 vxworks
8382
8383 2004-12-07  Thomas Quinot  <quinot@adacore.com>
8384
8385         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
8386         documentation of the behaviour of these functions when passed an IP
8387         address that has no record in the system hosts database and no reverse
8388         record in the DNS.
8389
8390         * cstand.adb, a-tags.ads: Fix typos in comment.
8391
8392 2004-12-07  Robert Dewar  <dewar@adacore.com>
8393
8394         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
8395         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
8396         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
8397         s-poosiz.ads: Minor reformatting
8398
8399         * make.adb: Minor reformatting
8400         Add some ??? comments asking for more comments
8401
8402         * s-poosiz.adb: Minor reformatting
8403         Add comments on alignment requirement
8404
8405         * sinfo.ads: Remove obsolete comment and fix typo.
8406
8407 2004-12-07  Vincent Celier  <celier@adacore.com>
8408             Sergey Rybin  <rybin@adacore.com>
8409
8410         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
8411         Files" with the new tool and package names.
8412         Reformatting to suppress most of the warnings for line too long
8413         Document the new section "Project Search Path:" in the output of
8414         gnatls -v.
8415         Add gnatmetric section
8416
8417 2004-12-07  Vincent Celier  <celier@adacore.com>
8418
8419         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
8420         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
8421         and -eit to -ept. Added qualifier
8422         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
8423
8424 2004-11-27  Andreas Schwab  <schwab@suse.de>
8425
8426         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
8427
8428 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
8429
8430         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
8431         internal implementation unit GNAT.Sockets.Thin,
8432         as their usage for sockets is non-portable (using the read and write
8433         functions from the system runtime library is fine on UNIX but won't
8434         work under Windows).
8435
8436         * mingw32.h: Update copyright notice.
8437
8438 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
8439
8440         * ada-tree.h: Minor reformatting of previous change to avoid lines
8441         longer than 79 characters.
8442
8443 2004-11-25  Olivier Hainque  <hainque@adacore.com>
8444
8445         * tb-gcc.c: GCC infrastructure based implementation of
8446         __gnat_backtrace.
8447
8448 2004-11-24  Steven Bosscher  <stevenb@suse.de>
8449
8450         * misc.c (gnat_post_options): Don't clear
8451         flag_inline_functions.
8452
8453 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
8454
8455         PR ada/17986
8456         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
8457         tree.
8458
8459 2004-11-21  Andreas Jaeger  <aj@suse.de>
8460
8461         * stylesw.adb: Change Style_Check_Subprogram_Order to
8462         Style_Check_Order_Subprograms.
8463
8464 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
8465
8466         * adaint.h, adaint.c
8467         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
8468         to avoid warnings.
8469         Add also a cast to kill another warning.
8470         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
8471         parameter with the priority class of the parent process instead of
8472         always using the NORMAL_PRIORITY_CLASS.
8473         (__gnat_dup): New function.
8474         (__gnat_dup2): New function.
8475         (__gnat_is_symbolic_link): Enable the effective body of this
8476         function when __APPLE__ is defined.
8477
8478         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
8479         Update comments.
8480
8481 2004-11-18  Olivier Hainque  <hainque@adacore.com>
8482
8483         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
8484         address of which may be used to represent "others" and "all others"
8485         choices in exception tables, instead of the current harcoded
8486         (void *)0 and (void *)1.
8487         (Setup_Exception): Do nothing in the GNAT SJLJ case.
8488
8489         * gigi.h (others_decl, all_others_decl): New decls representing the
8490         new Others_Value and All_Others_Value objects.
8491         (struct attrib): Rename "arg" component as "args", since GCC expects a
8492         list of arguments in there.
8493
8494         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
8495         corresponding objects exported by a-exexpr, instead of hardcoded dummy
8496         addresses.
8497
8498         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
8499         others_decl and all_others_decl instead of hardcoded dummy addresses
8500         to represent "others" and "all others" choices, which is cleaner and
8501         more flexible with respect to the possible eh pointer encoding policies.
8502
8503         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
8504         (process_attributes): Account for the naming change of the "args"
8505         attribute list entry component.
8506
8507         * decl.c (build_attr_list): Rename into prepend_attributes to allow
8508         cumulating attributes for different entities into a single list.
8509         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
8510         attributes for the current entity and propagate first subtype
8511         attributes to other subtypes.
8512         <E_Procedure>: Attribute arguments are attr->args and not
8513         attr->arg any more.
8514         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
8515         argument provided, as this is what GCC expects. Use NULL_TREE instead
8516         of 0 for trees.
8517
8518 2004-11-18  Robert Dewar  <dewar@adacore.com>
8519
8520         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
8521         Minor reformatting througout (including new function specs)
8522         Add ??? comments asking for clarification.
8523
8524 2004-11-18  Thomas Quinot  <quinot@adacore.com>
8525
8526         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
8527         incomplete duplicate implementation of this subprogram from butil.
8528
8529 2004-11-18  Thomas Quinot  <quinot@adacore.com>
8530
8531         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
8532         procedures factors the common processing for building an RPC receiver
8533         for an RCI package or an RACW type.
8534         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
8535         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
8536         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
8537         in use.
8538         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
8539         Add_RACW_Features.
8540         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
8541         Add_RAST_Features.
8542         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
8543         distribution subprogram identifiers that are either subprogram numbers
8544         or strings.
8545         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
8546         string distribution identifiers assigned to a given subprogram.
8547         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
8548         (Add_RAS_Dereference_TSS): Add comments.
8549         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
8550         is not referenced yet because it will be used by the PolyORB DSA
8551         implementation.
8552         (Insert_Partition_Check): Remove fossile code.
8553         (First_RCI_Subprogram_Id): Document this constant.
8554         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
8555         RAS_Access TSS.
8556         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
8557         replaced with calls to Get_Library_Unit_Name_String. Previously there
8558         were several instances of the same code in different locations in the
8559         compiler; this checkin completes the replacement of all of these
8560         instances with calls to a common subprogram.
8561         Minor reformatting.
8562
8563         * sem_dist.adb: Remove comment noting that RPC receiver generation
8564         should be disabled for RACWs that implement RASs.
8565         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
8566
8567         * sem_util.ads, sem_util.adb (Has_Stream): New function
8568         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
8569         qualified name of a library unit into the name buffer.
8570         (Note_Possible_Modification): Generate a reference only
8571         if the context comes from source.
8572
8573         * snames.ads (PCS_Names): New subtype corresponding to names of
8574         supported implementations of the Partition Communication Subsystem
8575         (PCS) (i.e. the runtime library support modules for the distributed
8576         systems annex).
8577
8578 2004-11-18  Robert Dewar  <dewar@adacore.com>
8579             Ed Schonberg  <schonberg@adacore.com>
8580
8581         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
8582         (Has_Rep_Pragma): New function
8583         (Has_Attribute_Definition_Clause): New function
8584         (Record_Rep_Pragma): Moved here from sem_ch13.adb
8585         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
8586
8587         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
8588
8589         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
8590         (Expand_Pragma_Psect_Object): New procedure
8591         These procedures contain the revised and cleaned up processing for
8592         these two pragmas. This processing was formerly in Sem_Prag, but
8593         is more appropriately moved here. The cleanup involves making sure
8594         that the pragmas are properly attached to the tree, and that no
8595         nodes are improperly shared.
8596
8597         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
8598         pragmas to Exp_Prag, which is more appropriate.
8599         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
8600         check for duplicates Remove use of Is_Psected flag, no longer needed.
8601         Use new Make_String_Literal function with string.
8602
8603         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
8604         that are functions return universal values, that have to be converted
8605         to the context type.
8606         Use new Make_String_Literal function with string.
8607         (Get_Stream_Convert_Pragma): New function, replaces the use of
8608         Get_Rep_Pragma, which had to be kludged to work in this case.
8609
8610         * freeze.adb: Use new Has_Rep_Pragma function
8611
8612         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
8613         function with string.
8614         Use new Has_Rep_Pragma function.
8615
8616         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
8617         string argument.
8618
8619 2004-11-18  Robert Dewar  <dewar@adacore.com>
8620
8621         * errout.ads, errout.adb: (First_Sloc): New function
8622
8623         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
8624         check (-gnatyx) instead of being included as a redundant construct
8625         warning.
8626
8627         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
8628         Style_Check_Order_Subprograms.
8629
8630         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
8631         stylesw.adb: Add Style_Check_Xtra_Parens
8632
8633         * usage.adb: Add line for -gnatyx (check extra parens)
8634
8635         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
8636
8637 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
8638             Robert Dewar  <dewar@adacore.com>
8639
8640         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
8641         discriminant of a constrained subtype, analyze the copy of the
8642         corresponding constraint, because in some cases it may be only
8643         partially analyzed.
8644         Removes long-lived ??? comments.
8645
8646         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
8647         handled controlled or secondary-stack expressions within the
8648         iteration_scheme of a loop.
8649
8650         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
8651         bounds that may contain functions calls, to prevent memory leaks when
8652         the bound contains a call to a function that uses the secondary stack.
8653         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
8654         generate temporaries for loop bounds that might contain function calls
8655         that require secondary stack and/or finalization actions.
8656
8657         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
8658         selected component and the selector is overloadable (not just a
8659         function) treat as function call, Analyze_Call will disambiguate if
8660         necessary.
8661         (Analyze_Selected_Component): Do not generate an actual subtype for the
8662         selected component if expansion is disabled. The actual subtype is only
8663         needed for constraint checks.
8664         (Analyze_Allocator): If restriction No_Streams is set, then do
8665         not permit objects to be declared of a stream type, or of a
8666         composite type containing a stream.
8667
8668         * restrict.ads: Remove the a-stream entry from Unit_Array, since
8669         No_Streams no longer prohibits with'ing this package.
8670
8671         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
8672         discriminants, but the parent base has unknown discriminants, there is
8673         no discriminant constraint to inherit. Such a discrepancy can arise
8674         when the actual for a formal type with unknown discriminants is a
8675         similar private type whose full view has discriminants.
8676         (Analyze_Object_Declaration): If restriction No_Streams is set, then
8677         do not permit objects to be declared of a stream type, or of a
8678         composite type containing a stream.
8679
8680 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
8681
8682         * exp_dbug.ads: Update documentation to reflect simpler encoding for
8683         protected operations.
8684
8685         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
8686         generated name, it complicates decoding in gdb and hinders debugging
8687         of protected operations.
8688         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
8689         flag for the protected entry barrier function.
8690         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
8691         flag for the protected entry function.
8692
8693 2004-11-18  Nicolas Setton  <setton@adacore.com>
8694
8695         * expect.c: Define __unix__ when __APPLE__ is defined.
8696
8697         * Makefile.in: Inform the value of the variable GMEM_LIB in the
8698         Darwin-specific section.
8699
8700         * lang-specs.h: Change the placement of the %1 marker.
8701         Works around the fact that gcc adds -fPIC by default under Darwin.
8702
8703 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
8704
8705         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
8706         type of the object with the packed array type, set the Analyzed flag
8707         on the object if it is an entity or simple indexed component, to avoid
8708         spurious type errors.
8709
8710 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
8711
8712         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
8713         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
8714         separate line from the version message.
8715
8716 2004-11-18  Ed Falis  <falis@adacore.com>
8717
8718         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
8719         vthreads.
8720         (init_float): Eliminate initialization of floating point status for
8721         AE653. The instructions have no effect for vThreads.
8722
8723 2004-11-18  Vincent Celier  <celier@adacore.com>
8724
8725         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
8726         gnatbind is invoked with -shared.
8727
8728 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
8729
8730         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
8731         for Detect_Blocking which is redundant with the check done within the
8732         procedure Protected_Single_Entry_Call.
8733         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
8734         Detect_Blocking which is redundant with the check done within the
8735         procedure Protected_Single_Entry_Call.
8736
8737 2004-11-18  Vincent Celier  <celier@adacore.com>
8738
8739         * makegpr.adb (Compile): Put the compiling switches (in package
8740         Compiler and on the command line) immediately after "-c", instead of
8741         at the end of the command line invocation of the compiler, when
8742         compiling a non-Ada file.
8743         (Build_Global_Archive): When there is no need to rebuild the archive,
8744         set Global_Archive_Exists, so that the archive is passed to the linker
8745         if one is needed.
8746
8747 2004-11-18  Robert Dewar  <dewar@adacore.com>
8748             Sergey Rybin  <rybin@adacore.com>
8749
8750         * gnat_ugn.texi:
8751         Remove extra paren check from list of checks for redundant constructs
8752         Add documentation of new -gnatyx style check (check extra parens)
8753         Remove paragraph about gnatelim debug options.
8754
8755         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
8756         objects rather than forbidding dependencies on the package Ada.Streams.
8757
8758         * sinfo.ads: Add ??? note that we should document pragmas passed to
8759         back end.
8760
8761         * g-expect.ads: Fix a few typos in the comments.
8762
8763 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
8764
8765         * misc.c (gnat_handle_option): Use %< and %> for quoting in
8766         warning message.
8767
8768 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8769
8770         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
8771
8772 2004-11-07  Andreas Schwab  <schwab@suse.de>
8773
8774         * Makefile.in (install-gnatlib): Remove spurious hyphen.
8775
8776 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
8777
8778         PR ada/18228
8779         * Makefile.in (darwin): Set soext to .dylib.
8780
8781 2004-10-26  Vincent Celier  <celier@gnat.com>
8782             Thomas Quinot   <quinot@act-europe.fr>
8783
8784         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
8785         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
8786         there is no use of GNAT.Sockets.Constants.
8787         Remove remaining pragma Import for C_Write
8788         Remove C_Read and C_Write from internal implementation unit
8789         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
8790         the read and write functions from the system runtime library is fine
8791         on UNIX but won't work under Windows).
8792
8793         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
8794         (Check_Selector): Use C_Recv instead of C_Read.
8795         Selectors are the GNAT.Sockets abstraction to perform a select()
8796         call on a set of descriptors. To allow abortion of an ongoing
8797         select operation, some data is written to a dedicated socket that
8798         is always monitored.
8799         Under Windows, the write and read library functions cannot operate
8800         on sockets, so we need to use send and recv instead, which is portable
8801         across all supported platforms.
8802
8803         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
8804         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
8805         (using the read and write functions from the system runtime library is
8806         fine on UNIX but won't work under Windows).
8807
8808 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
8809
8810         * mlib-tgt-darwin.adb: New file.
8811
8812         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
8813         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
8814         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8815         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
8816         subprogram body.
8817
8818         * Makefile.in: Add support for building shared libraries under Darwin.
8819         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
8820         the low level EH init subprogram to be called from __gnat_initialize.
8821
8822         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
8823         indicates which options to pass to the archive indexer.
8824
8825         * mlib-utl.adb: Add support for calling ranlib with additional
8826         options. This is needed for instance under Mac OS X.
8827         (Ranlib_Options): New global variable, used to store the potential
8828         options to pass to ranlib.
8829         (Ar): Use Ranlib_Options when spawning ranlib.
8830         (Initialize): Set the value of ranlib option.
8831
8832 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
8833
8834         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
8835         instead of 8K, to reflect the real potential needs for stack-checking
8836         in the ZCX case.
8837
8838 2004-10-26  Pascal Obry  <obry@gnat.com>
8839
8840         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
8841
8842         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
8843         Windows only the initial thread stack size can be set so it is good to
8844         start we a low stack size.
8845         The OS will adjust the size as needed.
8846
8847 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
8848             Nicolas Setton  <setton@act-europe.fr>
8849
8850         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
8851         "__unix__" instead of "unix".
8852         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
8853         sections were just mistakenly ignored. The former is
8854         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
8855         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
8856         of hpux. This prevents an unwanted definition of the symbol
8857         convert_addresses in adaint.o.
8858
8859 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
8860
8861         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
8862         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
8863
8864 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
8865
8866         * a-filico.ads, a-filico.adb: fix incorrect header.
8867
8868 2004-10-26  Javier Miranda  <miranda@gnat.com>
8869
8870         * a-ststio.ads: Fix typo in identifier
8871
8872 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
8873
8874         * sem_ch4.adb: Minor reformatting.
8875
8876 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
8877
8878         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
8879         enabled, check the result of unary and binary operations when the
8880         expression is the right-hand side of an assignment.
8881
8882 2004-10-26  Vincent Celier  <celier@gnat.com>
8883
8884         * clean.adb (Delete): Do not output warnings when in quiet output and
8885         not in verbose mode.
8886         (Force_Deletions): New Boolean flag, defaulted to False
8887         (Delete): Only delete a file if it is writable, and when
8888         Force_Deletions is True.
8889         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
8890         (Usage): Line for new switch -f
8891         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
8892         own.
8893
8894 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
8895
8896         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
8897         JM type only if its size matches that of the wrapper.  When a size is
8898         prescribed and the field is not aliased, remove the wrapper of a JM
8899         type only if the size is not greater than that of the packed array.
8900         (gnat_to_gnu_entity): Change the extension of packed array wrappers
8901         from LJM to JM.
8902
8903 2004-10-26  Geert Bosch  <bosch@gnat.com>
8904
8905         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
8906         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
8907         (Pred): Implement in terms of Succ.
8908
8909 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
8910
8911         * exp_aggr.adb (Safe_Component): An aggregate component that is an
8912         unchecked conversion is safe for in-place use if the expression of the
8913         conversion is safe.
8914         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
8915         be expandable in place even if the aggregate does not come from source.
8916         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
8917         designated object of an allocator in place, rather than building it
8918         first on the stack. The previous scheme forces a full copy of the array,
8919         and may be altogether unsusable if the size of the array is too large
8920         for stack allocation.
8921
8922 2004-10-26  Robert Dewar  <dewar@gnat.com>
8923
8924         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
8925         compares if the component is atomic.
8926
8927         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
8928         array assignment if the component type is atomic.
8929
8930 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
8931             Eric Botcazou  <ebotcazou@act-europe.fr>
8932
8933         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
8934         is aliased and is a by_reference type, do not pass by copy.
8935         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
8936         detect whether the call is in the right side of an assignment or
8937         the expression of an object declaration.  Recurse on component
8938         association within aggregates.
8939         Call it in the condition that determines whether the temporary is
8940         necessary for correct stack-checking.
8941
8942 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
8943
8944         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
8945         RACW_Type, used in the PolyORB version.
8946         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
8947         version and the GARLIC version.
8948
8949         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
8950         Rename RCI_Info to RCI_Locator for better consistency between the
8951         GARLIC and PolyORB versions of the distributed systems annex.
8952         (DSA_Implementation_Name): This enumeration lists the possible
8953         implementations of the Partition Communication Subsystem for the
8954         Distributed Systems Annex (DSA). The three available implementations
8955         are the dummy stub implementation (No_DSA), and two versions based on
8956         two different distribution runtime libraries: GARLIC and PolyORB. Both
8957         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
8958         technology.
8959         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
8960         that organization.
8961
8962         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
8963         between the GARLIC and PolyORB versions of the distributed systems
8964         annex.
8965         Remove RE_Unbounded_Reclaim_Pool since it is unused.
8966
8967 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
8968
8969         * gnat1drv.adb: Suppress calling the back end when
8970         Frontend_Layout_On_Target is true.
8971
8972 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
8973
8974         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
8975         Set_Read_Only): New subprograms.
8976         These new routines allow the user to set or unset the Owner execute
8977         and Owner write permission flags on a file.
8978
8979         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
8980         GNAT.OS_Lib.Set_Executable instead of rolling our own.
8981
8982 2004-10-26  Matthew Gingell  <gingell@gnat.com>
8983
8984         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
8985
8986 2004-10-26  Pascal Obry  <obry@gnat.com>
8987
8988         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
8989         memory before the faulting page we properly test the process read
8990         access for this address using appropriate Win32 routine.
8991         (HPUX sections): guard with "__hpux__" instead of "hpux".
8992
8993 2004-10-26  Robert Dewar  <dewar@gnat.com>
8994
8995         * lib-xref.adb (Generate_Reference): Don't complain about reference to
8996         entry parameter if pragma Unreferenced set, since we do not properly
8997         handle the case of multiple parameters.
8998
8999 2004-10-26  Vincent Celier  <celier@gnat.com>
9000
9001         * prj-env.adb: (Contains_ALI_Files): New Boolean function
9002         (Ada_Objects_Path.Add): For a library project, add to the object path
9003         the library directory only if there is no object directory or if the
9004         library directory contains ALI files.
9005         (Set_Ada_Paths.Add.Recursive_Add): Ditto
9006
9007 2004-10-26  Vincent Celier  <celier@gnat.com>
9008
9009         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
9010         extension of library projects.
9011
9012         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
9013         path defaults to ".:<prefix>/lib/gnat".
9014         (Parse): For an extending all project, allow direct import of a project
9015         that is virtually extended.
9016
9017         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
9018         the specified name is directly imported, return its ID. Otherwise, if
9019         an extension of this project is imported, return the ID of the
9020         extension.
9021
9022 2004-10-26  Robert Dewar  <dewar@gnat.com>
9023
9024         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
9025         (Sub3): New procedure, used by Scaled_Divide
9026         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
9027         correct more than one instance of failure to propagate carries
9028         correctly.
9029         (Double_Divide): Handle overflow case of largest negative number
9030         divided by minus one.
9031
9032         * s-arit64.ads (Double_Divide): Document that overflow can occur in
9033         the case of a quotient value out of range.
9034         Fix comments.
9035
9036 2004-10-26  Robert Dewar  <dewar@gnat.com>
9037
9038         * s-bitops.adb (Bit_Eq): Remove redundant check.
9039
9040         * s-bitops.ads: Minor comment updates
9041         Change some occurrences of Address to System.Address
9042
9043         * s-carsi8.ads: Fix minor cut-and-paste error in comments
9044
9045 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
9046
9047         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
9048         accessibility check to prefix that is a protected operation.
9049
9050 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
9051
9052         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
9053         empty, post message on stub.
9054
9055 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
9056             Javier Miranda  <miranda@gnat.com>
9057
9058         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
9059         current instance appears within a unit that is directly in the context
9060         of the main unit.
9061         Used to determine whether the body of the instance should be analyzed
9062         immediately after its spec, to make its subprogram bodies available
9063         for front-end inlining.
9064         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
9065         constraint is not allowed on the component type (AARM 12.5.3(3))
9066
9067 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
9068
9069         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
9070         'Storage_Pool): enhance, document & limit detection of non-sharable
9071         internal pools.
9072
9073         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
9074
9075         * s-pooglo.ads: Add more documentation now that this pool is properly
9076         documented.
9077
9078 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
9079
9080         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
9081         or protected type with discriminants, do not constrain the
9082         corresponding record type if the subtype declaration has no
9083         discriminant constraints. This can be the case in source code, or in
9084         the subtype declaration created to rename an actual type within an
9085         instantiation.
9086
9087 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
9088
9089         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
9090         different kind of stub (possibly wrong name for file), do not check
9091         for conformance.
9092         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
9093         includes call to some function that returns an unconstrained type, do
9094         not inline.
9095
9096 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
9097
9098         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
9099         appear in the code for the main unit. Dependencies among units in the
9100         context of the main unit are established when those other units are
9101         compiled. Otherwise spurious elaboration constraints can generate
9102         incorrect elaboration circularities.
9103
9104 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
9105             Ed Schonberg   <schonberg@gnat.com>
9106
9107         * sem_util.adb (Is_Aliased_View): Defend against the case where this
9108         subprogram is called with a parameter that is not an object name. This
9109         situation arises for some cases of illegal code, which is diagnosed
9110         later, and in this case it is wrong to call Is_Aliased, as that might
9111         cause a compiler crash.
9112         (Explain_Limited_Type): Refine previous fix to include
9113         inherited components of derived types, to provide complete information.
9114
9115         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
9116         is the prival for a protected object.
9117         It is necessary to mark this entity as a variable, in addition to
9118         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
9119         modified to avoid checking the Aliased flag on entities that are not
9120         objects. (Checking that flag for non-objects is erroneous and could
9121         lead to a compiler crash).
9122
9123 2004-10-26  Robert Dewar  <dewar@gnat.com>
9124
9125         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
9126         X_Frac = 0.5, then we know that the number X must be positive.
9127         (Succ): Remove the same redundant test, and also fix the primary test
9128         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
9129         Minor reformatting
9130         (Decompose): Add fuller comments to spec
9131
9132 2004-10-26  Pascal Obry  <obry@gnat.com>
9133
9134         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
9135         validity (process must have read access). Set to 0 in all other cases.
9136         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
9137         violation on Win32.
9138         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
9139         segmentation violation.
9140
9141 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
9142
9143         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
9144         whose type is a constructed subtype of an aliased object with an
9145         unconstrained nominal subtype, convert the actual to the constructed
9146         subtype before taking its address.
9147
9148 2004-10-26  Vincent Celier  <celier@gnat.com>
9149
9150         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
9151         (Is_Path_Name_Case_Sensitive): New function
9152
9153         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
9154         (Base_Name, Simple_Name, Current_Directory, Compose,
9155         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
9156         the result.
9157
9158 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
9159             Vasiliy Fofanov  <fofanov@act-europe.fr>
9160             Vincent Celier   <celier@gnat.com>
9161
9162         * gnat_ugn.texi: Generalize "finding memory problems" section into a
9163         "memory management issues" section and document some of the useful
9164         memory pools provided as part of the GNAT library.
9165         Remove "virtual" from declaration of A::method2 in
9166         the simple example of Ada/C++ mixed system.
9167         Library Projects may be virtually extended: their virtual extensions
9168         are not Library Projects.
9169         Added section on extending project hierarchies.
9170
9171 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
9172
9173         * adaint.c (__gnat_get_libraries_from_registry): Cast value
9174         to LPBYTE.
9175         (__gnat_portable_spawn): Remove const.
9176
9177         * mingw32.h (MAXPATHLEN): Check for previous definition.
9178
9179 2004-10-17  Matthias Klose  <doko@debian.org>
9180
9181         * gnatvsn.ads: Set gnat library version to 4.0.
9182
9183 2004-10-05  Vincent Celier  <celier@gnat.com>
9184
9185         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
9186
9187 2004-10-04  Laurent GUERBY <laurent@guerby.net>
9188
9189         PR ada/15156
9190         * Makefile.in: Define and use RANLIB_FLAGS.
9191
9192 2004-10-04  Pascal Obry  <obry@gnat.com>
9193
9194         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
9195         other x86 platforms).
9196
9197 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
9198
9199         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
9200         in general and triggers stack alignment adjustment for thread entry
9201         points on targets where this is necessary.
9202
9203 2004-10-04  Bernard Banner  <banner@gnat.com>
9204
9205         PR ada/13897
9206
9207         * Makefile.in: Add section for powerpc linux
9208         Add variant i-vxwork-x86.ads
9209
9210         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
9211
9212 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
9213
9214         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
9215         table registration calls when need be. Ensures no reference to the crt
9216         ctors symbol are issued in the SJLJ case, which avoids possible
9217         undefined symbol errors in the case of modules to be statically linked
9218         with the kernel.
9219
9220 2004-10-04  Javier Miranda  <miranda@gnat.com>
9221
9222         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
9223         in-line the code corresponding to subprogram Analyze_Actuals. In
9224         addition, analyze the actuals only in case of subprogram call.
9225
9226 2004-10-04  Ed Falis  <falis@gnat.com>
9227
9228         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
9229
9230 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
9231
9232         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
9233         in the documentation.
9234
9235 2004-10-04  Robert Dewar  <dewar@gnat.com>
9236
9237         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
9238         IF and CASE.
9239         (Analyze_Block_Statement): Add circuitry to detect following dead code
9240         (Check_Unreachable_Code): Handle case of block exit
9241
9242 2004-10-04  Robert Dewar  <dewar@gnat.com>
9243
9244         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
9245         (XMatchD): Avoid warning for Logic_Error call
9246
9247 2004-10-04  Robert Dewar  <dewar@gnat.com>
9248
9249         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
9250         consider expressions buried within a procedure actual to be an actual.
9251         This caused some blowups with uses of packed slices within a procedure
9252         actual.
9253
9254 2004-10-04  Robert Dewar  <dewar@gnat.com>
9255
9256         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
9257         longer need to be initialized to zero.
9258         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
9259         initialized to zero.
9260
9261         * checks.adb (Expr_Known_Valid): Packed arrays are now always
9262         considered valid, even if the representation is modular. That's correct
9263         now that we no longer initialize packed modular arrays to zero.
9264
9265         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
9266         suffixes. These are now documented as the only cases in which the
9267         debugger ignores outer records.
9268         Previously, the spec allowed arbitrary suffixes for this purpose.
9269         Change name of LJM to JM for packed array pad records
9270         Create separate section on packed array handling, and add a whole new
9271         set of comments to this section describing the situation with packed
9272         modular types and justification requirements depending on endianness.
9273
9274 2004-10-04  Robert Dewar  <dewar@gnat.com>
9275
9276         * a-except.adb: Add a comment for last change
9277
9278         * einfo.ads: Minor spelling correction in comment
9279
9280         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
9281
9282         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
9283         messages.
9284
9285         * sem_util.ads: Minor comment update
9286
9287 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
9288
9289         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
9290         Inline_Always when in Configurable_Run_Time mode.
9291
9292         * sem_prag.adb (Process_Convention): If entity is an inherited
9293         subprogram, apply convention to parent subprogram if in same scope.
9294         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
9295         when in Configurable_Run_Time mode.
9296
9297 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
9298
9299         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
9300         class_wide type after component list has been inherited.
9301
9302 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
9303
9304         * sem_ch12.adb (Check_Generic_Actuals): New predicate
9305         Denotes_Previous_Actual, to handle properly the case of a private
9306         actual that is also the component type of a subsequent array actual.
9307         The visibility status of the first actual is not affected when the
9308         second is installed.
9309         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
9310         make fully recursive the treatment of formals of packages declared
9311         with a box.
9312         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
9313         the above on exit from an instantiation.
9314         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
9315         current instantiation which is now complete.
9316         (Analyze_Package_Instantiation): No instantiated body is needed if the
9317         main unit is generic. Efficient, and avoid anomalies when a instance
9318         appears in a package accessed through rtsfind.
9319
9320 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
9321
9322         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
9323         do not generate a declaration for a temporary if the call is part of a
9324         library-level instantiation.
9325
9326 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
9327
9328         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
9329         searching for a limited component to flag.
9330
9331         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
9332         expansion of Input, to account for the fact that the implicit call
9333         generated by the attribute reference must freeze the user-defined
9334         stream subprogram. This is only relevant to 'Input, because it can
9335         appear in an object declaration, prior to the body of the subprogram.
9336
9337         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
9338         expansion can proceed and further errors uncovered.
9339         (Minor clean up): Fix cases of using | instead of \ for continuation
9340         messages.
9341
9342 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9343
9344         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
9345
9346         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
9347         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
9348         Use gcc_assert and gcc_unreachable.
9349
9350         * decl.c (gnat_to_gnu_entity, case object): Check and process a
9351         specified alignment before validating size.
9352         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
9353         stripped-down declaration for the type of the inner field when making
9354         a JM type.
9355
9356         * utils.c (finish_record_type): Do not compute the size in units
9357         incrementally. Instead compute it once for the rep clause case.
9358         Use gcc_assert and gcc_unreachable.
9359
9360 2004-10-04  Vincent Celier  <celier@gnat.com>
9361
9362         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
9363         in file name.
9364         (Is_Valid_Path_Name): Take '/' as a directory separator.
9365
9366 2004-10-04  Vincent Celier  <celier@gnat.com>
9367
9368         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
9369         (Extended_Project) only if Extended_Project is defined, to avoid
9370         assertion error.
9371         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
9372         resolved path.
9373         (Parse_Single_Project): Ditto.
9374
9375         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
9376         Add_To_Project_Path for virtual projects.
9377
9378 2004-10-04  Vincent Celier  <celier@gnat.com>
9379
9380         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
9381         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
9382         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
9383         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
9384         parameter Options_2.
9385
9386         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
9387         Build_Dynamic_Library with an empty Options_2.
9388
9389         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
9390         default anymore.
9391
9392         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
9393         directory separator, if any.
9394         (Gprmake): Do not allow mains on the command line for library projects.
9395         Do not attempt to link when the project is a library project.
9396         (Library_Opts): New table to store Library_Options.
9397         (Build_Library): If Library_Options is specified, pass these options
9398         when building a shared library.
9399
9400 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
9401
9402         * s-tposen.adb (Service_Entry): The object must be always unlocked at
9403         the end of this procedure now that the unlock operation was inserted
9404         by the expander.
9405
9406 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
9407
9408         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
9409         corresponding to the Preallocated_Stacks flags in System.
9410         (Get_Target_Parameters): Including the processing for
9411         Preallocated_Stacks.
9412
9413         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
9414         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
9415         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
9416         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
9417         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
9418         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
9419         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
9420         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
9421         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
9422         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
9423         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
9424         used to signal whether the compiler creates the required stacks and
9425         descriptors for the different tasks (when True) or it is done by the
9426         underlying operating system at run time (when False).
9427         It is initially set to False in all targets.
9428
9429         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
9430         if it is supported by the target.
9431         (Make_Task_Create_Call): Pass the stack address if it has been
9432         previously created. Otherwise pass a Null_Address.
9433
9434         * snames.adb: Add _stack.
9435
9436         * snames.ads: Add Name_uStack. Required to allow the expander to
9437         statically allocated task stacks.
9438
9439         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
9440         Stack_Address argument.
9441         Check that its value is equal to Null_Address because this target does
9442         not support the static stack allocation.
9443
9444 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
9445
9446         * usage.adb: Change "pragma inline" to "pragma Inline" in information
9447         and error messages
9448
9449 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
9450
9451         * exp_dist.adb: Split declaration of asynchronous flag out of
9452         Add_RACW_Read_Attribute.
9453         Minor reformatting for better alignment with PolyORB version.
9454         Store the entity for the asynchronous flag of an RACW, rather than the
9455         expression, in the asynchronous flags table. This will allow this flag
9456         to be used in other subprograms beside Add_RACW_Read_Attribute.
9457
9458 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
9459
9460         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
9461         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
9462         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
9463         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
9464         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
9465         sockets constant MSG_NOSIGNAL (Linux-specific).
9466         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
9467         all Send operations.
9468         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
9469         from trigerring SIGPIPE.
9470         Rename components to avoid clash with Ada 2005 possible reserved
9471         word 'interface'.
9472         (Check_Selector): When the select system call returns with an error
9473         condition, propagate Socket_Error to the caller.
9474
9475 2004-10-01  Jan Hubicka  <jh@suse.cz>
9476
9477         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
9478
9479 2004-09-23  Robert Dewar  <dewar@gnat.com>
9480
9481         PR ada/17540
9482
9483         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
9484         instead do this at freeze time (we won't do it if there is an address
9485         clause).
9486         Change "pragma inline" to "pragma Inline" in information and error
9487         messages.
9488         Minor reformatting.
9489
9490         * freeze.adb (Check_Address_Clause): Remove previous change, not the
9491         right way of doing things after all.
9492         (Freeze_Entity): For object, set Is_Public for imported entities
9493         unless there is an address clause present.
9494
9495 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
9496
9497         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
9498         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
9499         ensures proper handling of types with rep clauses, which might have
9500         their TYPE_SIZE set already.
9501
9502 2004-09-21  Robert Dewar  <dewar@gnat.com>
9503
9504         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
9505         packed array types in both little- and big-endian cases. This change
9506         ensures that we no longer count on the unused bits being initialized
9507         for such types (and in particular ensures that equality testing will
9508         only read the relevant bits).
9509         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
9510         These changes mean that we no longer need to initialize small packed
9511         arrays.
9512         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
9513         optimization to an LJM field as to its parent field.
9514
9515         * ada-tree.h, trans.c, utils.c, utils2.c:
9516         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
9517
9518 2004-09-20  Jan Hubicka  <jh@suse.cz>
9519
9520         * utils.c (gnat_finalize): Remove.
9521         (end_subprog_body): Directly call cgraph_finalize_function;
9522         do not lower the nested functions.
9523
9524 2004-09-20  Robert Dewar  <dewar@gnat.com>
9525
9526         PR ada/17540
9527
9528         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
9529         if an address clause is present, since that means that the Import
9530         should be ignored.
9531
9532 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
9533
9534         * 5tsystem.ads: Removed, no longer used.
9535
9536 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
9537             Zack Weinberg  <zack@codesourcery.com>
9538
9539         * ada-tree.def: Use tree_code_class enumeration constants
9540         instead of code letters.
9541         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
9542         Update for new tree-class enumeration constants.
9543
9544 2004-09-17  Vincent Celier  <celier@gnat.com>
9545
9546         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
9547         capabilities of the general project manager.
9548
9549 2004-09-09  Vincent Celier  <celier@gnat.com>
9550
9551         * a-direct.ads: Add pragma Ada_05
9552         (Directory_Entry_Type): Give default value to component Kind to avoid
9553         not initialized warnings.
9554
9555         * a-direct.adb (Current_Directory): Remove directory separator at the
9556         end.
9557         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
9558         an existing directory.
9559         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
9560         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
9561         Convert the result to File_Size.
9562
9563         * prj.ads: (Project_Error): New exception
9564
9565         * prj-attr.adb: Except in procedure Initialize, Fail comes from
9566         Prj.Com, not from Osint.
9567         (Attrs, Package_Attributes): Tables moved to private part of spec
9568         (Add_Attribute, Add_Unknown_Package): Moved to new child package
9569         Prj.Attr.PM.
9570         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
9571         Prj.Project_Error after call to Fail.
9572         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
9573         Fail. Check that package name is not already in use.
9574
9575         * prj-attr.ads: Comment updates to indicate that all subprograms may be
9576         used by tools, not only by the project manager, and to indicate that
9577         exception Prj.Prj_Error may be raised in case of problem.
9578         (Add_Unknown_Package, Add_Attribute): Moved to new child package
9579         Prj.Attr.PM.
9580         (Attrs, Package_Attributes): Table instantiations moved from the body to
9581         the private part to be accessible from Prj.Attr.PM body.
9582
9583         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
9584         from new package Prj.Attr.PM.
9585         (Parse_Attribute_Declaration): Call Add_Attribute from new package
9586         Prj.Attr.PM.
9587
9588         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
9589
9590         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
9591         instead of Elaboration_Checks).
9592
9593         * a-calend.adb: Minor reformatting
9594
9595 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9596
9597         * gigi.h (maybe_pad_type): New declaration.
9598         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
9599
9600         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
9601
9602         * cuintp.c: Convert to use buildN.
9603
9604         * decl.c (maybe_pad_type): No longer static.
9605         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
9606         target pointer.
9607         Convert to use buildN.
9608
9609         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
9610         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
9611         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
9612         RHS.
9613         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
9614         (gnat_gimplify_expr, case ADDR_EXPR): New case.
9615         Convert to use buildN.
9616
9617         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
9618         TREE_READONLY for const.
9619         Convert to use buildN.
9620
9621         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
9622         (create_var_decl): Refine when TREE_STATIC is set.
9623         Convert to use buildN.
9624
9625 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
9626
9627         * gnat_ugn.texi: Delete text relating to checking of ali and object
9628         consistency.
9629
9630         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
9631         routines.
9632
9633 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
9634
9635         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
9636         pragmas recognized by GNAT.
9637
9638         * gnat_rm.texi: Document pragma Detect_Blocking.
9639
9640         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
9641         raise Program_Error if called from a protected operation.
9642
9643         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
9644         the protected action nesting level.
9645         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
9646         protected action nesting level.
9647         (Unlock): When pragma Detect_Blocking is active decrease the protected
9648         action nesting level.
9649
9650         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
9651         Protected_Action_Nesting.
9652
9653         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
9654         Common_ATCB record. It contains the dynamic level of protected action
9655         nesting for each task. It is needed for checking whether potentially
9656         blocking operations are called from protected operations.
9657         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
9658         Detect_Blocking is active or not in the partition.
9659
9660         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
9661         raise Program_Error if called from a protected operation.
9662         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
9663         Program_Error if called from a protected operation.
9664         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
9665         Program_Error if called from a protected operation.
9666
9667         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
9668         raise Program_Error if called from a protected operation.
9669
9670         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
9671         raise Program_Error if called from a protected operation, and increase
9672         the protected action nesting level.
9673         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
9674         Program_Error if called from a protected operation, and increase the
9675         protected action nesting level.
9676         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
9677         protected action nesting level.
9678
9679         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
9680         raise Program_Error if called from a protected operation, and increase
9681         the protected action nesting level.
9682         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
9683         Program_Error if called from a protected operation, and increase the
9684         protected action nesting level.
9685         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
9686         raise Program_Error if called from a protected operation.
9687         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
9688         active, raise Program_Error if called from a protected operation.
9689         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
9690         protected action nesting level.
9691
9692         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
9693         insertion of the statement raising Program_Error. The run time
9694         contains the required machinery for handling that.
9695
9696         * sem_util.ads: Change comment associated to procedure
9697         Check_Potentially_Blocking_Operation.
9698         This procedure does not insert a call for raising the exception because
9699         that is currently done by the run time.
9700
9701         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
9702
9703         * init.c: Add the global variable __gl_detect_blocking that indicates
9704         whether pragma Detect_Blocking is active (1) or not (0). Needed for
9705         making the pragma available at run time.
9706         (__gnat_set_globals): Pass and update the detect_blocking parameter.
9707
9708         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
9709         pragma Detect_Blocking is active.
9710
9711         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
9712
9713         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
9714         DB is found in the ali file. Any unit compiled with pragma
9715         Detect_Blocking active forces its effect in the whole partition.
9716
9717         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
9718         Detect_Blocking is active and delay is called from a protected
9719         operation.
9720
9721         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
9722         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
9723         Detect_Blocking is active (0 otherwise).
9724         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
9725         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
9726         otherwise).
9727
9728 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
9729
9730         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
9731         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
9732         package.
9733
9734         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
9735         (Register_Receiving_Stub): Add Subp_Info formal parameter.
9736         Update API in placeholder implemetation of s-parint to reflect changes
9737         in distribution runtime library.
9738
9739         * sem_ch3.adb (Expand_Derived_Record): Rename to
9740         Expand_Record_Extension.
9741
9742         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
9743         primitive operations of potentially distributed object types that have
9744         non-controlling anonymous access formals.
9745
9746         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
9747         subprogram.
9748         New implementation of expansion for remote access-to-subprogram types,
9749         based on the RACW infrastructure.
9750         This version of sem_dist is compatible with PolyORB/DSA as well as
9751         GLADE.
9752
9753         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
9754         Asynchrronous that applies to a remote access-to-subprogram type, mark
9755         the underlying RACW type as asynchronous.
9756
9757         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
9758          __gnat_using_gnu_linker to 1.
9759
9760         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
9761         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
9762         GNAT.Perfect_Hash_Generators, and remove the empty
9763         GNAT.Perfect_Hash package.
9764
9765         * atree.adb: Minor reformatting
9766
9767         * exp_ch3.adb (Expand_Derived_Record): Rename to
9768         Expand_Record_Extension.
9769         (Build_Record_Init_Proc.Build_Assignment): The default expression in
9770         a component declaration must remain attached at that point in the
9771         tree so New_Copy_Tree copies it if the enclosing record type is derived.
9772         It is therefore necessary to take a copy of the expression when building
9773         the corresponding assignment statement in the init proc.
9774         As a side effect, in the case of a derived record type, we now see the
9775         original expression, without any rewriting that could have occurred
9776         during expansion of the ancestor type's init proc, and we do not need
9777         to go back to Original_Node.
9778
9779         * exp_ch3.ads (Expand_Derived_Record): Rename to
9780         Expand_Record_Extension.
9781
9782         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
9783         Returns the RACW type used to implement a remote access-to-subprogram
9784         type.
9785         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
9786         New subprograms. Used to create a proxy tagged object for a remote
9787         subprogram. The proxy object is used as the designated object
9788         for RAS values on the same partition (unless All_Calls_Remote applies).
9789         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
9790         System.Partition_Interface.Get_Unique_Remote_Pointer.
9791         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
9792         Renamed from Add_RAS_*_Attribute.
9793         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
9794         subprograms.
9795         New implementation of expansion for remote access-to-subprogram types,
9796         based on the RACW infrastructure.
9797
9798         * exp_dist.ads (Copy_Specification): Update comment to note that this
9799         function can copy the specification from either a subprogram
9800         specification or an access-to-subprogram type definition.
9801
9802 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
9803
9804         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
9805         in an instance, between an explicit subprogram an one inherited from a
9806         type derived from an actual.
9807
9808         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
9809         add a polling call if the subprogram is to be inlined by the back-end,
9810         to avoid repeated calls with multiple inlinings.
9811
9812         * checks.adb (Apply_Alignment_Check): If the expression in the address
9813         clause is a call whose name is not a static entity (e.g. a dispatching
9814         call), treat as dynamic.
9815
9816 2004-09-09  Robert Dewar  <dewar@gnat.com>
9817
9818         * g-trasym.ads: Minor reformatting
9819
9820         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
9821         packed arrays, since unused bits are expected to be zero for a
9822         comparison.
9823
9824 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
9825
9826         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
9827         comment.
9828
9829 2004-09-09  Pascal Obry  <obry@gnat.com>
9830
9831         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
9832         enable map file generation. Add the right option to generate the map
9833         file if Map_File is set to True.
9834
9835         * gnatdll.adb (Gen_Map_File): New variable.
9836         (Syntax): Add info about new -m (Map_File) option.
9837         (Parse_Command_Line): Add support for -m option.
9838         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
9839         Minor reformatting.
9840
9841 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
9842
9843         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
9844         new gnatdist implementation.
9845         Define a subpackage isolating the output routines specific to this
9846         verbose mode.
9847
9848 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
9849
9850         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
9851
9852         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
9853
9854 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
9855
9856         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
9857         internal unit.
9858
9859         * opt.ads: Add Ada_Version_Runtime constant used to decide which
9860         version of the language is used to compile the run time.
9861
9862 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
9863
9864         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
9865         of variable length temporaries for function return now that the
9866         back-end and gigi support it.
9867
9868 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9869
9870         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
9871
9872         * trans.c (struct stmt_group): Delete field GLOBAL.
9873         (gnat_init_stmt_group): Do not initialize it.
9874         (call_to_gnu): Use save_expr, not protect_multiple_eval.
9875         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
9876         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
9877         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
9878         (start_stmt_group): Likewise.
9879         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
9880
9881         * utils2.c (ggc.h): Include.
9882         (build_call_raise): Call build_int_cst, not build_int_2.
9883
9884         * utils.c (gnat_init_decl_processing): Fix arg to
9885         build_common_tree_nodes.
9886         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
9887         (gnat_define_builtin): Set built_in_decls.
9888         (init_gigi_decls): Call build_int_cst, not build_int_2.
9889
9890         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
9891         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
9892         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
9893         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
9894         SET_TYPE_MODULE): Use them.
9895         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
9896         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
9897         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
9898         SET_TYPE_ADA_SIZE): Likewise.
9899         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
9900         (DECL_CONST_CORRESPONDING_VAR,
9901         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
9902         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
9903         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
9904         (TYPE_RM_SIZE_NUM): New macro.
9905         (TYPE_RM_SIZE): Modified to use above.
9906
9907         * cuintp.c: (build_cst_from_int): New function.
9908         (UI_To_gnu): Use it.
9909
9910         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
9911         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
9912         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
9913         MIN_EXPR for the size, copy it into new.
9914
9915 2004-09-01  Robert Dewar  <dewar@gnat.com>
9916
9917         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
9918         packed indexed component where array is an IN OUT formal. This
9919         generated garbage code previously.
9920
9921         * gnat_ugn.texi: Document -fverbose-asm
9922
9923         * gnat-style.texi: Minor updates (note that boolean constants and
9924         variables are joined with AND/OR rather than short circuit forms).
9925
9926 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
9927
9928         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
9929         it is an upward conversion of an untagged type with no representation
9930         change.
9931
9932 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
9933
9934         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
9935         System.Partition_Interface.
9936
9937         * checks.adb (Apply_Access_Checks): Do not generate checks when
9938         expander is not active (but check for unset reference to prefix of
9939         dereference).
9940
9941         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
9942         pragma Debug as an if statement with a constant condition, for
9943         consistent treatment of entity references contained within the
9944         enclosed procedure call.
9945
9946 2004-09-01  Vincent Celier  <celier@gnat.com>
9947
9948         * bindgen.adb: (Set_EA_Last): New procedure
9949         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
9950         Set_EA_Last.
9951         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
9952         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
9953         linked without errors.
9954         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
9955         ST and EA.
9956         (Gen_Exception_Table_C): Correct same bugs
9957
9958         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
9959
9960         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
9961         on Windows, make sure that the drive letter is in upper case.
9962
9963         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
9964         Windows, when the drive letter is added and Case_Sensitive is True, the
9965         drive letter is forced to upper case.
9966
9967         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
9968         to Options_2 for the call to MLib.Utl.Gcc.
9969
9970         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
9971         directory separator when defining BASE_DIR.
9972
9973 2004-09-01  Pascal Obry  <obry@gnat.com>
9974
9975         * gprcmd.adb (Extend): Do not output trailing directory separator. This
9976         is not needed and it confuses Windows GNU/make which does not report
9977         directory terminated by a slash as a directory.
9978         (gprcmd): Idem for "pwd" internal command.
9979
9980         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
9981         target names rewrite to fix regressions with recent version of
9982         GNU/make. Starting with GNU/make 3.80 the pipe character was not
9983         handled properly anymore.
9984
9985 2004-09-01  Andreas Schwab  <schwab@suse.de>
9986
9987         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
9988         * raise.c [!IN_RTS]: Undef abort.
9989
9990 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
9991
9992         * utils2.c (build_allocator): Use ssize_int.
9993
9994         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
9995
9996 2004-08-27  Andreas Schwab  <schwab@suse.de>
9997
9998         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
9999
10000 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
10001             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10002
10003         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
10004
10005 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
10006
10007         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
10008         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
10009         * utils.c (init_gigi_decls): Likewise.
10010         * utils2.c (build_call_raise, build_allocator): Likewise.
10011
10012 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
10013
10014         * utils.c (gnat_init_decl_processing): Adjust
10015         build_common_tree_nodes call.
10016
10017 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
10018
10019         * utils2.c (build_allocator): Use build_int_cst for negative
10020         size types.
10021
10022 2004-08-18  Richard Henderson  <rth@redhat.com>
10023
10024         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
10025
10026 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
10027
10028         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
10029         call.s
10030         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
10031         (gnat_to_gnu): Likewise.
10032
10033 2004-08-16  Pascal Obry  <obry@gnat.com>
10034
10035         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
10036         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
10037         option and not mdll anymore. Update comment.
10038
10039 2004-08-16  Pascal Obry  <obry@gnat.com>
10040
10041         * bld.adb (Put_Include_Project): Properly handle directory separators
10042         on Windows.
10043
10044 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
10045
10046         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
10047         decreasing the number of allocated junk nodes while searching for the
10048         appropriate subprogram.
10049
10050 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
10051
10052         * cuintp.c (UI_To_gnu): Use build_int_cst..
10053         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
10054         * utils.c (init_gigi_decls): Likewise.
10055         * utils2.c (build_call_raise): Likewise.
10056
10057 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
10058
10059         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
10060         for a global aliased object with a variable size and an unconstrained
10061         nominal subtype, pretend there is no initializer if the one we have is
10062         incomplete, and avoid referencing an inexistant component in there. The
10063         part we have will be rebuilt anyway and the reference may confuse
10064         further operations.
10065
10066 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
10067
10068         * einfo.ads: Minor reformatting
10069
10070         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
10071         restrictions in the ALI if we only want to warn about violations.
10072
10073 2004-08-13  Vincent Celier  <celier@gnat.com>
10074
10075         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
10076         when creating a new Unit_Record in table Units.
10077
10078         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
10079         that are violated, if any.
10080
10081         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
10082         add directory separator if path already ends with a directory separator.
10083
10084 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
10085
10086         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
10087         unit, this is an attempt to inline a construct that is not available in
10088         the current restricted mode, so abort rather than trying to continue.
10089
10090         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
10091         discriminants that rename those of the parent, recover names of
10092         original discriminants for the constraint on the full view of the
10093         parent.
10094         (Complete_Private_Subtype): Do not create a subtype declaration if the
10095         subtype is an itype.
10096
10097         * gnat_rm.texi: Added section on implementation of discriminated
10098         records with default values for discriminants.
10099
10100 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
10101
10102         PR ada/15601
10103         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
10104         the second operand is overloaded.
10105
10106 2004-08-10  Richard Henderson  <rth@redhat.com>
10107
10108         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
10109         add __builtin_alloca.
10110
10111 2004-08-10  Richard Henderson  <rth@redhat.com>
10112
10113         * config-lang.in (boot_language): Yes.
10114
10115 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
10116
10117         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
10118         from complaining on potential uninitialized reference.
10119         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
10120         new specification and test explicitly for non-zero return value.
10121
10122         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
10123         returning C.int, to avoid using a derived boolean type.
10124
10125         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
10126         Duplicate_Subexpr_No_Checks in preference to direct use of
10127         Remove_Side_Effects and New_Copy_Tree.
10128         Clear Comes_From_Source on prefix of 'Size attribute reference.
10129
10130         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
10131         g-socthi-vxworks.adb: Change calls to
10132         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
10133         and test explicitly for non-zero return value.
10134
10135         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
10136         (Is_Socket_In_Set): Declare imported function as returning C.int, to
10137         avoid using a derived boolean type.
10138
10139 2004-08-09  Albert Lee  <lee@gnat.com>
10140
10141         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
10142
10143 2004-08-09  Pascal Obry  <obry@gnat.com>
10144
10145         * gnat_ugn.texi: Document new way to build DLLs on Windows using
10146         GCC's -shared option.
10147
10148         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
10149         Options_2 parameter (options put after object files).
10150
10151 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
10152
10153         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
10154         ignore overflows on low and high bounds of an index to also account for
10155         differences in signedness between sizetype and gnu_index_subtype.
10156         These are as legitimate as the ones caused by a lower TYPE_PRECISION
10157         on sizetype.
10158
10159 2004-08-09  Robert Dewar  <dewar@gnat.com>
10160
10161         * s-solita.ads, s-solita.adb: Minor reformatting
10162
10163         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
10164         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
10165         obsolescent section
10166         Add note that No_Implicit_Conditionals does not suppress
10167         run time constraint checks.
10168
10169         * vms_conv.ads: Minor reformatting
10170
10171         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
10172         and necessary for following change).
10173         (Mark): Return new format Mark_Id containing sec stack address
10174         (Release): Use sec stack address from Mark_Id avoiding Self call
10175
10176         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
10177         pointer (cleanup and necessary for following change).
10178         Define Mark_Id as record containing address of secondary stack, that way
10179         Release does not need to find the stack again, decreasing the number of
10180         calls to Self and improving efficiency.
10181
10182         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
10183
10184         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
10185         case variable into the individual case branches when possible.
10186
10187         * sem_ch11.adb: Minor reformatting
10188
10189         * prj.ads: Correct spelling of suffixs
10190
10191         * prj-nmsc.adb: Minor reformatting
10192         Correct spelling suffixs throughout (also in identifiers)
10193
10194         * freeze.adb: Minor spelling correction
10195
10196         * exp_ch2.adb: Cleanups to handling of Current_Value
10197         (no functional effect).
10198
10199         * bld.adb: Correct spelling of suffixs
10200
10201         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
10202
10203 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
10204
10205         PR ada/15408
10206
10207         * sem_ch7.adb (Install_Private_Declarations): In the body of the
10208         package or of a child, private entities are both immediately_visible
10209         and not hidden.
10210
10211 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
10212
10213         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
10214         there are no range checks on the value of the literal.
10215
10216         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
10217         wrapped is the triggering alternative of an asynchronous select, action
10218         statements mustbe inserted before the select itself.
10219
10220         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
10221         case where the prefix is a protected function call.
10222         (Resolve_Attribute, case 'Access): The attribute reference on a
10223         subprogram is legal in a generic body if the subprogram is declared
10224         elsewhere.
10225
10226 2004-08-09  Vincent Celier  <celier@gnat.com>
10227
10228         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
10229         languages, otherwise building the library may fail with unresolved
10230         symbols.
10231         (Compile_Sources): Do not build libraries if -c switch is used
10232
10233         * gnatlink.adb (Process_Args): New switches -M and -Mmap
10234         (Write_Usage): If map file creation is supported, output new switches
10235         -M and -Mmap.
10236         (Gnatlink): When -M is specified, add the necessary switch(es) to the
10237         gcc call, when supported.
10238
10239         * Makefile.in: Added indepsw.o to the object list for gnatlink
10240         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
10241
10242         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
10243         indepsw.adb, indepsw.ads: New files.
10244
10245 2004-08-09  Bernard Banner  <banner@gnat.com>
10246
10247         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
10248
10249         * Makefile.in: add section for vxworks x86
10250
10251 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
10252
10253         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
10254         per-object constrained components where the discriminant is of an
10255         Access type.
10256         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
10257         the parent initialization procedure for derived Unchecked_Unions.
10258         Instead, derived Unchecked_Unions build their own initialization
10259         procedure.
10260         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
10261         Check the body of the subprogram for details.
10262         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
10263         functions for derived Unchecked_Union types by introducing a condition.
10264         Allow the creation of TSS equality functions for Unchecked_Unions.
10265         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
10266         Add formal parameter Discr to function signature. Discr is used to
10267         control the generated case statement for Unchecked_Union types.
10268         (Make_Eq_If): Rename formal parameter Node to E in function signature.
10269
10270         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
10271         Unchecked_Unions.
10272         Check the body of the subprogram for details.
10273         (Expand_Composite_Equality): Augment composite type equality to include
10274         correct handling of Unchecked_Union components.
10275         (Expand_N_In): Add condition to detect illegal membership tests when the
10276         subtype mark is a constrained Unchecked_Union and the expression lacks
10277         inferable discriminants, and build a Raise_Program_Error node.
10278         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
10279         to detect types that contain components of unconstrained Unchecked_Union
10280         subtype. Add condition to detect equality between types that have an
10281         unconstrained Unchecked_Union component, and build a Raise_Program_Error
10282         node. Add condition to detect equality between Unchecked_Union types
10283         that lack inferable discriminants, and build a Raise_Program_Error node.
10284         Otherwise build a TSS equality function call.
10285         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
10286         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
10287         with the operand lacking inferable discriminants, and build a Raise_
10288         Program_Error node.
10289         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
10290         composite equality.
10291         (Has_Inferable_Discriminants): Implement new predicate for objects and
10292         expressions of Unchecked_Union type. Check the body of subprogram for
10293         details.
10294         (Has_Unconstrained_UU_Components): Add function
10295         Component_Is_Unconstrained_UU. It is used to detect whether a single
10296         component is of an unconstrained Unchecked_Union subtype. Add function
10297         Variant_Is_Unconstrained_UU. It is used to detect whether a single
10298         component inside a variant is of an unconstrained Unchecked_Union type.
10299
10300         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
10301         inferred discriminant values. Add condition to generate a case
10302         statement with an inferred discriminant as the switch.
10303         (Make_Component_List_Assign): Introduce a Boolean flag that determines
10304         the behaviour of the subprogram in the presence of an Unchecked_Union.
10305         Add condition to trigger the usage of the inferred discriminant value
10306         as the generated case statement switch.
10307         (Make_Field_Assign): Introduce a Boolean flag that determines the
10308         behaviour of the subprogram in the presence of an Unchecked_Union. Add
10309         condition to trigger the usage of the inferred discriminant value as
10310         the right-hand side of the generated assignment.
10311
10312         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
10313         parameter generation when dealing with Unchecked_Unions.
10314
10315         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
10316         checks for Unchecked_Unions.
10317
10318         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
10319
10320         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
10321         Raise_Program_Error nodes for the execution of Read and Write
10322         attributes of Unchecked_Union types and the execution of Input and
10323         Output attributes of Unchecked_Union types that lack default
10324         discriminant values.
10325
10326         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
10327         Unchecked_Union. Add procedure Check_Component. It is used to inspect
10328         per-object constrained components of Unchecked_Unions for being
10329         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
10330         check individual components withing a variant.
10331
10332         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
10333         comparison of Unchecked_Unions.
10334         (Resolve_Equality_OP): Remove guard that prevents equality between
10335         Unchecked_Unions.
10336
10337         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
10338         of component subtypes for Unchecked_Union components.
10339         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
10340         since it is the actual subtype.
10341
10342         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
10343         pass of Unchecked_Union subtypes as generic actuals to formal types
10344         that lack known_discriminant_parts or that are derived Unchecked_Union
10345         types, and do nothing. In any other case, produce an error message.
10346
10347         * sem_ch3.adb (Analyze_Component_Declaration): Add function
10348         Contains_POC. It determines whether a constraint uses the discriminant
10349         of an enclosing record type.
10350         Add condition to detect per-object constrained component and set the
10351         appropriate flag.
10352         (Derived_Type_Declaration): Remove guard that prevents derivation from
10353         Unchecked_Union types.
10354         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
10355         Union subtypes.
10356
10357         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
10358         references to Unchecked_Union discriminants.
10359
10360         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
10361         formal generation when dealing with Unchecked_Unions.
10362         (Set_Actual_Subtypes): Add condition to prevent generation of actual
10363         subtypes for Unchecked_Unions.
10364
10365         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
10366         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
10367         completions of discriminated partial views by Unchecked_Unions and
10368         produce an error message.
10369
10370 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10371
10372         * trans.c (struct stmt_group): New field, GLOBAL.
10373         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
10374         (struct elab_info): New struct.
10375         (elab_info_list, gnu_elab_proc_stack): New variables.
10376         (Compilation_Unit_to_gnu): New procedure.
10377         (gigi): Call it and also handle elaboration procs we've saved.
10378         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
10379         global field from parent.
10380         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
10381         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
10382         (start_stmt_group): Initialize global field from parent.
10383         (add_decl_expr): Set to global for current statement group.
10384         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
10385         post.
10386
10387         * utils.c (global_bindings_p): True when no current_function_decl; no
10388         longer check current_binding_level.
10389
10390 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
10391
10392         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
10393         choice.
10394
10395         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
10396
10397 2004-08-06  Andreas Schwab  <schwab@suse.de>
10398
10399         * utils.c (gnat_define_builtin): Remove second parameter of
10400         make_decl_rtl.
10401         (begin_subprog_body): Likewise.
10402
10403 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
10404
10405         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
10406         optimization, not supported by the tree-ssa back-end.
10407
10408 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
10409
10410         * s-mastop-irix.adb: Update comments.
10411
10412         * a-except.adb (Exception_Information): Raise Constraint_Error if
10413         exception Id is Null_Id.
10414         This is required behavior, which is more reliably and clearly checked
10415         at the top level interface level.
10416
10417 2004-07-26  Javier Miranda  <miranda@gnat.com>
10418
10419         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
10420         call if a component has no default_expression and the box is used.
10421
10422         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
10423         default_expression and you use box, it behaves as if you had declared a
10424         stand-alone object.
10425         (Resolve_Record_Aggregate): If a component has no default_expression and
10426         you use box, it behaves as if you had declared a stand-alone object.
10427
10428         * sem_ch10.adb (Install_Siblings): Do not make visible the private
10429         entities of private-with siblings.
10430
10431 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
10432
10433         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
10434         for a component of an itype, set the parent pointer for analysis,
10435         there is no list in which to insert it.
10436
10437         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
10438         bona-fide renamings, not for inherited operations.
10439
10440         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
10441         actual for a formal that is an access parameter, create local
10442         finalization list even if the expression is not an aggregate.
10443
10444 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
10445
10446         PR ada/16213
10447         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
10448         Diagnose properly illegal subprogram renamings that are library units.
10449
10450 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
10451
10452         PR ada/15588
10453         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
10454         conversion rewritten as an unchecked conversion, check that original
10455         expression is a variable.
10456
10457         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
10458         unchecked_conversion, create new node rather than rewriting in place,
10459         to preserve original construct.
10460
10461 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10462
10463         * gigi.h (gnat_expand_body): Deleted.
10464
10465         * Make-lang.in: (trans.o): Depends on function.h.
10466
10467         * misc.c: (gnat_expand_body): Moved to here.
10468
10469         * trans.c (gnat_expand_body_1): Deleted.
10470         (gnat_expand_body): Moved from here.
10471         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
10472         (add_stmt): Check for marked visited with global_bindings_p.
10473         (gnat_gimplify_expr, case COMPONENT_REF): New case.
10474         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
10475
10476         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
10477         VIEW_CONVERT_EXPR if not operation type.
10478
10479         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
10480         fat pointer.
10481
10482         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
10483         changes: reformatting of negation operators, removing unneeded
10484         inequality comparison with zero, converting equality comparisons with
10485         zero to negations, changing int/0/1 to bool/false/true, replace calls
10486         to gigi_abort with abort, and various other similar changes.
10487
10488 2004-07-26  Vincent Celier  <celier@gnat.com>
10489
10490         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
10491         "setup".
10492
10493         * make.adb (Gnatmake): Fail when a library is not present and there is
10494         no object directory.
10495
10496         * mlib-prj.adb (Check_Library): No need to check if the library needs
10497         to be rebuilt if there is no object directory, hence no object files
10498         to build the library.
10499
10500         * opt.ads (Setup_Projects): New Boolean flag.
10501
10502         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
10503         Location.
10504         Create directory when Kind /= "" and in "gnat setup". Report error if
10505         directory cannot be created.
10506         (Ada_Check): Create library interface copy dir if it does not exist
10507         and we are in "gnat setup".
10508         (Find_Sources): No error if in "gnat setup" and no Ada sources were
10509         found.
10510         (Language_Independent_Check): Create object directory, exec directory
10511         and/or library directory if they do not exist and we are in
10512         "gnat setup".
10513
10514         * vms_conv.ads: (Command_Type): New command Setup.
10515
10516         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
10517
10518         * vms_data.ads: Add qualifiers/switches for new built-in command
10519         "setup".
10520
10521 2004-07-25  Richard Henderson  <rth@redhat.com>
10522
10523         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
10524         DECL_IGNORED_P on RESULT_DECL.
10525
10526 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
10527
10528         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
10529         allocation and potentially overflowing update with
10530         Tailored_Exception_Information. Use the sec-stack free procedural
10531         interface to output Exception_Information instead.
10532
10533         * a-except.adb (To_Stderr): New subprogram for character, and string
10534         version moved from a-exextr to be visible from other separate units.
10535         (Tailored_Exception_Information): Remove the procedural version,
10536         previously used by the default Last_Chance_Handler and not any more.
10537         Adjust various comments.
10538
10539         * a-exexda.adb: Generalize the exception information procedural
10540         interface, to minimize the use of secondary stack and the need for
10541         local buffers when the info is to be output to stderr:
10542         (Address_Image): Removed.
10543         (Append_Info_Character): New subprogram, checking for overflows and
10544         outputing to stderr if buffer to fill is of length 0.
10545         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
10546         (Append_Info_Address, Append_Info_Exception_Name,
10547         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
10548         Append_Info_Basic_Exception_Traceback,
10549         Append_Info_Exception_Information): New subprograms.
10550         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
10551         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
10552         Exception_Info_Maxlength, Exception_Name_Length,
10553         Exception_Message_Length): New subprograms.
10554         (Exception_Information): Use Append_Info_Exception_Information.
10555         (Tailored_Exception_Information): Use
10556         Append_Info_Basic_Exception_Information.
10557         Export services for the default Last_Chance_Handler.
10558
10559         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
10560         other separate units.
10561
10562 2004-07-20  Vincent Celier  <celier@gnat.com>
10563
10564         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
10565
10566 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
10567
10568         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
10569         emit itype references for the designated types of component types that
10570         are declared outside of the full record declaration, and that may
10571         denote a partial view of that record type.
10572
10573 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
10574
10575         PR ada/15607
10576         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
10577         which is the designated type in an access component declaration, to the
10578         list of incomplete dependents of the parent type, to avoid elaboration
10579         issues with out-of-scope subtypes.
10580         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
10581         full view of the parent.
10582
10583 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
10584
10585         PR ada/15610
10586         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
10587         entities that are hidden, such as references to generic actuals
10588         outside an instance.
10589
10590 2004-07-20  Javier Miranda  <miranda@gnat.com>
10591
10592         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
10593         support to the new notation.
10594         (Analyze_Selected_Component): Add call to Try_Object_Operation.
10595
10596 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
10597
10598         * s-taprob.adb: Adding the elaboration code required for initializing
10599         the tasking soft links that are common to the full and the restricted
10600         run times.
10601
10602         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
10603         restricted run time has been moved to the package
10604         System.Soft_Links.Tasking.
10605
10606         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
10607         restricted run time has been moved to the package
10608         System.Soft_Links.Tasking.
10609
10610         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
10611
10612         * s-solita.ads, s-solita.adb: New files.
10613
10614 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10615
10616         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
10617         Case_Statement_to_gnu): Split off from gnat_to_gnu.
10618         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
10619         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
10620         Exception_Handler_to_gnu_zcx): Likewise.
10621
10622 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
10623
10624         * gigi.h (builtin_function): Declare.
10625
10626 2004-07-15  Robert Dewar  <dewar@gnat.com>
10627
10628         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
10629         reformatting
10630
10631         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
10632         access values as an example of a warning.
10633
10634         * gnat_rm.texi: Document new attribute Has_Access_Values
10635
10636         * gnat-style.texi: Document that box comments belong on nested
10637         subprograms
10638
10639         * sem_util.ads (Has_Access_Values): Improved documentation
10640
10641         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
10642
10643         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
10644         (Process_Interface_Name): Call to this new procedure
10645         (Set_Extended_Import_Export_External_Name): Call to this new procedure
10646
10647         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
10648
10649         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
10650
10651         * einfo.ads: Minor comment typo fixed
10652
10653 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
10654
10655         * snames.adb: Add _atcb.
10656
10657         * snames.ads: Add Name_uATCB.
10658
10659         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
10660         (in the expanded code) when using the restricted run time.
10661
10662         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
10663         a in parameter in order to allow ATCBs to be preallocated (in the
10664         expanded code).
10665
10666         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
10667         order to allow ATCBs to be preallocated. In case of error, the ATCB is
10668         deallocated in System.Tasking.Stages.
10669
10670         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
10671         order to allow ATCBs to be preallocated.
10672
10673         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
10674         here. It was previously done in Initialize_ATCB.
10675
10676         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
10677
10678         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
10679         Restricted run time.
10680
10681         * exp_ch3.adb: When using the Restricted run time, pass the
10682         preallocated Ada_Task_Control_Block when creating a task.
10683
10684 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
10685
10686         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
10687         function call that is itself an actual in an enclosing call, diagnose
10688         problem here rather than assuming that resolution will catch it.
10689
10690         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
10691         the local copy of a generic unit for a formal package, and the generic
10692         is a child unit, install private part of ancestors before compiling
10693         private part of spec.
10694
10695         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
10696         use scope entities rather than tree structures, to handle properly
10697         parent units that are instances rewritten as bodies for inlining
10698         purposes.
10699
10700         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
10701         Remove_Parents): Handle properly a parent unit that is an
10702         instantiation, when the unit has been rewritten as a body for inlining
10703         purposes.
10704
10705         * par.adb (Goto_List): Global variable to collect goto statements in a
10706         given unit, for use in detecting natural loops.
10707
10708         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
10709         use in detecting natural loops.
10710
10711         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
10712         backwards goto's, and rewrite as a infinite loop, to improve locality
10713         of temporaries.
10714
10715         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
10716         subcomponent that includes an indexed reference, to prevent the
10717         generation of copies that would miscompile the desired assignment
10718         statement.
10719         (Build_Task_Image_Decls): Add a numeric suffix to
10720         generated name for string variable, to avoid spurious conflicts with
10721         the name of the type of a single protected object.
10722
10723         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
10724         loop with an explicit exit statement, to avoid generating an
10725         out-of-range value with 'Succ leading to spurious constraint_errors
10726         when compiling with -gnatVo.
10727
10728 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
10729
10730         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
10731         might not be analyzed yet, even if its Etype is already set (case of an
10732         unchecked conversion built using Unchecked_Convert_To, for example).
10733         If the prefix has already been analyzed, this will be a nop anyway.
10734
10735         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
10736         controller type, or an assignment of a record type with controlled
10737         components, copy only user data, and leave the finalization chain
10738         pointers untouched.
10739
10740 2004-07-15  Vincent Celier  <celier@gnat.com>
10741
10742         * make.adb (Collect_Arguments): Improve error message when attempting
10743         to compile a source not part of any project, when -x is not used.
10744
10745         * prj.ads: (Defined_Variable_Kind): New subtype
10746
10747         * prj-attr.adb (Register_New_Package): Two new procedures to register
10748         a package with or without its attributes.
10749         (Register_New_Attribute): Mew procedure to register a new attribute in a
10750         package.
10751         New attribute oriented subprograms: Attribute_Node_Id_Of,
10752         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
10753         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
10754         Next_Attribute.
10755         New package oriented subprograms: Package_Node_Id_Of,
10756         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
10757
10758         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
10759         type.
10760         (Package_Node_Id): Now a private, self initialized type
10761         (Register_New_Package): New procedure to register a package with its
10762         attributes.
10763         New attribute oriented subprograms: Attribute_Node_Id_Of,
10764         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
10765         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
10766         Next_Attribute.
10767         New package oriented subprograms: Package_Node_Id_Of,
10768         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
10769
10770         * prj-dect.adb (Parse_Attribute_Declaration,
10771         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
10772
10773         * prj-makr.adb (Make): Parse existing project file before creating
10774         other files. Fail if there was an error during parsing.
10775
10776         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
10777         new spec of Prj.Attr.
10778
10779         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
10780         to new spec of Prj.Attr.
10781
10782 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10783
10784         * utils2.c: Fix typo in comment.
10785
10786 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10787
10788         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
10789         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
10790
10791 2004-07-14  Andreas Schwab  <schwab@suse.de>
10792
10793         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
10794
10795 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10796
10797         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
10798         object type.
10799         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
10800         TYPE_STUB_DECL.
10801
10802         * misc.c (gnat_types_compatible_p): New function.
10803         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
10804         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
10805
10806         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
10807         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
10808         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
10809         (mark_visited): Don't mark dummy type.
10810         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
10811         parameter, we must remove any LJM building from GNU_NAME.
10812         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
10813         (pos_to_constructor): Use int_const_binop.
10814         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
10815         PARM_DECL.
10816
10817         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
10818         (gnat_pushlevel): Set TREE_USE on BLOCK node.
10819         (gnat_install_builtins): Add __builtin_memset.
10820
10821 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
10822
10823         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
10824         for a renaming, stabilize the initialization expression if we are at a
10825         local level.  At the local level, uses of the renaming may be performed
10826         by a direct dereference of the initializing expression, and we don't
10827         want possible variables there to be evaluated for every use.
10828
10829         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
10830         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
10831         them on the way.  Account for the fact that we may introduce side
10832         effects in the process.
10833
10834 2004-07-13  Richard Henderson  <rth@redhat.com>
10835
10836         * misc.c (default_pass_by_ref): Use pass_by_reference.
10837
10838 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
10839
10840         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
10841         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
10842
10843 2004-07-08  Richard Henderson  <rth@redhat.com>
10844
10845         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
10846         commentary.
10847
10848 2004-07-06  Vincent Celier  <celier@gnat.com>
10849
10850         * vms_conv.ads: Minor reformatting.
10851         Alphabetical order for enumerated values of type Command_Type, to have
10852         the command in alphabetical order for the usage.
10853
10854         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
10855         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
10856
10857         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
10858
10859         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
10860         (Add_Archive_Path): Only add the global archive if there is one.
10861         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
10862         or not any object file to put in the global archive, and don't build
10863         a global archive if there is none.
10864         (X_Switches): New table
10865         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
10866         in the X_Switches table, if any.
10867         (Initialize): Make sure the X_Switches table is empty
10868         (Scan_Arg): Record -X switches in table X_Switches
10869
10870         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
10871
10872         * make.adb: Minor comment fix
10873
10874         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
10875         invoked with directory information, add the directory in front of the
10876         path.
10877
10878         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
10879         invoked with directory information, add the directory in front of the
10880         path.
10881
10882         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
10883         when Keep_Temporary_Files is False.
10884         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
10885         directory information, add the directory in front of the path.
10886         When not on VMS, handle new switch -dn before the command to set
10887         Keep_Temporary_Files to True.
10888         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
10889         everywhere.
10890
10891         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
10892         invoked with directory information, add the directory in front of the
10893         path.
10894
10895 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
10896
10897         * snames.ads, snames.adb (Name_Stub): New name for the distributed
10898         systems annex.
10899
10900         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
10901         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
10902
10903         * g-socket.adb (To_Timeval): Fix incorrect conversion of
10904         Selector_Duration to Timeval for the case of 0.0.
10905
10906         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
10907         documentation from Evolve_And_Then.
10908
10909 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
10910
10911         * s-taprop-tru64.adb, s-taprop-os2.adb,
10912         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
10913
10914 2004-07-06  Robert Dewar  <dewar@gnat.com>
10915
10916         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
10917         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
10918         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
10919         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
10920         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
10921         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
10922         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
10923         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
10924         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
10925         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
10926         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
10927         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
10928         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
10929         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
10930         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
10931         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
10932         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
10933         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
10934         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
10935         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
10936         vms_data.ads: Minor reformatting,
10937         Fix bad box comment format.
10938
10939         * gnat_rm.texi: Fix minor grammatical error
10940
10941         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
10942
10943         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
10944         more cases of discriminated records to be recognized as not needing a
10945         secondary stack.
10946         (Has_Access_Values): New function.
10947
10948         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
10949
10950         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
10951         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
10952         with LRM terminology).
10953         Change terminology in comments primitive type => elementary type.
10954
10955 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
10956
10957         PR ada/15602
10958         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
10959         parameters do not impose any requirements on the presence of a body.
10960
10961 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
10962
10963         PR ada/15593
10964         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
10965         compilation unit and is in an open scope at the point of instantiation,
10966         assume that a body may be present later.
10967
10968 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
10969
10970         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
10971         Improve error message when specified size is not supported.
10972
10973         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
10974         is never a primitive operation.
10975
10976 2004-07-05  Andreas Schwab  <schwab@suse.de>
10977
10978         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
10979         RECORD_OR_UNION_CHECK.
10980         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
10981
10982 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
10983
10984         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
10985         dependency on xgnatugn, instead build it via a submake.
10986         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
10987
10988 2004-07-04  Richard Henderson  <rth@redhat.com>
10989
10990         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
10991
10992 2004-07-01  Richard Henderson  <rth@redhat.com>
10993
10994         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
10995         * utils.c (max_size): Likewise.
10996
10997 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10998
10999         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
11000         and rest_of_type_compilation; add arg to create_*_decl.
11001         (annotate_decl_with_node): Deleted.
11002         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
11003         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
11004         (get_current_block_context, gnat_pushdecl): New declarations.
11005         (gnat_init_stmt_group): Likewise.
11006         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
11007         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
11008         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
11009         (gnat_init): Call gnat_init_stmt_group.
11010         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
11011         (gnu_pending_elaboration_list): Deleted.
11012         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
11013         (gigi): Rearrange initialization calls and move some to last above.
11014         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
11015         Delete calls to add_decl_expr; add arg to create_*_decl.
11016         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
11017         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
11018         begin_subprog_body and call it.
11019         Don't push and pop ggc context.
11020         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
11021         (add_stmt): Remove handling of DECL_EXPR from here.
11022         If not in function, mark visited.
11023         (add_decl_expr): Put global at top level.
11024         Check for cases of DECL_INITIAL we have to handle here.
11025         (process_type): Add extra arg to create_type_decl.
11026         (build_unit_elab): Rework to just gimplify.
11027         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
11028         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
11029         (get_pending_elaborations, pending_elaborations_p): Likewise.
11030         (push_pending_elaborations, pop_pending_elaborations): Likewise.
11031         (get_elaboration_location, insert_elaboration_list): Likewise.
11032         (gnat_binding_level): Renamed from ada_binding_level.
11033         (init_gnat_to_gnu): Don't clear pending_elaborations.
11034         (global_bindings_p): Treat as global if no current_binding_level.
11035         (set_current_block_context): New function.
11036         (gnat_pushdecl): Renamed from pushdecl; major rework.
11037         All callers changed.
11038         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
11039         (finish_record_type): Call call pushdecl for stub decl.
11040         (function_nesting_depth): Deleted.
11041         (begin_subprog_body): Delete obsolete code.
11042         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
11043
11044 2004-06-28  Robert Dewar  <dewar@gnat.com>
11045
11046         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
11047         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
11048         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
11049         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
11050         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
11051
11052         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
11053         deal with problem of inefficient slices on machines with strict
11054         alignment, when the slice is a component of a composite.
11055
11056         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
11057         machines, we need the check there as well.
11058
11059 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
11060
11061         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
11062         determine safe copying direction for overlapping slice assignments
11063         when component is controlled.
11064
11065         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
11066         formal derived type in the actual for a formal package are visible in
11067         the enclosing instance.
11068
11069 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
11070
11071         PR ada/15600
11072         * sem_util.adb (Trace_Components): Diagnose properly an illegal
11073         circularity involving a private type whose completion includes a
11074         self-referential component.
11075         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
11076         renaming or an instantiation from an implicit derived operation.
11077
11078 2004-06-28  Pascal Obry  <obry@gnat.com>
11079
11080         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
11081         DLL.
11082         (Library_File_Name_For): Idem.
11083
11084 2004-06-28  Matthew Gingell  <gingell@gnat.com>
11085
11086         * g-traceb.ads: Add explanatory note on the format of addresses
11087         expected by addr2line.
11088
11089 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
11090
11091         * Makefile.in: Force debugging information on s-tasdeb.adb,
11092         a-except.adb and s-assert.adb needed by the debugger.
11093
11094 2004-06-28  Vincent Celier  <celier@gnat.com>
11095
11096         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
11097         Need_To_Build_Lib.
11098         (Gnatmake): Ditto.
11099
11100         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
11101
11102         * prj.adb: Minor reformatting
11103         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
11104
11105         * prj.ads: Comment updates
11106         Minor reformatting
11107         (Project_Data): Change Flag1 to Need_To_Build_Lib.
11108         Remove Flag2: not used.
11109
11110         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
11111         declaration.
11112
11113         * gnat_ugn.texi: Put a "null;" declaration in one project file example
11114
11115         * gnat_rm.texi: Document Empty declarations "null;".
11116
11117         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
11118         front of the linker options.
11119         (Link_Foreign): Put the global archives and the libraries in front of
11120         the linker options.
11121
11122 2004-06-28  Javier Miranda  <miranda@gnat.com>
11123
11124         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
11125         (RTU_Loaded): Code cleanup
11126         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
11127         withed predefined units.
11128
11129         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
11130         explicitly withed predefined units.
11131         Fix typo in comment
11132
11133         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
11134         explicitly withed predefined units.
11135
11136 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11137
11138         * ada-tree.def (DECL_STMT): Deleted.
11139         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
11140         (DECL_STMT_VAR): Deleted.
11141         * decl.c: add_decl_stmt now add_decl_expr.
11142         * gigi.h: Likewise.
11143         * trans.c: Likewise.
11144         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
11145         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
11146         (add_stmt): Only handle padded type here.
11147         (add_stmt_with_node): Allow gnat_node to not be present.
11148         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
11149         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
11150         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
11151         make a SAVE_EXPR for the entire fat pointer.
11152         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
11153         (create_index_type): Make a DECL_EXPR.
11154         (end_subprog_body): Don't call allocate_struct_function here but
11155         do clear cfun.
11156
11157 2004-06-25  Pascal Obry  <obry@gnat.com>
11158
11159         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
11160         Relocatable from Build_Dynamic_Library call.
11161
11162         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
11163         Relocatable are now synonym.
11164
11165         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
11166
11167         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
11168         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
11169         call.
11170
11171         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
11172         Lib_Address and Relocatable.
11173         (Default_DLL_Address): Removed.
11174
11175         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
11176         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
11177         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
11178         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
11179         (Default_DLL_Address): Removed.
11180
11181         * mlib-tgt-mingw.adb: Ditto.
11182         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
11183
11184         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
11185         the initial thread stack size.
11186
11187         * a-strmap.ads: Move package L to private part as it is not used in
11188         the spec. Found while reading code.
11189
11190 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
11191
11192         * tracebak.c: Introduce support for a GCC infrastructure based
11193         implementation of __gnat_backtrace.
11194
11195         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
11196         any more. Use accessors instead. This eases maintenance and relaxes
11197         some alignment constraints.
11198         (_GNAT_Exception structure): Remove the Ada specific fields
11199         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
11200         a-exexpr.adb.
11201         (is_handled_by, __gnat_eh_personality): Replace component references to
11202         exception structure by use of the new accessors.
11203
11204         * init.c (__gnat_initialize): Adjust comments to match the just
11205         reverted meaning of the -static link-time option.
11206
11207         * adaint.c (convert_addresses): Arrange not to define a stub for
11208         mips-irix any more, as we now want to rely on a real version from a
11209         recent libaddr2line.
11210
11211         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
11212         the personality routine can use them and not have to rely on a C
11213         counterpart of the record anymore. This simplifies maintenance and
11214         relaxes the constraint of having Standard'Maximum_Alignment match
11215         BIGGEST_ALIGNMENT.
11216         Update comments, and add a section on the common header alignment issue.
11217
11218 2004-06-25  Geert Bosch  <bosch@gnat.com>
11219
11220         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
11221         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
11222
11223 2004-06-25  Robert Dewar  <dewar@gnat.com>
11224
11225         * gnat_rm.texi: Fix section on component clauses to indicate that the
11226         restriction on byte boundary placement still applies for bit packed
11227         arrays.
11228         Add comment on stack usage from Initialize_Scalars
11229
11230         * gnat_ugn.texi: Add documentation for -gnatyLnnn
11231
11232         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
11233         limiting nesting level.
11234
11235         * usage.adb: Add line for -gnatyLnnn switch
11236
11237         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
11238         sem_ch13.adb, exp_aggr.adb: Minor reformatting
11239
11240         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
11241         type as well as on the subtype. This corrects a problem in freeze in
11242         setting alignments of atomic types.
11243
11244         * sem_eval.ads: Minor comment typo fixed
11245
11246         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
11247         level.  Minor reformatting.
11248
11249         * fname.adb (Is_Predefined_File_Name): Require a letter after the
11250         minus sign. This means that file names like a--b.adb will not be
11251         considered predefined.
11252
11253         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
11254         record Test new flag and give diagnostic for bad component clause.
11255         (Freeze_Entity): Set alignment of array from component alignment in
11256         cases where this is safe to do.
11257
11258         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
11259         arrays.
11260
11261         * cstand.adb: (Create_Standard): Set alignment of String to 1
11262
11263         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
11264
11265         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
11266         code in the common constrained array cases.
11267
11268         * a-storio.adb: Change implementation to avoid possible alignment
11269         problems on machines requiring strict alignment (data should be moved
11270         as type Buffer, not type Elmt).
11271
11272         * checks.adb (Apply_Array_Size_Check): Improve these checks by
11273         killing the overflow checks which we really do not need (64-bits is
11274         enough).
11275
11276 2004-06-25  Vincent Celier  <celier@gnat.com>
11277
11278         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
11279         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
11280         inconditionally for the main project.
11281         (Recursive_Add_Archives.Add_Archive_Path): New procedure
11282         (Link_Executables.Check_Time_Stamps): New procedure
11283         (Link_Executables.Link_Foreign): New procedure
11284         Changes made to reduce nesting level of this package
11285         (Check): New procedure
11286         (Add_Switches): When not in quiet output, check that a switch is not
11287         the concatenation of several valid switches. If it is, issue a warning.
11288         (Build_Global_Archive): If the global archive is rebuilt, linking need
11289         to be done.
11290         (Compile_Sources): Rebuilding a library archive does not imply
11291         rebuilding the global archive.
11292         (Build_Global_Archive): New procedure
11293         (Build_Library): New name for Build_Archive, now only for library
11294         project
11295         (Check_Archive_Builder): New procedure
11296         (Create_Global_Archive_Dependency_File): New procedure
11297         (Gprmake): Call Build_Global_Archive before linking
11298         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
11299         throughout.
11300         (Scan_Arg): Display the Copyright notice when -v is used
11301
11302         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
11303         for gnatls.
11304
11305         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
11306         COMPILE.
11307         Add new GNAT LIST qualifier /FILES=
11308         Added qualifier /DIRECTORY= to GNAT METRIC
11309         Added qualifier /FILES= to GNAT METRIC
11310         Added qualifier /FILES to GNAT PRETTY
11311
11312         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
11313         to take into account both versions of the switch.
11314
11315         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
11316         always be the last switch to the gcc driver. Disable switch storing so
11317         that switches automatically added by the gcc driver are not put in the
11318         ALI file.
11319
11320         * prj.adb (Project_Empty): Take into account changes in components of
11321         Project_Data.
11322
11323         * prj.ads (Languages_Processed): New enumaration value All_Languages.
11324
11325         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
11326         used. Split Boolean component Ada_Sources_Present in two Boolean
11327         components Ada_Sources_Present and Other_Sources_Present.
11328         Minor reformatting
11329
11330         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
11331         instead of Sources_Present.
11332         (Set_Ada_Paths.Add.Recursive_Add): Ditto
11333
11334         * prj-nmsc.adb: Minor reformatting
11335         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
11336         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
11337         Check_Ada_Naming_Scheme.
11338         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
11339         throughout.
11340
11341         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
11342         In_Limited.
11343         Make sure that all cycles where there is at least one "limited with"
11344         are detected.
11345         (Parse_Single_Project): New Boolean parameter In_Limited
11346
11347         * prj-proc.adb (Recursive_Check): When Process_Languages is
11348         All_Languages, call first Prj.Nmsc.Ada_Check, then
11349         Prj.Nmsc.Other_Languages_Check.
11350
11351         * prj-proc.adb (Process): Use Ada_Sources_Present or
11352         Other_Sources_Present (instead of Sources_Present) depending on
11353         Process_Languages.
11354
11355         * lang-specs.h: Keep -g and -m switches in the same order, and as the
11356         last switches.
11357
11358         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
11359         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
11360         False.
11361         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
11362         False.
11363
11364         * lib.ads (Disable_Switch_Storing): New procedure.
11365
11366         * make.adb: Modifications to reduce nesting level of this package.
11367         (Check_Standard_Library): New procedure
11368         (Gnatmake.Check_Mains): New procedure
11369         (Gnatmake.Create_Binder_Mapping_File): New procedure
11370         (Compile_Sources.Compile): Add switch -gnatez as the last option
11371         (Display): Never display -gnatez
11372
11373         * Makefile.generic:
11374         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
11375
11376         * gnatcmd.adb (Check_Project): New function
11377         (Process_Link): New procedure to reduce nesting depth
11378         (Check_Files): New procedure to reduce the nesting depth.
11379         For GNAT METRIC, include the inherited sources in extending projects.
11380         (GNATCmd): When GNAT LS is invoked with a project file and no files,
11381         add the list of files from the sources of the project file. If this list
11382         is too long, put it in a temp text files and use switch -files=
11383         (Delete_Temp_Config_Files): Delete the temp text file that contains
11384         a list of source for gnatpp or gnatmetric, if one has been created.
11385         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
11386         in the project file is too large, create a temporary text file that
11387         list them and pass it to the tool with "-files=<temp text file>".
11388         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
11389
11390         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
11391         generated file is in not in Ada.
11392
11393         * gnatls.adb: Remove all parameters And_Save that are no longer used.
11394         (Scan_Ls_Arg): Add processing for -files=
11395         (Usage): Add line for -files=
11396
11397         * g-os_lib.adb (On_Windows): New global constant Boolean flag
11398         (Normalize_Pathname): When on Windows and the path starts with a
11399         directory separator, make sure that the resulting path will start with
11400         a drive letter.
11401
11402         * clean.adb (Clean_Archive): New procedure
11403         (Clean_Project): When there is non-Ada code, delete the global archive,
11404         the archive dependency files, the object files and their dependency
11405         files, if they exist.
11406         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
11407
11408 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
11409
11410         * sinfo.ads: Fix typo in comment.
11411
11412         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
11413         the TSS for remote access-to-subprogram types, since these TSS are
11414         always present once the type has been analyzed.
11415         (RAS_E_Dereference): Same.
11416
11417         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
11418         reference raises Bad_Attribute, mark the reference as analyzed so the
11419         node (and any children resulting from rewrites that could have occurred
11420         during the analysis that ultimately failed) is not analyzed again.
11421
11422         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
11423
11424         * exp_dist.adb: Minor comment fix.
11425
11426         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
11427         type is an anonymous access type, no unchecked deallocation of the
11428         allocated object can occur. If the object is controlled, attach it with
11429         a count of 1. This allows attachment to the Global_Final_List, if
11430         no other relevant list is available.
11431         (Get_Allocator_Final_List): For an anonymous access type that is
11432         the type of a discriminant or record component, the corresponding
11433         finalisation list is the one of the scope of the type.
11434
11435 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
11436
11437         * sem_ch3.adb (Replace_Type): When computing the signature of an
11438         inherited subprogram, use the first subtype if the derived type
11439         declaration has no constraint.
11440
11441         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
11442         before applying previous optimization. Minor code cleanup.
11443
11444         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
11445         placed at the beginning of an unpacked record without explicit
11446         alignment, a slice of it will be aligned and does not need a copy when
11447         used as an actual.
11448
11449 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
11450
11451         PR ada/15591
11452         PR ada/15592
11453         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
11454         reference is written with expressions mimicking parameters.
11455
11456 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
11457
11458         PR ada/15589
11459         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
11460         STEP 2a. The constraints of a full type declaration of a derived record
11461         type are checked for conformance with those declared in the
11462         corresponding private extension declaration. The message
11463         "not conformant with previous declaration" is emitted if an error is
11464         detected.
11465
11466 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
11467
11468         * g-traceb.ads: Document the need for -E binder switch in the spec.
11469
11470         * g-trasym.ads: Document the need for -E binder switch in the spec.
11471
11472 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
11473
11474         * sem_prag.adb: Add handling of pragma Detect_Blocking.
11475
11476         * snames.h, snames.ads, snames.adb: Add entry for pragma
11477         Detect_Blocking.
11478
11479         * s-rident.ads: Change reference to pragma Detect_Blocking.
11480
11481         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
11482         system.ads.
11483
11484         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
11485         to indicate whether pragma Detect_Blocking is active.
11486
11487         * par-prag.adb: Add entry for pragma Detect_Blocking.
11488
11489         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
11490         of not handling WITH.
11491         Note that this replaces the previous update which was incorrect.
11492
11493 2004-06-25  Javier Miranda  <miranda@gnat.com>
11494
11495         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
11496         use-clauses to have a clean environment.
11497
11498         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
11499         the installation of the use-clauses to stablish a clean environment in
11500         case of compilation of a separate unit; otherwise the call to
11501         use_one_package is protected by the barrier Applicable_Use.
11502
11503         * sem_ch8.ads (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.
11506         (End_Use_Clauses): Minor comment cleanup.
11507
11508 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
11509
11510         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
11511
11512 2004-06-23  Richard Henderson  <rth@redhat.com>
11513
11514         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
11515
11516 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11517
11518         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
11519         now bool instead of int.
11520         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
11521         * trans.c (gnu_switch_label_stack): New function.
11522         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
11523         elaboration of renamed entity returns.
11524         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
11525         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
11526         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
11527         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
11528         DECL_SIZE_UNIT and simplify variable-sized case.
11529         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
11530         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
11531         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
11532         (build_unit_elab): Disable for now.
11533         * utils.c (mark_visited): New function.
11534         (pushdecl): Walk tree to call it for global decl.
11535         (update_pointer_to): Update all variants of pointer and ref types.
11536         Add arg to COMPONENT_REF.
11537         (convert): Likewise.
11538         Move check for converting between variants lower down.
11539         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
11540         (build_allocator): Don't force type of MODIFY_EXPR.
11541         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
11542         put_var_into_stack.
11543
11544 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11545
11546         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
11547         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
11548         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
11549         subprograms.
11550         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
11551         all callers changed.
11552         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
11553         the way that EXIT_STMT finds the loop label.
11554         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
11555         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
11556         (add_stmt): Use annotate_with_locus insted of setting directly.
11557         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
11558         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
11559         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
11560         (build_vms_descriptor): Add extra args to ARRAY_REF.
11561         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
11562         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
11563         New cases.
11564         (build_binary_op): Don't make explicit CONVERT_EXPR.
11565         Add extra rgs to ARRAY_REF.
11566
11567 2004-06-14  Pascal Obry  <obry@gnat.com>
11568
11569         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
11570         Windows.  Fix minor typo.
11571
11572         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
11573         which is now supported on Windows. With this implementation using the
11574         Library Project feature is no different on Windows than on UNIX.
11575
11576 2004-06-14  Vincent Celier  <celier@gnat.com>
11577
11578         * makegpr.adb (Compile_Sources): Nothing to do when there are no
11579         non-Ada sources.
11580
11581         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
11582
11583         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
11584         found, show the project name and the path of the previously parsed
11585         project file.
11586
11587 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
11588
11589         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
11590         array, avoid copying the actual before the call.
11591
11592 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
11593
11594         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
11595         Instead, allocate memory on worst-case alignment assumptions, and then
11596         return an aligned address within the allocated zone.
11597
11598 2004-06-14  Robert Dewar  <dewar@gnat.com>
11599
11600         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
11601         elab entities in predefined units in No_Run_Time_Mode.
11602         (Gen_Adainit_C): Same fix
11603         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
11604         units in No_Run_Time_Mode
11605         (Gen_Elab_Calls_C): Same fix
11606
11607         * symbols-vms-alpha.adb: Minor reformatting
11608
11609         * g-debpoo.ads: Minor reformatting
11610
11611         * lib.adb (In_Same_Extended_Unit): Version working on node id's
11612
11613         * lib.ads (In_Same_Extended_Unit): Version working on node id's
11614
11615         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
11616         working on nodes.
11617
11618         * make.adb: Minor reformatting
11619
11620         * par-ch12.adb: Minor reformatting
11621
11622         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
11623
11624         * prj-strt.adb: Minor reformatting
11625
11626         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
11627         be more general.
11628
11629         * sem_attr.adb: Minor reformatting
11630
11631         * sem_ch7.adb: Minor reformatting
11632
11633         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
11634         for type in the same unit as the object declaration.
11635
11636         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
11637         static string expressions and not just string literals.
11638         Minor reformatting
11639         (Set_Warning): Reset restriction warning flag for restriction pragma
11640         Implement pragma Profile_Warnings
11641         Implement pragma Profile (Restricted)
11642         Give obolescent messages for old restrictions and pragmas
11643
11644         * snames.h, snames.ads, snames.adb: Add new entry for pragma
11645         Profile_Warnings.
11646
11647         * s-rident.ads: Add declarations for restrictions required by profile
11648         Restricted and profile Ravenscar.
11649
11650         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
11651
11652         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
11653         configuration pragmas.
11654
11655 2004-06-11  Vincent Celier  <celier@gnat.com>
11656
11657         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
11658         gnatsym, when symbol policy is Restricted.
11659
11660         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
11661         gnatsym, when symbol policy is Restricted.
11662
11663         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
11664         read the symbol file.
11665         (Finalize): Fail in symbol policy Restricted if a symbol in the original
11666         symbol file is not in the object files. Do not create a new symbol file
11667         when symbol policy is Restricted.
11668
11669         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
11670         in Scng.
11671
11672         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
11673         Restricted.
11674         (Usage): Line for new switch -R
11675
11676         * make.adb (Initialize): When the platform is not VMS, add the
11677         directory where gnatmake is invoked in the front of the path, if
11678         gnatmake is invoked with directory information.  Change the Scan_Args
11679         while loop to a for loop.
11680         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
11681         if Depth is equal or greater than the proposed depth, there is nothing
11682         to do.
11683         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
11684         instead of 0.
11685
11686         * prj.ads: Add new symbol policy Restricted.
11687
11688         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
11689         with the new parameters Check_All_Labels and Case_Location.
11690
11691         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
11692         (Library_Symbol_File needs to be defined).
11693
11694         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
11695         and Case_Location If Check_All_Labels is True, check that all values of
11696         the string type are used, and output warning(s) if they are not.
11697
11698         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
11699         and Case_Location.
11700
11701         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
11702
11703         * gnat_ugn.texi: Update documentation about the library directory in
11704         Library Projects.
11705
11706         * makegpr.adb (Display_Command): In verbose mode, also display the
11707         value of the CPATH env var, when the compiler is gcc.
11708         (Initialize): Change the Scan_Args while loop to a for loop
11709         (Compile_Individual_Sources): Change directory to object directory
11710         before compilations.
11711
11712         * symbols.ads: New symbol policy Restricted.
11713
11714 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
11715
11716         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
11717         is now taken care of internally in the Exception_Propagation package
11718         and does not require clients assistance any more.
11719
11720         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
11721         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
11722         functions. Helpers to maintain a predicate required in the handling of
11723         occurrence transfer between tasks.
11724         This is now handled internally and does not require clients assistance
11725         for the setup/propagate separation anymore.
11726         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
11727         allocation strategy, handle the Setup_And_Not_Propagated predicate and
11728         document.
11729
11730         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
11731         raise_after_setup, now that everything is handled internally within the
11732         setup/propagation engine.
11733
11734 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
11735
11736         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
11737         Add additional conditions for the case of an actual being a simple
11738         name or literal. Improve inlining by preventing the generation
11739         of temporaries with a short lifetime (one use).
11740
11741 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
11742
11743         PR ada/15587
11744
11745         * einfo.ads: Minor comment updates for Has_Completion and
11746         E_Constant list of flags.
11747
11748         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
11749         and constant redeclarations now set the Has_Completion flag of their
11750         defining identifiers.
11751
11752         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
11753         Inspect_Deferred_Constant_Completion.
11754         Used to detect private deferred constants that have not been completed
11755         either by a constant redeclaration or pragma Import. Emits error message
11756         "constant declaration requires initialization expression".
11757
11758         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
11759         completes a deferred constant.
11760
11761 2004-06-11  Geert Bosch  <bosch@gnat.com>
11762
11763         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
11764
11765         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
11766         calculating exponent for scaling denormal numbers.
11767         (Leading_Part): Properly raise Constraint_Error for zero or negative
11768         Adjustment.
11769         (Remainder): Properly raise Constraint_Error for zero divisor.
11770
11771 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
11772
11773         * sem_util.adb: Minor reformatting.
11774
11775         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
11776         dereference when accessing the entry parameter record.
11777         (Check_Array_Type): Always check for possible implicit dereference.
11778         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
11779         Abort if a pointer is still present (denoting that an implicit
11780         dereference was left in the tree by the front-end).
11781
11782         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
11783         dereference when accessing the entry parameter record.
11784         (Check_Array_Type): Always check for possible implicit dereference.
11785         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
11786         Abort if a pointer is still present (denoting that an implicit
11787         dereference was left in the tree by the front-end).
11788
11789 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
11790
11791         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
11792         message, like the compiler itself does. Easier to parse the output.
11793
11794         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
11795
11796         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
11797         be base names, and not includes directories.
11798
11799 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
11800
11801         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
11802         so that dependencies are properly taken into account by make.
11803
11804 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
11805
11806         PR ada/15622
11807         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
11808         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
11809
11810 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
11811
11812         * Makefile.in (install-gnatlib): install target-specific run-time files.
11813
11814         * Make-lang.in: Remove obsolete targets.
11815
11816 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
11817
11818         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
11819         specification, to catch misuses of program unit names.
11820
11821         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
11822         superfluous conversions in an instance.
11823
11824 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
11825
11826         PR ada/15403
11827
11828         * sem_ch12.adb (Save_References): If operator node has been folded to
11829         enumeration literal, associated_node must be discarded.
11830
11831 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
11832
11833         * s-stchop-vxworks.adb: Add required pragma Convention to
11834         Task_Descriptor because it is updated by a C function.
11835
11836 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
11837
11838         PR ada/15568
11839
11840         * Makefile.in: Remove target specific SO_OPT on IRIX
11841
11842 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11843
11844         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
11845         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
11846         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
11847         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
11848         (STMT_STMT, USE_STMT): New statement codes.
11849         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
11850         * ada-tree.h: Reflect above changes.
11851         (struct tree_loop_id): Deleted.
11852         (union lang_tree_node, struct lang_decl, struct lang_type):
11853         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
11854         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
11855         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
11856         (IS_ADA_STMT): New macro.
11857         * decl.c (annotate_decl_with_node): New function.
11858         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
11859         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
11860         Call add_stmt_with_node to do needed assignments.
11861         Add call to update setjmp buffer directly, not via EXPR_STMT.
11862         (maybe_variable): Argment GNAT_NODE deleted.
11863         * gigi.h (maybe_variable): Likewise.
11864         (make_transform, add_stmt_with_node, set_block_for_group): New.
11865         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
11866         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
11867         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
11868         (set_lineno, set_lineno_from_sloc): Likewise.
11869         (record_code_position, insert_code_for): Likewise.
11870         (gnat_poplevel): Now returns void.
11871         (end_subprog_body): Now takes argument.
11872         * misc.c (cgraph.h, tree-inline.h): New includes.
11873         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
11874         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
11875         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
11876         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
11877         (gnat_parse_file): Don't set immediate_size_expand.
11878         Call cgraph functions.
11879         (gnat_expand_expr): Remove most cases.
11880         (record_code_position, insert_code_for): Remove from here.
11881         * trans.c (toplev.h, tree-gimple.h): Now included.
11882         (discard_file_names): Deleted.
11883         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
11884         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
11885         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
11886         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
11887         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
11888         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
11889         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
11890         (set_block_for_group, add_stmt_list): Likewise.
11891         (start_stmt_group): Renamed from start_block_stmt.
11892         (end_stmt_group): Likewise, from end_block_stmt.
11893         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
11894         (gigi): Don't set discard_file_names or call set_lineno.
11895         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
11896         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
11897         Numerous changes throughout to reflect new names and complete
11898         function-at-a-time implementation.
11899         (gnat_expand_stmt): Delete or comment out all cases.
11900         (process_inlined_subprograms): Use add_stmt.
11901         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
11902         call set_lineno; also remove unneeded block handling.
11903         (process_type): Remove unneeded block handling.
11904         (build_unit_elab): Remove calls to deleted functions.
11905         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
11906         (tree-dump.h): Likewise.
11907         (struct ada_binding_level): Add field jmpbuf_decl.
11908         (gnat_define_builtin, gnat_install_builtins): New.
11909         (gnat_gimplify_function, gnat_finalize): Likewise.
11910         (gnat_poplevel): No longer return BLOCK, set it instead.
11911         Remove code dealing with nested functions.
11912         (gnat_init_decl_processing): Also set size_type_node.
11913         Call gnat_install_builtins.
11914         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
11915         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
11916         Remove special-case for "main".
11917         (end_subprog_body): Add arg and rework for tree-ssa.
11918         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
11919         Add case for BOOLEAN_TYPE.
11920         * utils2.c (rtl.h): Now include.
11921         (build_call_raise): Test Debug_Flag_NN directly.
11922         (build_call_alloc_dealloc): Don't use local stack allocation for now.
11923         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
11924         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
11925
11926 2004-06-07  Robert Dewar  <dewar@gnat.com>
11927
11928         * a-direct.ads, einfo.ads: Minor comment updates
11929
11930         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
11931         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
11932         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
11933         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
11934         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
11935
11936         * s-interr-sigaction.adb: Remove unreferenced variable
11937         (Attached_Interrupts).  Minor reformatting.
11938         Avoid use of variable I (replace by J).
11939
11940         * par-ch10.adb: Fix text of one error message
11941
11942         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
11943         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
11944         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
11945         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
11946         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
11947         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
11948         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
11949         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
11950         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
11951         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
11952         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
11953         2005 support.
11954
11955 2004-06-07  Doug Rupp  <rupp@gnat.com>
11956
11957         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
11958
11959         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
11960
11961         * mlib-tgt-vms-ia64.adb: New file.
11962
11963         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
11964         Add mlib-tgt-vms-ia64.adb
11965         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
11966         Move to alpha specific ifeq section.
11967         Add VMS specific versions of symbols.adb
11968         Renaming of 5q vms files.
11969
11970         * 5qsystem.ads renamed to system-vms_64.ads.
11971
11972 2004-06-07  Vincent Celier  <celier@gnat.com>
11973
11974         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
11975         explain that when a time of day corresponding to the non existing hour
11976         on the day switching to DST is specified, Split may return a different
11977         value for Seconds.
11978
11979         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
11980         to GNAT PRETTY.
11981
11982         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
11983         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
11984
11985         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
11986         to False.
11987         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
11988         the linking options.
11989         (Build_Library.Check_Libs): On VMS, if there is a dependency on
11990         g-trasym.ads, set Gtrasymobj_Needed to True.
11991
11992         * prj-attr.adb: Add new package Metrics for gnatmetric
11993
11994         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
11995         canonical case to take into account files with upper case characters on
11996         Windows.
11997         (Ada_Check): Load the reference symbol file name in the name buffer to
11998         check it, not the symbol file name.
11999
12000         * snames.ads, snames.adb: Add standard name Metrics (name of project
12001         file package for gnatmetric).
12002
12003         * vms_conv.ads: Add Metric to Comment_Type
12004
12005         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
12006
12007         * vms_data.ads: Add qualifiers for GNAT METRIC
12008
12009         * makegpr.adb (Link_Executables): Take into account the switches
12010         specified in package Linker of the main project.
12011
12012 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
12013
12014         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
12015         the index of the last element is Units.Last, not Units.Table'Last
12016         (which is usually not a valid index within the actually allocated
12017         storage for the table).
12018
12019         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
12020         determines whether to generate a call to a checked storage pool
12021         Dereference action.
12022         Generate such a call only for a dereference that either comes from
12023         source, or is the result of rewriting a dereference that comes from
12024         source.
12025
12026 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
12027
12028         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
12029
12030 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
12031
12032         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
12033         file level, elaborate the stride for inner dimensions in alignment
12034         units, not bytes.
12035
12036         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
12037         in a comment.
12038
12039 2004-06-07  Javier Miranda  <miranda@gnat.com>
12040
12041         * exp_ch6.adb: Correct wrong modification in previous patch
12042
12043 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
12044
12045         * g-trasym.ads: Corrected comment to properly reflect level of support
12046         on VMS.
12047
12048 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
12049
12050         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
12051         includes case of a variable referenced on the left hand side of an
12052         assignment, therefore remove redundant code. Variables and prefixes of
12053         indexed or selected components are now marked as referenced on left
12054         hand side. Warnings are now properly emitted when variables or prefixes
12055         are assigned but not read.
12056
12057         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
12058         left hand side referenced variables. Private access types do not
12059         produce the warning "variable ... is assigned but never read".
12060         Add also additional checks to left hand side referenced variables.
12061         Aliased, renamed objects and access types do not produce the warning
12062         "variable ... is assigned but never read" since other entities may read
12063         the memory location.
12064
12065 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
12066
12067         * Makefile.in: In the powerpc/vxworks-specific section, restore
12068         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
12069         by mistake).
12070
12071 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
12072
12073         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
12074         predefined operators.
12075         Removes spurious type errors from g-trasym-vms.adb.
12076
12077         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
12078         distinct from the operator appearing in the source, call appropriate
12079         routine to insert conversions when needed, and complete resolution of
12080         node.
12081         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
12082         interpretations for rewritten right operand.
12083         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
12084         the other operand is overloaded and the context is a type conversion.
12085
12086 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12087
12088         * ada-tree.def (BLOCK_STMT): Now has two operands.
12089         (BREAK_STMT): New.
12090
12091         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
12092
12093         * gigi.h: (gnat_poplevel): Now returns a tree.
12094
12095         * trans.c (end_block_stmt): Add arg; all callers changed.
12096         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
12097         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
12098         (add_stmt): Set TREE_TYPE.
12099         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
12100         (gnat_expand_stmt, case BREAK_STMT): New case.
12101
12102         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
12103
12104 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
12105
12106         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
12107         procedure Set_Stack_Size that is not needed.
12108
12109 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
12110
12111         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
12112         used for gnatpp input file and for the files upon which it depends
12113
12114 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
12115
12116         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
12117
12118 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
12119
12120         * gnatvsn.ads: Bump version numbers appropriately.
12121         Add new build type.
12122
12123 2004-06-07  Pascal Obry  <obry@gnat.com>
12124
12125         * gnat_ugn.texi: Improve comments about imported names and link names
12126         on Windows. Add a note about the requirement to use -k gnatdll's option
12127         when working with a DLL which has stripped stdcall symbols (no @nn
12128         suffix).
12129
12130 2004-05-27  Vincent Celier  <celier@gnat.com>
12131
12132         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
12133         COMMENTS_LAYOUT=UNTOUCHED
12134
12135         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
12136         symbols-vms-alpha.adb
12137
12138 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
12139
12140         * sem.ads: Clarify documentation on checks suppression.
12141
12142         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
12143
12144 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
12145
12146         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
12147         the case of multiple derivations.
12148         (Is_Object_Reference): For a selected component, verify that the prefix
12149         is itself an object and not a value.
12150
12151         * sem_ch12.adb (Same_Instantiated_Constant): New name for
12152         Same_Instantiated_Entity.
12153         (Same_Instantiated_Variable): Subsidiary to
12154         Check_Formal_Package_Instance, to recognize actuals for in-out generic
12155         formals that are obtained from a previous formal package.
12156         (Instantiate_Subprogram_Body): Emit proper error when
12157         generating code and the proper body of a stub is missing.
12158
12159         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
12160         has a universal interpretation, do the disambiguation here.
12161
12162         * exp_ch4.adb (Expand_N_Type_Conversion,
12163         Expand_N_Unchecked_Type_Conversion): Special handling when target type
12164         is Address, to avoid typing anomalies when Address is a visible integer
12165         type.
12166
12167         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
12168         to determine whether a subprogram should not be marked Pure, even when
12169         declared in a pure package.
12170
12171 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
12172
12173         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
12174
12175         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
12176         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
12177         Update the documentation about the Ravenscar profile, following the
12178         definition found in AI-249.
12179
12180         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
12181         setting the Profile (Ravenscar). This must be done in addition to
12182         setting the required restrictions.
12183
12184         * rtsfind.ads: Add the set of operations defined in package
12185         Ada.Interrupts.
12186
12187         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
12188         restriction.
12189
12190 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
12191
12192         lang-specs.h: Always require -c or -S and always redirect to /dev/null
12193         if -gnatc or -gnats is passed.
12194
12195 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
12196
12197         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
12198         a significant reference. Warnings are now properly emitted when a
12199         discriminated type is not referenced.
12200
12201         * lib-xref.adb (Generate_Reference): A deferred constant completion,
12202         record representation clause or record type discriminant does not
12203         produce a reference to its corresponding entity. Warnings are now
12204         properly emitted when deferred constants and record types are not
12205         referenced.
12206
12207 2004-05-27  Geert Bosch  <bosch@gnat.com>
12208
12209         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
12210         Fixes ACATS Annex G tests.
12211
12212 2004-05-27  Robert Dewar  <dewar@gnat.com>
12213
12214         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
12215         handling WITH
12216
12217 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
12218
12219         * s-interr.adb (Server_Task): Take into account case of early return
12220         from sigwait under e.g. linux.
12221
12222 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
12223
12224         * gnat_ugn.texi: Add description for the new gnatpp options:
12225          -rnb - replace the original source without creating its backup copy
12226          -c0 - do not format comments
12227
12228 2004-05-24  Geert Bosch  <bosch@gnat.com>
12229
12230         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
12231         with 192 bits of precision, sufficient to reduce a double-extended
12232         arguments X with a maximum relative error of T'Machine_Epsilon, for X
12233         in -2.0**32 .. 2.0**32.
12234         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
12235         reduction by the processor, which only uses a 68-bit approximation of
12236         Pi.
12237         (Tan): Always reduce arguments and compute function either using
12238         the processor's fptan instruction, or by dividing sin and cos as needed.
12239
12240 2004-05-24  Doug Rupp  <rupp@gnat.com>
12241
12242         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
12243         gcc error on 32/64 bit VMS.
12244
12245 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
12246
12247         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
12248         since this is what we get for stack overflows although not documented
12249         as such.
12250         Document the issues which may require adjustments to our signal
12251         handlers.
12252
12253 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
12254
12255         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
12256         enclosing dynamic scope if the instantiation is within a generic unit.
12257
12258 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
12259
12260         * exp_dbug.ads: Fix typo.
12261
12262         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
12263         Rename it to its proper name: system-linux-ia64.ads
12264         (stamp-gnatlib1): Remove extra target specific run time files when
12265         setting up the rts directory.
12266
12267 2004-05-24  Javier Miranda  <miranda@gnat.com>
12268
12269         * einfo.ads, einfo.adb (Limited_Views): Removed.
12270         (Limited_View): New attribute that replaces the previous one. It is
12271         now a bona fide package with the limited-view list through the
12272         first_entity and first_private attributes.
12273
12274         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
12275         limited-private-with clause.
12276         (Install_Limited_Withed_Unit): Install the private declarations of a
12277         limited-private-withed package. Update the installation of the shadow
12278         entities according to the new structure (see Build_Limited_Views)
12279         (Build_Limited_Views): Replace the previous implementation of the
12280         limited view by a package entity that references the first shadow
12281         entity plus the first shadow private entity (required for limited-
12282         private-with clause)
12283         (New_Internal_Shadow_Entity): Code cleanup.
12284         (Remove_Limited_With_Clause): Update the implementation to undo the
12285         new work carried out by Build_Limited_Views.
12286         (Build_Chain): Complete documentation.
12287         Replace Ada0Y by Ada 0Y in comments
12288         Minor reformating
12289
12290         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
12291         types the level of accessibility depends on the enclosing type
12292         declaration.
12293
12294         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
12295         entities. Complete documentation of previous change.
12296
12297 2004-05-24  Robert Dewar  <dewar@gnat.com>
12298
12299         * namet.adb: Minor reformatting
12300         Avoid use of name I (replace by J)
12301         Minor code restructuring
12302
12303         * sem_ch6.adb: Minor reformatting
12304
12305         * lib-writ.adb: Do not set restriction as active if this is a
12306         Restriction_Warning case.
12307
12308         * sem_prag.adb: Reset restriction warning flag if real pragma
12309         restriction encountered.
12310
12311         * s-htable.adb: Minor reformatting
12312         Change rotate count to 3 in Hash (improves hash for small strings)
12313
12314         * 5qsystem.ads: Add comments for type Address (no literals allowed).
12315
12316         * gnat_ugn.texi: Add new section of documentation "Code Generation
12317         Control", which describes the use of -m switches.
12318
12319 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
12320
12321         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
12322         through the DECL_INITIAL for renamed variables.
12323
12324 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
12325
12326         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
12327
12328 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
12329
12330         * exp_dbug.ads: Correct comments concerning handling of overloading,
12331         since we no longer use $ anymore.
12332
12333 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
12334
12335         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
12336         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
12337         with illegal subunits.
12338
12339 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
12340
12341         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
12342         body with front-end inlining enabled, check whether an inline pragma
12343         appears immediately after the body and applies to it.
12344
12345         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
12346         enabled and the pragma appears after the body of the subprogram.
12347
12348 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12349
12350         Part of function-at-a-time conversion
12351
12352         * misc.c (adjust_decl_rtl): Deleted.
12353         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
12354         Define.
12355
12356         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
12357         (add_decl_stmt, add_stmt, block_has_vars): New functions.
12358         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
12359
12360         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
12361         when making a decl.
12362         (gnat_to_gnu_entity): Likewise.
12363         Use add_stmt to update setjmp buffer.
12364         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
12365         flush_addressof.
12366         No longer call adjust_decl_rtl.
12367         (DECL_INIT_BY_ASSIGN_P): New macro.
12368         (DECL_STMT_VAR): Likewise.
12369
12370         * trans.c (gigi): Call start_block_stmt to make the outermost
12371         BLOCK_STMT.
12372         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
12373         Call start_block_stmt and end_block_stmt temporarily.
12374         Use gnat_expand_stmt instead of expand_expr_stmt.
12375         (add_decl_stmt): New function.
12376         (tree_transform): Call it.
12377         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
12378         (end_block_stmt): Set type and NULL_STMT.
12379         (gnat_expand_stmt): Make recursize call instead of calling
12380         expand_expr_stmt.
12381         (gnat_expand_stmt, case DECL_STMT): New case.
12382         (set_lineno_from_sloc): Do nothing if global.
12383         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
12384         (start_block_stmt, add_stmt, end_block_stmt): New functions.
12385         (build_block_stmt): Call them.
12386         (gnat_to_code): Don't expand NULL_STMT.
12387         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
12388         args.
12389         (tree_transform): Likewise.
12390         (tree_transform, case N_Null_Statement): Return NULL_STMT.
12391         (gnat_expand_stmt, case NULL_STMT): New case.
12392         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
12393         IF_STMT_TRUE.
12394
12395         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
12396         TREE_ADDRESSABLE.
12397
12398         * utils.c (create_var_decl): Do not call expand_decl or
12399         expand_decl_init.
12400         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
12401         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
12402         here.
12403         (struct e_stack): Add chain_next to GTY.
12404         (struct binding_level): Deleted.
12405         (struct ada_binding_level): New struct.
12406         (free_block_chain): New.
12407         (global_binding_level, clear_binding_level): Deleted.
12408         (global_bindings_p): Rework to see if no chain.
12409         (kept_level_p, set_block): Deleted.
12410         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
12411         new data structure and work directly on BLOCK node.
12412         (gnat_poplevel): Similarly.
12413         (get_decls): Look at BLOCK_VARS.
12414         (insert_block): Work directly on BLOCK node.
12415         (block_has_var): New function.
12416         (pushdecl): Rework for new binding structures.
12417         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
12418         poplevel.
12419         (build_subprog_body): Likewise.
12420         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
12421
12422         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
12423
12424         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
12425         (DECL_STMT_VAR): Likewise.
12426
12427 2004-05-17  Robert Dewar  <dewar@gnat.com>
12428
12429         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
12430         procedure
12431
12432         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
12433         of restriction synonyums by using
12434         Restrict.Process_Restriction_Synonyms.
12435
12436         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
12437
12438         * s-restri.ads (Tasking_Allowed): Correct missing comment
12439
12440         * s-rident.ads: Add entries for restriction synonyms
12441
12442         * ali.adb: Fix some problems with badly formatted ALI files that can
12443         result in infinite loops.
12444
12445         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
12446         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
12447         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
12448         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
12449         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
12450         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
12451         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
12452         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
12453         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
12454         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
12455         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
12456         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
12457         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
12458         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
12459         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
12460         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
12461         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
12462         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
12463         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
12464         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
12465         to Task_Id (minor cleanup).
12466
12467 2004-05-17  Vincent Celier  <celier@gnat.com>
12468
12469         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
12470         directory separator.
12471
12472         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
12473         project being extended, if Languages is not declared in extending
12474         project.
12475
12476 2004-05-17  Javier Miranda  <miranda@gnat.com>
12477
12478         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
12479         limited view of a visible sibling.
12480
12481 2004-05-14  Robert Dewar  <dewar@gnat.com>
12482
12483         * gnat_ugn.texi: Minor change to -gnatS documentation
12484
12485         * sprint.adb: Remove some instances of Assert (False) and for this
12486         purpose replace them by output of a ??? string.
12487
12488         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
12489         Assert (False).
12490
12491         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
12492         flag processing. This was suppressing required dependencies in
12493         No_Run_Time mode and is not needed since the binder does not generate
12494         references for things in libgnat anyway.
12495
12496         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
12497         warning.
12498
12499 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
12500
12501         * gnat_ugn.texi: Document AIX-specific issue with initialization of
12502         resolver library.
12503
12504         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
12505         action for the case of an actual parameter in an init proc call.
12506
12507 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
12508
12509         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
12510         subtype, check visible entities in base type.
12511
12512         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
12513         actions if the object is a renaming.
12514
12515         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
12516         Check_Formal_Package_Instance, to determine more precisely when the
12517         formal and the actual denote the same entity.
12518
12519 2004-05-14  Javier Miranda  <miranda@gnat.com>
12520
12521         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
12522
12523         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
12524         corresponding to a private_with must be removed from visibility; it
12525         will be made visible later, just before we analyze the private part of
12526         the package.
12527         (Check_Private_Child_Unit): Allow private_with clauses in public
12528         siblings.
12529         (Install_Siblings): Make visible the private entities of private-withed
12530         siblings.
12531         (Install_Withed_Unit): Do not install the private withed unit if we
12532         are compiling a package declaration and the Private_With_OK flag was
12533         not set by the caller. These declarations will be installed later,
12534         just before we analyze the private part of the package.
12535
12536         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
12537         during the evaluation of the expression that initializes the object,
12538         decorate it with the expected type to avoid cascade errors.
12539         Code cleanup.
12540
12541         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
12542         subprogram we have to install the private_with clauses after its
12543         specification has been analyzed (as documented in AI-262.TXT).
12544
12545         * sem_ch8.adb (Has_Private_With): New function. Determines if the
12546         current compilation unit has a private with on a given entity.
12547         (Find_Direct_Name): Detect the Beaujolais problem described in
12548         AI-262.TXT
12549
12550         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
12551         provides the functionality of the function Is_Ancestor that was
12552         previously available in sem_ch10. It has been renamed to avoid
12553         overloading.
12554
12555         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
12556
12557 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12558
12559         * utils.c (build_vms_descriptor): Use SImode pointers.
12560
12561 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
12562
12563         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
12564
12565 2004-05-14  GNAT Script  <nobody@gnat.com>
12566
12567         * Make-lang.in: Makefile automatically updated
12568
12569 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
12570
12571         Renaming of target specific files for clarity
12572
12573         * Makefile.in: Rename GNAT target specific files.
12574
12575         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
12576         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
12577         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
12578         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
12579         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
12580         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
12581         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
12582         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
12583         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
12584         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
12585         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
12586         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
12587         51osinte.adb, 51osinte.ads, 51system.ads,
12588         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
12589         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
12590         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
12591         56tpopsp.adb, 57system.ads, 58system.ads,
12592         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
12593         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
12594         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
12595         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
12596         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
12597         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
12598         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
12599         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
12600         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
12601         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
12602         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
12603         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
12604         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
12605         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
12606         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
12607         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
12608         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
12609         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
12610         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
12611         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
12612         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
12613         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
12614         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
12615         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
12616         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
12617         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
12618         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
12619         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
12620         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
12621         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
12622         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
12623         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
12624         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
12625         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
12626         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
12627         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
12628         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
12629         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
12630         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
12631         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
12632
12633         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
12634         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
12635         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
12636         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
12637         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
12638         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
12639         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
12640         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
12641         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
12642         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
12643         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
12644         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
12645         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
12646         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
12647         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
12648         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
12649         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
12650         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
12651         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
12652         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
12653         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
12654         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
12655         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
12656         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
12657         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
12658         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
12659         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
12660         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
12661         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
12662         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
12663         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
12664         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
12665         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
12666         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
12667         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
12668         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
12669         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
12670         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
12671         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
12672         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
12673         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
12674         s-osinte-vms.ads, s-osinte-vxworks.adb,
12675         s-osinte-vxworks.ads, s-osprim-mingw.adb,
12676         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
12677         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
12678         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
12679         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
12680         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
12681         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
12682         s-stchop-vxworks.adb, s-taprop-dummy.adb,
12683         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
12684         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
12685         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
12686         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
12687         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
12688         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
12689         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
12690         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
12691         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
12692         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
12693         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
12694         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
12695         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
12696         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
12697         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
12698         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
12699         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
12700         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
12701         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
12702         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
12703         system-irix-o32.ads, system-linux-x86_64.ads,
12704         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
12705         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
12706         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
12707         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
12708         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
12709         system-vxworks-mips.ads, system-vxworks-ppc.ads,
12710         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
12711         above.
12712
12713 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
12714
12715         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
12716
12717 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
12718
12719         Merge from tree-ssa-20020619-branch.
12720
12721         * config-lang.in (boot_language, build_by_default): Set
12722         to no.
12723         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
12724         (max_size): Add static chain op for call_expr.
12725
12726 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
12727
12728         PR target/15331
12729         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
12730
12731 2004-05-11  Roger Sayle  <roger@eyesopen.com>
12732
12733         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
12734         COND_EXPR.
12735
12736 2004-05-10  Doug Rupp  <rupp@gnat.com>
12737
12738         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
12739         system.aux_dec.
12740
12741         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
12742
12743         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
12744
12745         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
12746         Fixes undefined symbols in IA64 gnatlib.
12747
12748         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
12749
12750         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
12751         Short_Address). This will be moved to system.auxdec.
12752
12753 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
12754
12755         * sem_util.adb: Replace test for presence of a node that is always
12756         present with a call to Discard_Node.
12757
12758         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
12759         Analyze on the library unit node after generation of distribution stub
12760         constructs.  The call was a no-op because Unit_Node has already been
12761         Analyzed, and the tree fragments for the distribution stubs are
12762         analyzed as they are inserted in Exp_Dist.
12763         Update comment regarding to distribution stubs to reflect that we
12764         do not generate stub in separate files anymore.
12765
12766         * einfo.ads: Clarify the fact that a tagged private type has the
12767         E_Record_Type_With_Private Ekind.
12768
12769         * erroutc.adb: Minor reformatting
12770
12771         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
12772         values if line length is increased using -gnatyM (noticed during code
12773         reading).
12774
12775         * eval_fat.adb: Minor reformatting
12776         Put spaces around exponentiation operator
12777
12778 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
12779
12780         PR ada/15005
12781         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
12782         has been rewritten as an explicit dereference, retrieve type of
12783         original node to check for possibly unconstrained record type.
12784
12785 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
12786
12787         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
12788         overriding, use the operation of the parent unconditionally.
12789
12790         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
12791         operation when either operand is a literal, to avoid further
12792         ambiguities.
12793
12794         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
12795         overridden by a previous explicit declaration, mark the previous entity
12796         as overriding.
12797
12798         * sem_disp.adb (Check_Dispatching_Operation): New predicate
12799         Is_Visibly_Controlled, to determine whether a declaration of a
12800         primitive control operation for a derived type overrides an inherited
12801         one. Add warning if the explicit declaration does not override.
12802
12803 2004-05-10  Vincent Celier  <celier@gnat.com>
12804
12805         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
12806         some cases when the sources are no longer present.
12807
12808         * make.adb (Collect_Arguments): Fail if an external source, not part
12809         of any project need to be compiled, when switch -x has not been
12810         specified.
12811
12812         * makeusg.adb: Document new switch -x
12813
12814         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
12815         defaulted to False.
12816
12817         * switch-m.adb (Scan_Make_Switches): New switch -x
12818
12819         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
12820         gnatmake switch -x.
12821
12822         * gnat_ugn.texi: Document new gnatmake switch -x
12823
12824 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
12825
12826         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
12827
12828         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
12829         (process_attributes): Likewise.
12830
12831 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
12832
12833         * s-inmaop.ads: Fix spelling mistake in one of the comments.
12834
12835 2004-05-10  Robert Dewar  <dewar@gnat.com>
12836
12837         * gnat_ugn.texi: Document that for config pragma files, the maximum
12838         line length is always 32767.
12839
12840         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
12841         literals is now allowed.
12842
12843         * gnat-style.texi: Remove statement about splitting long lines before
12844         an operator rather than after, since we do not follow this rule at all.
12845         Clarify rule (really lack of rule) for spaces around exponentiation
12846
12847         * sem_elim.adb: Allow concatenation of string literals as well as a
12848         single string literal for pragma arguments.
12849
12850         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
12851
12852         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
12853         written for append case.
12854
12855         * frontend.adb: Changes to avoid checking max line length in config
12856         pragma files.
12857
12858         * g-os_lib.ads: Minor reformatting
12859
12860         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
12861         wrong in any case. Instead use standard value. Noticed during code
12862         reading.
12863
12864         * opt.ads (Max_Line_Length): New field, used to implement removal of
12865         limitation on length of lines when scanning config pragma files.
12866
12867         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
12868         makeutl.ads, makeutl.adb: Minor reformatting
12869
12870         * scn.adb: Do not check line length while scanning config pragma files
12871         Do not check line length while scanning out license information
12872
12873         * scng.adb: Changes to avoid line length checks while parsing config
12874         pragma files.
12875
12876 2004-05-10  GNAT Script  <nobody@gnat.com>
12877
12878         * Make-lang.in: Makefile automatically updated
12879
12880 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
12881
12882         * osint.adb (Find_Program_Name): Fix handling of VMS version
12883         number.
12884
12885 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
12886
12887         * g-os_lib.ads (Invalid_Time): New constant
12888
12889         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
12890         return OS_Time instead of time_t to match what is imported by Ada.
12891         Now return -1 if the file doesn't exist, instead of a random value
12892
12893 2004-05-05  Robert Dewar  <dewar@gnat.com>
12894
12895         * usage.adb: Add line for -gnatR?s switch
12896
12897         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
12898
12899         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
12900         and for Match (Data_First, Data_last)
12901
12902         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
12903         written when we are dealing with multi-unit files.
12904
12905 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
12906
12907         * Makefile.in: Remove unused targets and variables.
12908
12909 2004-05-05  Vincent Celier  <celier@gnat.com>
12910
12911         * switch-m.adb: New gnatmake switch -eI
12912
12913         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
12914         of new gnatmake switch -eInnn.
12915
12916         * makegpr.adb: Take into account new parameters Index and Src_Index in
12917         Prj.Util.
12918
12919         * clean.adb: Implement support for multi-unit sources, including new
12920         switch -i.
12921
12922         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
12923         Src_Index.
12924
12925         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
12926         (Extract_From_Q): New out parameter Index
12927         (Mark, Is_Marked): Subprograms moved to Makeutl
12928         (Switches_Of): New parameter Source_Index
12929         (Add_Switch): New parameter Index
12930         (Check): New parameter Source_Index
12931         (Collect_Arguments): New parameter Source_Index
12932         (Collect_Arguments_And_Compile): New parameter Source_Index
12933         (Compile): New parameter Source_Index
12934         Put subprograms in alphabetical order
12935         Add support for multi-source sources, including in project files.
12936
12937         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
12938         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
12939         Make.
12940
12941         * makeusg.adb: New gnatmake switch -eInnn
12942
12943         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
12944         Prj.Util.Value_Of.
12945
12946         * opt.ads (Main_Index): New variable, defaulted to 0.
12947
12948         * osint.ads, osinte.adb (Add_File): New parameter Index
12949         (Current_Source_Index): New function
12950
12951         * prj.adb: Take into account new components Index and Src_Index
12952
12953         * prj.ads (String_Element): New component Index
12954         (Variable_Value): New component Index
12955         (Array_Element): New component Src_Index
12956
12957         * prj-attr.adb: Indicate that optional index may be specified for
12958         attributes Main, Executable, Spec, Body and some of Switches.
12959
12960         * prj-attr.ads (Attribute_Kind): New values for optional indexes
12961         (Attribute_Record): New component Optional_Index
12962
12963         * prj-com.ads (File_Name_Data): New component Index
12964
12965         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
12966
12967         * prj-env.adb (Put): Output optional index
12968
12969         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
12970         attributes Spec and Body.
12971
12972         * prj-nmsc.adb: Process optional indexes
12973
12974         * prj-pp.adb: Ouput "at" for optional indexes
12975
12976         * prj-proc.adb: Take into account optional indexes
12977
12978         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
12979         Optional_Index. For string literal,
12980         process optional index when Optional_Index is True.
12981         (Parse_Expresion): New Boolean parameter Optional_Index
12982
12983         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
12984         (Set_Source_Index_Of): New procedure
12985
12986         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
12987         index.
12988
12989         * prj-util.ads (Executable_Of): New parameter Index
12990         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
12991         New parameter Src_Index, defaulted to 0.
12992
12993 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
12994
12995         PR ada/15257
12996         * sem_ch3.adb (Access_Definition): If this is an access parameter
12997         whose designated type is imported through a limited_with clause, do
12998         not add the enclosing subprogram to the list of private dependents of
12999         the type.
13000
13001 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
13002
13003         PR ada/15258
13004         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
13005         a limited_with clause, and the other is its non-limited view.
13006
13007 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
13008
13009         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
13010
13011         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
13012         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
13013         Stand.Boolean_Literals to produce references to entities
13014         Standard_False and Standard_True from compile-time computed boolean
13015         values.
13016
13017         * stand.ads (Boolean_Literals): New variable, provides the entity
13018         values for False and True, for use by the expander.
13019
13020 2004-05-05  Doug Rupp  <rupp@gnat.com>
13021
13022         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
13023         5vinmaop.adb: Unchecked convert Short_Address vice Address
13024
13025         * adaint.c, raise.c: Caste CRTL function return value
13026         to avoid gcc error on 32/64 bit IVMS.
13027
13028         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
13029         target = IA64/VMS.
13030
13031         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
13032
13033         * 5qsystem.ads (Address): Declare as Long_Integer
13034         (Short_Address): Declare as 32 bit subtype of Address
13035         Declare  abstract address operations to avoid gratuitous ambiguities.
13036
13037 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
13038
13039         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
13040         instead of the old Boolean_Entry_Barriers.
13041         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
13042
13043 2004-05-05  GNAT Script  <nobody@gnat.com>
13044
13045         * Make-lang.in: Makefile automatically updated
13046
13047 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
13048
13049         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
13050
13051 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
13052
13053         PR ada/15152
13054
13055         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
13056         alone. Replacing object references by literals is inappropriate in a
13057         so low level context.
13058
13059 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
13060
13061         * a-exexpr.adb: Add comments
13062
13063 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
13064
13065         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
13066         declare the Ancestor_Tags array in Type_Specific_Data with a small size
13067         without risking a bounds check error when accessing one of its
13068         components.
13069         (Type_Specific_Data): Define Ancestor_Tags as a small array.
13070         This prevents us from hitting a limitation during the debug info
13071         generation when using stabs.
13072
13073         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
13074         small array.
13075         This prevents us from hitting a limitation during the debug info
13076         generation when using stabs.
13077
13078 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
13079
13080         lang-specs.h: Remove -gnatz* from specs.
13081
13082 2004-05-03  Vincent Celier  <celier@gnat.com>
13083
13084         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
13085
13086         * Make-lang.in, Makefile.in: Add gprmake
13087
13088 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
13089
13090         * sem_aggr.adb: Fix typo in comment.
13091
13092 2004-05-03  Robert Dewar  <dewar@gnat.com>
13093
13094         * make.adb: Minor reformatting
13095
13096         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
13097
13098         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
13099         so that it works when address is not a private type.
13100
13101         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
13102         properly with rewritten unchecked conversions. This prevents
13103         order-of-elaboration issues that can otherwise arise.
13104         (Minimum_Size): Don't check size of access types under VMS
13105
13106         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
13107         interpretations of integer literals as type System.Address.
13108
13109         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
13110         (Is_Descendent_Of): New function
13111
13112 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
13113
13114         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
13115         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
13116         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
13117
13118         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
13119         of the old Max_Entry_Queue_Depth.
13120
13121         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
13122         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
13123         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
13124
13125         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
13126         New entry for proper handling of Max_Entry_Queue_Depth.
13127         New entry for proper handling of No_Dynamic_Interrupts.
13128
13129         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
13130         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
13131         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
13132         the GNAT specific restriction Max_Entry_Queue_Depth.
13133         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
13134         the GNAT specific restriction No_Dynamic_Interrupts.
13135
13136         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
13137         instead of the old Boolean_Entry_Barriers.
13138         Use the new restriction No_Dynamic_Attachment instead of the old
13139         No_Dynamic_Interrupts.
13140
13141         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
13142         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
13143
13144         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
13145         of the old Max_Entry_Queue_Depth.
13146
13147 2004-05-03  GNAT Script  <nobody@gnat.com>
13148
13149         * Make-lang.in: Makefile automatically updated
13150
13151 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
13152
13153         * checks.adb (Enable_Range_Check): If the prefix of an index component
13154         is an access to an unconstrained array, perform check unconditionally.
13155
13156 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13157
13158         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
13159         Component_Clause.
13160
13161 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
13162
13163         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
13164         alternate stack setting. There was no support for the tasking cases
13165         and the changes eventually caused a number of side-effect failures in
13166         the non-tasking case too.
13167
13168 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
13169
13170         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
13171         -gnats is passed.
13172
13173 2004-04-29  Vincent Celier  <celier@gnat.com>
13174
13175         * make.adb (Gnatmake): Increase max size of argument array for
13176         gnatbind for the potential addition of -F.
13177         If there are Stand-Alone Library projects, invoke gnatbind with -F to
13178         be sure that elaboration flags will be checked.
13179
13180         * switch-c.adb: Correct call to Scan_Pos for -gnateI
13181
13182 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
13183
13184         * sem_warn.adb (Check_References): Move '<access-variable> may be
13185         null' warning out of under Warn_On_No_Value_Assigned.
13186
13187 2004-04-29  Ed Falis  <falis@gnat.com>
13188
13189         * gnat_ugn.texi: Fixed texi error
13190
13191 2004-04-29  Robert Dewar  <dewar@gnat.com>
13192
13193         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
13194         abstract operations if they come from predefined files.
13195
13196         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
13197         Dynamic, not RM).
13198
13199         * s-addope.adb: Correct obvious error in mod function
13200
13201 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
13202
13203         * Makefile.in: Add target pairs for powerpc darwin*
13204         tasking support.
13205
13206         * a-intnam-darwin.ads, s-osinte-darwin.adb,
13207         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
13208
13209 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
13210
13211         * Makefile.in: Add target macro definitions for s390*-linux*.
13212         * system-linux-s390.ads: New file.
13213         * system-linux-s390x.ads: New file.
13214
13215 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
13216
13217         * gnat_ugn.texi: Correct argument to @setfilename.
13218
13219 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
13220
13221         * a-exexpr.adb (Unwind_Word): New data type.
13222         (Unwind_Exception): Use it as type of Private1 and Private2.
13223
13224         * raise.c (db_action_for): Fix debug printf.
13225
13226 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
13227
13228         * a-wtmoio.ads: Formal type must be a modular type, not a signed
13229         integer type.
13230
13231 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13232
13233         * decl.c (gnat_to_gnu_entity, case object): Call
13234         __builtin_update_setjmp_buf.
13235
13236         * gigi.h (update_setjmp_buf): Deleted.
13237         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
13238
13239         * misc.c: (update_setjmp_buf): Deleted.
13240
13241         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
13242         around block of RTL.
13243
13244         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
13245
13246 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
13247
13248         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
13249         subprogram for which no pragma All_Calls_Remote applies, store the
13250         address of the real subprogram in the underlying record type, so local
13251         dereferences do not go through the PCS.
13252
13253 2004-04-26  Robert Dewar  <dewar@gnat.com>
13254
13255         * i-c.ads: Add some type qualifications to avoid ambiguities when
13256         compiling with s-auxdec.ads and a non-private address type.
13257
13258 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
13259
13260         * Makefile.rtl: Fix error in previous check-in:
13261         Add s-addope.o to non tasking object list (rather than tasking object
13262         list).
13263
13264 2004-04-26  Javier Miranda  <miranda@gnat.com>
13265
13266         * sem_aggr.adb: Fix typo in comments
13267         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
13268         Required to check the null-exclusion attribute.
13269
13270         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
13271         case of anonymous access types in record and array components. For a
13272         component definition the level is the same of the enclosing composite
13273         type.
13274
13275         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
13276         that are anonymous access types the level of accessibility depends on
13277         the enclosing type declaration. In order to have this information, set
13278         the scope of the anonymous access type to the enclosing record type
13279         declaration.
13280         (Array_Type_Declaration): In case of components that are anonymous
13281         access types the level of accessibility depends on the enclosing type
13282         declaration. In order to have this information, set the scope of the
13283         anonymous access type to the enclosing array type declaration.
13284
13285         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
13286         access type.
13287
13288         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
13289         renaming of anonymous access-to-constant types allowed if and only if
13290         the renamed object is access-to-constant.
13291
13292         * sem_util.adb (Type_Access_Level): In case of anonymous access types
13293         that are component_definition or discriminants of a nonlimited type,
13294         the level is the same as that of the enclosing component type.
13295
13296 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
13297
13298         * sem_elim.adb: Some minor code reorganization from code reading. Fix
13299         misprint in the function name (File_Name_Match).
13300
13301 2004-04-23  Laurent GUERBY <laurent@guerby.net>
13302
13303         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
13304         install.
13305
13306 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13307
13308         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
13309
13310 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
13311
13312         * adaint.c (__gnat_try_lock): No longer requires that the parent
13313         directory be writable, the directory itself is enough.
13314         (gnat_is_absolute_path): Change profile, so that the call from
13315         GNAT.OS_Lib can be made more efficient.
13316
13317         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
13318         from GNAT.OS_Lib can be made more efficient.
13319
13320         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
13321         one copy of the file name. Found by code reading.
13322
13323 2004-04-23  Vincent Celier  <celier@gnat.com>
13324
13325         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
13326         Correct documentation on gnatmake switches transmitted to the compiler
13327
13328         * ali.ads: Minor comment fix
13329
13330 2004-04-23  Javier Miranda  <miranda@gnat.com>
13331
13332         * sem_ch6.adb: (Confirming Types): Code cleanup
13333
13334         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
13335         subprogram types: E_Anonymous_Access_Subprogram_Type and
13336         E_Anonymous_Access_Protected_Subprogram_Type.
13337
13338 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
13339
13340         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
13341         whether a pragma All_Calls_Remote applies to the subprogram on which
13342         'Access is taken.
13343         No functional change is introduced by this revision; the new parameter
13344         will be used to allow calls to local RCI subprograms to be optimized
13345         to not use the PCS in the case where no pragma All_Calls_Remote applies,
13346         as is already done in the PolyORB implementation of the DSA.
13347
13348         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
13349         whether a pragma All_Calls_Remote applies to the subprogram on which
13350         'Access is taken.
13351         No functional change is introduced by this revision; the new parameter
13352         will be used to allow calls to local RCI subprograms to be optimized
13353         to not use the PCS in the case where no pragma All_Calls_Remote applies,
13354         as is already done in the PolyORB implementation of the DSA.
13355
13356 2004-04-23  Robert Dewar  <dewar@gnat.com>
13357
13358         * Makefile.rtl: Add entry for s-addope.o in run time library list
13359         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
13360         * s-addope.ads, s-addope.adb: New files.
13361
13362         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
13363         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
13364         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
13365         System.Address to be non-private and signed.
13366
13367         * sem_elim.adb: Minor reformatting (fairly extensive)
13368         Some minor code reorganization from code reading
13369         Add a couple of ??? comments
13370
13371 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13372
13373         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
13374         (tree_transform, case N_If_Statement): Remove non-determinism.
13375
13376         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
13377
13378 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
13379
13380         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
13381         Eliminate' section.
13382
13383         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
13384         no longer used as a parameter name for Eliminate pragma).
13385
13386 2004-04-22  Laurent GUERBY <laurent@guerby.net>
13387
13388         PR optimization/14984
13389         PR optimization/14985
13390         * trans.c (gigi): Fix non determinism leading to bootstrap
13391         comparison failures.
13392
13393 2004-04-21  Pascal Obry  <obry@gnat.com>
13394
13395         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
13396         passed to spawnvp() to properly handle program pathname with spaces on
13397         Win32.
13398
13399 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
13400
13401         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
13402         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
13403         unlocked in case of exceptions.
13404
13405 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
13406
13407         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
13408         This function does not exist anymore.
13409
13410 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
13411
13412         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
13413
13414         * link.c: Move variables to the __gnat name space.
13415
13416         * Makefile.in: list link.o explicitly when needed.
13417
13418         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
13419
13420 2004-04-21  Javier Miranda  <miranda@gnat.com>
13421
13422         * einfo.adb (Original_Access_Type): New subprogram
13423         (Set_Original_Access_Type): New subprogram
13424         (Write_Field21_Name): Write the name of the new field
13425
13426         * einfo.ads (Original_Access_Type): New field present in access to
13427         subprogram types.
13428         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
13429         E_Anonymous_Access_Protected_Subprogram_Type.
13430
13431         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
13432         subprogram types.
13433
13434         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
13435         to anonymous access to subprogram types.
13436
13437         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
13438         to subprogram types.
13439
13440         * sem_ch3.adb (Access_Definition): Complete decoration of entities
13441         corresponding to anonymous access to subprogram types.
13442         (Analyze_Component_Declaration): Add new actual to the call to
13443         subprogram replace_anonymous_access_to_protected_subprogram.
13444         (Array_Type_Declaration): Add new actual to the call to subprogram
13445         replace_anonymous_access_to_protected_subprogram.
13446         (Process_Discriminants): Add new actual to the call to subprogram
13447         replace_anonymous_access_to_protected_subprogram.
13448         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
13449
13450         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
13451         formal.
13452
13453         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
13454         access to subprogram types.
13455
13456         * sem_util.adb (Has_Declarations): Addition of package_specification
13457         nodes.
13458
13459 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
13460
13461         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
13462         inlined flags to renamed entity only if in current unit.
13463
13464 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
13465
13466         * s-parint.ads: Add DSA implementation marker.
13467
13468         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
13469         value of System.Partition_Interface.DSA_Implementation to determine
13470         what version of the distributed systems annex is available (no
13471         implementation, GLADE, or PolyORB).
13472
13473 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
13474
13475         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
13476
13477 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13478
13479         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
13480         with new type if alias sets differ.
13481         Fixes ACATS c41103b.
13482
13483 2004-04-21  Vincent Celier  <celier@gnat.com>
13484
13485         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
13486         Add array Lang_Args for the language specific compiling argument
13487         switches.
13488
13489         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
13490
13491 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
13492
13493         * gnat_rm.texi: Update the descripton of the Eliminate pragma
13494         according to the recent changes in the format of the parameters of the
13495         pragma (replacing Homonym_Number with Source_Location).
13496
13497 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
13498
13499         * 5isystem.ads: Removed, unused.
13500
13501         * gnat_rm.texi: Redo 1.13 change.
13502
13503 2004-04-19  Robert Dewar  <dewar@gnat.com>
13504
13505         * s-stoele.ads: Clean up definition of Storage_Offset (the new
13506         definition is cleaner, avoids the kludge of explicit Standard operator
13507         references, and also is consistent with a visible System.Address with
13508         no visible operations.
13509
13510         * s-geveop.adb: Add declarations to avoid assumption of visible
13511         operations on type System.Address (since these might not be available
13512         if Address is a non-private type for which the operations
13513         are made abstract).
13514
13515         * sem_eval.adb: Minor reformatting
13516
13517         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
13518         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
13519         reformatting (new function spec format).
13520
13521         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
13522         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
13523         s-caun64.adb: Add declarations to avoid assumption of visible
13524         operations on type System.Address (since these might not be available
13525         if Address is a non-private type for which the operations are made
13526         abstract).
13527
13528         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
13529
13530         * exp_intr.adb: Minor comment update
13531
13532         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
13533
13534         * 5omastop.adb: Add declarations to avoid assumption of visible
13535         operations on type System.Address (since these might not be available
13536         if Address is a non-private type for which the operations
13537         are made abstract).
13538
13539 2004-04-19  Vincent Celier  <celier@gnat.com>
13540
13541         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
13542
13543         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
13544         defaulted to Ada.
13545
13546         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
13547         defaulted to Ada.
13548         Call Check with Process_Languages.
13549         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
13550         with Process_Languages.
13551         (Recursive_Check): New Boolean parameter Process_Languages. Call
13552         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
13553         Process_Languages.
13554
13555         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
13556
13557         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
13558         parameter Ada_Main, defaulted to True.
13559         Check for Ada specific characteristics only when Ada_Main is True.
13560
13561         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
13562
13563         * prj.adb: (Project_Empty): Add new Project_Data components.
13564
13565         * prj.ads: New types and tables for non Ada languages.
13566         (Project_Data): New components Languages, Impl_Suffixes,
13567         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
13568         Include_Path, Include_Data_Set.
13569
13570         * prj-env.ads, prj-env.adb: Minor reformatting
13571
13572         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
13573         Put subprograms in alphabetical order
13574
13575         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
13576         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
13577         Opt.Follow_Links.
13578
13579         * mlib-prj.adb: Back out modification in last version, as they are
13580         incorrect.
13581         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
13582
13583         * make.adb: (Mains): Moved to package Makeutl
13584         (Linker_Opts): Moved to package Makeutl
13585         (Is_External_Assignment): Moved to package Makeutl
13586         (Test_If_Relative_Path): Moved to package Makeutl
13587         (Gnatmake): Move sorting of linker options to function
13588         Makeutl.Linker_Options_Switches.
13589
13590         * makeutl.ads, makeutl.adb: New files.
13591
13592         * Makefile.in: Add makeutl.o to the object files for gnatmake
13593
13594         * makeusg.adb: Add line for new switch -eL.
13595
13596         * gnatls.adb (Image): New function.
13597         (Output_Unit): If in verbose mode, output the list of restrictions
13598         specified by pragmas Restrictions.
13599
13600         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
13601         Text_IO.
13602
13603         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
13604         needed, to put it in the range 1970 (included) - 2026 (excluded).
13605         (Time_Of): Do not shift Unix_Min_Year (1970).
13606         Shift the date by multiple of 56 years, if needed, to put it in the
13607         range 1970 (included) - 2026 (excluded).
13608
13609         * adaint.h, adaint.c (__gnat_set_executable): New function.
13610
13611 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13612
13613         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
13614         and pop GC context.
13615         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
13616         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
13617         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
13618         (tree_transform, case N_Code_Statement): Likewise.
13619         (gnat_expand_stmt, case LABEL_STMT): Don't look at
13620         LABEL_STMT_FIRST_IN_EH.
13621         (gnat_expand_stmt, case ASM_STMT): New case.
13622
13623         * utils2.c (build_unary_op): Properly set TREE_READONLY of
13624         UNCONSTRAINED_ARRAY_REF.
13625
13626         * utils.c (poplevel): Temporarily push/pop GC context around inline
13627         function expansion.
13628
13629         * decl.c (maybe_variable): Properly set TREE_READONLY of
13630         UNCONSTRAINED_ARRAY_REF.
13631         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
13632
13633         * ada-tree.def: (ASM_STMT): New.
13634
13635         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
13636         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
13637         ASM_STMT_INPUT): New.
13638         (ASM_STMT_CLOBBER): Likewise.
13639
13640 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
13641
13642         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
13643         general rcheck mechanism to raise Program_Error for E.4(18), instead
13644         of a custom raiser in System.Partition_Interface.
13645         Part of general cleanup work before PolyORB integration.
13646
13647         * snames.ads, snames.adb: Add new runtime library entities and names
13648         for PolyORB DSA.
13649
13650         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
13651         exp_dist.
13652         (Build_Subprogram_Id): New subprogram provided by exp_dist
13653         Code reorganisation in preparation for PolyORB integration.
13654
13655         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
13656         exp_dist.
13657         (Build_Subprogram_Id): New subprogram provided by exp_dist
13658
13659         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
13660         actual parameter types for call to dereference of an
13661         access-to-subprogram type.
13662
13663         * rtsfind.ads: Add new runtime library entities and names for PolyORB
13664         DSA.
13665
13666         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
13667         instead, which has the same behaviour here since we never pass it a
13668         NULL pointer.
13669
13670         * link.c (run_path_option, Solaris case): Use -Wl, as for other
13671         platforms.
13672
13673         * Makefile.in: adjust object file lists for gnatlink and gnatmake
13674         to account for new dependency upon Interfaces.C.Strings + link.o
13675         For x86 FreeBSD, use 86numaux.
13676
13677         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
13678         from Mlib.Tgt to Mlib.
13679
13680         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
13681         target-independent.
13682
13683         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
13684         target-specific versions of this subprogram, now implemented as a
13685         target-independent function in Mlib.
13686
13687         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
13688         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
13689         (Linker_Library_Path_Option): Remove target-specific versions of this
13690         subprogram, now implemented as a target-independent function in Mlib.
13691
13692         * atree.adb: (Allocate_Initialize_Node): New subprogram.
13693         Factors out node table slots allocation.
13694         (Fix_Parents): New subprogram.
13695         Encapsulate the pattern of fixing up parent pointers for syntactic
13696         children of a rewritten node.
13697         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
13698         (Rewrite): Use New_Copy when creating saved copy of original node.
13699         (Replace): Use Copy_Node to copy nodes.
13700
13701 2004-04-19  Javier Miranda  <miranda@gnat.com>
13702
13703         * sprint.adb (Sprint_Node_Actual): Give support to the new
13704         Access_To_Subprogram node available in Access_Definition nodes. In
13705         addition, give support to the AI-231 node fields: null-exclusion,
13706         all-present, constant-present.
13707
13708         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
13709
13710         * sinfo.ads, sinfo.adb:
13711         New field Access_To_Subprogram_Definition in Access_Definition nodes
13712
13713         * sem_ch6.adb (Process_Formals): Move here the code that creates and
13714         decorates internal subtype declaration corresponding to the
13715         null-excluding formal. This code was previously in Set_Actual_Subtypes.
13716         In addition, carry out some code cleanup on this code. In case of
13717         access to protected subprogram call
13718         Replace_Anonymous_Access_To_Protected_Subprogram.
13719         (Set_Actual_Subtypes): Code cleanup.
13720
13721         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
13722         Find_Type in case of anonymous access renamings. Add warning in case of
13723         null-excluding attribute used in anonymous access renaming.
13724
13725         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
13726         subprogram
13727
13728         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
13729         subprogram.
13730         (Access_Definition): In case of anonymous access to subprograms call
13731         the corresponding semantic routine to decorate the node.
13732         (Access_Subprogram_Declaration): Addition of some comments indicating
13733         some code that probably should be added here. Detected by comparison
13734         with the access_definition subprogram.
13735         (Analyze_Component_Declaration): In case of access to protected
13736         subprogram call Replace_Anonymous_Access_To_Protected.
13737         (Array_Type_Declaration): In case of access to protected subprogram call
13738         Replace_Anonymous_Access_To_Protected_Subprogram.
13739         (Process_Discriminants): In case of access to protected subprogram call
13740         Replace_Anonymous_Access_To_Protected_Subprogram.
13741
13742         * par.adb (P_Access_Definition): New formal that indicates if the
13743         null-exclusion part was present.
13744         (P_Access_Type_Definition): New formal that indicates if the caller has
13745         already parsed the null-excluding part.
13746
13747         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
13748         (P_Identifier_Declarations): Code cleanup and give support to renamings
13749         of anonymous access to subprogram types.
13750         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
13751         (P_Array_Type_Definition): Give support to AI-254.
13752         (P_Component_Items): Give support to AI-254.
13753         (P_Access_Definition): New formal that indicates if the header was
13754         already parsed by the caller.
13755         (P_Access_Type_Definition): New formal that indicates if the caller has
13756         already parsed the null-excluding part.
13757
13758         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
13759         call to P_Access_Definition.
13760
13761 2004-04-19  Geert Bosch  <bosch@gnat.com>
13762
13763         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
13764         the delicate semantics of floating-point to integer conversion.
13765         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
13766
13767         * eval_fat.adb (Machine_Mantissa): Moved to spec.
13768         (Machine_Radix): New function.
13769
13770         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
13771         conversion checks.
13772         (Machine_Radix): New function also for use in conversion checks.
13773
13774 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
13775
13776         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
13777
13778         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
13779         to decorate the access-to-protected subprogram and the equivalent type.
13780
13781         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
13782         to anonymous access to subprogram types.
13783
13784         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
13785         constant-folding, for legality checks in contexts that require an RM
13786         static expression.
13787
13788         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
13789         temporary but stack checking is not enabled, increment serial number
13790         to so that symbol generation is consistent with and without stack
13791         checking.
13792
13793         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
13794         independent on whether stack checking is enabled, caller must check
13795         the corresponding flag.
13796
13797         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
13798         range checks.
13799         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
13800         parent if it has discriminants.
13801         (Build_Derived_Private_Type): Constructed full view does
13802         not come from source.
13803         (Process_Discriminants): Default discriminants on a tagged type are
13804         legal if this is the internal completion of a private untagged
13805         derivation.
13806
13807         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
13808         no constraint checks, because it corresponds to an existing object.
13809
13810         * sem_prag.adb (Process_Convention): Pragma applies
13811         only to subprograms in the same declarative part, i.e. the same unit,
13812         not the same scope.
13813
13814         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
13815         ignore type mismatch on a numeric conversion if expression comes from
13816         expansion.
13817
13818 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
13819
13820         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
13821         Homonym_Number parameter, add processing for Source_Location parameter
13822         corresponding.
13823         (Check_Eliminated): Remove the check for homonym numbers, add the check
13824         for source location traces.
13825
13826         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
13827         with Arg_Source_Location corresponding to the changes in the format of
13828         the pragma.
13829
13830         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
13831         Eliminate pragma corresponding to the changes in the format of the
13832         pragma: Homonym_Number is replaced with Source_Location, two ways of
13833         distinguishing homonyms are mutially-exclusive.
13834
13835 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
13836
13837         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
13838
13839         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
13840         No_Dollar_In_Label, no longer necessary, as it is always True.
13841         (Strip_Suffixes): Likewise.
13842
13843 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
13844
13845         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
13846         modulus for compatibility with size clause on targets with 16-bit
13847         Integer.
13848
13849         * layout.adb (Discrimify): In the case of private types, set Vtyp to
13850         full type to fix type mismatches on calls to size functions for
13851         discriminant-dependent array components.
13852
13853 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
13854
13855         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
13856         lib.
13857
13858 2004-04-19  Pascal Obry  <obry@gnat.com>
13859
13860         * mdll-utl.adb (Locate): New version is idempotent.
13861
13862 2004-04-17  Laurent Guerby <laurent@guerby.net>
13863
13864         PR ada/14988 (partial)
13865         * impunit.adb: Fix typo.
13866
13867 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
13868
13869         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
13870         and install-rts-cert targets.  Remove all gnatlib and gnattools
13871         targets and all other rts-* targets (moved to libada).  Remove (now)
13872         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
13873         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
13874
13875 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13876
13877         * trans.c (tree_transform): Shortcut returning error_mark_node for
13878         statements in annotate_only_mode.
13879         (tree_transform, case N_Label, case N_Return_Statement,
13880         N_Goto_Statement): Make statement tree instead of generating code.
13881         (tree_transform, case N_Assignment_Statement): No longer check
13882         type_annotate_only.
13883         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
13884         RETURN_STMT): New.
13885         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
13886         New fcns.
13887         (gnat_to_gnu): Collect any RTL generated and deal with it.
13888         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
13889         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
13890         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
13891
13892         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
13893
13894         * ada-tree.def (EXPR_STMT): Fix typo in name.
13895         (BLOCK_STMT, IF_STMT): New nodes.
13896
13897         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
13898         LABEL_STMT_FIRST_IN_EH): New macros.
13899         (RETURN_STMT_EXPR): Likewise.
13900
13901         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
13902         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
13903
13904 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
13905
13906         * atree.ads: Correct documentation on extended nodes.
13907
13908         * link.c: Set run_path_option for FreeBSD.
13909
13910 2004-04-08  Vincent Celier  <celier@gnat.com>
13911
13912         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
13913         one of the ALI file, do not link with DEC lib.
13914
13915         * par.adb Remove the last two characters ("%s" or "%b") when checking
13916         if a language defined unit may be recompiled.
13917
13918 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
13919
13920         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
13921         removal of abstract operation leaves no possible interpretation for
13922         expression.
13923
13924         * sem_eval.adb (Eval_Qualified_Expression): Use
13925         Set_Raises_Constraint_Error on node when needed, so that it does not
13926         get optimized away by subsequent optimizations.
13927
13928         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
13929         operands even when they are not wrapped in a type conversion.
13930
13931 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
13932
13933         * sem_prag.adb (Set_Exported): Warn about making static as result of
13934         export only when the export is coming from source. This may be not
13935         be true e.g. on VMS where we expand export pragmas for exception codes
13936         together with imported or exported exceptions, and we don't want the
13937         user to be warned about something he didn't write.
13938
13939 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
13940
13941         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
13942         duplication between normal entities and those declared as renamings.
13943         No functional change.
13944
13945         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
13946         inline functions returning an unconstrained result.
13947
13948 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
13949
13950         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
13951         conform to what other front-ends do.
13952
13953 2004-04-08  Doug Rupp  <rupp@gnat.com>
13954
13955         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
13956         libraries.
13957
13958 2004-04-06  Pascal Obry  <obry@gnat.com>
13959
13960         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
13961
13962         * osint.adb (Program_Name): Do not look past a directory separator.
13963
13964 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
13965
13966         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
13967
13968         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
13969         requirement for preserving a copy of the original assignment node.
13970
13971         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
13972
13973 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
13974
13975         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
13976         when supported.
13977
13978 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
13979
13980         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
13981         operator calls in functional notation, and apply
13982         Universal_Interpretation to operands, not to their type.
13983
13984 2004-04-06  Robert Dewar  <dewar@gnat.com>
13985
13986         * 5wdirval.adb: Minor reformatting
13987
13988 2004-04-06  Ed Falis  <falis@gnat.com>
13989
13990         * gnat_rm.texi: Improve a reference to the GCC manual
13991
13992 2004-04-05  Vincent Celier  <celier@gnat.com>
13993
13994         * adaint.h, adaint.c: Add function __gnat_named_file_length
13995
13996         * impunit.adb: Add Ada.Directories to the list
13997
13998         * Makefile.in: Add VMS and Windows versions of
13999         Ada.Directories.Validity package body.
14000
14001         * Makefile.rtl: Add a-direct and a-dirval
14002
14003         * mlib-tgt.ads: Minor comment update.
14004
14005         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
14006         a-direct.ads, a-direct.adb: New files.
14007
14008 2004-04-05  Vincent Celier  <celier@gnat.com>
14009
14010         PR ada/13620
14011         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
14012         just to the compiler.
14013
14014 2004-04-05  Robert Dewar  <dewar@gnat.com>
14015
14016         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
14017         returned string is 1.
14018
14019         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
14020
14021         * eval_fat.ads: Minor reformatting
14022
14023         * g-curexc.ads: Document that lower bound of returned string values
14024         is always one.
14025
14026         * gnatlink.adb: Add ??? comment for previous change
14027         (need to document why this is VMS specific)
14028
14029         * s-stoele.ads: Minor reformatting
14030
14031         * tbuild.ads: Minor reformatting throughout (new function specs)
14032
14033         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
14034         after WITH.
14035
14036         * scng.adb: Minor reformatting
14037
14038 2004-04-05  Geert Bosch  <bosch@gnat.com>
14039
14040         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
14041         (Leading_Part): Still perform truncation to machine number if the
14042         specified radix_digits is greater or equal to machine_mantissa.
14043
14044 2004-04-05  Javier Miranda  <miranda@gnat.com>
14045
14046         * par-ch3.adb: Complete documentation of previous change
14047         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
14048         (aliased must appear before constant).
14049
14050         * par-ch4.adb: Complete documentation of previous change.
14051
14052         * par-ch6.adb: Complete documentation of previous change.
14053
14054         * sinfo.ads: Fix typo in commment.
14055
14056 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
14057
14058         * sem_ch3.adb (Inherit_Components): If derived type is private and has
14059         stored discriminants, use its discriminants to constrain parent type,
14060         as is done for non-private derived record types.
14061
14062         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
14063         Ada 2005 AI-310: an abstract non-dispatching operation is not a
14064         candidate interpretation in an overloaded call.
14065
14066         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
14067         expression is Null and target type is not an access type (e.g. a
14068         non-private address type).
14069
14070 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
14071
14072         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
14073         statement whose right-hand side is an inlined call, save a copy of the
14074         original assignment subtree to preserve enough consistency for
14075         Analyze_Assignment to proceed.
14076
14077         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
14078         complete assignment subtree which is now unnecessary, as the expansion
14079         of inlined call has been improved to preserve a consistent assignment
14080         tree.  Note_Possible_Modification must be called only
14081         after checks have been applied, or else unnecessary checks will
14082         be generated.
14083
14084         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
14085         of explicit dereferences that do not Come_From_Source:
14086          - be selective on cases where we must go back to the dereferenced
14087            pointer (an assignment to an implicit dereference must not be
14088            recorded as modifying the pointer);
14089          - do not rely on Original_Node being present (Analyze_Assignment
14090            calls Note_Possible_Modification on a copied tree).
14091
14092         * sem_warn.adb (Check_References): When an unset reference to a pointer
14093         that is never assigned is encountered, prefer '<pointer> may be null'
14094         warning over '<pointer> is never assigned a value'.
14095
14096 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
14097
14098         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
14099         the ABI.
14100
14101 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
14102
14103         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
14104         libexc. We currently don't reference anything in this library and
14105         linking it in triggers linker warnings we don't want to see.
14106
14107         * init.c: Update comments.
14108
14109 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14110
14111         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
14112         * utils.c (create_field_decl): Likewise.
14113         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
14114
14115 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
14116
14117         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
14118         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
14119         Add info directory entry and category.
14120
14121 2004-04-02  Jan Hubicka  <jh@suse.cz>
14122
14123         * utils.c: Include function.h
14124         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
14125
14126 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
14127
14128         PR ada/14150
14129         * Make-lang.in: Clean up generation of documentation
14130
14131         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
14132
14133         * xgnatug.adb: Removed, replaced by xgnatugn.adb
14134
14135         * xgnatugn.adb: Replaces xgnatug.adb
14136
14137         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
14138
14139         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
14140
14141         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
14142         gnat_ug_wnt.texi: Removed.
14143
14144 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
14145
14146         * utils2.c: Update copyright notice.
14147
14148 2004-04-01  Robert Dewar  <dewar@gnat.com>
14149
14150         * checks.adb: Minor reformatting throughout
14151         Note that prev checkin added RM reference to alignment warning
14152
14153 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
14154
14155         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
14156         non-static when building aggregate for bit-packed array.
14157
14158         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
14159         function call that is itself the actual in a procedure call, build
14160         temporary for it.
14161
14162         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
14163         a string literal, create a temporary for it, constant folding only
14164         handles scalars here.
14165
14166 2004-04-01  Vincent Celier  <celier@gnat.com>
14167
14168         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
14169         Error_Msg_SP): New empty procedures to instantiate the Scanner.
14170         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
14171         tokens.
14172         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
14173         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
14174         and get the checksum.
14175
14176         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
14177         already in the Q.
14178         Increase the Marking_Label at the end of the Multiple_Main_Loop,
14179         instead of at the beginning.
14180
14181         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
14182         directly.
14183         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
14184         on VMS.
14185
14186         * osint.ads (Multi_Unit_Index_Character): New Character global variable
14187
14188         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
14189         not '~' directly.
14190
14191         * par.adb: Remove test on file name to detect language defined units.
14192         Add test on unit name, after parsing, to detect language defined units
14193         that are not compiled with -gnatg (except System.RPC and its children)
14194
14195         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
14196         following units without style checking.
14197
14198         * switch-c.adb: Change -gnatC to -gnateI
14199
14200         * usage.adb: Document new switch -gnateInnn
14201
14202         * scng.adb (Accumulate_Token_Checksum): New procedure
14203         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
14204         word or literal number.
14205         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
14206         numbers.
14207
14208 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
14209
14210         * a-tasatt.adb,
14211         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
14212         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
14213         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
14214         5vtpopde.adb: Add missing 'constant' keywords.
14215
14216 2004-04-01  Javier Miranda  <miranda@gnat.com>
14217
14218         * par-ch4.adb: (P_Allocator): Code cleanup
14219
14220         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
14221         attribute.
14222
14223         * sinfo.ads: Complete documentation of previous change
14224
14225 2004-04-01  Pascal Obry  <obry@gnat.com>
14226
14227         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
14228         only on VMS.  This special handling was done because an old GNU/ld bug
14229         on Windows which has been fixed.
14230
14231 2004-04-01  GNAT Script  <nobody@gnat.com>
14232
14233         * Make-lang.in: Makefile automatically updated
14234
14235 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14236
14237         * decl.c (gnat_to_gnu_entity, make_type_from_size):
14238         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
14239         * trans.c (tree_transform, convert_with_check): Likewise.
14240         * utils.c (gnat_signed_or_unsigned_type): Likewise.
14241         (build_vms_descriptor, unchecked_convert): Likewise.
14242         * utils2.c (nonbinary_modular_operation): Likewise.
14243
14244 2004-03-29  Javier Miranda  <miranda@gnat.com>
14245
14246         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
14247         (Install_Null_Excluding_Check): Local subprogram that determines whether
14248         an access node requires a runtime access check and if so inserts the
14249         appropriate run-time check.
14250         (Apply_Access_Check): Call Install_Null_Excluding check if required
14251         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
14252
14253         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
14254
14255         * einfo.ads: Fix typo in comment
14256
14257         * exp_ch3.adb (Build_Assignment): Generate conversion to the
14258         null-excluding type to force the corresponding run-time check.
14259         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
14260         type to force the corresponding run-time check.
14261
14262         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
14263         the null-excluding type to force the corresponding run-time check.
14264
14265         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
14266         case of access types unless they have the null-excluding attribute.
14267
14268         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
14269         part.
14270
14271         * exp_util.ads: Fix typo in comment
14272
14273         * par.adb (P_Null_Exclusion): New subprogram
14274         (P_Subtype_Indication): New formal that indicates if the null-excluding
14275         part has been scanned-out and it was present
14276
14277         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
14278
14279         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
14280         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
14281         type to force the corresponding run-time check
14282         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
14283         components
14284         (Resolve_Array_Aggregate): Carry out some static checks
14285         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
14286
14287         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
14288         attribute must be set only if specified by means of the null-excluding
14289         part. In addition, we must also propagate the access-constant attribute
14290         if present.
14291         (Access_Subprogram_Declaration, Access_Type_Declaration,
14292         Analyze_Component_Declaration, Analyze_Object_Declaration,
14293         Array_Type_Declaration, Process_Discriminants,
14294         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
14295         and carry out some static checks.
14296         (Build_Derived_Access_Type): Set the null-excluding attribute
14297         (Derived_Type_Declaration, Process_Subtype): Carry out some static
14298         checks.
14299
14300         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
14301
14302         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
14303
14304         * sem_ch6.adb (Process_Formals): Carry out some static checks.
14305         (Set_Actual_Subtypes): Generate null-excluding subtype if the
14306         null-excluding part was present; it is not required to be done here in
14307         case of anonymous access types.
14308         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
14309         value.
14310
14311         * sem_res.adb (Resolve_Actuals): Carry out some static check
14312         (Resolve_Null): Allow null in anonymous access
14313
14314         * sinfo.adb: New subprogram Null_Exclusion_Present
14315         All_Present and Constant_Present available on access_definition nodes
14316
14317         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
14318         object_declaration, derived_type_definition, component_definition,
14319         discriminant_specification, access_to_object_definition,
14320         access_function_definition, allocator, access_procedure_definition,
14321         access_definition, parameter_specification, All_Present and
14322         Constant_Present flags available on access_definition nodes.
14323
14324 2004-03-29  Robert Dewar  <dewar@gnat.com>
14325
14326         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
14327         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
14328         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
14329         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
14330         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
14331         sem_prag.adb: Updates to handle multiple units/file
14332
14333         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
14334
14335         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
14336         sem_util.adb: Minor reformatting
14337
14338         * sem_ch12.adb: Add comment for previous change
14339
14340 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
14341
14342         * osint.adb (Executable_Prefix): Set Exec_Name to the current
14343         executable name when not initialized. Otherwise, use its current value.
14344
14345         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
14346         initialize it to another executable name than the current one. This
14347         allows to configure paths for an executable name (gnatmake) different
14348         from the current one (gnatdist).
14349
14350 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
14351
14352         * exp_ch6.adb (Expand_Call): A call to a function declared in the
14353         current unit cannot be inlined if it appears in the body of a withed
14354         unit, to avoid order of elaboration problems in gigi.
14355
14356         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
14357         information for protected (wrapper) operation as well, to simplify gdb
14358         use.
14359
14360         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
14361         protected body, indicate that the entity for the generated spec comes
14362         from source, to ensure that references are properly generated for it.
14363         (Build_Body_To_Inline): Do not inline a function that returns a
14364         controlled type.
14365
14366         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
14367         apply convention to homonyms that are declared explicitly.
14368
14369         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
14370         that renames an equality operator and the operands are overloaded,
14371         resolve them with the declared formal types, before rewriting as an
14372         operator.
14373
14374 2004-03-29  GNAT Script  <nobody@gnat.com>
14375
14376         * Make-lang.in: Makefile automatically updated
14377
14378 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
14379
14380         * memtrack.adb: Log realloc calls, which are treated as free followed
14381         by alloc.
14382
14383 2004-03-25  Vincent Celier  <celier@gnat.com>
14384
14385         * prj-makr.adb (Process_Directories): Detect when a file contains
14386         several units. Do not include such files in the config pragmas or
14387         in the naming scheme.
14388
14389         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
14390         Resolve links only when not in Trusted_Mode.
14391         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
14392         Do not resolve links for the display names.
14393
14394         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
14395         resolve links when computing the display names.
14396
14397 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
14398
14399         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
14400         attribute reference does not denote a subtype, it can be any
14401         expression that has a classwide type, potentially after an implicit
14402         dereference.  In particular, the prefix can be a view conversion for
14403         a classwide type (for which Is_Object_Reference holds), but it can
14404         also be a value conversion for an access-to-classwide type. In the
14405         latter case, there is an implicit dereference, and the original node
14406         for the prefix does not verify Is_Object_Reference.
14407
14408         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
14409         conversion of a discriminant-dependent component of a mutable object
14410         is one itself.
14411
14412 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
14413
14414         * freeze.adb (Freeze_Entity): When an inherited subprogram is
14415         inherited, has convention C, and has unconstrained array parameters,
14416         place the corresponding warning on the derived type declaration rather
14417         than the original subprogram.
14418
14419         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
14420         indication on renaming declaration, if formal has a box and actual
14421         is absent.
14422
14423         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
14424         determine whether to generate an implicit or explicit reference to
14425         the renamed entity.
14426
14427         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
14428         subprogram renaming comes from a defaulted formal subprogram in an
14429         instance.
14430
14431 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
14432
14433         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
14434         value expressions to ensure that calls within a component definition
14435         will be checked (since those are evaluated during the record type's
14436         elaboration).
14437
14438 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
14439
14440         * s-tpobop.adb: Code clean up:
14441         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
14442         code.
14443         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
14444
14445 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
14446
14447         * Makefile.in: Clean up in the ravenscar run time.
14448
14449 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14450
14451         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
14452         of No_Strict_Aliasing to build_pointer_type_for_mode.
14453         * utils.c (update_pointer_to): Walk pointer and ref chains.
14454
14455 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
14456
14457         * ali.ads: Fix Comment about Dynamic_Elab.
14458
14459         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
14460         Has_RACW, Is_Generic, etc.)
14461         (Output_Object, Gnatls): Take into account ALI files not attached to
14462         an object.
14463
14464 2004-03-22  Vincent Celier  <celier@gnat.com>
14465
14466         * gprep.adb: Change all String_Access to Name_Id
14467         (Is_ASCII_Letter): new function
14468         (Double_File_Name_Buffer): New procedure
14469         (Preprocess_Infile_Name): New procedure
14470         (Process_Files): New procedure
14471         (Gnatprep): Check if output and input are existing directories.
14472         Call Process_Files to do the real job.
14473
14474 2004-03-22  Robert Dewar  <dewar@gnat.com>
14475
14476         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
14477         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
14478
14479 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
14480
14481         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
14482         case when the source contains only comments.
14483
14484 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
14485
14486         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
14487         declaration for a child subprogram body that acts as a spec, indicate
14488         that the entity in the declaration needs debugging information.
14489
14490         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
14491         full view if the subtype is created for a constrained record component;
14492         gigi has enough information to construct the record, and there is no
14493         place in the tree for the declaration.
14494
14495         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
14496         serial number for the dummy body that is built for analysis, to avoid
14497         inconsistencies in the generation of internal names when compiling
14498         with -gnatN.
14499
14500 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
14501
14502         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
14503         object.
14504
14505 2004-03-22  GNAT Script  <nobody@gnat.com>
14506
14507         * Make-lang.in: Makefile automatically updated
14508
14509 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14510
14511         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
14512         * trans.c (tree_transform, emit_index_check): Likewise.
14513         * utils.c (build_template): Likewise.
14514         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
14515         (maybe_unconstrained_array, unchecked_convert): Likewise.
14516         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
14517         (build_unary_op): Likewise.
14518         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
14519         (fill_vms_descriptor): Likewise.
14520         (build_call_alloc_dealloc): Likewise.
14521         ALIGN is unsigned.
14522         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
14523
14524 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
14525
14526         PR other/14630
14527         * gnat_ug.texi: Add info directory category and entry.
14528         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
14529         gnat_ug_wnt.texi: Regenerate.
14530
14531 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
14532
14533         * ada-tree.h: Update copyright notice.
14534         Minor reformatting.
14535
14536 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
14537
14538         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
14539         as regular exception objects and not as mere integers representing the
14540         condition code.  The latter approach required some dynamics to mask off
14541         severity bits, which did not fit well into the GCC table based model.
14542         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
14543         exception data objects. We don't it and it would conflict with the other
14544         external symbol we have to generate for such exceptions.
14545
14546         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
14547         the special code for VMS exceptions, since these are now represented
14548         as regular exceptions objects.
14549
14550 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14551
14552         * decl.c (debug_no_type_hash): Remove.
14553         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
14554         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
14555
14556 2004-03-19  Laurent Guerby <laurent@guerby.net>
14557
14558         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
14559         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
14560
14561 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14562
14563         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
14564         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
14565         (TYPE_RM_SIZE_INT): Directly use type.values.
14566         (TREE_LOOP_ID): Clean up check.
14567         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
14568         TYPE_VALUES, not TYPE_FIELDS.
14569         * trans.c (convert_with_check): Delay access of bounds of basetype
14570         until sure is numeric.
14571
14572 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
14573
14574         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
14575
14576         Code clean up:
14577         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
14578         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
14579         Specific.Set instead of direct call to e.g pthread_setspecific.
14580
14581 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
14582
14583         * adaint.c: Update comments.
14584
14585         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
14586         GNATLIB_SHARED for FreeBSD.
14587
14588 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
14589
14590         * init.c [VxWorks]: Do not fix the stack size for the environment task.
14591         When needed (stack checking) the stack size is retrieved
14592         from the VxWorks kernel.
14593
14594         * Makefile.in: Flag -nostdinc is required when building the run time
14595         for avoiding looking for files in the base compiler.
14596         Add the VxWorks specific version of the package body for
14597         System.Stack_checking.Operations (5zstchop.adb).
14598
14599         * Make-lang.in: Add the object file for
14600         System.Stack_Checking.Operations.
14601
14602         * Makefile.rtl: Add object file for the package
14603         System.Stack_Checking.Operations.
14604
14605         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
14606
14607         * s-stache.ads, s-stache.adb: Move the operations related to stack
14608         checking from this package to package System.Stack_Checking.Operations.
14609         This way, stack checking operations are only linked in the final
14610         executable when using the -fstack-check flag.
14611
14612 2004-03-18  Doug Rupp  <rupp@gnat.com>
14613
14614         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
14615         Reorganize ifeq's.
14616
14617         * 5qsystem.ads, 5xcrtl.ads: New files.
14618
14619 2004-03-18  Vincent Celier  <celier@gnat.com>
14620
14621         * prj.adb (Reset): Reset hash table Files_Htable
14622
14623         * prj-env.adb (Source_Paths, Object_Paths): New tables.
14624         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
14625         the procedures Add_To_Path_File.
14626         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
14627         making sure that each directory is present only once and, for object
14628         dirs, when a directory already present is added, the duplicate is
14629         removed and the directory is always put as the last in the table.
14630         Write the path files at the end of these accumulations.
14631
14632         * prj-nmsc.adb (Record_Source): Add source file name in hash table
14633         Files_Htable for all sources.
14634
14635         * prj-proc.adb (Process): Remove restrictions between not directly
14636         related extending projects.
14637
14638 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
14639
14640         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
14641         (Find_Sources): Minor speed optimization.
14642
14643         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
14644         parameter Trusted_Mode.
14645
14646 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
14647
14648         * scn.adb (Determine_License): Take into account a degenerated case
14649         when the source contains only comments.
14650
14651 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
14652
14653         * sem_warn.adb (Check_References): For a warning on a selected
14654         component that does not come from source, locate an uninitialized
14655         component of the record type to produce a more precise error message.
14656
14657 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
14658
14659         * 3zsoccon.ads: Fix multicast options.
14660
14661         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
14662         in the spec.
14663
14664 2004-03-15  Robert Dewar  <dewar@gnat.com>
14665
14666         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
14667         pragma used for a private type.
14668
14669         * lib-xref.adb (Generate_Reference): Do not generate warning if
14670         reference is in a different unit from the pragma Unreferenced.
14671
14672         * 5vtpopde.adb: Minor reformatting
14673         Fix casing of To_Task_ID
14674
14675         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
14676         flag if we have an unchecked conversion to an access type in the same
14677         unit.
14678
14679 2004-03-15  Geert Bosch  <bosch@gnat.com>
14680
14681         * a-ngcoty.adb (Modulus): In alternate formula for large real or
14682         imaginary parts, use Double precision throughout.
14683
14684         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
14685         we want to be able to compile run-time with -gnata for testing, but
14686         this may also be instantiated in user code that is compiled with -gnata.
14687
14688 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
14689
14690         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
14691         codes. Having a separate type for this is useful to enforce consistency
14692         throughout the various run-time units.
14693         (Exception_Data): Use Exception_Code for Import_Code.
14694
14695         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
14696         Natural and Integer in various places.
14697         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
14698         with the severity bits masked off.
14699         (Register_VMS_Exception): Handle the additional exception data pointer
14700         argument.
14701
14702         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
14703         component, now reflected by an exported accessor.
14704         (is_handled_by): New routine to compute whether the propagated
14705         occurrence matches some handler choice specification. Extracted out of
14706         get_action_description_for, and expanded to take care of the VMS
14707         specifities.
14708         (get_action_description_for): Use is_handled_by instead of an explicit
14709         complex condition to decide if the current choice at hand catches the
14710         propagated occurrence.
14711
14712         * raise.h (Exception_Code): New type for C.
14713
14714         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
14715         System.Standard_Library.Exception_Code, to allow references from the
14716         pragma import/export expander.
14717
14718         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
14719         New accessors to allow easy access to GNAT exception data
14720         characteristics.
14721         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
14722         redundant Handled_By_Others component, helper for the personality
14723         routine which will now be able to call the appropriate exception data
14724         accessor instead.
14725
14726         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
14727         component of Standard_Exception_Type to be the closest possible to
14728         Exception_Code in System.Standard_Library, that we cannot get at this
14729         point. Expand a ??? comment to notify that this type node should
14730         probably be rewritten later on.
14731
14732         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
14733         registration call to include a pointer to the exception object in the
14734         arguments.
14735
14736         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
14737         instead of int and explicit bitmasks.
14738
14739 2004-03-15  Vincent Celier  <celier@gnat.com>
14740
14741         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
14742         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
14743
14744         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
14745         longer needed now that it is in the spec of
14746         System.Tasking.Task_Attributes.
14747
14748         * adaint.h, adaint.c: (__gnat_create_output_file): New function
14749
14750         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
14751
14752         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
14753
14754         * make.adb (Gnatmake): Do not check the executable suffix; it is being
14755         taken care of in Scan_Make_Arg.
14756         (Scan_Make_Arg): Add the executable suffix only if the argument
14757         following -o, in canonical case, does not end with the executable
14758         suffix.  When in verbose mode and executable file name does not end
14759         with executable suffix, output the executable name, in canonical case.
14760
14761         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
14762         to avoid warnings when instantiating Ada.Task_Attributes.
14763         Minor reformating.
14764
14765         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
14766         in the correct order.
14767
14768         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
14769         redirect standard output and error to a file for the invocation of the
14770         compiler, then read the file.
14771
14772         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
14773         directory, instead of the Value.
14774         (Find_Source_Dirs): Remove useless code & comments.
14775
14776 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
14777
14778         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
14779         tagged type is inherited, and the parent operation is not frozen yet,
14780         force generation of a freeze node for the inherited operation, so the
14781         corresponding dispatch entry is properly initialized.
14782         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
14783         when looking for user-defined equality operation.
14784
14785         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
14786         boolean when locating primitive equality of tagged component.
14787
14788         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
14789         bit-aligned field and the right-hand side a string literal, introduce
14790         a temporary before expanding assignment into a loop.
14791
14792         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
14793         priority in full, to ensure that any expanded subepxressions of it are
14794         elaborated in the scope of the init_proc.
14795
14796         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
14797         after object declaration, skipping over code that may have been
14798         generated for validity checks.
14799
14800         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
14801         discriminants, ignore the known discriminants of its full view, if
14802         any, to check legality.
14803
14804         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
14805         component if type has unknown discriminants.
14806         (Analyze_Private_Extension_Declaration): Discriminant constraint is
14807         null if type has unknown discriminants.
14808
14809         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
14810         for end label when present.
14811
14812         * s-fileio.adb (Open): When called with a C_Stream, use given name for
14813         temporary file, rather than an empty string.
14814
14815 2004-03-15  Ed Falis  <falis@gnat.com>
14816
14817         * s-thread.adb: Removed, no longer used.
14818
14819 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14820
14821         * decl.c (target.h): Now include.
14822         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
14823         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
14824         (validate_size): For POINTER_TYPE, get smallest size permitted on
14825         machine.
14826
14827         * fe.h: Sort Einfo decls and add Set_Mechanism.
14828
14829         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
14830         (ada/decl.o): Depends on target.h.
14831
14832         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
14833         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
14834
14835 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
14836
14837         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
14838
14839         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
14840         Insert_Dereference_Action when rewriting an implicit dereference into
14841         an explicit one, this will be taken care of during expansion of the
14842         explicit dereference.
14843         (Expand_N_Slice): Same. Always do the rewriting, even for the case
14844         of non-packed slices, since the dereference action generated by
14845         expansion of the explicit dereference is needed in any case.
14846         (Expand_N_Selected_Component): When rewriting an implicit dereference,
14847         analyze and resolve the rewritten explicit dereference so it is seen
14848         by the expander.
14849         (Insert_Dereference_Action): This procedure is now called only for the
14850         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
14851         dereferences that do not come from source (including explicit
14852         dereferences resulting from rewriting implicit ones), but do not
14853         recursively insert a check for the dereference nodes contained within
14854         the check.
14855         (Insert_Dereference_Action): Clarify and correct comment.
14856
14857 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
14858
14859         PR ada/14131
14860         Move language detection to the top level.
14861         * config-lang.in: Build by default.
14862
14863 2004-03-05  Robert Dewar  <dewar@gnat.com>
14864
14865         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
14866
14867         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
14868         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
14869         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
14870         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
14871         unchecked conversion to spec to avoid warnings.
14872
14873         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
14874         to Task_ID
14875
14876         * 7stpopsp.adb: Correct casing in To_Task_ID call
14877
14878         * a-strsea.ads, a-strsea.adb: Minor reformatting
14879
14880         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
14881
14882         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
14883         Adjust Max_Msg_Length to be clearly large enough.
14884
14885         * fe.h: Define In_Same_Source_Unit
14886
14887         * osint.adb: Add pragma Warnings Off to suppress warnings
14888         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
14889         aliasing warnings.
14890
14891         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
14892
14893         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
14894
14895         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
14896
14897         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
14898
14899         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
14900
14901         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
14902         node. We now do generate them for gcc back end.
14903
14904         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
14905         warning.
14906
14907         * sinput-c.adb: Fix bad name in header.
14908         Add pragma Warnings Off to suppress aliasing warning.
14909
14910         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
14911
14912         * snames.h, snames.ads, snames.adb: Add entry for pragma
14913         No_Strict_Aliasing.
14914
14915 2004-03-05  Vincent Celier  <celier@gnat.com>
14916
14917         * prj-com.ads: Add hash table Files_Htable to check when a file name
14918         is already a source of another project.
14919
14920         * prj-nmsc.adb (Record_Source): Before recording a new source, check
14921         if its file name is not already a source of another project. Report an
14922         error if it is.
14923
14924         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
14925         source file name, call gnatpp with all the sources of the main project.
14926
14927         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
14928         of file names.
14929
14930         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
14931         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
14932         /RUNTIME_SYSTEM=, converted to --RTS=
14933         /NOTABS, converted to -notabs
14934
14935 2004-03-05  Pascal Obry  <obry@gnat.com>
14936
14937         * make.adb: Minor reformatting.
14938
14939 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
14940
14941         Part of implemention of AI-262.
14942         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
14943
14944         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
14945         procedure.
14946
14947         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
14948         when component type is a partially constrained class-wide subtype.
14949         (Constrain_Discriminated_Type): If parent type has unknown
14950         discriminants, a constraint is illegal, even if full view has
14951         discriminants.
14952         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
14953         with unknown discriminants whose full view is a discriminated record.
14954
14955         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
14956         flag, to handle properly derivations of tagged types with unknown
14957         discriminants.
14958         (Analyze_Package_Spec, Analyze_Package_Body): Install
14959         Private_With_Clauses before analyzing private part or body.
14960
14961         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
14962         Has_Discriminants can be true for a given type (documentation).
14963
14964 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
14965
14966         * s-restri.ads: Fix license (GPL->GMGPL).
14967
14968         * s-tassta.adb: Minor reformatting.
14969
14970         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
14971         by calls to Exit_One_ATC_Level, since additional clean up is performed
14972         by this function.
14973
14974         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
14975         by calls to Exit_One_ATC_Level, since additional clean up is performed
14976         by this function.
14977
14978 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14979
14980         * trans.c: Reflect GCC changes to fix bootstrap problem.
14981         Add warning for suspicious aliasing unchecked conversion.
14982
14983 2004-03-05  GNAT Script  <nobody@gnat.com>
14984
14985         * Make-lang.in: Makefile automatically updated
14986
14987 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
14988
14989         * ali.adb (Read_Instantiation_Instance): Do not modify the
14990         current_file_num when reading information about instantiations, since
14991         this corrupts files in later references.
14992
14993 2004-03-02  Vincent Celier  <celier@gnat.com>
14994
14995         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
14996         before checking if it is read-only.
14997
14998         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
14999         of SRC_DIRS and eliminate duplicates.
15000
15001         * gprcmd.adb: Replace command "path" with command "path_sep" to return
15002         the path separator.
15003         (Usage): Document path_sep
15004
15005         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
15006         C++ compiler. No need for a script.
15007         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
15008         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
15009         subst.
15010
15011         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
15012         where there are Ada sources.
15013         (Set_Ada_Paths): Only add to the include path the source dirs of project
15014         with Ada sources.
15015         (Add_To_Path): Add the Display_Values of the directories, not their
15016         Values.
15017
15018         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
15019         data.
15020
15021         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
15022         is not No_Name.
15023         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
15024         Value is canonicalized.
15025         (Language_Independent_Check): Do not copy Value to Display_Value when
15026         canonicalizing Value.
15027
15028         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
15029         path to find limited with cycles.
15030         (Parse_Single_Project): Use canonical cased path to find the end of a
15031         with cycle.
15032
15033 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
15034
15035         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
15036         and not a child unit.
15037
15038         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
15039         appear in a with_clause.
15040
15041         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
15042         only happen in type_annotate mode, do not try to elaborate it.
15043
15044         * exp_util.adb (Force_Evaluation): If expression is a selected
15045         component on the left of an assignment, use a renaming rather than a
15046         temporary to remove side effects.
15047
15048         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
15049         inlined instance body, which is analyzed before the end of the
15050         enclosing scope.
15051
15052 2004-03-02  Robert Dewar  <dewar@gnat.com>
15053
15054         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
15055         sem_ch4.adb: Use new feature for substitution of keywords in VMS
15056
15057         * errout.ads, errout.adb: Implement new circuit for substitution of
15058         keywords in VMS.
15059
15060         * sem_case.adb (Analyze_Choices): Place message properly when case is
15061         a subtype reference rather than an explicit range.
15062
15063         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
15064
15065 2004-03-02  Doug Rupp  <rupp@gnat.com>
15066
15067         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
15068
15069 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
15070
15071         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
15072
15073 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15074
15075         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
15076         BLKmode bitfield.
15077
15078 2004-02-25  Robert Dewar  <dewar@gnat.com>
15079
15080         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
15081         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
15082         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
15083         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
15084         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
15085         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
15086         the defining instance of the type to avoid aliasing problems.
15087         Fix copyright header.  Fix bad comments in package header.
15088
15089         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
15090
15091 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
15092
15093         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
15094         rewritten as references when aliased through an address clause.
15095
15096         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
15097         whether call can be interpreted as an indirect call to the result of a
15098         parameterless function call returning an access subprogram.
15099
15100 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
15101
15102         Code clean up:
15103         * exp_ch7.adb (Make_Clean): Remove generation of calls to
15104         Unlock[_Entries], since this is now done by Service_Entries directly.
15105
15106         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
15107
15108         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
15109         Requeue_Call for better code readability. Change spec and update calls:
15110         PO_Service_Entries now unlock the PO on exit.
15111         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
15112         PO_Service_Entries.
15113
15114         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
15115
15116         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
15117
15118 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
15119
15120         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
15121         protected subprogram call and analyzing the result of such expanding
15122         in case when the called protected subprogram is eliminated.
15123
15124         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
15125         names.
15126
15127 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
15128
15129         * Makefile.in: Clean ups.
15130
15131 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
15132
15133         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
15134         protected operations if original subprogram is flagged as eliminated.
15135         (Expand_N_Subprogram_Body): For a protected operation, create
15136         discriminals for next operation before checking whether the operation
15137         is eliminated.
15138
15139         * exp_ch9.adb (Expand_N_Protected_Body,
15140         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
15141         for internal protected operations if the original subprogram is
15142         eliminated.
15143
15144         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
15145         declared in a single protected object.
15146
15147 2004-02-23  Vincent Celier  <celier@gnat.com>
15148
15149         * prj-attr.adb: Make attribute Builder'Executable an associative array,
15150         case insensitive if file names are case insensitive, instead of a
15151         standard associative array.
15152
15153         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
15154         them as case insensitive on platforms where the file names are case
15155         sensitive.
15156
15157         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
15158         project file has already been parsed that canonical path are compared.
15159
15160 2004-02-23  Robert Dewar  <dewar@gnat.com>
15161
15162         * sinput-c.ads: Correct bad unit title in header
15163
15164         * freeze.adb: Minor reformatting
15165
15166 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15167
15168         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
15169         nonaddressable COMPONENT_REF that is removing padding that we are
15170         taking the address of, take the address of the padded record instead
15171         if item is variable size.
15172
15173 2004-02-20  Robert Dewar  <dewar@gnat.com>
15174
15175         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
15176
15177 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
15178
15179         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
15180         itype references for the constrained designated type of a component
15181         whose base type is already frozen.
15182
15183 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
15184
15185         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
15186         avoid GCC warnings.
15187
15188 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
15189
15190         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
15191         identifier for a phantom package that rewrites the formal package
15192         declaration with a box. The Add semantic decorations for the defining
15193         identifier from the original node (that represents the formal package).
15194
15195 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
15196
15197         * Make-lang.in (ada/stamp-sdefault): Use the top level
15198         move-if-change.
15199
15200 2004-02-19  Richard Henderson  <rth@redhat.com>
15201
15202         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
15203
15204 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
15205
15206         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
15207         Scan_ALI can be used for multiple ALI files without reinitializing
15208         between calls.
15209
15210 2004-02-18  Robert Dewar  <dewar@gnat.com>
15211
15212         * debug.adb: Minor reformatting.
15213
15214 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15215
15216         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
15217         to zero if there is an address clause.
15218
15219 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
15220
15221         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
15222
15223 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
15224
15225         * layout.adb (Layout_Component_List): Revise generation of call to
15226         discriminant-checking function to pass selections of all of the type's
15227         discriminants rather than just the variant-controlling discriminant.
15228
15229 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
15230
15231         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
15232         fail in the current setup and triggers spurious system error messages.
15233         Pretend it occurred and failed instead.
15234
15235 2004-02-18  Vincent Celier  <celier@gnat.com>
15236
15237         * bld.adb: Mark FLDFLAGS as saved
15238         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
15239         it is not the root project.  Put each directory to be
15240         extended between double quotes to prevent it to be expanded on Windows.
15241         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
15242         the project file. Set them back to their initial values if they have not
15243         been set in the project file.
15244
15245         * gprcmd.adb: (Gprdebug, Debug): New global variables
15246         (Display_Command): New procedure
15247         (Usage): Document new command "linkopts"
15248         Call Display_Command when env var GPRDEBUG has the value "TRUE"
15249         Implement new command "linkopts"
15250         Remove quotes that may be around arguments for "extend"
15251         Always call Normalize_Pathname with arguments formatted for the platform
15252
15253         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
15254         Change @echo to @$(display) in target clean to be able to clean silently
15255
15256         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
15257
15258         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
15259         canonical case.
15260
15261         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
15262         = Extending_All when current project is an extending all project.
15263
15264         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
15265         set to True only for LINK command, after Unix switch -o.
15266         (Process_Arguments): Set Output_File_Expected to True for LINK command
15267         after Unix switch -o. When Output_File_Expected is True, never add an
15268         extension to a file name.
15269
15270         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
15271         option file name, only to the --for-linker= switch.
15272         (Option_File_Name): If option file name do not end with ".opt", append
15273         "/OPTIONS".
15274
15275 2004-02-18  GNAT Script  <nobody@gnat.com>
15276
15277         * Make-lang.in: Makefile automatically updated
15278
15279 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
15280
15281         * Make-lang.in (stamp-sdefault): Do not depend on
15282         move-if-change.
15283
15284 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
15285
15286         * config-lang.in: Disable Ada by default until probe logic for
15287         a bootstrap Ada compiler can be moved to the top level configure
15288         script.
15289
15290 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
15291
15292         * decl.c (components_to_record): Don't claim that the internal fields
15293         we make to hold the variant parts are semantically addressable, because
15294         they are not.
15295
15296         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
15297         adjust the comment describing the modular type form when we can use it.
15298         (Install_PAT): Account for the Esiz renaming.
15299
15300         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
15301         sc_onstack context indication before raising the exception to which
15302         the signal is mapped. Allows better handling of later signals possibly
15303         triggered by the resumed user code if the exception is handled.
15304
15305 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
15306
15307         * 5zinit.adb: Removed, no longer used.
15308
15309 2004-02-12  Robert Dewar  <dewar@gnat.com>
15310
15311         * ali.adb: Remove separating space between parameters on R line. Makes
15312         format consistent with format used by the binder for Set_Globals call.
15313
15314         * atree.ads, atree.adb: Minor reformatting (new function header format)
15315
15316         * bindgen.adb: Add Run-Time Globals documentation section containing
15317         detailed documentation of the globals passed from the binder file to
15318         the run time.
15319
15320         * gnatls.adb: Minor reformatting
15321
15322         * init.c (__gnat_set_globals): Add note pointing to documentation in
15323         bindgen.
15324
15325         * lib-writ.ads, lib-writ.adb: Remove separating space between
15326         parameters on R line.
15327         Makes format consistent with format used by the binder for Set_Globals
15328         call.
15329
15330         * osint.ads: Add 2004 to copyright notice
15331         Minor reformatting
15332
15333         * snames.ads: Correct capitalization of FIFO_Within_Priorities
15334         Noticed during code reading, documentation issue only
15335
15336         * usage.adb: Remove junk line for obsolete C switch
15337         Noticed during code reading
15338
15339 2004-02-12  Vincent Celier  <celier@gnat.com>
15340
15341         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
15342         extend for each directory, so that multiple /** directories are
15343         extended individually.
15344         (Recursive_Process): Set the default for LANGUAGES to ada
15345
15346         * gprcmd.adb: Define new command "ignore", to do nothing.
15347         Implement new comment "path".
15348
15349         * Makefile.generic: Suppress output when SILENT is set
15350         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
15351         used, so that the correct compiler is invoked.
15352         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
15353         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
15354
15355 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
15356
15357         * Makefile.in: Clean ups and remove obsolete targets.
15358
15359 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
15360
15361         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
15362         predicate declared in exp_util.
15363
15364         * exp_util.adb: Add comments.
15365
15366         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
15367         visibility before compiling context of the subunit.
15368
15369         * sem_res.adb (Check_Parameterless_Call): If the context expects a
15370         value but the name is a procedure, do not attempt to analyze as a call,
15371         in order to obtain more telling diagnostics.
15372
15373         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
15374         'Access on parameterless function calls.
15375         (Normalize_Actuals): For a parameterless function call with missing
15376         actuals, defer diagnostic until resolution of enclosing call.
15377
15378         * sem_util.adb (Wrong_Type): If the context type is an access to
15379         subprogram and the expression is a procedure name, suggest a missing
15380         'attribute.
15381
15382 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
15383             Nathanael Nerode  <neroden@gcc.gnu.org>
15384
15385         PR ada/6637, PR ada/5911
15386         Merge with libada-branch:
15387         * config-lang.in: Build libada only when ada is built.
15388
15389 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
15390
15391         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
15392         for a tagged type, verify that both formals have the same type.
15393
15394         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
15395         temporary when the formal is an in-parameter and the actual a possibly
15396         unaligned slice.
15397
15398         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
15399         when expansion is disabled, to ensure proper name capture with
15400         overloaded literals.  Condition can be of any boolean type, resolve
15401         accordingly.
15402
15403         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
15404         renaming is for a formal subprogram with a default operator name, and
15405         there is a usable operator that is visible at the point of
15406         instantiation.
15407
15408 2004-02-09  Robert Dewar  <dewar@gnat.com>
15409
15410         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
15411         rewrite to ignore errors in ali files, intended to allow tools downward
15412         compatibility with new versions of ali files.
15413
15414         * ali.ads: Add new parameter Ignore_Errors
15415
15416         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
15417         duplicating the error message giving the file with restrictions.
15418
15419         * debug.adb: Add debug flag I for gnatbind
15420
15421         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
15422         operators for the case where the operator is a defining operator.
15423
15424         * exp_ch3.adb: Minor reformatting (new function spec format).
15425
15426         * exp_ch4.adb: Add comment for previous change, and make minor
15427         adjustment to loop to always check for improper loop termination.
15428         Minor reformatting throughout (new function spec format).
15429
15430         * gnatbind.adb: Implement -di debug flag for gnatbind
15431
15432         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
15433
15434         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
15435
15436         * lib-load.adb: Fix bad assertion.
15437         Found by testing and code reading.
15438         Minor reformatting.
15439
15440         * lib-load.ads: Minor reformatting.
15441
15442         * lib-writ.adb: There is only one R line now.
15443
15444         * lib-writ.ads: Add documentation on making downward compatible changes
15445         to ali files so old tools work with new ali files.
15446         There is only one R line now.
15447         Add documentation on format incompatibilities (with special GPS note)
15448
15449         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
15450
15451         * par-load.adb: Minor reformatting
15452
15453         * sem_ch8.adb: Fix to error message from last update
15454         Minor reformatting and restructuring of code from last update
15455
15456         * par-prag.adb, snames.adb, snames.ads, snames.h,
15457         sem_prag.adb: Implement pragma Profile.
15458
15459         * stylesw.adb: Implement -gnatyN switch to turn off all style check
15460         options.
15461
15462         * usage.adb: Add line for -gnatyN switch
15463
15464         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
15465
15466 2004-02-09  Albert Lee  <lee@gnat.com>
15467
15468         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
15469
15470 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
15471
15472         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
15473         slices.
15474
15475         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
15476         is nested in an instance that is not frozen yet, to avoid
15477         order-of-elaboration problems in gigi.
15478
15479         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
15480         body the attribute is legal.
15481
15482 2004-02-09  Robert Dewar  <dewar@gnat.com>
15483
15484         * s-rident.ads: Minor comment correction
15485
15486         * targparm.adb: Remove dependence on uintp completely. There was
15487         always a bug in Make in that it called Targparm before initializing
15488         the Uint package. The old code appeared to get away with this, but
15489         the new code did not! This caused an assertion error in gnatmake.
15490
15491         * targparm.ads: Fix bad comment, restriction pragmas with parameters
15492         are indeed fully supported.
15493
15494 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
15495
15496         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
15497
15498 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
15499
15500         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
15501         with targetm.calls.promote_prototypes.
15502
15503 2004-02-04  Robert Dewar  <dewar@gnat.com>
15504
15505         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
15506         ali.ads, gprcmd.adb: Minor reformatting
15507
15508         * bindgen.adb: Output restrictions string for new style restrictions
15509         handling
15510
15511         * impunit.adb: Add s-rident.ads (System.Rident) and
15512         s-restri (System.Restrictions)
15513
15514         * lib-writ.adb: Fix bug in writing restrictions string (last few
15515         entries wrong)
15516
15517         * s-restri.ads, s-restri.adb: Change name Restrictions to
15518         Run_Time_Restrictions to avoid conflict with package name.
15519         Add circuit to read and acquire run time restrictions.
15520
15521 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
15522
15523         * restrict.ads, restrict.adb: Use the new restriction
15524         No_Task_Attributes_Package instead of the old No_Task_Attributes.
15525
15526         * sem_prag.adb: No_Task_Attributes is a synonym of
15527         No_Task_Attributes_Package.
15528
15529         * snames.ads, snames.adb: New entry for proper handling of
15530         No_Task_Attributes.
15531
15532         * s-rident.ads: Adding restriction No_Task_Attributes_Package
15533         (AI-00249) that supersedes the GNAT specific restriction
15534         No_Task_Attributes.
15535
15536 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
15537
15538         * sem_prag.adb:
15539         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
15540          body, an identifier may be wrapped in an unchecked conversion.
15541
15542 2004-02-04  Vincent Celier  <celier@gnat.com>
15543
15544         * lib-writ.ads: Comment update for the W lines
15545
15546         * bld.adb: (Expression): An empty string list is static
15547
15548         * fname-uf.adb: Minor comment update
15549
15550         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
15551
15552         * gnatbind.adb: Initialize Cumulative_Restrictions with the
15553         restrictions on the target.
15554
15555 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
15556
15557         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
15558         gen_rtx.
15559
15560 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
15561
15562         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
15563
15564 2004-02-02  Vincent Celier  <celier@gnat.com>
15565
15566         * gprcmd.adb (Check_Args): If condition is false, print the invoked
15567         comment before the usage.
15568         Gprcmd: Fail when command is not recognized.
15569         (Usage): Document command "prefix"
15570
15571         * g-md5.adb (Digest): Process last block.
15572         (Update): Do not process last block. Store remaining characters and
15573         length in Context.
15574
15575         * g-md5.ads (Update): Document that several call to update are
15576         equivalent to one call with the concatenated string.
15577         (Context): Add fields to allow new Update behaviour.
15578
15579         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
15580         defaulted to False.
15581         When May_Fail is True and no existing file can be found, return No_File.
15582
15583         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
15584         functions.
15585
15586         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
15587         spec file name instead on the W line.
15588
15589 2004-02-02  Robert Dewar  <dewar@gnat.com>
15590
15591         * ali.adb: Read and acquire info from new format restrictions lines
15592
15593         * bcheck.adb: Add circuits for checking restrictions with parameters
15594
15595         * bindgen.adb: Output dummy restrictions data
15596         To be changed later
15597
15598         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
15599         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
15600         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
15601         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
15602         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
15603
15604         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
15605         the warning message on access to possibly uninitialized variable S)
15606         Minor changes for new restrictions handling.
15607
15608         * gnatbind.adb: Minor reformatting
15609         Minor changes for new restrictions handling
15610         Move circuit for -r processing here from bcheck (cleaner)
15611
15612         * gnatcmd.adb, gnatlink.adb: Minor reformatting
15613
15614         * lib-writ.adb: Output new format restrictions lines
15615
15616         * lib-writ.ads: Document new R format lines for new restrictions
15617         handling.
15618
15619         * s-restri.ads/adb: New files
15620
15621         * Makefile.rtl: Add entry for s-restri.ads/adb
15622
15623         * par-ch3.adb: Fix bad error messages starting with upper case letter
15624         Minor reformatting
15625
15626         * restrict.adb: Major rewrite throughout for new restrictions handling
15627         Major point is to handle restrictions with parameters
15628
15629         * restrict.ads: Major changes in interface to handle restrictions with
15630         parameters. Also generally simplifies setting of restrictions.
15631
15632         * snames.ads/adb: New entry for proper handling of No_Requeue
15633
15634         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
15635         restriction counting.
15636         Other minor changes for new restrictions handling
15637
15638         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
15639         Restriction_Warnings now allows full parameter notation
15640         Major rewrite of Restrictions for new restrictions handling
15641
15642 2004-02-02  Javier Miranda  <miranda@gnat.com>
15643
15644         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
15645         syntax rule for object renaming declarations.
15646         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
15647         component definitions.
15648
15649         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
15650         components.
15651         (Array_Type_Declaration): Give support to access components. In addition
15652         it was also modified to reflect the name of the object in anonymous
15653         array types. The old code did not take into account that it is possible
15654         to have an unconstrained anonymous array with an initial value.
15655         (Check_Or_Process_Discriminants): Allow access discriminant in
15656         non-limited types.
15657         (Process_Discriminants): Allow access discriminant in non-limited types
15658         Initialize the new Access_Definition field in N_Object_Renaming_Decl
15659         node.  Change Ada0Y to Ada 0Y in comments
15660
15661         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
15662         equality operators.
15663         Change Ada0Y to Ada 0Y in comments
15664
15665         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
15666         renamings Change Ada0Y to Ada 0Y in comments
15667
15668         * sem_type.adb (Find_Unique_Type): Give support to the equality
15669         operators for universal access types
15670         Change Ada0Y to Ada 0Y in comments
15671
15672         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
15673
15674         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
15675         field.
15676         (N_Object_Renaming_Declaration): Addition of Access_Definition field
15677         Change Ada0Y to Ada 0Y in comments
15678
15679         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
15680         component definition and object renaming nodes
15681         Change Ada0Y to Ada 0Y in comments
15682
15683 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
15684
15685         * restrict.adb: Use the new restriction identifier
15686         No_Requeue_Statements instead of the old No_Requeue for defining the
15687         restricted profile.
15688
15689         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
15690         No_Requeue_Statements.
15691
15692         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
15693         that supersedes the GNAT specific restriction No_Requeue. The later is
15694         kept for backward compatibility.
15695
15696 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
15697
15698         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
15699         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
15700         pragma and fix incorrect ones.
15701
15702         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
15703         warning if the pragma is redundant.
15704
15705 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
15706
15707         * 5staprop.adb: Add missing 'constant' keywords.
15708
15709         * Makefile.in: use consistent value for SYMLIB on
15710         platforms where libaddr2line is supported.
15711
15712 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15713
15714         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
15715         annotating types.
15716
15717 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
15718
15719         * init.c (__gnat_install_handler): Setup an alternate stack for signal
15720         handlers in the environment thread. This allows proper propagation of
15721         an exception on stack overflows in this thread even when the builtin
15722         ABI stack-checking scheme is used without support for a stack reserve
15723         region.
15724
15725         * utils.c (create_field_decl): Augment the head comment about bitfield
15726         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
15727         here, because the former is not accurate enough at this point.
15728         Let finish_record_type decide instead.
15729         Don't make a bitfield if the field is to be addressable.
15730         Always set a size for the field if the record is packed, to ensure the
15731         checks for bitfield creation are triggered.
15732         (finish_record_type): During last pass over the fields, clear
15733         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
15734         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
15735         from DECL_BIT_FIELD.
15736
15737 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
15738
15739         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
15740         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
15741         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
15742
15743 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15744
15745         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
15746
15747         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
15748         (ZCX_By_Default): Likewise.
15749         (Front_End_ZCX_Support): Likewise.
15750
15751         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
15752         (Initialize_Lock): Mark Level unreferenced.
15753         (Sleep): Mark Reason unreferenced.
15754         (Timed_Sleep): Likewise.
15755         (Wakeup): Likewise.
15756         (Exit_Task): Use Result.
15757         (Check_No_Locks): Mark Self_ID unreferenced.
15758
15759         * 5gtasinf.adb (New_Sproc): Make Attr constant.
15760         (Bound_Thread_Attributes): Make Sproc constant.
15761         (New_Bound_Thread_Attributes): Likewise.
15762
15763 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
15764
15765         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
15766         one-dimensional array an slice assignments, when component type is
15767         controlled.
15768
15769         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
15770         component type is controlled, and control_actions are in effect, use
15771         TSS procedure rather than generating inline code.
15772
15773         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
15774         arrays with controlled components.
15775
15776 2004-01-26  Vincent Celier  <celier@gnat.com>
15777
15778         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
15779         command line for the non VMS case.
15780
15781         * gnatlink.adb (Process_Binder_File): When building object file, if
15782         GNU linker is used, put all object paths between quotes, to prevent ld
15783         error when there are unusual characters (such as '!') in the paths.
15784
15785         * Makefile.generic: When there are sources in Ada and the main is in
15786         C/C++, invoke gnatmake with -B, instead of -z.
15787
15788         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
15789         from VMS_Conversion.
15790         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
15791         specification of argument file on the command line.
15792
15793 2004-01-26  Bernard Banner  <banner@gnat.com>
15794
15795         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
15796
15797 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
15798
15799         * snames.adb: Update copyright notice.
15800         Add info on slice assignment for controlled arrays.
15801
15802 2004-01-23  Robert Dewar  <dewar@gnat.com>
15803
15804         * exp_aggr.adb: Minor reformatting
15805
15806         * exp_ch9.adb: Minor code clean up
15807         Minor reformatting
15808         Fix bad character in comment
15809
15810         PR ada/13471
15811         * targparm.adb (Get_Target_Parameters): Give clean abort error on
15812         unexpected end of file, along with more detailed message.
15813
15814 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15815
15816         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
15817         PAT.
15818
15819         * decl.c (copy_alias_set): New function.
15820         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
15821
15822 2004-01-23  Doug Rupp  <rupp@gnat.com>
15823
15824         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
15825         lib$${file} in case subsequent character is not a separator.
15826
15827 2004-01-23  Vincent Celier  <celier@gnat.com>
15828
15829         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
15830         when the GCC version is at least 3.
15831
15832         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
15833         Remove all "Opt.", to prepare for opt split
15834
15835         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
15836         Extends_All. Set to True when the project parsed is an extending all
15837         project. Fails for importing an extending all project only when the
15838         imported project is an extending all project.
15839         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
15840         depending on the value of Extends_All returned.
15841
15842         * prj-proc.adb (Process): Check that no project shares its object
15843         directory with a project that extends it, directly or indirectly,
15844         including a virtual project.
15845         Check that no project extended by another project shares its object
15846         directory with another also extended project.
15847
15848         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
15849         Kind = N_With_Clause
15850
15851         * prj-tree.ads: Minor reformatting
15852         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
15853
15854 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
15855
15856         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
15857         applies to a type with an incomplete view, use full view in Name of
15858         clause, for consistency with uses of Get_Attribute_Definition_Clause.
15859
15860 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
15861
15862         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
15863         SCHED_RR, since other values are not supported by this policy.
15864         (Initialize): Move initialization of mutex attribute to package
15865         elaboration, to prevent early access to this variable.
15866
15867         * Makefile.in: Remove mention of Makefile.adalib, unused.
15868
15869         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
15870         1ssecsta.ads: Removed, unused.
15871
15872 2004-01-21  Javier Miranda  <miranda@gnat.com>
15873
15874         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
15875         entity if already built in the current scope.
15876
15877         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
15878         reminder in internal scopes. Required for nested limited aggregates.
15879
15880 2004-01-21  Doug Rupp  <rupp@gnat.com>
15881
15882         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
15883         VMS. Replace all occurences of libgnat- and libgnarl- with
15884         libgnat$(hyphen) and libgnarl$(hyphen).
15885         Fixed shared library build problem on VMS.
15886
15887 2004-01-21  Robert Dewar  <dewar@gnat.com>
15888
15889         * mlib-prj.adb: Minor reformatting
15890
15891 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
15892
15893         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
15894         'constant' keywords for declaration of pointers that are not modified.
15895
15896         * exp_pakd.adb: Fix English in comment.
15897
15898 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
15899
15900         PR ada/10889
15901         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
15902         copy all attributes of the parent, including the foreign language
15903         convention.
15904
15905 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
15906
15907         PR ada/10565
15908         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
15909         for 'delay until' statement.
15910
15911 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
15912
15913         * Make-lang.in: Replace $(docdir) with doc.
15914         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
15915         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
15916         to use consistent MAKEINFO rule.
15917         (ada.man, ada.srcman): Dummy entry.
15918         (ADA_INFOFILES): Define.
15919         (ada.info, ada.srcinfo): New rules.
15920
15921 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
15922
15923         * utils.c: Update copyright notice, missed in previous change.
15924
15925 2004-01-19  Vincent Celier  <celier@gnat.com>
15926
15927         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
15928         args if Bind is True. Set First_ALI, if not already done.
15929         (Build_Library): For Stand Alone Libraries, extract from one ALI file
15930         an eventual --RTS switch, for gnatbind, and all backend switches +
15931         --RTS, for linking.
15932
15933 2004-01-19  Robert Dewar  <dewar@gnat.com>
15934
15935         * sem_attr.adb, memtrack.adb: Minor reformatting
15936
15937 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
15938
15939         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
15940         that rename enumeration literals. This is properly done in sem_eval.
15941
15942         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
15943         to functions that rename enumeration literals.
15944
15945         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
15946         functions that rename enumeration literals.
15947
15948 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
15949
15950         * Make-lang.in (utils.o): Depend on target.h.
15951         * utils.c: Include target.h.
15952         (process_attributes): Use targetm.have_named_sections instead
15953         of ASM_OUTPUT_SECTION_NAME.
15954
15955 2004-01-16  Andreas Jaeger  <aj@suse.de>
15956
15957         * Makefile.in: Add $(DESTDIR).
15958
15959 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
15960
15961         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
15962         also when not defining if a Size clause applies. That information is
15963         not to be ignored.
15964
15965 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
15966
15967         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
15968         symbolic links for the shared gnat run time when needed.
15969
15970 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
15971
15972         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
15973         for writing, and terminate with an error message if not.
15974
15975 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
15976
15977         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
15978         warning on an access to subprogram in an instance, when the target
15979         type is declared in the same generic unit.
15980         (Eval_Attribute): If 'access is known to fail accessibility check,
15981         rewrite as a raise statement.
15982
15983 2004-01-15  GNAT Script  <nobody@gnat.com>
15984
15985         * Make-lang.in: Makefile automatically updated
15986
15987 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
15988
15989         * Make-lang.in (ada.srcextra): Dummy entry.
15990
15991 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
15992
15993         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
15994
15995 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
15996
15997         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
15998         components that are initialized with aggregates.
15999
16000 2004-01-13  Vincent Celier  <celier@gnat.com>
16001
16002         * gnatlink.adb (Process_Binder_File): To find directory of shared
16003         libgcc, if "gcc-lib" is not a subdirectory, look for the last
16004         subdirectory "lib" in the path of the shared libgnat or libgnarl.
16005
16006         * make.adb (Gnatmake): If GCC version is at least 3, link with
16007         -shared-libgcc, when there is at least one shared library project.
16008
16009         * opt.ads (GCC_Version): New integer constant.
16010
16011         * adaint.c (get_gcc_version): New function.
16012
16013 2004-01-13  Robert Dewar  <dewar@gnat.com>
16014
16015         * sem_dist.adb, sem_res.adb, sem_util.adb,
16016         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
16017         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
16018
16019 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
16020
16021         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
16022         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
16023         declarations.
16024
16025 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
16026
16027         * misc.c: Remove trailing spaces.
16028         Update copyright notice missed in previous change.
16029
16030         PR ada/13572
16031         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
16032         prefix/share/make
16033
16034         * Makefile.generic: Update copyright.
16035         Add license notice.
16036
16037         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
16038         of prefix/share/make.
16039
16040         * Makefile.prolog: Update copyright.
16041         Add license notice.
16042
16043 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
16044
16045         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
16046         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
16047         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
16048         instead of String.
16049
16050         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
16051         signature.
16052
16053 2004-01-12  Javier Miranda  <miranda@gnat.com>
16054
16055         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
16056         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
16057         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
16058         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
16059         Component_Definition node.
16060
16061 2004-01-12  Ed Falis  <falis@gnat.com>
16062
16063         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
16064
16065 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
16066
16067         * link.c: Change default libgnat kind to STATIC for FreeBSD.
16068
16069 2004-01-12  Bernard Banner  <banner@gnat.com>
16070
16071         * Makefile.in: map 86numaux to a-numaux for x86_64
16072
16073 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
16074
16075         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
16076         generated to rename a generic actual, go to the actual itself, the
16077         subtype is not a user-visible entity.
16078
16079         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
16080         part is a private subtype, reset the visibility of its full view, if
16081         any, to be consistent.
16082
16083         PR ada/13417
16084         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
16085         to use a generic package G as a formal package for another generic
16086         declared within G.
16087
16088 2004-01-12  Robert Dewar  <dewar@gnat.com>
16089
16090         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
16091
16092         * usage.adb: Remove mention of obsolete -gnatwb switch
16093         Noticed during code reading
16094
16095 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
16096
16097         * 1ssecsta.adb: Minor changes for -gnatwa warnings
16098
16099 2004-01-12  GNAT Script  <nobody@gnat.com>
16100
16101         * Make-lang.in: Makefile automatically updated
16102
16103 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
16104
16105         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
16106
16107 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16108
16109         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
16110
16111 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
16112
16113         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
16114         Update comment and copyright date.
16115         * stamp-xgnatug: Delete.
16116
16117 2004-01-05  Robert Dewar  <dewar@gnat.com>
16118
16119         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
16120         be modified by the binder generated main program if the -D switch is
16121         used.
16122
16123         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
16124         imported functions (since now we expect this to be done for imported
16125         functions)
16126
16127         * 5vtaprop.adb: Add several ??? for sections requiring more comments
16128         Minor reformatting throughout
16129
16130         * 5zinit.adb: Minor reformatting
16131         Add 2004 to copyright date
16132         Minor changes to avoid -gnatwa warnings
16133         Correct some instances of using OR instead of OR ELSE (noted while
16134         doing reformatting)
16135
16136         * sprint.adb: Minor updates to avoid -gnatwa warnings
16137
16138         * s-secsta.ads, s-secsta.adb:
16139         (SS_Get_Max): New function to obtain high water mark for ss stack
16140         Default_Secondary_Stack is not a constant since it may be modified by
16141         the binder generated main program if the -D switch is used.
16142
16143         * switch-b.adb: New -Dnnn switch for binder
16144
16145         * switch-c.adb:
16146         Make -gnatg imply all warnings currently in -gnatwa
16147
16148         * vms_conv.adb: Minor reformatting
16149         Add 2004 to copyright notice
16150         Add 2004 to printed copyright notice
16151
16152         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
16153         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
16154         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
16155         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
16156         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
16157         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
16158         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
16159         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
16160         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
16161         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
16162         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
16163         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
16164         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
16165         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
16166         checks.adb, clean.adb, cstand.adb, einfo.ads,
16167         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
16168         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
16169         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
16170         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
16171         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
16172         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
16173         Minor reformatting and code clean ups.
16174         Minor changes to prevent -gnatwa warnings
16175
16176         * ali.adb: Minor reformatting and cleanup of code
16177         Acquire new SS indication of secondary stack use from ali files
16178
16179         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
16180         (since now we expect this to be done for imported functions)
16181
16182         * bindgen.adb: Generate call to modify default secondary stack size if
16183         -Dnnn switch given
16184
16185         * bindusg.adb: Add line for new -D switch
16186
16187         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
16188         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
16189         Add circuitry for both records and arrays to avoid gigi
16190         processing if the type involved has non-bit-aligned components
16191
16192         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
16193         N_String_Literal node always references an E_String_Literal_Subtype
16194         entity. This may not be true in the future.
16195         (Possible_Bit_Aligned_Component): Move processing of
16196         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
16197
16198         * exp_ch6.adb (Expand_Thread_Body): Pick up
16199         Default_Secondary_Stack_Size as variable so that we get value modified
16200         by possible -Dnnn binder parameter.
16201
16202         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
16203         (Type_May_Have_Bit_Aligned_Components): New function.
16204
16205         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
16206         (Type_May_Have_Bit_Aligned_Components): New function.
16207
16208         * fe.h: (Set_Identifier_Casing): Fix prototype.
16209         Add declaration for Sem_Elim.Eliminate_Error_Msg.
16210         Minor reformatting.
16211
16212         * freeze.adb (Freeze_Entity): Add RM reference to error message about
16213         importing constant atomic/volatile objects.
16214         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
16215         unless explicit Pure_Function pragma given, to avoid insidious bug of
16216         call to non-pure imported function getting eliminated.
16217
16218         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
16219         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
16220         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
16221         Add 2004 to printed copyright notice
16222
16223         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
16224         stack used.
16225
16226         * Makefile.rtl: Add entry for g-sestin.o
16227         g-sestin.ads: New file.
16228
16229         * mdll.adb: Minor changes to avoid -gnatwa warnings
16230
16231         * mlib-tgt.adb: Minor reformatting
16232
16233         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
16234         New switch Sec_Stack_Used (GNAT, GNATBIND)
16235         Make Default_Secondary_Stack_Size a variable instead of a constant,
16236         so that it can be modified by the new -Dnnn bind switch.
16237
16238         * rtsfind.adb (Load_Fail): Give full error message in configurable
16239         run-time mode if all_errors mode is set. This was not done in the case
16240         of a file not found, which was an oversight.
16241         Note if secondary stack unit is used by compiler.
16242
16243         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
16244         ineffective elaborate all pragmas on non-visible packages (this
16245         happened when a renamed subprogram was called). Now the elaborate all
16246         always goes on the package containing the renaming rather than the one
16247         containing the renamed subprogram.
16248
16249         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
16250         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
16251
16252         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
16253         has an Etype that references an E_String_Literal.
16254         (Eval_String_Literal): Avoid assumption that N_String_Literal node
16255         always references an E_String_Literal_Subtype entity. This may not
16256         be true in the future.
16257
16258         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
16259         pragma location.
16260
16261         * sem_res.adb (Resolve): Specialize msg for function name used in proc
16262         call.
16263
16264 2004-01-05  Ed Falis  <falis@gnat.com>
16265
16266         * g-debuti.adb: Replaced direct boolean operator with short-circuit
16267         form.
16268
16269 2004-01-05  Vincent Celier  <celier@gnat.com>
16270
16271         * bld.adb: Minor comment updates
16272         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
16273         of Item_Name).
16274
16275         * make.adb (Gnatmake): Special process for files to compile/check when
16276         -B is specified. Fail when there are only foreign mains in attribute
16277         Main of the project file and -B is not specified. Do not skip bind/link
16278         steps when -B is specified.
16279
16280         * makeusg.adb: Document new switch -B
16281
16282         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
16283
16284         * switch-m.adb: (Scan_Make_Switches): Process -B switch
16285
16286         * vms_data.ads: Add new GNAT PRETTY qualifier
16287         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
16288
16289 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16290
16291         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
16292         case.
16293
16294         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
16295         Set_Identifier_Casing.
16296
16297         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
16298         has size that overflows.
16299
16300 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
16301
16302         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
16303         -gnatwa warning on static condition.
16304
16305 2004-01-05  Doug Rupp  <rupp@gnat.com>
16306
16307         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
16308
16309 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
16310
16311         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
16312         all attributes, including read-only attribute.
16313
16314 2004-01-05  Pascal Obry  <obry@gnat.com>
16315
16316         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
16317         library naming scheme.
16318
16319         * mlib-prj.adb (Build_Library): Generate different names for the static
16320         or dynamic version of the GNAT runtime. This is needed to support the
16321         new shared library naming scheme.
16322         (Process_Binder_File): Add detection of shared library in binder file
16323         based on the new naming scheme.
16324
16325         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
16326         scheme for the shared runtime libraries.
16327
16328         * Makefile.in:
16329         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
16330         scheme.
16331         (install-gnatlib): Do not create symlinks for shared libraries.
16332         (gnatlib-shared-default): Idem.
16333         (gnatlib-shared-dual-win32): New target. Not used for now as the
16334         auto-import feature does not support arrays/records.
16335         (gnatlib-shared-win32): Do not create copy for the shared libraries.
16336         (gnatlib-shared-vms): Fix shared runtime libraries names.
16337
16338         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
16339         dependent runtime shared library name.
16340
16341 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
16342
16343         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
16344         than the object.
16345
16346 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
16347
16348         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
16349         protected objects when allocator has a subtype indication, not a
16350         qualified expression. Note that qualified expressions may have to be
16351         checked when limited aggregates are implemented.
16352
16353         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
16354         pure, emit warning.
16355         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
16356         subprogram is imported, remove warning.
16357
16358 2004-01-05  Geert Bosch  <bosch@gnat.com>
16359
16360         * s-poosiz.adb: Update copyright notice.
16361         (Allocate): Use Task_Lock to protect against concurrent access.
16362         (Deallocate): Likewise.
16363
16364 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
16365
16366         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
16367         comment.
16368
16369 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
16370
16371         * gnat_ug.texi: Force a CVS commit by updating copyright.
16372         * gnat_ug_vxw.texi: Regenerate.
16373         * gnat_ug_wnt.texi: Regenerate.
16374         * gnat_ug_vms.texi: Regenerate.
16375         * gnat_ug_unx.texi: Regenerate.
16376
16377 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
16378
16379         * trans.c: Remove uses of "register" specifier in
16380         declarations of local variables.
16381
16382 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
16383
16384         * stamp-xgnatug: New stamp file.
16385         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
16386         (ada/doctools/xgnatug): Add $(build_exeext).
16387         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
16388         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
16389
16390 2003-12-17  Ed Falis  <falis@gnat.com>
16391
16392         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
16393         eliminate warning.
16394
16395         * a-exextr.adb: Add context clause for
16396         Ada.Exceptions.Last_Chance_Handler.
16397
16398 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
16399
16400         * cstand.adb (Create_Standard): Change the way how the declaration of
16401         the Duration type is created (making it the same way as it is for all
16402         the other standard types).
16403
16404 2003-12-17  Robert Dewar  <dewar@gnat.com>
16405
16406         * s-crtl.ads: Fix header format
16407         Change Pure to Preelaborate
16408
16409 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
16410
16411         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
16412         the expression type only if it is declared in the current unit.
16413
16414         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
16415         are universal and already analyzed, as can occur in constrained
16416         subcomponents that depend on discriminants, when one constraint is a
16417         subtype mark.
16418
16419         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
16420         type Any_Fixed is legal as the argument of a conversion, if only one
16421         fixed-point type is in context.
16422
16423 2003-12-17  GNAT Script  <nobody@gnat.com>
16424
16425         * Make-lang.in: Makefile automatically updated
16426
16427 2003-12-15  Robert Dewar  <dewar@gnat.com>
16428
16429         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
16430         sec stack size.
16431
16432 2003-12-15  Vincent Celier  <celier@gnat.com>
16433
16434         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
16435         (Gnatchop): Do not set failure status when reporting the number of
16436         warnings.
16437
16438 2003-12-15  Doug Rupp  <rupp@gnat.com>
16439
16440         * s-ctrl.ads: New file.
16441
16442         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
16443
16444         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
16445         (GNATBIND_OBJS): Add ada/s-crtl.o.
16446
16447         * Makefile.in [VMS]: Clean up ifeq rules.
16448
16449         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
16450         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
16451         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
16452         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
16453         s-tasdeb.adb: Update copyright.
16454         Import System.CRTL.
16455         Make minor modifications to use System.CRTL declared functions instead
16456         of importing locally.
16457
16458 2003-12-15  GNAT Script  <nobody@gnat.com>
16459
16460         * Make-lang.in: Makefile automatically updated
16461
16462 2003-12-11  Ed Falis  <falis@gnat.com>
16463
16464         * 5zinit.adb: Clean up.
16465
16466         * 5zintman.adb (Notify_Exception): replaced case statement with a call
16467         to __gnat_map_signal, imported from init.c to support
16468         signal -> exception mappings that depend on the vxWorks version.
16469
16470         * init.c:
16471         Created and exported __gnat_map_signal to support signal -> exception
16472         mapping that is dependent on the VxWorks version.
16473         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
16474
16475 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
16476
16477         * 5wosinte.ads: Link with -mthreads switch.
16478
16479 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
16480
16481         * init.c (__gnat_install_handler [NetBSD]): Set
16482         __gnat_handler_installed, as done on all other platforms.
16483         Remove duplicated code.
16484
16485 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
16486
16487         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
16488
16489 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
16490
16491         * sinfo.ads: Fix inconsistent example code in comment.
16492
16493 2003-12-11  Robert Dewar  <dewar@gnat.com>
16494
16495         * a-tiinau.adb: Add a couple of comments
16496
16497         * sem_ch3.adb: Minor reformatting
16498
16499         * sem_prag.adb:
16500         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
16501         Minor reformatting throughout
16502
16503 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
16504
16505         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
16506         bounds of a loop, create a separate block in order to generate proper
16507         cleanup actions to prevent memory leaks.
16508
16509         * sem_res.adb (Resolve_Call): After a call to
16510         Establish_Transient_Scope, the call may be rewritten and relocated, in
16511         which case no further processing is needed.
16512
16513         * sem_util.adb: (Wrong_Type): Refine previous fix.
16514          Fixes ACATS regressions.
16515
16516         PR ada/13353
16517
16518         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
16519         be inlined.
16520
16521 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
16522
16523         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
16524         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
16525         obsolete files.
16526
16527         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
16528         (rts-zfp): Ditto.
16529
16530 2003-12-08  Robert Dewar  <dewar@gnat.com>
16531
16532         * 7sintman.adb: Minor reformatting
16533
16534         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
16535         standard linker options to get standard libraries linked. We now plan
16536         to provide dummy versions of these libraries to match the appropriate
16537         configurable run-time (e.g. if a library is not needed at all, provide
16538         a dummy empty library).
16539
16540         * targparm.ads: Configurable_Run_Time mode no longer affects linker
16541         options (-L parameters and standard libraries). What we plan to do is
16542         to provide dummy libraries where the libraries are not required.
16543
16544         * gnatbind.adb: Minor comment improvement
16545
16546 2003-12-08  Javier Miranda  <miranda@gnat.com>
16547
16548         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
16549         aggregate in the parent. Otherwise constants with limited aggregates
16550         are not supported. Add new formal to pass the component type (Ctype).
16551         It is required to call the corresponding IP subprogram in case of
16552         default initialized components.
16553         (Gen_Assign): In case of default-initialized component, generate a
16554         call to the IP subprogram associated with the component.
16555         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
16556         of aggregate with default initialized components.
16557         (Has_Default_Init_Comps): Improve implementation to recursively check
16558         all the present expressions.
16559
16560         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
16561         to indicate that the initialization call corresponds to a
16562         default-initialized component of an aggregate.
16563         In case of default initialized aggregate with tasks this parameter is
16564         used to generate a null string (this is just a workaround that must be
16565         improved later). In case of discriminants, this parameter is used to
16566         generate a selected component node that gives access to the discriminant
16567         value.
16568
16569         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
16570         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
16571         allocated aggregates with default-initialized components.
16572
16573         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
16574         the box notation is used in positional aggregates.
16575
16576 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
16577
16578         * lib.ads: Fix typo in comment
16579
16580 2003-12-08  Vincent Celier  <celier@gnat.com>
16581
16582         * prj.adb (Project_Empty): New component Unkept_Comments
16583         (Scan): Remove procedure; moved to Prj.Err.
16584
16585         * prj.ads (Project_Data): New Boolean component Unkept_Comments
16586         (Scan): Remove procedure; moved to Prj.Err.
16587
16588         * prj-dect.adb: Manage comments for the different declarations.
16589
16590         * prj-part.adb (With_Record): New component Node
16591         (Parse): New Boolean parameter Store_Comments, defaulted to False.
16592         Set the scanner to return ends of line and comments as tokens, if
16593         Store_Comments is True.
16594         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
16595         comments are associated with these nodes. Store the node IDs in the
16596         With_Records.
16597         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
16598         With_Records.
16599         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
16600         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
16601         current project. Call Tree.Restore afterwards. Set the various nodes
16602         for comment storage (Next_End, End_Of_Line, Previous_Line,
16603         Previous_End).
16604
16605         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
16606         defaulted to False.
16607
16608         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
16609         to False. When Truncated is True, truncate the string, never go to the
16610         next line.
16611         (Write_End_Of_Line_Comment): New procedure
16612         (Print): Process comments for nodes N_With_Clause,
16613         N_Package_Declaration, N_String_Type_Declaration,
16614         N_Attribute_Declaration, N_Typed_Variable_Declaration,
16615         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
16616         Process nodes N_Comment.
16617
16618         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
16619         without comments and there are some comments, set the flag
16620         Unkept_Comments to True.
16621         (Scan): If there are comments, set the flag Unkept_Comments to True and
16622         clear the comments.
16623         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
16624         (Next_End_Nodes: New table
16625         (Comment_Zones_Of): New function
16626         (Scan): New procedure; moved from Prj. Accumulate comments in the
16627         Comments table and set end of line comments, comments after, after end
16628         and before end.
16629         (Add_Comments): New procedure
16630         (Save, Restore, Seset_State): New procedures
16631         (There_Are_Unkept_Comments): New function
16632         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
16633         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
16634         procedures.
16635         (First_Comment_After, First_Comment_After_End): New functions
16636         (First_Comment_Before, First_Comment_Before_End): New functions
16637         (Next_Comment): New function
16638         (End_Of_Line_Comment, Follows_Empty_Line,
16639         Is_Followed_By_Empty_Line): New functions
16640         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
16641         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
16642         (Set_Next_Comment): New procedure
16643         (Default_Project_Node): Associate comment before if the node can store
16644         comments.
16645
16646         * scans.ads (Token_Type): New enumeration value Tok_Comment
16647         (Comment_Id): New global variable
16648
16649         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
16650         defaulted to False.
16651         (Scan): Store position of start of comment. If comments are tokens, set
16652         Comment_Id and set Token to Tok_Comment when scanning a comment.
16653         (Set_Comment_As_Token): New procedure
16654
16655         * sinput-p.adb: Update Copyright notice
16656         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
16657         that no longer exists.
16658
16659 2003-12-08  Javier Miranda  <miranda@gnat.com>
16660
16661         * sem_aggr.adb: Add dependence on Exp_Tss package
16662         Correct typo in comment
16663         (Resolve_Aggregate): In case of array aggregates set the estimated
16664         type of the aggregate before calling resolve. This is needed to know
16665         the name of the corresponding IP in case of limited array aggregates.
16666         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
16667         in case of default initialized array components.
16668
16669         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
16670         types. Required to give support to limited aggregates in generic
16671         formals.
16672
16673 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
16674
16675         * sem_ch3.adb (Check_Initialization): For legality purposes, an
16676         inlined body functions like an instantiation.
16677         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
16678         until bounds are analyzed, to diagnose premature use of type.
16679
16680         * sem_util.adb (Wrong_Type): Improve error message when the type of
16681         the expression is used prematurely.
16682
16683 2003-12-08  GNAT Script  <nobody@gnat.com>
16684
16685         * Make-lang.in: Makefile automatically updated
16686
16687 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
16688
16689         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
16690         they are automatically generated by Make-lang.in and cause nothing but
16691         maintenance troubles.
16692
16693 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
16694
16695         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
16696         version of this unit).
16697
16698 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
16699
16700         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
16701         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
16702         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
16703         the body of System.Interrupt_Management common to several targets.
16704         Update copyright notice when appropriate.
16705
16706         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
16707         constant.
16708
16709         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
16710         to ensure that the kernel fills in the interrupted context structure
16711         before calling a signal handler, which is necessary to be able to
16712         unwind past it. Update the copyright notice.
16713
16714 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
16715
16716         * a-elchha.ads: New file.
16717
16718         * a-elchha.adb: New default last chance handler. Contents taken from
16719         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
16720
16721         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
16722         is moved to a-elchha.adb to provide a target-independent default last
16723         chance handler.
16724
16725         * Makefile.rtl: Add a-elchha.o
16726
16727         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
16728
16729 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
16730
16731         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
16732         declared in an instance, do not inline the call if the instance is not
16733         frozen yet, to prevent order of elaboration problems.
16734
16735         * sem_prag.adb: Add comments for previous fix.
16736
16737 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
16738
16739         * g-table.adb: Use the right variable in Set_Item.
16740         Update copyright notice.
16741
16742 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
16743
16744         * Makefile.in: Remove unused rules.
16745
16746 2003-12-05  Vincent Celier  <celier@gnat.com>
16747
16748         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
16749         -nostdlib. Not needed here after all.
16750
16751 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
16752
16753         PR ada/11724
16754
16755         * adaint.h, adaint.c, g-os_lib.ads:
16756         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
16757         on some platforms (including FreeBSD), it is a 64 bit value.
16758         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
16759
16760 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
16761
16762         * gnatvsn.ads (Library_Version): Now contain only the relevant
16763         version info.
16764         (Verbose_Library_Version): New constant.
16765
16766         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
16767         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
16768         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
16769
16770         * gnatlbr.adb: Clean up: replace Library_Version by
16771         Verbose_Library_Version.
16772
16773         * make.adb, lib-writ.adb, exp_attr.adb:
16774         Clean up: replace Library_Version by Verbose_Library_Version.
16775
16776         * 5lintman.adb: Removed.
16777
16778         * Makefile.in:
16779         Update and simplify computation of LIBRARY_VERSION.
16780         Fix computation of GSMATCH_VERSION.
16781         5lintman.adb is no longer used: replaced by 7sintman.adb.
16782
16783 2003-12-03  Robert Dewar  <dewar@gnat.com>
16784
16785         * exp_ch5.adb:
16786         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
16787         name. Modified to consider small non-bit-packed arrays as troublesome
16788         and in need of component-by-component assigment expansion.
16789
16790 2003-12-03  Vincent Celier  <celier@gnat.com>
16791
16792         * lang-specs.h: Process nostdlib as nostdinc
16793
16794         * back_end.adb: Update Copyright notice
16795         (Scan_Compiler_Arguments): Process -nostdlib directly.
16796
16797 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
16798
16799         * Makefile.in:
16800         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
16801         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
16802         included in HIE_NONE_TARGET_PAIRS.
16803
16804 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
16805
16806         * sem_attr.adb:
16807         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
16808         is legal in an instance, because legality is cheched in the template.
16809
16810         * sem_prag.adb:
16811         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
16812         appplied to an unchecked conversion of a formal parameter.
16813
16814         * sem_warn.adb:
16815         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
16816         variables.
16817
16818 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
16819
16820         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
16821         routines. The second one is new functionality to deal with backtracing
16822         through signal handlers.
16823         (unwind): Split into the two separate subroutines above.
16824         Update the documentation, and deal properly with sizeof (REG) different
16825         from sizeof (void*).
16826
16827 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
16828
16829         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
16830         so that the debugger can reliably access the value of the parameter,
16831         and therefore is able to display the exception name when an exception
16832         breakpoint is reached.
16833
16834 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
16835
16836         * fmap.adb: Fix typo in warning message.
16837
16838         * g-socket.ads, g-socket.adb: Make Free a visible instance of
16839         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
16840
16841 2003-12-01  Vincent Celier  <celier@gnat.com>
16842
16843         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
16844         ther is no Afile.
16845         (Build_Library): Get the switches only if Default_Switches is declared
16846         in package Binder.
16847
16848 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
16849
16850         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
16851         actuals that are indexed components, reanalyze actual to ensure that
16852         packed array references are properly expanded.
16853
16854         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
16855         attempted assignment to a discriminant.
16856
16857 2003-12-01  Robert Dewar  <dewar@gnat.com>
16858
16859         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
16860         reformatting.
16861
16862         * switch-c.adb: Minor reformatting of comments
16863
16864 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
16865
16866         * Makefile.in: Clean ups.
16867
16868 2003-12-01  GNAT Script  <nobody@gnat.com>
16869
16870         * Make-lang.in: Makefile automatically updated
16871
16872 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
16873
16874         * 5wsystem.ads: Disable zero cost exception, not ready yet.
16875
16876 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
16877
16878         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
16879         to force serialization.
16880
16881 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
16882
16883         * g-socket.ads, g-socket.adb:
16884         Clarify documentation of function Stream. Introduce a Free procedure
16885         to release the returned Stream once it becomes unused.
16886
16887         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
16888
16889 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
16890
16891         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
16892         since NT 4 cannot handle timeout values that are too large,
16893         e.g. DWORD'Last - 1.
16894
16895 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
16896
16897         * exp_ch4.adb:
16898         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
16899         in procedure calls and whose expansion must be deferred.
16900
16901         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
16902         is in exp_ch4.
16903
16904         * sem_ch3.adb:
16905         (Build_Derived_Array_Type): Create operator for unconstrained type
16906         if ancestor is unconstrained.
16907
16908 2003-11-26  Vincent Celier  <celier@gnat.com>
16909
16910         * make.adb (Project_Object_Directory): New global variable
16911         (Change_To_Object_Directory): New procedure
16912         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
16913         of Change_Dir directly. Do not change working directory to object
16914         directory of main project after each compilation.
16915         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
16916         directly.
16917         Change to object directory of main project before binding step.
16918         (Initialize): Initialize Project_Object_Directory to No_Project
16919
16920         * mlib-prj.adb:
16921         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
16922         binding a Stand-Alone Library.
16923
16924         * output.adb: Update Copyright notice
16925         (Write_Char): Output buffer when full
16926
16927 2003-11-26  Robert Dewar  <dewar@gnat.com>
16928
16929         * sem_ch13.adb: (Check_Size): Reset size if size is too small
16930
16931         * sem_ch13.ads:
16932         (Check_Size): Fix documentation to include bit-packed array case
16933
16934         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
16935
16936         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
16937
16938         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
16939
16940 2003-11-24  Arnaud Charlet <charlet@act-europe.fr>
16941
16942         PR ada/13142
16943         * utils.c (init_gigi_decls): Change name of built-in setjmp to
16944         __builtin_setjmp, since this is apparently needed by recent
16945         non Ada changes.
16946
16947 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16948
16949         * adadecode.c: Only include ctype.h if not IN_GCC.
16950         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
16951
16952 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
16953
16954         * Makefile.in:
16955         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
16956         signals and interrupts.
16957
16958         * 5zintman.ads: New File.
16959
16960         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
16961         add exception signals to the set of unmasked signals.
16962
16963         * 5ztaprop.adb:
16964         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
16965         between signals and interrupts.
16966         Add to Unblocked_Signal_Mask the set of signals that are in
16967         Keep_Unmasked.
16968
16969         * 7sinmaop.adb:
16970         Adding a check to see whether the Interrupt_ID we want to unmask is in
16971         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
16972         reason is that the index type of the Keep_Unmasked array is not always
16973         Interrupt_ID; it may be a subtype of Interrupt_ID.
16974
16975 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
16976
16977         * exp_util.adb:
16978         (Remove_Side_Effects): Condition constantness of object created for a
16979          an unchecked type conversion on the constantness of the expression
16980          to ensure the correct value for 'Constrained when passing components
16981          of view-converted class-wide objects.
16982
16983 2003-11-24  Robert Dewar  <dewar@gnat.com>
16984
16985         * par-load.adb (Load): Improve handling of misspelled and missing units
16986         Removes several cases of compilation abandoned messages
16987
16988         * lib.adb: (Remove_Unit): New procedure
16989
16990         * lib.ads: (Remove_Unit): New procedure
16991
16992         * lib-load.adb: Minor reformatting
16993
16994 2003-11-24  Vincent Celier  <celier@gnat.com>
16995
16996         * make.adb:
16997         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
16998         (Marking_Label): Label to mark processed source files. Incremented for
16999         each executable.
17000         (Gnatmake): Increase Marking_Labet for each executable
17001         (Is_Marked): Compare against marking label
17002         (Mark): Mark with marking label
17003
17004 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
17005
17006         * s-thread.ads:
17007         Move the declaration of the TSD for System.Threads to System.Soft_Links.
17008         Add some comments.
17009
17010         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
17011         (rts-cert): build a single relocatable object for the run-time lib.
17012         Fix perms.
17013
17014 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
17015
17016         * Make-lang.in:
17017         Use gnatls rather than gcc to obtain the location of GNAT RTL for
17018         crosstools build.
17019
17020 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
17021
17022         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
17023         can not use it as before (that is, as a variable) when dumping it into
17024         the tree file. Add a local variable to store the result of this
17025         function and to be used as the string to be written into the tree.
17026
17027         * scn.adb (Initialize_Scanner): Add comments explaining the recent
17028         changes.
17029
17030         * sinput.adb (Source_First, Source_Last): In case of
17031         Internal_Source_File, replace returning attributes of
17032         Internal_Source_Ptr (which is wrong) with returning attributes of
17033         Internal_Source.
17034
17035 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
17036
17037         * sem_ch3.adb:
17038         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
17039         used for implicit concatenation operators.
17040         Code cleanup.
17041
17042         * sem_elab.adb:
17043         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
17044         task bodies that are in the scope of a Suppress pragma.
17045         (Check_A Call): Use the flag to prevent spurious elaboration checks.
17046
17047         * sinfo.ads, sinfo.adb:
17048         New flag No_Elaboration_Check on function/procedure calls, to properly
17049         suppress checks on calls in task bodies that are within a local suppress
17050         pragma.
17051
17052         * exp_ch4.adb:
17053         (Expand_Concatenate_Other): Use the proper integer type for the
17054         expression for the upper bound, to avoid universal_integer computations
17055         when possible.
17056
17057 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
17058
17059         * .cvsignore: Delete.
17060
17061 2003-11-21  Andreas Schwab  <schwab@suse.de>
17062
17063         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
17064
17065 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
17066
17067         * 5wsystem.ads: Enable zero cost exception.
17068
17069 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
17070
17071         * 5ztiitho.adb: Remove an unreferenced variable.
17072
17073 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
17074
17075         * adaint.c: For FreeBSD, use mkstemp.
17076
17077 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
17078
17079         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
17080
17081 2003-11-21  Robert Dewar  <dewar@gnat.com>
17082
17083         * bld.adb: Remove useless USE of gnatvsn
17084
17085         * gnatchop.adb: Minor reformatting
17086         Clean up version handling to be more consistent
17087
17088         * gnatxref.adb: Minor reformatting
17089
17090         * gprcmd.adb: Minor reformatting
17091         Fix output of copyright to be more consistent with other tools
17092
17093 2003-11-21  Vincent Celier  <celier@gnat.com>
17094
17095         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
17096
17097 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
17098
17099         * atree.adb (Initialize): Add initializations for global variables
17100         used in New_Copy_Tree.
17101
17102         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
17103         Internal_Source_File as the actual).
17104         Put the set of statements creating Any_Character before the set of
17105         statements creating Any_Array to have Any_Character fully initialized
17106         when it is used in creating Any_Array.
17107
17108         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
17109         not call Scan in case if the actual is Internal_Source_File
17110         Add 2003 to copyright note.
17111
17112         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
17113         processing Internal_Source_File.
17114
17115         * types.ads: Add the constant Internal_Source_File representing the
17116         source buffer for artificial source-code-like strings created within
17117         the compiler (the definition of Source_File_Index is changed).
17118
17119 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
17120
17121         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
17122         56system.ads: New file, FreeBSD version.
17123
17124 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
17125
17126         * Make-lang.in (ada.extraclean): Delete.
17127
17128 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
17129
17130         * gnatmem.adb: Clean up verbose output.
17131
17132         * gprcmd.adb: Change copyright to FSF.
17133
17134 2003-11-19  Vincent Celier  <celier@gnat.com>
17135
17136         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
17137         and Version (ignored).
17138
17139         * symbols.ads: (Policy): New type
17140         (Initialize): New parameter Reference, Symbol_Policy and
17141         Library_Version.
17142         Remove parameter Force.
17143         Minor reformatting.
17144
17145         * snames.ads, snames.adbadb: New standard names
17146         Library_Reference_Symbol_File and Library_Symbol_Policy
17147
17148         * mlib-prj.adb:
17149         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
17150         project.
17151
17152         * mlib-tgt.adb:
17153         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
17154
17155         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
17156
17157         * prj.adb: (Project_Empty): New component Symbol_Data
17158
17159         * prj.ads: (Policy, Symbol_Record): New types
17160         (Project_Data): New component Symbol_Data
17161
17162         * prj-attr.adb:
17163         New attributes Library_Symbol_File, Library_Symbol_Policy and
17164         Library_Reference_Symbol_File.
17165
17166         * prj-nmsc.adb:
17167         (Ada_Check): When project is a Stand-Alone library project, process
17168         attribute Library_Symbol_File, Library_Symbol_Policy and
17169         Library_Reference_Symbol_File.
17170
17171         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
17172         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
17173         5sml-tgt.adb (Build_Dynamic_Library): New parameter
17174         Symbol_Data (ignored).
17175
17176         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
17177         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
17178         functions Option_File_Name and Version_String. Set new options of
17179         gnatsym related to symbol file, symbol policy and reference symbol
17180         file.
17181
17182         * 5vsymbol.adb:
17183         Extensive modifications to take into account the reference symbol file,
17184         the symbol policy, the library version and to put in the symbol file the
17185         minor and major IDs.
17186
17187         * bld.adb (Process_Declarative_Items): Put second argument of
17188         gprcmd to_absolute between single quotes, to avoid problems with
17189         Windows.
17190
17191         * bld-io.adb: Update Copyright notice.
17192         (Flush): Remove last character of a line, if it is a back slash, to
17193         avoid make problems.
17194
17195         * gnatsym.adb:
17196         Implement new scheme with reference symbol file and symbol policy.
17197
17198         * g-os_lib.ads: (Is_Directory): Clarify comment
17199
17200 2003-11-19  Robert Dewar  <dewar@gnat.com>
17201
17202         * atree.adb: Move New_Copy_Tree global variables to head of package
17203
17204         * errout.adb: Minor reformatting
17205
17206 2003-11-19  Javier Miranda  <miranda@gnat.com>
17207
17208         * sem_ch4.adb: (Diagnose_Call): Improve error message.
17209         Add reference to Ada0Y (AI-50217)
17210
17211         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
17212         sem_util.adb: Add reference to AI-50217
17213
17214         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
17215
17216         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
17217
17218         * sem_aggr.adb: Complete documentation of AI-287 changes
17219
17220         * par-ch4.adb: Document previous changes.
17221
17222         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
17223         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
17224         Ada0Y (AI-50217)
17225
17226         * exp_aggr.adb: Add references to AI-287 in previous changes
17227
17228 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
17229
17230         * exp_ch6.adb:
17231         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
17232         in the rewriting is the result of an inlined call.
17233
17234         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
17235         parameter is a type conversion, use original node to construct the
17236         post-call assignment, because expression may have been rewritten, e.g.
17237         if it is a packed array.
17238
17239         * sem_attr.adb:
17240         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
17241         body, just as it is in an instance.
17242         Categorization routines
17243
17244         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
17245         Instantiate_Object): Set proper sloc reference for message on missing
17246         actual.
17247
17248 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
17249
17250         * Makefile.in: Add FreeBSD libgnat pairs.
17251
17252         * usage.adb: Fix typo in usage message.
17253
17254 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
17255
17256         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
17257         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
17258         pragma Thread_Body.
17259         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
17260
17261         * s-thread.adb: This file is now a dummy implementation of
17262         System.Thread.
17263
17264 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
17265
17266         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
17267
17268 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
17269
17270         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
17271         instanciation references in the parent type description.
17272
17273 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17274
17275         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
17276
17277         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
17278         TYPE_PRECISION directly from esize.
17279
17280 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
17281
17282         * cstreams.c:
17283         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
17284
17285         * init.c: Initialization routines for FreeBSD
17286
17287         * link.c: Link info for FreeBSD
17288
17289         * sysdep.c: Add the case of FreeBSD
17290
17291 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
17292
17293         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
17294         already called in System.Threads.
17295
17296         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
17297         environment task, as it has been moved to System.Threads.Initialization.
17298
17299 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
17300
17301         * adaint.c (__gnatlib_install_locks): Only reference
17302         __gnat_install_locks on VMS, since other platforms can avoid using
17303         --enable-threads=gnat
17304
17305 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17306
17307         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
17308
17309         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
17310         TYPE_PACKED_ARRAY_TYPE_P.
17311         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
17312
17313         Part of PR ada/12806
17314         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
17315         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
17316
17317 2003-11-17  Vincent Celier  <celier@gnat.com>
17318
17319         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
17320         to False.
17321         Do not set exit status to Failure when Warning is True.
17322         (Gnatchop): Make errors "no compilation units found" and
17323         "no source files written" warnings only.
17324
17325         * make.adb (Gnatmake): When using a project file, set
17326         Look_In_Primary_Dir to False.
17327         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
17328         and Local_Configuration_Pragmas in the project where they are declared
17329         not an extending project which might have inherited them.
17330
17331         * osint.adb (Locate_File): If Name is already an absolute path, do not
17332         look for a directory.
17333
17334         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
17335         -gnats (Check_Syntax) is used, issue only a warning, not an error.
17336
17337         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
17338         in objects of type Variable_Value.
17339
17340         * prj.ads: (Variable_Value): New component Project
17341
17342         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
17343         is in a project extended by Project.
17344
17345         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
17346         Project of Variable_Values to this new parameter value.
17347         (Expression): Set component Project of Variable_Values.
17348         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
17349         Set the component Project in array elements.
17350
17351 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
17352
17353         * errout.adb: (Initialize): Add initialization for error nodes.
17354
17355         * sem_ch12.adb (Initialize): Add missing initializations for
17356         Exchanged_Views and Hidden_Entities.
17357
17358 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
17359
17360         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
17361         already instantiated tree for use in subsequent inlining.
17362         (Analyze_Associations, Instantiate_Formal_Subprogram,
17363         Instantiate_Object): improve error message for mismatch in
17364         instantiations.
17365
17366         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
17367         instantiations of subprograms declared in instances.
17368
17369 2003-11-17  Javier Miranda  <miranda@gnat.com>
17370
17371         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
17372         executed only under the Extensions_Allowed flag.
17373
17374 2003-11-17  Robert Dewar  <dewar@gnat.com>
17375
17376         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
17377         zeroes suppressed.
17378         (Address_Image): Fix bug of returning 0x instead of 0x0
17379         Minor reformatting (function specs).
17380
17381         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
17382         (missed case of 33-63)
17383
17384         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
17385
17386         * s-thread.adb: Add comments for pragma Restriction
17387
17388         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
17389         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
17390
17391 2003-11-17  Ed Falis  <falis@gnat.com>
17392
17393         * s-thread.adb: Added No_Tasking restriction for this implementation.
17394
17395 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
17396
17397         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
17398         instanciation references in the parent type description.
17399
17400 2003-11-17  GNAT Script  <nobody@gnat.com>
17401
17402         * Make-lang.in: Makefile automatically updated
17403
17404 2003-11-16  Jason Merrill  <jason@redhat.com>
17405
17406         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
17407         and TAGS files that include them for each front end.
17408
17409 2003-11-14  Andreas Jaeger  <aj@suse.de>
17410
17411         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
17412         is the canonical version.
17413         * misc.c (gnat_handle_option): Likewise.
17414
17415         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
17416
17417         * 5nsystem.ads: New file for x86_64-linux-gnu.
17418
17419 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
17420
17421         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
17422
17423         * comperr.adb: Fix logic in previous change.
17424
17425 2003-11-13  Vincent Celier  <celier@gnat.com>
17426
17427         * 5bml-tgt.adb (Build_Dynamic_Library): Use
17428         Osint.Include_Dir_Default_Prefix instead of
17429         Sdefault.Include_Dir_Default_Name.
17430
17431         * gnatlbr.adb: Update Copyright notice
17432         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
17433         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
17434         instead of Sdefault.Object_Dir_Default_Name
17435
17436         * gnatlink.adb:
17437         (Process_Binder_File): Never suppress the option following -Xlinker
17438
17439         * mdll-utl.adb:
17440         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
17441         Sdefault.Object_Dir_Default_Name.
17442
17443         * osint.ads, osint.adb:
17444         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
17445         Minor reformatting.
17446
17447         * vms_conv.ads: Minor reformating
17448         Remove GNAT STANDARD and GNAT PSTA
17449
17450         * vms_conv.adb:
17451         Allow GNAT MAKE to have several files on the command line.
17452         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
17453         Sdefault.Object_Dir_Default_Name.
17454         Minor Reformating
17455         Remove data for GNAT STANDARD
17456
17457         * vms_data.ads:
17458         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
17459         Remove data for GNAT STANDARD
17460         Remove options and documentation for -gnatwb/-gnatwB: these warning
17461         options no longer exist.
17462
17463 2003-11-13  Ed Falis  <falis@gnat.com>
17464
17465         * 5zthrini.adb: (Init_RTS): Made visible
17466
17467         * 5zthrini.adb:
17468         (Register): Removed unnecessary call to taskVarGet that checked whether
17469          an ATSD was already set as a task var for the argument thread.
17470
17471         * s-thread.adb:
17472         Updated comment to reflect that this is a VxWorks version
17473         Added context clause for System.Threads.Initialization
17474         Added call to System.Threads.Initialization.Init_RTS
17475
17476 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
17477
17478         * 5zthrini.adb:
17479         (Init_RTS): New procedure, for the initialization of the run-time lib.
17480
17481         * s-thread.adb:
17482         Remove dependancy on System.Init, so that this file can be used in the
17483         AE653 sequential run-time lib.
17484
17485 2003-11-13  Robert Dewar  <dewar@gnat.com>
17486
17487         * bindgen.adb: Minor reformatting
17488
17489 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
17490
17491         * checks.adb:
17492         (Apply_Discriminant_Check): Do no apply check if target type is derived
17493         from source type with no applicable constraint.
17494
17495         * lib-writ.adb:
17496         (Ensure_System_Dependency): Do not apply the style checks that may have
17497         been specified for the main unit.
17498
17499         * sem_ch8.adb:
17500         (Find_Selected_Component): Further improvement in error message, with
17501         RM reference.
17502
17503         * sem_res.adb:
17504         (Resolve): Handle properly the case of an illegal overloaded protected
17505         procedure.
17506
17507 2003-11-13  Javier Miranda  <miranda@gnat.com>
17508
17509         * exp_aggr.adb:
17510         (Has_Default_Init_Comps): New function to check the presence of
17511         default initialization in an aggregate.
17512         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
17513         extension aggregate of a limited record. In addition, a new formal
17514         was added to do not initialize the record controller (if any) during
17515         this recursive expansion of ancestors.
17516         (Init_Controller): Add support for limited record components.
17517         (Expand_Record_Aggregate): In case of default initialized components
17518         convert the aggregate into a set of assignments.
17519
17520         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
17521         describing the new syntax.
17522         Nothing else needed to be done because this subprogram delegates part of
17523         its work to P_Precord_Or_Array_Component_Association.
17524         (P_Record_Or_Array_Component_Association): Give support to the new
17525         syntax for default initialization of components.
17526
17527         * sem_aggr.adb:
17528         (Resolve_Aggregate): Relax the strictness of the frontend in case of
17529         limited aggregates.
17530         (Resolve_Record_Aggregate): Give support to default initialized
17531         components.
17532         (Get_Value): In case of default initialized components, duplicate
17533         the corresponding default expression (from the record type
17534         declaration). In case of default initialization in the *others*
17535         choice, do not check that all components have the same type.
17536         (Resolve_Extension_Aggregate): Give support to limited extension
17537         aggregates.
17538
17539         * sem_ch3.adb:
17540         (Check_Initialization): Relax the strictness of the front-end in case
17541         of aggregate and extension aggregates. This test is now done in
17542         Get_Value in a per-component manner.
17543
17544         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
17545         expression corresponds to a limited aggregate. This test is now done
17546         in Get_Value.
17547
17548         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
17549         Box_Present flag.
17550
17551         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
17552         present in an N_Component_Association node
17553
17554 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
17555
17556         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
17557         type-conformant entry only if they are homographs.
17558
17559 2003-11-13  GNAT Script  <nobody@gnat.com>
17560
17561         * Make-lang.in: Makefile automatically updated
17562
17563 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17564
17565         * adadecode.c: Use <> form of include for ctype.h.
17566         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
17567
17568 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17569
17570         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
17571         Works around PR middle-end/6552.
17572
17573 2003-11-10  Ed Falis  <falis@gnat.com>
17574
17575         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
17576
17577         * 5zinit.adb: (Install_Handler): Moved back to spec
17578         (Install_Signal_Handlers): Deleted
17579
17580         * 5zthrini.adb: Added context clause for System.Storage_Elements
17581         (Register): Only handles creation of taskVar; initialization moved to
17582         Thread_Body_Enter.
17583         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
17584         Added declaration of environment task secondary stack and
17585         initialization.
17586
17587         * s-thread.adb: Implement bodies for thread body processing
17588
17589         * s-thread.ads:
17590         Added comment identifying supported targets for pragma Thread_Body.
17591
17592 2003-11-10  Pascal Obry  <obry@gnat.com>
17593
17594         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
17595         GNAT_MAX_PATH_LEN.
17596
17597         * s-fileio.adb:
17598         (Open): Properly check for string length before copying into the buffer.
17599         Raises Name_Error if buffer is too small. Note that this was a potential
17600         buffer overflow.
17601
17602 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
17603
17604         * bindgen.adb, comperr.adb: Code clean ups.
17605         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
17606
17607 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
17608
17609         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
17610
17611 2003-11-10  Vincent Celier  <celier@gnat.com>
17612
17613         * gprcmd.adb:
17614         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
17615         installation.
17616
17617         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
17618
17619         * prj.adb: (Project_Empty): Add new boolean component Virtual
17620
17621         * prj.ads: (Virtual_Prefix): New constant string
17622         (Project_Data): New boolean component Virtual
17623
17624         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
17625         a library project is extended by a virtual extending project.
17626
17627         * prj-part.adb:
17628         Modifications throughout to implement extending-all project, including:
17629         (Virtual_Hash, Processed_Hash): New hash tables
17630         (Create_Virtual_Extending_Project): New procedure
17631         (Look_For_Virtual_Projects_For): New procedure
17632
17633         * prj-proc.adb:
17634         (Process): After checking the projects, if main project is an
17635         extending-all project, set the object directory of all virtual extending
17636         project to the object directory of the main project.
17637         Adjust error message when a virtual extending project has the same
17638         object directory as an project being extended.
17639         (Recursive_Process): If name starts with the virtual prefix, set Virtual
17640         to True in the project data.
17641
17642         * prj-tree.adb:
17643         (Default_Project_Node): Add new boolean component Extending_All
17644         (Is_Extending_All): New function
17645         (Set_Is_Extending_All): New procedure
17646
17647         * prj-tree.ads: (Is_Extending_All): New function
17648         (Set_Is_Extending_All): New procedure
17649         (Project_Node_Record): New boolean component Extending_All
17650
17651         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
17652
17653         * vms_data.ads:
17654         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
17655
17656         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
17657         "gprcmd prefix" to define it.
17658
17659 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
17660
17661         * einfo.ads: Fix a typo and remove an extraneous word in comments.
17662
17663         * lib-load.adb:
17664         (Create_Dummy_Package_Unit): Set the scope of the entity for the
17665         created dummy package to Standard_Standard, not to itself, to
17666         defend other parts of the front-end against encoutering a cycle in
17667         the scope chain.
17668
17669         * sem_ch10.adb:
17670         (Analyze_With_Clause): When setting the entities for the successive
17671         N_Expanded_Names that constitute the name of a child unit, do not
17672         attempt to go further than Standard_Standard in the chain of scopes.
17673         This case arises from the placeholder units created by
17674         Create_Dummy_Package_Unit in the case of a with_clause for a
17675         nonexistent child unit.
17676
17677 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
17678
17679         * exp_ch6.adb:
17680         (Expand_Thread_Body): Place subprogram on scope stack, so that new
17681         declarations are given the proper scope.
17682
17683         * sem_ch13.adb:
17684         (Check_Expr_Constants): Reject an expression that contains a constant
17685         created during expansion, and that appears after the object to which
17686         the address clause applies.
17687
17688         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
17689         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
17690         that uses 'Range of a function call with controlled components, so
17691         that the function result can be finalized before starting the loop.
17692
17693         * sem_ch8.adb:
17694         (Find_Selected_Component): Improve error message when prefix is
17695         an implicit dereference of an incomplete type.
17696
17697 2003-11-10  Robert Dewar  <dewar@gnat.com>
17698
17699         * opt.ads: New Print_Standard flag for -gnatS switch
17700
17701         * sem_ch13.adb: Remove some additional checks for unaligned arrays
17702
17703         * cstand.adb (Create_Standard): Print out package standard if -gnatS
17704         switch set
17705
17706         * debug.adb: Update doc for -gnatds to discuss relationship with new
17707         -gnatS flag
17708
17709         * sinfo.adb: Add new field Entity_Or_Associated_Node
17710
17711         * sinfo.ads: Add new field Entity_Or_Associated_Node
17712         Update documentation for Associated_Node and Entity fields to clarify
17713         relationship and usage.
17714
17715         * sprint.adb:
17716         (Write_Id): Properly process Associated_Node field in generic template
17717
17718         * switch-c.adb:
17719         Recognize new -gnatS switch for printing package Standard
17720         This replaces gnatpsta
17721
17722         * usage.adb:
17723         Add line for  new -gnatS switch for printing package Standard
17724         This replaces gnatpsta
17725
17726 2003-11-10  Andreas Jaeger  <aj@suse.de>
17727
17728         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
17729         integer.
17730
17731 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
17732
17733         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
17734         by gnat1.
17735
17736 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
17737
17738         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
17739         no longer needed.
17740
17741         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
17742
17743         * sysdep.c: Add handling of cygwin.
17744
17745 2003-11-10  GNAT Script  <nobody@gnat.com>
17746
17747         * Make-lang.in: Makefile automatically updated
17748
17749 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
17750
17751         PR 12950
17752         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
17753         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
17754         Replace GNAT_ROOT by GCC_ROOT.
17755
17756         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
17757
17758 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
17759
17760         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
17761         and update for changed meaning of GET_MODE_BITSIZE.
17762
17763 2003-11-04  Doug Rupp  <rupp@gnat.com>
17764
17765         * sysdep.c: Problem discovered during IA64 VMS port.
17766         [VMS] #include <unixio.h> to get proper prototypes.
17767
17768         * adaint.c:
17769         Issues discovered/problems fixed during IA64 VMS port.
17770         [VMS] #define _POSIX_EXIT for proper semantics.
17771         [VMS] #include <unixio.h> for proper prototypes.
17772         [VMS] (fork): #define IA64 version.
17773         (__gnat_os_exit): Remove unnecessary VMS specific code.
17774
17775 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17776
17777         Part of PR ada/12806
17778
17779         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
17780         tree, not integer.
17781
17782         * decl.c:
17783         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
17784         not integer.
17785
17786         * targtyps.c, decl.c, misc.c,
17787         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
17788         routines to work around change in FP sizing semantics in GCC.
17789
17790         * utils.c:
17791         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
17792
17793         * gigi.h: (enumerate_modes): New function.
17794
17795         * Make-lang.in: (ada/misc.o): Add real.h.
17796
17797         * misc.c: (enumerate_modes): New function.
17798
17799 2003-11-04  Robert Dewar  <dewar@gnat.com>
17800
17801         * 3vtrasym.adb: Minor reformatting
17802         Use terminology encoded/decoded name, rather than C++ specific notion
17803         of mangling (this is the terminology used throughout GNAT).
17804
17805         * einfo.h: Regenerated
17806
17807         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
17808
17809         * exp_ch6.adb:
17810         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
17811
17812         * par-prag.adb: Add dummy entry for Thread_Body pragma
17813
17814         * rtsfind.ads:
17815         Add entries for System.Threads entities for thread body processing
17816
17817         * sem_attr.adb:
17818         (Analyze_Pragma, Access attributes): Check these are not applied to a
17819         thread body, since this is not permitted
17820
17821         * sem_prag.adb: Add processing for Thread_Body pragma.
17822         Minor comment fix.
17823
17824         * sem_res.adb:
17825         (Resolve_Call): Check for incorrect attempt to call a thread body
17826          procedure with a direct call.
17827
17828         * snames.ads, snames.adb: Add entry for Thread_Body pragma
17829         Add names associated with thread body expansion
17830
17831         * snames.h: Add entry for Thread_Body pragma
17832
17833         * s-thread.adb: Add entries for thread body processing
17834         These are dummy bodies so far
17835
17836         * s-thread.ads: Add documentation on thread body handling.
17837         Add entries for thread body processing.
17838
17839 2003-11-04  Javier Miranda  <miranda@gnat.com>
17840
17841         * sem_ch10.adb:
17842         (Build_Limited_Views): Return after posting an error in case of limited
17843         with_clause on subprograms, generics, instances or generic renamings
17844         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
17845         on subprograms, generics, instances or generic renamings
17846
17847 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
17848
17849         * raise.c (setup_to_install): Correct mistake in last revision; two
17850         arguments out of order.
17851
17852         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
17853         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
17854         notice, missed in previous change.
17855         Remove trailing blanks and other style errors introduced in previous
17856         change.
17857
17858 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
17859
17860         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
17861         rid of the wrapper for a LJM type, ensuring we don't do that if the
17862         field is addressable.  This avoids potential low level type view
17863         mismatches later on, for instance in a by-reference argument passing
17864         process.
17865
17866 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17867
17868         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
17869         aligned at byte boundary.
17870
17871 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
17872
17873         * decl.c (components_to_record): Do not delete the empty variants from
17874         the end of the union type.
17875
17876 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
17877
17878         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
17879         operation for a derived type, an explicit declaration may use a local
17880         subtype of Boolean.
17881
17882 2003-11-04  Vincent Celier  <celier@gnat.com>
17883
17884         * make.adb (Gnatmake): Allow main sources on the command line with a
17885         library project when it is only for compilation (no binding or
17886         linking).
17887
17888 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17889
17890         * Makefile.in: Remove many duplicate variables.
17891
17892 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
17893
17894         * Make-lang.in (dvi): Move targets to $(docobjdir).
17895         (gnat_ug_vms.dvi): Simplify rule and adjust target.
17896         (gnat_ug_wnt.dvi): Likewise.
17897         (gnat_ug_unx.dvi): Likewise.
17898         (gnat_ug_vxw.dvi): Likewise.
17899         (gnat_rm.dvi): Likewise.
17900         (gnat-style.dvi): Likewise.
17901
17902 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
17903
17904         * gigi.h: Missed commit from update for C90.
17905
17906 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
17907
17908         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
17909
17910 2003-10-31  Andreas Schwab  <schwab@suse.de>
17911
17912         * raise.c (get_action_description_for): Fix typo in last change.
17913
17914 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
17915
17916         PR ada/12761
17917         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
17918         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
17919
17920 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
17921
17922         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
17923         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
17924         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
17925         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
17926         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
17927
17928 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
17929
17930         * 3vtrasym.adb:
17931         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
17932         numbers when symbol name is too long.
17933
17934 2003-10-30  Ed Falis  <falis@gnat.com>
17935
17936         * g-signal.ads, g-signal.adb: New files
17937
17938         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
17939
17940         * Makefile.rtl: Introduce GNAT.Signals
17941
17942 2003-10-30  Robert Dewar  <dewar@gnat.com>
17943
17944         * freeze.adb: Minor reformatting
17945
17946         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
17947
17948         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
17949         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
17950         New handling of Id_Check parameter to improve recognition of keywords
17951         used as identifiers.
17952         Update copyright notice to include 2003
17953
17954 2003-10-29  Robert Dewar  <dewar@gnat.com>
17955
17956         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
17957         sem_ch10.adb: Minor reformatting
17958
17959         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
17960         (Expand_Assign_Record): Test right hand side for bit unaligned as well
17961
17962 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
17963
17964         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
17965         Support for TBK$SYMBOLIZE-based symbolic traceback.
17966
17967 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
17968
17969         * exp_disp.adb:
17970         Revert previous change, that did not work well when pragma No_Run_Time
17971         was used in conjunction with a run-time other than ZFP.
17972
17973 2003-10-29  Vincent Celier  <celier@gnat.com>
17974
17975         * make.adb:
17976         (Gnatmake): When there are no Ada mains in attribute Main, disable the
17977          bind and link steps only is switch -z is not used.
17978
17979 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
17980
17981         * Makefile.generic: Remove duplicated setting of CC.
17982
17983         * Makefile.prolog: Set CC to gcc by default, to override make's
17984         default (cc).
17985
17986         * einfo.h: Regenerated.
17987
17988 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
17989
17990         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
17991         current body, after compiling subunit.
17992
17993         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
17994         when in deleted code, because gigi needs properly ordered freeze
17995         actions to annotate types.
17996
17997         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
17998         prevent the premature freezing of record type that contains
17999         subcomponents with a private type that does not yet have a completion.
18000
18001 2003-10-29  Javier Miranda  <miranda@gnat.com>
18002
18003         * sem_ch12.adb:
18004         (Analyze_Package_Instantiation): Check that instances can not be used in
18005         limited with_clauses.
18006
18007         * sem_ch8.adb:
18008         (Analyze_Package_Renaming): Check that limited withed packages cannot
18009         be renamed. Improve text on error messages related to limited
18010         with_clauses.
18011
18012         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
18013
18014         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
18015         Update copyright notice.
18016
18017         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
18018         (Install_Limited_Context_Clauses): New subprogram that isolates all the
18019         checks required for limited context_clauses and installs the limited
18020         view.
18021         (Install_Limited_Withed_Unit): Complete its documentation.
18022         (Analyze_Context): Check that limited with_clauses are only allowed in
18023         package specs.
18024         (Install_Context): Call Install_Limited_Context_Clauses after the
18025         parents have been installed.
18026         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
18027         package as 'From_With_Type'; this mark indicates that the limited view
18028         is installed. Used to check bad usages of limited with_clauses.
18029         (Build_Limited_Views): Do not add shadow entities to the scope's list
18030         of entities. Do not add real entities to the Non_Limited_Views chain.
18031         Improve error notification.
18032         (Remove_Context_Clauses): Remove context clauses in two phases:
18033         limited views first and regular views later (to maintain the
18034         stack model).
18035         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
18036         its visible entities.
18037
18038 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
18039
18040         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
18041         with any type that Is_Fixed_Point_Type.
18042
18043         * sinfo.ads: Fix documentation for Associated_Node attribute.
18044
18045 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
18046
18047         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
18048         both '-gnatc' and '-gnatt' are specified.
18049
18050         * atree.adb (Initialize): Add initialization for Node_Count (set to
18051         zero).
18052
18053 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18054
18055         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
18056         do not consider as Pure.
18057
18058         Part of implementation of function-at-a-time:
18059
18060         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
18061         (tree_transform): Add new argument to build_component_ref.
18062         (tree_transform, case N_Assignment_Statement): Make and return an
18063         EXPR_STMT.
18064         (tree_transform): If result IS_STMT, set flags and return it.
18065         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
18066
18067         * utils2.c (build_simple_component_ref, build_component_ref): Add new
18068         arg, NO_FOLD_P.
18069         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
18070         (build_allocator): Likewise.
18071
18072         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
18073         Add new arg to build_component_ref.
18074         (maybe_unconstrained_array, unchecked_convert): Likewise.
18075
18076         * ada-tree.def (EXPR_STMT): New code.
18077
18078         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
18079
18080         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
18081         build_component_ref calls.
18082
18083         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
18084
18085         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
18086         (build_component_ref): Add new argument, NO_FOLD_P.
18087
18088 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
18089
18090         * Makefile.generic: Add missing substitution on object_deps handling.
18091
18092         PR ada/5909:
18093         * Make-lang.in (check-ada): Enable ACATS test suite.
18094
18095 2003-10-27  Robert Dewar  <dewar@gnat.com>
18096
18097         * exp_ch3.adb:
18098         (Freeze_Array_Type): We do not need an initialization routine for types
18099         derived from String or Wide_String. They should be treated the same
18100         as String and Wide_String themselves. This caused problems with the
18101         use of Initialize_Scalars.
18102
18103         * exp_ch5.adb:
18104         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
18105         composites. This allows use of component clauses that are not byte
18106         aligned.
18107
18108         * sem_prag.adb:
18109         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
18110         is an attempt to pack an array of atomic objects.
18111
18112         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
18113
18114 2003-10-27  Pascal Obry  <obry@gnat.com>
18115
18116         * g-dirope.adb:
18117         (Basename): Check for drive letters in a pathname only on DOS based OS.
18118
18119 2003-10-27  Vincent Celier  <celier@gnat.com>
18120
18121         * make.adb:
18122         (Gnatmake): When unable to change dir to the object dir, display the
18123         content of the parent dir of the obj dir, to try to understand why this
18124         happens.
18125
18126 2003-10-27  GNAT Script  <nobody@gnat.com>
18127
18128         * Make-lang.in: Makefile automatically updated
18129
18130 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
18131
18132         * sem_ch12.adb:
18133         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
18134         should not be done in Save/Restore_Scope_Stack, because it is performed
18135         locally.
18136
18137         * sem_ch8.adb:
18138         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
18139         whether use clauses should be removed/restored.
18140
18141         * sem_ch8.ads:
18142         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
18143         whether use clauses should be removed/restored.
18144
18145 2003-10-26  Andreas Jaeger  <aj@suse.de>
18146
18147         * Makefile.in: Remove duplicated lines.
18148
18149 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
18150
18151         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
18152         minimize the differences with ACT tree.
18153
18154         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
18155         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
18156         Gnatvsn.Gnat_Static_Version_String to reduce differences between
18157         ACT and FSF trees.
18158
18159 2003-10-24  Pascal Obry  <obry@gnat.com>
18160
18161         * adadecode.c (ostrcpy): New function.
18162         (__gnat_decode): Use ostrcpy of strcpy.
18163         (has_prefix): Set first parameter a const.
18164         (has_suffix): Set first parameter a const.
18165         Update copyright notice. Fix source name in header.
18166         Removes a trailing space.
18167         PR ada/12014.
18168
18169 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
18170
18171         * exp_disp.adb:
18172         Remove the test against being in No_Run_Time_Mode before generating a
18173         call to Register_Tag. It is redundant with the test against the
18174         availability of the function Register_Tag.
18175
18176 2003-10-24  Vincent Celier  <celier@gnat.com>
18177
18178         * g-catiio.adb: (Month_Name): Correct spelling of February
18179
18180         * make.adb: (Mains): New package
18181         (Initialize): Call Mains.Delete
18182         (Gnatmake): Check that each main on the command line is a source of a
18183         project file and, if there are several mains, each of them is a source
18184         of the same project file.
18185         (Gnatmake): When a foreign language is specified in attribute Languages,
18186         no main is specified on the command line and attribute Mains is not
18187         empty, only build the Ada main. If there is no Ada main, just compile
18188         the Ada sources and their closure.
18189         (Gnatmake): If a main is specified on the command line with directory
18190         information, check that the source exists and, if it does, that the path
18191         is the actual path of a source of a project.
18192
18193         * prj-env.adb:
18194         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
18195         Full_Path is True, return the full path instead of the simple file name.
18196         (Project_Of): New function
18197
18198         * prj-env.ads:
18199         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
18200         defaulted to False.
18201         (Project_Of): New function
18202
18203 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
18204
18205         * Makefile.generic:
18206         Ensure objects of main project are always checked and rebuilt if needed.
18207         Set CC to gcc by default.
18208         Prepare new handling of link by creating a global archive (not activated
18209         yet).
18210
18211         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
18212         stringt.h: Update copyright notice. Remove trailing blanks.
18213         Fix source name in header.
18214
18215 2003-10-24  Robert Dewar  <dewar@gnat.com>
18216
18217         * sem_ch12.adb: Minor reformatting
18218
18219         * sem_ch3.adb:
18220         Minor reformatting (including new function return style throughout)
18221
18222         * sem_ch3.ads:
18223         Minor reformatting (including new function return style throughout)
18224
18225 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
18226
18227         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
18228         stringt.h: Update copyright notice. Remove trailing blanks.
18229         Fix source name in header.
18230
18231 2003-10-24  GNAT Script  <nobody@gnat.com>
18232
18233         * Make-lang.in: Makefile automatically updated
18234
18235 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
18236
18237         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
18238         stringt.h: Convert to ISO C90 declarations and definitions.
18239
18240 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
18241
18242         PR ada/11978:
18243         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
18244         External_Tag attribute definition clauses.
18245
18246 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
18247
18248         PR ada/7613:
18249         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
18250         child unit, generate a fully qualified name to avoid spurious errors
18251         when the context contains renamings of different child units with
18252         the same simple name.
18253
18254         * exp_dbug.ads: Add documentation on name qualification for renamings
18255         of child units.
18256
18257 2003-10-23  Robert Dewar  <dewar@gnat.com>
18258
18259         * g-regpat.ads, g-regpat.adb: Minor reformatting
18260
18261 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
18262
18263         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
18264
18265 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18266
18267         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
18268         Machine call.
18269
18270         * urealp.h: (Machine): Update to proper definition.
18271
18272 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
18273
18274         * init.c, adaint.c: Minor reformatting.
18275
18276 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
18277
18278         * adaint.c (w32_epoch_offset): Define static const at file level.
18279         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
18280         rather than t_create, t_access in call to GetFileTime. Use union
18281         to convert between FILETIME and  unsigned long long.
18282         (__gnat_file_time_name): Test for invalid file handle.
18283         (__gnat_set_filetime_name): Support win32 targets using
18284         w32api SetFileTime.
18285
18286 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
18287
18288         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
18289
18290         * ctrl_c.c (__gnat_int_handler): Remove declaration.
18291
18292         * decl.c (creat_concat_name):  Const-ify prefix.
18293
18294         * adaint.c: Include ctype.h if __MINGW32__.
18295         (__gnat_readlink): Mark arguments as possibly unused.
18296         (__gnat_symlink): Likewise.
18297         (__gnat_is_symbolic_link): Likewise.
18298         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
18299         declaration
18300         (__gnat_file_time_name): Don't declare struct stat statbuf when
18301         not needed.
18302         (__gnat_is_absolute_path): Add parenthesis around condition of
18303         'if' statement to avoid warning.
18304         (__gnat_plist_init): Specify void as parameter.
18305         (plist_enter): Likewise.
18306         (plist_leave): Likewise.
18307         (remove_handle): Make static. Initialize prev.
18308
18309 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
18310
18311         * Makefile.in: Disable build of gnatpsta. PR ada/10110.
18312         * cstreams.c (__gnat_full_name): Minor improvements and clean up
18313         of previous change.
18314
18315 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18316
18317         * tracebak.c (MAX): Avoid redefinition warning.
18318
18319         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
18320         Change msg to const char *.
18321         (__gnat_install_handler): Remove ss, unused.
18322         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
18323         to const char *.
18324         * cstreams.c (__gnat_full_name): Declare p only when used.
18325         (__gnat_full_name) [sgi] Return buffer.
18326
18327 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
18328
18329         * mingw32.h: New file.
18330         * gnat_wrapper.adb: New file.
18331
18332 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
18333
18334         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
18335         string match a pre compiled regular expression (the corresponding
18336         version of the function working on a raw regular expression)
18337         Fix typos in various comments
18338         Update copyright notice in spec
18339
18340 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
18341
18342         * exp_ch3.adb:
18343         (Component_Needs_Simple_Initialization): Return False when the type is a
18344         packed bit array. Revise spec comments to document this case.
18345
18346         * exp_prag.adb:
18347         (Expand_Pragma_Import): Set any expression on the imported object to
18348         empty to avoid initializing imported objects (in particular this
18349         covers the case of zero-initialization of bit arrays).
18350         Update copyright notice.
18351
18352 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
18353
18354         * sem_ch12.adb:
18355         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
18356         a subunit is missing.
18357         (Instantiate_Subprogram_Body): If body of function is missing, set type
18358         of return expression explicitly in dummy body, to prevent cascaded
18359         errors when a subunit is missing.
18360         Fixes PR 5677.
18361
18362         * sem_ch3.adb:
18363         (Access_Subprogram_Declaration): Verify that return type is valid.
18364         Fixes PR 8693.
18365
18366         * sem_elab.adb:
18367         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
18368         generic.
18369         Fixes PR 12318.
18370
18371         * sem_util.adb:
18372         (Corresponding_Discriminant): If the scope of the discriminant is a
18373         private type without discriminant, use its full view.
18374         Fixes PR 8247.
18375
18376 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
18377
18378         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
18379         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
18380         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
18381         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
18382         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
18383         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
18384         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
18385         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
18386         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
18387         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
18388         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
18389         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
18390         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
18391         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
18392         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
18393         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
18394         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
18395         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
18396         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
18397         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
18398         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
18399         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
18400         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
18401         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
18402         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
18403         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
18404         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
18405         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
18406         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
18407         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
18408         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
18409         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
18410         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
18411         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
18412         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
18413         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
18414         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
18415         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
18416         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
18417         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
18418         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
18419         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
18420         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
18421         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
18422         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
18423         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
18424         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
18425         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
18426         vms_conv.ads, vms_conv.adb, vms_data.ads,
18427         vxaddr2line.adb: Files added. Merge with ACT tree.
18428
18429         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
18430         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
18431         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
18432         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
18433         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
18434         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
18435         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
18436         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
18437         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
18438         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
18439
18440         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
18441         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
18442         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
18443         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
18444         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
18445         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
18446         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
18447         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
18448         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
18449         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
18450         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
18451         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
18452         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
18453         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
18454         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
18455         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
18456         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
18457         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
18458         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
18459         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
18460         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
18461         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
18462         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
18463         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
18464         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
18465         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
18466         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
18467         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
18468         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
18469         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
18470         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
18471         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
18472         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
18473         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
18474         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
18475         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
18476         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
18477         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
18478         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
18479         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
18480         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
18481         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
18482         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
18483         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
18484         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
18485         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
18486         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
18487         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
18488         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
18489         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
18490         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
18491         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
18492         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
18493         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
18494         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
18495         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
18496         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
18497         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
18498         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
18499         checks.adb, checks.ads, cio.c, comperr.adb,
18500         comperr.ads, csets.adb, cstand.adb, cstreams.c,
18501         debug_a.adb, debug_a.ads, debug.adb, decl.c,
18502         einfo.adb, einfo.ads, errout.adb, errout.ads,
18503         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
18504         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
18505         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
18506         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
18507         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
18508         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
18509         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
18510         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
18511         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
18512         fe.h, fmap.adb, fmap.ads, fname.adb,
18513         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
18514         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
18515         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
18516         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
18517         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
18518         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
18519         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
18520         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
18521         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
18522         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
18523         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
18524         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
18525         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
18526         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
18527         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
18528         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
18529         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
18530         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
18531         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
18532         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
18533         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
18534         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
18535         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
18536         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
18537         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
18538         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
18539         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
18540         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
18541         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
18542         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
18543         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
18544         layout.adb, lib.adb, lib.ads, lib-list.adb,
18545         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
18546         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
18547         link.c, live.adb, make.adb, make.ads,
18548         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
18549         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
18550         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
18551         misc.c, mkdir.c, mlib.adb, mlib.ads,
18552         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
18553         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
18554         namet.adb, namet.ads, namet.h, nlists.ads,
18555         nlists.h, nmake.adt, opt.adb, opt.ads,
18556         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
18557         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
18558         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
18559         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
18560         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
18561         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
18562         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
18563         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
18564         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
18565         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
18566         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
18567         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
18568         prj-util.adb, prj-util.ads, raise.c, raise.h,
18569         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
18570         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
18571         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
18572         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
18573         scans.ads, scn.adb, scn.ads, s-crc32.adb,
18574         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
18575         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
18576         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
18577         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
18578         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
18579         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
18580         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
18581         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
18582         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
18583         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
18584         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
18585         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
18586         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
18587         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
18588         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
18589         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
18590         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
18591         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
18592         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
18593         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
18594         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
18595         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
18596         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
18597         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
18598         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
18599         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
18600         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
18601         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
18602         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
18603         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
18604         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
18605         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
18606         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
18607         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
18608         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
18609         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
18610         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
18611         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
18612         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
18613         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
18614         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
18615         stringt.adb, stringt.ads, stringt.h, style.ads,
18616         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
18617         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
18618         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
18619         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
18620         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
18621         table.adb, table.ads, targparm.adb, targparm.ads,
18622         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
18623         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
18624         ttypes.ads, types.ads, types.h, uintp.adb,
18625         uintp.ads, uintp.h, uname.adb, urealp.adb,
18626         urealp.ads, urealp.h, usage.adb, utils2.c,
18627         utils.c, validsw.adb, validsw.ads, widechar.adb,
18628         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
18629         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
18630         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
18631         gnatvsn.ads: Merge with ACT tree.
18632
18633         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
18634
18635 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
18636
18637         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
18638         (gnat_ug_vmx.info): Likewise.
18639         (gnat_ug_vxw.info): Likewise.
18640         (gnat_ug_wnt.info): Likewise.
18641         (gnat_rm.info): Likewise.
18642         (gnat-style.info): Likewise.
18643
18644         * Make-lang.in (ada.install-info): Remove target.
18645         (info): New target.
18646         (install-info): Likewise.
18647         (gnat_ug_unx.info): Simplify rule.
18648         (gnat_ug_vmx.info): Likewise.
18649         (gnat_ug_vxw.info): Likewise.
18650         (gnat_ug_wnt.info): Likewise.
18651         (gnat_rm.info): Likewise.
18652         (gnat-style.info): Likewise.
18653
18654 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
18655
18656         * Make-lang.in: Replace uses of $(target_alias) with
18657         $(target_noncanonical).
18658         * ada/Makefile.in: Remove unused mention of $(target_alias).
18659
18660 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
18661
18662         * Make-lang.in (ada.info): Replace with ...
18663         (info): ... this.
18664         (ada.dvi): Replace with ...
18665         (dvi): ... this.
18666
18667 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
18668
18669         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
18670         initialize dconstp5 and dconstmp5.
18671
18672 2003-09-28  Richard Henderson  <rth@redhat.com>
18673
18674         * trans.c (tree_transform): Update call to expand_asm_operands.
18675
18676 2003-09-21  Richard Henderson  <rth@redhat.com>
18677
18678         * trans.c, utils.c: Revert.
18679
18680 2003-09-21  Richard Henderson  <rth@redhat.com>
18681
18682         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
18683         change to const.
18684
18685 2003-09-04  Michael Matz  <matz@suse.de>
18686
18687         * misc.c: Include "target.h".
18688         * Make-lang.in (misc.o): Add dependency on target.h.
18689
18690 2003-09-03  DJ Delorie  <dj@redhat.com>
18691
18692         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
18693         hook.
18694
18695 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
18696
18697         * Makefile.in: Update substitutions to match changes to
18698         configure.  Use include directives instead of @-insertions
18699         to read in host and target fragments.  Add a rule to
18700         regenerate ada/Makefile.
18701
18702 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
18703
18704         * lang-options.h: Remove.
18705         * lang.opt: Add help text.
18706
18707 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
18708
18709         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
18710         calls.
18711
18712 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
18713
18714         * misc.c (gnat_handle_option): Don't handle filenames.
18715
18716 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
18717
18718         * Make-lang.in: Replace PWD with PWD_COMMAND.
18719         * Makefile.adalib: Likewise.
18720         * Makefile.in: Likewise.
18721
18722 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
18723
18724         * misc.c (gnat_argv): Revert last change.
18725         (gnat_handle_option, gnat_init_options): Copy arguments.
18726
18727 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
18728
18729         * misc.c (gnat_argv): Make const.
18730
18731 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
18732
18733         * misc.c (save_argc, save_argv): Keep non-static!
18734
18735 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
18736
18737         * misc.c (save_argc, save_argv): Make static.
18738         (gnat_init_options): New prototype.
18739         (gnat_init_options): Update.
18740
18741 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
18742
18743         * gnat_ug.texi: Remove unlikely characters from @vars.
18744         * gnat_ug_vms.texi: Regenerate.
18745
18746 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
18747
18748         * misc.c (record_code_position): Adjust emit_note call.
18749
18750 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
18751
18752         * misc.c (gnat_handle_option): Don't check for missing arguments.
18753
18754 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
18755
18756         * utils.c (end_subprog_body): Adjust expand_function_end call.
18757
18758 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
18759
18760         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
18761         Bind_Main_Program.
18762
18763 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
18764
18765         * lang.opt: Declare Ada.
18766         * misc.c (gnat_init_options): Update.
18767
18768 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
18769
18770         * utils.c (begin_subprog_body): Adjust init_function_start call.
18771
18772 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
18773
18774         * Make-lang.in: Update to use options.c and options.h.
18775         * misc.c: Include options.h not aoptions.h.
18776         (gnat_handle_option): Abort on unrecognized switch.
18777         (gnat_init_options): Request Ada switches.
18778
18779 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
18780
18781         * lang.opt: Add -Wall.
18782         * misc.c (gnat_handle_option): Handle it.
18783
18784 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
18785
18786         * misc.c (gnat_handle_option): Fix warnings.
18787
18788 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
18789
18790         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
18791
18792 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
18793
18794         * Make-lang.in: Update to handle command-line options.
18795         * lang.opt: New file.
18796         * misc.c: Include aoptions.h.
18797         (cl_options_count, cl_options): Remove.
18798         (gnat_handle_option): New.
18799         (gnat_decode_option): Remove.
18800         (LANG_HOOKS_DECODE_OPTION): Remove.
18801         (LANG_HOOKS_HANDLE_OPTION): Override.
18802
18803 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
18804
18805         * init.c, misc.c, trans.c, utils.c: Remove dead code.
18806
18807 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
18808
18809         * Makefile.in: Replace "host_canonical" with "host" for autoconf
18810         substitution.
18811
18812 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
18813
18814         * Make-lang.in: Update.
18815         * misc.c: Include opts.h. Define cl_options_count and cl_options.
18816
18817 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
18818
18819         * misc.c (gnat_init_options): Update.
18820
18821 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
18822
18823         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
18824         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
18825         __attribute__ ((__unused__)).
18826
18827 2003-06-05  Jan Hubicka  <jh@suse.cz>
18828
18829         * Make-lang.in:  Add support for stageprofile and stagefeedback
18830
18831 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
18832
18833         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
18834         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
18835
18836 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
18837
18838         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
18839         Remove non-VMS directive.
18840         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
18841         alternatives.
18842         (Examples of gnatls Usage): Remove VMS alternative.
18843
18844 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
18845
18846         PR ada/9953:
18847         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
18848         and turn ZCX_By_Default back to False since the underlying support
18849         is not quite there yet.
18850
18851 2003-06-01  Andreas Jaeger  <aj@suse.de>
18852
18853         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
18854         and ROUND_TYPE_SIZE_UNIT.
18855
18856 2003-05-22   Geert Bosch <bosch@gnat.com>
18857
18858         * gnat_rm.texi : Remove reference to Ada Core Technologies.
18859
18860 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
18861
18862         * trans.c (tree_transform): Use location_t and input_location
18863         directly.
18864         (build_unit_elab): Likewise.
18865         * utils.c (create_label_decl): Likewise.
18866
18867 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
18868
18869         * trans.c (tree_transform, build_unit_elab,
18870         set_lineno): Rename lineno to input_line.
18871         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
18872         end_subprog_body): Likewise.
18873         * utils2.c (build_call_raise): Likewise.
18874
18875 2003-05-01  Laurent Guerby <guerby@acm.org>
18876
18877         PR ada/10546
18878         * 5iosinte.ads: Increase pthread_cond_t size to match recent
18879         LinuxThread and NPTL version, merge from ACT.
18880
18881 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
18882
18883         * utils.c (convert): No need to clear TREE_CST_RTL.
18884
18885 2003-04-23   Geert Bosch <bosch@gnat.com>
18886
18887         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
18888         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
18889         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
18890         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
18891         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
18892         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
18893         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
18894         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
18895         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
18896         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
18897         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
18898         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
18899         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
18900         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
18901         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
18902         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
18903         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
18904         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
18905         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
18906         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
18907         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
18908         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
18909         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
18910         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
18911         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
18912         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
18913         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
18914         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
18915         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
18916         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
18917         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
18918         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
18919         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
18920         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
18921         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
18922         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
18923         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
18924         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
18925         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
18926         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
18927         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
18928         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
18929         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
18930         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
18931         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
18932         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
18933         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
18934         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
18935         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
18936         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
18937         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
18938         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
18939         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
18940         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
18941         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
18942         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
18943         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
18944         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
18945         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
18946         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
18947         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
18948         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
18949         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
18950         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
18951         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
18952         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
18953         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
18954         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
18955         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
18956         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
18957         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
18958         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
18959         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
18960         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
18961         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
18962         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
18963         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
18964         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
18965         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
18966         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
18967         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
18968         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
18969         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
18970         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
18971         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
18972         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
18973         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
18974         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
18975         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
18976         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
18977         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
18978         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
18979         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
18980         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
18981         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
18982         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
18983         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
18984         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
18985         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
18986         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
18987         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
18988         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
18989         ali.adb, ali.ads, alloc.ads, argv.c,
18990         atree.adb, atree.ads, atree.h, aux-io.c,
18991         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
18992         binde.adb, binde.ads, binderr.adb, binderr.ads,
18993         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
18994         butil.adb, butil.ads, cal.c, calendar.ads,
18995         casing.adb, casing.ads, ceinfo.adb, checks.adb,
18996         checks.ads, cio.c, comperr.adb, comperr.ads,
18997         config-lang.in, csets.adb, csets.ads, csinfo.adb,
18998         cstand.adb, cstand.ads, cuintp.c, debug.adb,
18999         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
19000         dec-io.ads, dec.ads, deftarg.c, directio.ads,
19001         einfo.adb, einfo.ads, elists.adb, elists.ads,
19002         elists.h, errno.c, errout.adb, errout.ads,
19003         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
19004         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
19005         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
19006         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
19007         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
19008         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
19009         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
19010         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
19011         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
19012         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
19013         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
19014         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
19015         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
19016         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
19017         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
19018         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
19019         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
19020         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
19021         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
19022         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
19023         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
19024         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
19025         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
19026         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
19027         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
19028         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
19029         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
19030         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
19031         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
19032         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
19033         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
19034         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
19035         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
19036         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
19037         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
19038         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
19039         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
19040         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
19041         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
19042         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
19043         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
19044         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
19045         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
19046         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
19047         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
19048         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
19049         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
19050         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
19051         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
19052         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
19053         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
19054         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
19055         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
19056         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
19057         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
19058         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
19059         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
19060         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
19061         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
19062         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
19063         lib.adb, lib.ads, live.adb, live.ads,
19064         machcode.ads, make.adb, make.ads, makeusg.adb,
19065         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
19066         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
19067         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
19068         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
19069         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
19070         mlib.ads, namet.adb, namet.ads, nlists.adb,
19071         nlists.ads, opt.adb, opt.ads, osint-b.adb,
19072         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
19073         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
19074         osint.ads, output.adb, output.ads, par-ch10.adb,
19075         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
19076         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
19077         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
19078         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
19079         par-tchk.adb, par-util.adb, par.adb, par.ads,
19080         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
19081         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
19082         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
19083         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
19084         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
19085         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
19086         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
19087         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
19088         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
19089         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
19090         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
19091         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
19092         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
19093         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
19094         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
19095         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
19096         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
19097         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
19098         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
19099         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
19100         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
19101         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
19102         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
19103         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
19104         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
19105         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
19106         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
19107         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
19108         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
19109         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
19110         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
19111         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
19112         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
19113         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
19114         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
19115         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
19116         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
19117         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
19118         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
19119         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
19120         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
19121         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
19122         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
19123         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
19124         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
19125         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
19126         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
19127         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
19128         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
19129         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
19130         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
19131         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
19132         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
19133         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
19134         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
19135         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
19136         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
19137         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
19138         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
19139         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
19140         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
19141         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
19142         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
19143         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
19144         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
19145         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
19146         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
19147         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
19148         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
19149         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
19150         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
19151         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
19152         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
19153         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
19154         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
19155         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
19156         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
19157         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
19158         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
19159         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
19160         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
19161         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
19162         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
19163         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
19164         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
19165         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
19166         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
19167         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
19168         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
19169         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
19170         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
19171         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
19172         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
19173         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
19174         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
19175         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
19176         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
19177         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
19178         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
19179         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
19180         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
19181         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
19182         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
19183         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
19184         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
19185         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
19186         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
19187         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
19188         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
19189         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
19190         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
19191         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
19192         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
19193         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
19194         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
19195         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
19196         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
19197         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
19198         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
19199         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
19200         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
19201         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
19202         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
19203         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
19204         snames.ads, sprint.adb, sprint.ads, stand.adb,
19205         stand.ads, stringt.adb, stringt.ads, style.adb,
19206         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
19207         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
19208         switch-m.ads, switch.adb, switch.ads, system.ads,
19209         table.adb, table.ads, targparm.adb, targparm.ads,
19210         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
19211         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
19212         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
19213         ttypef.ads, ttypes.ads, types.adb, types.ads,
19214         uintp.adb, uintp.ads, uname.adb, uname.ads,
19215         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
19216         usage.adb, usage.ads, validsw.adb, validsw.ads,
19217         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
19218         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
19219         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
19220         formatting and other trivial changes from ACT.
19221
19222 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
19223
19224         * gigi.h, utils2.c (build_constructor):
19225         Rename gnat_build_constructor. Use build_constructor.
19226         * decl.c (gnat_to_gnu_entity)
19227         * trans.c (tree_transform, pos_to_constructor, extract_values)
19228         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
19229         (unchecked_convert)
19230         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
19231         (fill_vms_descriptor):
19232         Update to match.
19233
19234 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
19235
19236         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
19237         * misc.c (gnat_tree_size): New function.
19238         (LANG_HOOKS_TREE_SIZE): Override.
19239
19240 2003-04-03  Jason Merrill  <jason@redhat.com>
19241
19242         * misc.c (gnat_adjust_rli): #if 0.
19243
19244 2003-03-31   Geert Bosch <bosch@gnat.com>
19245
19246         PR ada/10020
19247         * link.c : Fix misspelled "const" keyword
19248
19249 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
19250
19251         PR c++/7086
19252         * utils2.c: Adjust calls to put_var_into_stack.
19253
19254 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
19255
19256         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
19257
19258 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
19259
19260         * misc.c (gnat_init): Update for new prototype.
19261
19262 2003-03-05  Olivier Hainque  <hainque@gnat.com>
19263
19264         ada/9961
19265         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
19266         warning, and fix return type for the IN_RTS && !SJLJ case.
19267
19268 2003-03-04  Tom Tromey  <tromey@redhat.com>
19269
19270         * Make-lang.in (ada.tags): New target.
19271
19272 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
19273
19274         ada/9911
19275         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
19276         wrapper, which name remains constant whatever underlying GCC
19277         scheme.
19278
19279         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
19280         the stable interface needed for a-except.
19281
19282 2003-03-02  Andreas Jaeger  <aj@suse.de>
19283
19284         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
19285         gnat_ug_wnt.texi: Regenerate.
19286
19287 2003-03-02  Laurent Guerby <guerby@acm.org>
19288
19289         * Makefile.in (install-gnatlib): Match previous change there
19290         so it works.
19291
19292 2003-02-28  Andreas Schwab  <schwab@suse.de>
19293
19294         * Make-lang.in (install-gnatlib): Change to ada directory before
19295         running make instead of using ada/Makefile directly.
19296
19297 2003-02-18  Ben Elliston  <bje@redhat.com>
19298
19299         Part of fix for PR ada/9406
19300         * gnat_ug.texi (Binder output file): Grammar fix.
19301
19302 2003-02-18  Ben Elliston  <bje@redhat.com>
19303
19304         PR other/7350
19305         * 5qtaprop.adb (Sleep): Fix typo in comment.
19306
19307 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
19308
19309         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
19310         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
19311         gnat_ug_wnt.texi: Regenerate.
19312
19313 2003-02-03  Christian Cornelssen <ccorn@cs.tu-berlin.de>
19314
19315         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
19316         be created if necessary.
19317         (ada.install-common): Let $(DESTDIR)$(bindir) be created
19318         if necessary.  Remove erroneous and redundant gnatchop
19319         installation commands.  Test for gnatdll before attempting
19320         to install it.
19321         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
19322         and gnatdll from all plausible locations.
19323
19324 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
19325
19326         * utils2.c (build_unary_op): Don't check flag_volatile.
19327         * gnat_ug.texi: Remove -fvolatile from example.
19328         * gnat_ug_vxw.texi: Likewise.
19329
19330 2003-01-29  Laurent Guerby <guerby@acm.org>
19331
19332         PR ada/8344
19333         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
19334         * Makefile.in: match previous change.
19335         * Make-lang.in: match previous change.
19336
19337 2003-01-29      Joel Sherrill <joel@OARcorp.com>
19338
19339         * 5rosinte.ads: Add SIGXCPU.
19340         * 5rtpopsp.adb: New file.
19341         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
19342         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
19343         specific file 5rtpopsp.adb.
19344         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
19345         is likely needed for all newlib targets.
19346         * init.c: Add RTEMS specific version of __gnat_initialize().
19347
19348 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19349
19350         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
19351
19352 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19353
19354         * init.c (__gnat_error_handler): Make msg const.
19355
19356         * gmem.c (convert_addresses): Move declaration ...
19357         * adaint.h: ... here.
19358         * adaint.c (convert_addresses): Adapt addrs type to match
19359         prototype.
19360
19361         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
19362
19363 2003-01-24  Andreas Schwab  <schwab@suse.de>
19364
19365         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
19366         size_t to avoid warning.
19367
19368 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
19369
19370         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
19371
19372 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
19373
19374         * gnat_rm.texi: Remove RCS version number.
19375
19376         * ada-tree.h (union lang_tree_node): Add chain_next option.
19377
19378 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
19379
19380         * Make-lang.in (ada.install-info, ada.install-common,
19381         ada.uninstall): Prepend $(DESTDIR) to the destination
19382         directory in all (un)installation commands.
19383         * Makefile.in (install-gnatlib, install-rts): Ditto.
19384
19385 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
19386
19387         * gnat_rm.texi, gnat_ug.texi: Use @copying.
19388         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
19389         gnat_ug_wnt.texi: Regenerate.
19390
19391 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
19392
19393         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
19394         only.
19395         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
19396         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
19397         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
19398         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
19399         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
19400         $(srcdir)/doc/include/gcc-common.texi.
19401
19402 2002-12-15   Geert Bosch <bosch@gnat.com>
19403
19404         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
19405
19406 2002-12-14   Geert Bosch <bosch@gnat.com>
19407
19408         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
19409         case of a body created for a Renaming_As_Body, on which
19410         conformance checks are not performed. Fixes PR ada/5690.
19411
19412 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
19413
19414         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
19415         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
19416         not already included.
19417         * Make-lang.in: Update dependencies.
19418
19419 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
19420         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
19421         solution to buffer overflow bug on GNU/Linux.
19422
19423 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
19424         Closes PR ada/5856 and PR ada/6919 !
19425         * bindgen.adb: Remove all references to Public_Version.
19426         * comperr.adb: Remove all references to Public_Version and
19427         GNATPRO_Version; correct bug reporting instructions.
19428         * comperr.ads: Change to match bug box.
19429         * gnatvsn.ads: Remove all references to Public version and
19430         GNATPRO version.
19431
19432 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
19433         PR ada/6919
19434         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
19435         GNU/Linux.
19436
19437         PR ada/6558
19438         * config-lang.in: Remove diff_excludes.
19439
19440 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
19441         PR ada/8358
19442         * trans.c (gnu_pending_elaboration_lists): New GC root.
19443         (build_unit_elab): Use..
19444
19445 2002-10-30   Geert Bosch <bosch@gnat.com>
19446         PR ada/6558
19447         * misc.c : Include optabs.h
19448
19449         * Make-lang.in (misc.o): Add dependency on optabs.h
19450
19451 2002-10-29   Geert Bosch <bosch@gnat.com>
19452         PR ada/6558
19453         * Make-lang.in (gnatbind): Depend on CONFIG_H
19454
19455 2002-10-29  Geert bosch  <bosch@gnat.com>
19456         PR ada/6558
19457         * misc.c: Unrevert misc.c (1.13)
19458
19459 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
19460
19461         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
19462         maintainership comments.
19463
19464 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
19465         PR ada/5904
19466         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
19467         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
19468         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
19469         7staprop.adb: Correct statements in comments about
19470         maintainership of GNAT.
19471
19472         PR ada/5904
19473         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
19474         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
19475         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
19476         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
19477         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
19478         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
19479         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
19480         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
19481         comments about maintainership of GNAT.
19482
19483         PR ada/6919 (forward port of patch for PR ada/5904)
19484         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
19485         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
19486         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
19487         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
19488         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
19489         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
19490         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
19491         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
19492         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
19493         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
19494         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
19495         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
19496         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
19497         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
19498         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
19499         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
19500         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
19501         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
19502         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
19503         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
19504         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
19505         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
19506         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
19507         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
19508         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
19509         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
19510         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
19511         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
19512         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
19513         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
19514         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
19515         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
19516         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
19517         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
19518         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
19519         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
19520         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
19521         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
19522         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
19523         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
19524         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
19525         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
19526         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
19527         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
19528         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
19529         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
19530         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
19531         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
19532         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
19533         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
19534         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
19535         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
19536         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
19537         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
19538         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
19539         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
19540         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
19541         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
19542         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
19543         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
19544         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
19545         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
19546         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
19547         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
19548         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
19549         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
19550         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
19551         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
19552         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
19553         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
19554         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
19555         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
19556         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
19557         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
19558         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
19559         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
19560         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
19561         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
19562         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
19563         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
19564         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
19565         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
19566         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
19567         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
19568         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
19569         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
19570         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
19571         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
19572         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
19573         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
19574         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
19575         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
19576         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
19577         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
19578         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
19579         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
19580         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
19581         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
19582         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
19583         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
19584         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
19585         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
19586         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
19587         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
19588         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
19589         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
19590         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
19591         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
19592         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
19593         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
19594         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
19595         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
19596         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
19597         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
19598         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
19599         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
19600         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
19601         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
19602         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
19603         par-endh.adb par-labl.adb par-load.adb par-prag.adb
19604         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
19605         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
19606         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
19607         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
19608         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
19609         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
19610         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
19611         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
19612         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
19613         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
19614         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
19615         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
19616         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
19617         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
19618         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
19619         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
19620         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
19621         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
19622         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
19623         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
19624         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
19625         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
19626         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
19627         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
19628         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
19629         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
19630         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
19631         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
19632         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
19633         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
19634         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
19635         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
19636         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
19637         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
19638         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
19639         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
19640         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
19641         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
19642         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
19643         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
19644         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
19645         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
19646         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
19647         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
19648         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
19649         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
19650         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
19651         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
19652         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
19653         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
19654         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
19655         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
19656         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
19657         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
19658         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
19659         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
19660         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
19661         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
19662         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
19663         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
19664         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
19665         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
19666         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
19667         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
19668         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
19669         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
19670         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
19671         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
19672         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
19673         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
19674         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
19675         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
19676         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
19677         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
19678         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
19679         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
19680         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
19681         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
19682         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
19683         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
19684         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
19685         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
19686         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
19687         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
19688         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
19689         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
19690         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
19691         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
19692         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
19693         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
19694         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
19695         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
19696         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
19697         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
19698         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
19699         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
19700         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
19701         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
19702         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
19703         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
19704         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
19705         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
19706         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
19707         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
19708         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
19709         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
19710         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
19711         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
19712         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
19713         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
19714         stringt.ads stringt.h style.adb style.ads stylesw.adb
19715         stylesw.ads switch.adb switch.ads sysdep.c system.ads
19716         table.adb table.ads targparm.adb targparm.ads targtyps.c
19717         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
19718         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
19719         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
19720         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
19721         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
19722         usage.ads utils.c utils2.c validsw.adb validsw.ads
19723         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
19724         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
19725         xtreeprs.adb: Correct statements in comments about maintainership
19726         of GNAT.
19727
19728 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
19729
19730         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
19731         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
19732         * gnatvsn.ads: Gnat_Version_String is now a function.
19733         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
19734         copy the C version_string into a String and return it.
19735         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
19736         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
19737         Remove pragma Ident (Gnat_Version_String).  If this was the
19738         sole use of package Gnatvsn, remove the with statement too.
19739         * gnat1drv.adb: Tweak -gnatv output.
19740
19741 2002-09-17  Richard Henderson  <rth@redhat.com>
19742
19743         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
19744         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
19745         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
19746         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
19747         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
19748         and real_2expN instead of a loop.
19749         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
19750         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
19751
19752 2002-08-25  Andre Leis <a.leis@gmx.net>
19753             David Billinghurst (David.Billinghurst@riotinto.com>
19754
19755         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
19756
19757 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19758
19759         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
19760         Remove $(CONFIG_H) dependency.
19761
19762 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
19763
19764         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
19765
19766 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19767
19768         * adadecode.c (ada_demangle): Use xstrdup in lieu of
19769         xmalloc/strcpy.
19770         * misc.c (gnat_decode_option): Likewise.
19771
19772 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
19773
19774         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
19775         function approach did not work well because of a side effect (the
19776         function call could reallocate the table which was being indexed
19777         using its result). Fixes ada/4851. [RESURRECTED]
19778
19779 2002-07-01  Roger Sayle  <roger@eyesopen.com>
19780
19781         * ada/utils.c (builtin_function): Accept an additional parameter.
19782
19783 2002-06-28  Andreas Jaeger  <aj@suse.de>
19784
19785         PR ada/7144
19786         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
19787         <adi@thur.de>.
19788
19789 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19790
19791         * Makefile.in (SHELL): Set to @SHELL@.
19792
19793 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19794
19795         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
19796         array size calculation.
19797
19798 2002-06-04  Andreas Jaeger  <aj@suse.de>
19799
19800         * Make-lang.in (gnatbind): Readd rule that has been lost in last
19801         patch.
19802
19803 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
19804
19805         Merge from pch-branch:
19806
19807         * config-lang.in (gtfiles): Add ada-tree.h.
19808         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
19809         (SET_TYPE_MODULUS): New.
19810         (SET_TYPE_INDEX): New.
19811         (SET_TYPE_DIGITS_VALUE): New.
19812         (SET_TYPE_RM_SIZE): New.
19813         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
19814         (SET_TYPE_ADA_SIZE): New.
19815         (SET_TYPE_ACTUAL_BOUNDS): New.
19816         (SET_DECL_CONST_CORRESPONDING_VAR): New.
19817         (SET_DECL_ORIGINAL_FIELD): New.
19818         (TREE_LOOP_ID): Correct typo.
19819         * decl.c: Use new macros.
19820         * utils.c: Include debug.h, use new macros.
19821         * utils2.c: Use new macros.
19822
19823         * ada-tree.h: Update all macros for new tree description.
19824         (struct tree_loop_id): New.
19825         (union lang_tree_node): New.
19826         (struct lang_decl): New.
19827         (struct lang_type): New.
19828         * misc.c (gnat_mark_tree): Delete.
19829         (LANG_HOOKS_MARK_TREE): Delete.
19830         * trans.c (tree_transform): No longer any need to cast
19831         for TREE_LOOP_ID.
19832
19833         * utils.c (struct language_function): New dummy structure.
19834
19835         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
19836         (misc.o): Likewise.
19837         (utils.o): Likewise; also gtype-ada.h.
19838         * Make-lang.in (gnat1): Add dependency on s-gtype.
19839         (gnatbind): Add dependency on $(CONFIG_H).
19840         * utils.c: Correct last #include.
19841         (stuct e_stack): Remove unnecessary 'static'.
19842         (mark_e_stack): Remove unused prototype.
19843
19844         * scn-nlit.adb: Remove whitespace after version number to
19845         keep lines under 80 chars.
19846         * snames.adb: Likewise.
19847         * treepr.ads: Likewise.
19848
19849         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
19850         (misc.o): Likewise.
19851         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
19852         * config-lang.in (gtfiles): New.
19853         * decl.c: Use gengtype for roots.
19854         * gigi.h: Use gengtype for roots.
19855         * trans.c: Use gengtype for roots.
19856         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
19857
19858 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
19859
19860         * misc.c (gnat_init): Adjust setting of internal_error_function.
19861
19862 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
19863
19864         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
19865         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
19866         gnat_ug_wnt.texi: Regenerate.
19867
19868 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
19869
19870         * 5ntaprop.adb (with System.OS_Primitives): Remove.
19871
19872         * cstreams.c (max_path_len): Move from here ...
19873         * adaint.c (__gnat_max_path_len): ... to here.
19874         * adaint.c (__gnat_max_path_len): Declare.
19875         * g-dirope.adb (Max_Path): Adjust.
19876         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
19877         * i-cstrea.ads (max_path_len): Adjust.
19878         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
19879         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
19880
19881         * Makefile.in, Make-lang.in: Documentation is now built in
19882         Make-lang.in.  Store Info and generated Texinfo files in the
19883         source directory.
19884         * gnat_ug.texi: Remove CVS keywords, correct version number.
19885         Set file name correctly.
19886
19887         * gnat_ug_*.texi: Add.
19888         * .cvsignore: Ignore generated Texinfo files.
19889
19890 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
19891
19892         * ada.h: Add MI guard macro.
19893         (SUBTYPE): Define constants with an anonymous enum, not static
19894         const variables.
19895         (IN): Cast constants to appropriate type before use.
19896
19897 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
19898
19899         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
19900         (experimental)".
19901
19902 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19903
19904         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
19905         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
19906         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
19907         (ALL_ADA_CFLAGS): Likewise.
19908         (ADA_INCLUDES): Likewise.
19909         Adapt for new working dir.
19910         (GNATBIND): Use Makefile.in version.
19911         (.SUFFIXES): Copy from Makefile.in.
19912         (ada-warn): Define.
19913         (.adb.o, .ads.o): Copy from Makefile.in.
19914         Added $(OUTPUT_OPTION).
19915         (GNAT1_C_OBJS): Moved from Makefile.in.
19916         Prefix with ada subdir.
19917         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
19918         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
19919         Adapt for new working dir.
19920         (EXTRA_GNATBIND_OBJS): Likewise.
19921         (ADA_BACKEND): Moved from Makefile.in.
19922         Renamed to avoid conflict with global BACKEND.
19923         Use that one.
19924         (TARGET_ADA_SRCS): Moved from Makefile.in.
19925         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
19926         Use ADA_BACKEND.
19927         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
19928         (ada_extra_files): Moved from Makefile.in.
19929         Prefix with ada subdir.
19930         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
19931         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
19932         (ada/nmake.ads): Likewise.
19933         (update-sources): Moved from Makefile.in.
19934         Prefix with ada subdir.
19935         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
19936         (ADA_TREE_H): Likewise.
19937         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
19938         (ada/memtrack.o): Likewise.
19939         (ada/adadecode.o): Likewise.
19940         Update dependencies.
19941         (ada/adaint.o): New.
19942         (ada/argv.o): Moved from Makefile.in.
19943         Prefix with ada subdir.
19944         Update dependencies.
19945         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
19946         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
19947         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
19948         Prefix with ada subdir.
19949         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
19950         (GNAT DEPENDENCIES): Regenerate.
19951         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
19952         toplevel Makefile.in.
19953         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
19954         (TARGET_ADA_SRCS): Removed.
19955         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
19956         (GNATBIND_OBJS): Likewise.
19957         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
19958         (BACKEND): Removed.
19959         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
19960         (TREE_H): Likewise.
19961         (ada_extra_files): Likewise.
19962         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
19963         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
19964         (update-sources): Likewise.
19965         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
19966         (ADA_TREE_H): Likewise.
19967         (adadecoce.o): Likewise.
19968         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
19969         (GNAT DEPENDENCIES): Likewise.
19970
19971 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19972
19973         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
19974         * Makefile.in: Likewise.
19975
19976 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19977
19978         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
19979         Restore $(CONFIG_H) and prefix.o dependencies.
19980         (ada.stage[1-4]): Depend on stage?-start.
19981
19982         * Makefile.in (b_gnatb.c): Depend on interfac.o.
19983
19984 2002-05-02  Jim Wilson  <wilson@redhat.com>
19985
19986         * utils.c (finish_record_type): Change record_size to record_type.
19987
19988 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19989
19990         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
19991         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
19992         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
19993
19994 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
19995
19996         * misc.c (gnat_parse_file): Update.
19997
19998 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
19999
20000         * misc.c (gnat_init): Don't set lang_attribute_common.
20001
20002 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
20003
20004         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
20005
20006 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
20007
20008         * gnat_ug.texi: New file.
20009
20010         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
20011         instead of gfdl.texi
20012
20013         * xgnatug.adb, ug_words: New files.
20014
20015         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
20016         gnat_rm and gnat-style manuals.
20017
20018 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
20019
20020         * gigi.h (incomplete_type_error): Remove.
20021         * utils.c (incomplete_type_error): Remove.
20022
20023 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
20024
20025         * trans.c (tree_transform): Add has_scope argument to
20026         expand_start_stmt_expr.
20027
20028 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
20029
20030         * gigi.h (truthvalue_conversion): Rename.
20031         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
20032         * trans.c (tree_transform): Update.
20033         * utils2.c (truthvalue_conversion): Rename, update.
20034         (build_binary_op, build_unary_op): Update.
20035
20036 2002-04-04  Laurent Guerby  <guerby@acm.org>
20037
20038         * make.adb: Implement -margs, remove restriction about file name placement.
20039         * makeusg.adb: Documentation update.
20040         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
20041         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
20042
20043 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
20044
20045         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
20046         (builtin_function): Similarly.
20047
20048 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
20049
20050         * decl.c (gnat_to_gnu_entity): Update.
20051         * gigi.h (mark_addressable): Rename.
20052         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
20053         * trans.c (tree_transform): Update.
20054         * utils.c (create_var_decl): Update.
20055         * util2.c (build_binary_op, build_unary_op,
20056         fill_vms_descriptor): Update.
20057         (mark_addressable): Rename, update.
20058
20059 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
20060
20061         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
20062         Rename.
20063         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
20064         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
20065         * trans.c (tree_transform, convert_with_check): Update.
20066         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
20067         Rename.
20068
20069 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
20070
20071         * gigi.h (finish_incomplete_decl): Rename.
20072         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
20073         * utils.c (gnat_init_decl_processing): Don't set hook.
20074         (finish_incomplete_decl): Rename.
20075
20076 2002-03-29  Andreas Schwab  <schwab@suse.de>
20077
20078         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
20079         directory.
20080
20081 2001-03-28  Robert Dewar <dewar@gnat.com>
20082
20083         * checks.ads:
20084         (Remove_Checks): New procedure
20085
20086         * checks.adb:
20087         (Remove_Checks): New procedure
20088
20089         * exp_util.adb:
20090         Use new Duplicate_Subexpr functions
20091         (Duplicate_Subexpr_No_Checks): New procedure
20092         (Duplicate_Subexpr_No_Checks_Orig): New procedure
20093         (Duplicate_Subexpr): Restore original form (checks duplicated)
20094         (Duplicate_Subexpr): Call Remove_Checks
20095
20096         * exp_util.ads:
20097         (Duplicate_Subexpr_No_Checks): New procedure
20098         (Duplicate_Subexpr_No_Checks_Orig): New procedure
20099         Add 2002 to copyright notice
20100
20101         * sem_util.adb: Use new Duplicate_Subexpr functions
20102
20103         * sem_eval.adb:
20104         (Eval_Indexed_Component): This is the place to call
20105         Constant_Array_Ref and to replace the value. We simply merge
20106         the code of this function in here, since it is now no longer
20107         used elsewhere. This fixes the problem of the back end not
20108         realizing we were clever enough to see that this was
20109         constant.
20110         (Expr_Val): Remove call to Constant_Array_Ref
20111         (Expr_Rep_Val): Remove call to Constant_Array_Ref
20112         Minor reformatting
20113         (Constant_Array_Ref): Deal with string literals (patch
20114         suggested by Zack Weinberg on the gcc list)
20115
20116 2001-03-28  Ed Schonberg <schonber@gnat.com>
20117
20118         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
20119         Duplicate_Subexpr_Move_Checks.
20120
20121         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
20122         Duplicate_Subexpr_Move_Checks.
20123
20124         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
20125         value of array exists before retrieving it (it may a private
20126         protected component in a function).
20127
20128 2002-03-28   Geert Bosch <bosch@gnat.com>
20129
20130         * prj-pp.adb : New file.
20131
20132         * prj-pp.ads : New file.
20133
20134 2002-03-28  Andreas Jaeger  <aj@suse.de>
20135
20136         * Makefile.in (stamp-sdefault): Fix path for Makefile.
20137
20138 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
20139
20140         * misc.c (gnat_expand_expr): Move prototype.
20141
20142 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
20143
20144         * misc.c (insert_default_attributes): Remove.
20145
20146 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
20147
20148         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
20149         (gnat_init): Don't set hook.
20150         (gnat_expand_expr): Fix prototype.
20151
20152 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
20153
20154         * misc.c (ggc_p): Remove.
20155
20156 2002-03-27  Geert Bosch  <bosch@gnat.com>
20157
20158         * prj-makr.ads, prj-makr.adb : New files.
20159
20160 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
20161
20162         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
20163         (lang_mark_tree): Make static, rename.
20164
20165 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
20166
20167         * misc.c (maybe_build_cleanup): Remove.
20168
20169 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
20170
20171         * gigi.h (yyparse): Remove.
20172
20173 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
20174
20175         * gnat_rm.texi: Sync with ACT version.
20176           (From Ben Brosgol <brosgol@gnat.com>)
20177
20178 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
20179
20180         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
20181         (gnat_init): Remove old hook.
20182
20183 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
20184
20185         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
20186         (yyparse): Rename gnat_parse_file.
20187
20188 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
20189
20190         Delete all lines containing "$Revision:".
20191         * xeinfo.adb: Don't look for revision numbers.
20192         * xnmake.adb: Likewise.
20193         * xsinfo.adb: Likewise.
20194         * xsnames.adb: Likewise.
20195         * xtreeprs.adb: Likewise.
20196
20197 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20198
20199         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
20200         gnat_tree_code_name): Delete.
20201         (tree_code_type, tree_code_length, tree_code_name): Define.
20202         (gnat_init): Don't try to copy into the various tree_code
20203         arrays.
20204
20205 2002-03-11  Richard Henderson  <rth@redhat.com>
20206
20207         * Makefile.in (.NOTPARALLEL): Add fake tag.
20208
20209 2002-03-07  Geert Bosch  <bosch@gnat.com>
20210
20211         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
20212         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
20213         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
20214         switch-m.adb, switch-m.ads : New files.
20215
20216 2002-03-07  Geert Bosch  <bosch@gnat.com>
20217
20218         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
20219         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
20220         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
20221         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
20222         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
20223         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
20224         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
20225         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
20226         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
20227         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
20228         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
20229         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
20230         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
20231         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
20232         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
20233         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
20234         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
20235         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
20236         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
20237         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
20238         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
20239         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
20240         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
20241         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
20242         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
20243         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
20244         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
20245         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
20246         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
20247         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
20248         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
20249         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
20250         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
20251         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
20252         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
20253         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
20254         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
20255         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
20256         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
20257         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
20258         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
20259         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
20260         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
20261         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
20262         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
20263         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
20264         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
20265         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
20266         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
20267         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
20268         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
20269         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
20270         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
20271         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
20272         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
20273         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
20274         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
20275         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
20276         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
20277         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
20278         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
20279         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
20280         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
20281         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
20282         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
20283         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
20284         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
20285         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
20286         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
20287         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
20288         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
20289         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
20290         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
20291         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
20292         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
20293         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
20294         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
20295         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
20296         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
20297         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
20298         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
20299         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
20300         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
20301         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
20302         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
20303         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
20304         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
20305         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
20306         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
20307         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
20308         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
20309         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
20310         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
20311         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
20312         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
20313         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
20314         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
20315
20316         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
20317         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
20318         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
20319         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
20320
20321         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
20322         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
20323
20324         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
20325         to mdll-fil.ad[bs] and mdll-util.ad[bs]
20326
20327         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
20328         from mdllfile.ad[bs] and mdlltool.ad[bs]
20329
20330 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20331
20332         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
20333         lieu of explicit sizeof/sizeof.
20334
20335 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
20336
20337         * misc.c (copy_lang_decl): Remove.
20338
20339 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
20340
20341         * misc.c: Delete traditional-mode-related code copied from the
20342         C front end but not used, or used only to permit the compiler
20343         to link.
20344
20345 2002-02-07  Richard Henderson  <rth@redhat.com>
20346
20347         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
20348         * adaint.h (__gnat_to_gm_time): Update prototype.
20349
20350 2002-01-30  Richard Henderson  <rth@redhat.com>
20351
20352         * trans.c (tree_transform) [N_Loop_Statement]: Use
20353         expand_exit_loop_top_cond.
20354
20355 2001-12-23  Richard Henderson  <rth@redhat.com>
20356
20357         * utils.c (end_subprog_body): Push GC context around
20358         rest_of_compilation for nested functions.
20359
20360 2001-12-23  Richard Henderson  <rth@redhat.com>
20361
20362         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
20363
20364 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
20365
20366         * gnat-style.texi (Declarations and Types): Remove ancient style
20367         rule which was mandated by code generation issues.
20368
20369         * gnat-style.texi (header): Add @dircategory, @direntry.
20370         (title page): Remove date.
20371         (general) Add @./@: where approriate, and two spaces after the
20372         full stop at the end of a sentence.  Use @samp markup when
20373         referring concrete lexical entities (keywords, attribute names
20374         etc.), and @syntax for ARM grammar elements. Use @r for English
20375         text in comments.  Use @emph for emphasis.  Change "if-statements"
20376         etc. to "if statements" (without @samp). Break long lines.  Make
20377         casing of section names consistent.
20378         (Identifiers): Use @samp markup for variable names.
20379         (Comments): Use @samp markup for comment characters. Line-end
20380         comments may follow any Ada code, not just statements.  Fix
20381         misspelling of "Integer" as "integer".
20382         (Loop statements): Do not use variable name "I", use "J".
20383         (Subprogram Declarations): Document alignment.
20384         (Subprogram Bodies, Block statements): Document empty line before
20385         "begin".
20386
20387 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
20388
20389         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
20390         function approach did not work well because of a side effect (the
20391         function call could reallocate the table which was being indexed
20392         using its result). Fixes ada/4851.
20393
20394 2001-12-19  Robert Dewar <dewar@gnat.com>
20395
20396         * bindgen.adb: Minor reformatting
20397
20398         * cstand.adb: Minor reformatting
20399
20400         * fmap.adb: Minor reformatting
20401         Change name from Add for Add_To_File_Map (Add is much too generic)
20402         Change Path_Name_Of to Mapped_Path_Name
20403         Change File_Name_Of to Mapped_File_Name
20404         Fix copyright dates in header
20405
20406         * fmap.ads:
20407         Change name from Add for Add_To_File_Map (Add is much too generic)
20408         Change Path_Name_Of to Mapped_Path_Name
20409         Change File_Name_Of to Mapped_File_Name
20410         Fix copyright dates in header
20411
20412         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
20413         Add use clause for Fmap.
20414
20415         * make.adb: Minor reformatting
20416
20417         * osint.adb: Minor reformatting.  Change of names in Fmap.
20418         Add use clause for Fmap.
20419
20420         * prj-env.adb: Minor reformatting
20421
20422         * prj-env.ads: Minor reformatting
20423
20424         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
20425         error found (there were odd exceptions to this general rule in
20426         -gnatec/-gnatem processing)
20427
20428 2001-12-19  Olivier Hainque <hainque@gnat.com>
20429
20430         * raise.c (__gnat_eh_personality): Exception handling personality
20431         routine for Ada.  Still in rough state, inspired from the C++ version
20432         and still containing a bunch of debugging artifacts.
20433         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
20434         inspired from the C++ library.
20435
20436         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
20437         exception handling integration.
20438
20439 2001-12-19  Arnaud Charlet <charlet@gnat.com>
20440
20441         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
20442         (HIE_SOURCES): Add s-secsta.ad{s,b}.
20443         (HIE_OBJS): Add s-fat*.o
20444         (RAVEN_SOURCES): Remove files that are no longer required. Add
20445         interrupt handling files.
20446         (RAVEN_MOD): Removed, no longer needed.
20447
20448 2001-12-19  Robert Dewar <dewar@gnat.com>
20449
20450         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
20451         Add 2001 to copyright date
20452
20453         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
20454         need to force universal inlining for these cases.
20455
20456 2001-12-19  Arnaud Charlet <charlet@gnat.com>
20457
20458         * s-taprob.adb: Minor clean ups so that this unit can be used in
20459         Ravenscar HI.
20460
20461         * exp_ch7.adb: Allow use of secondary stack in HI mode.
20462         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
20463
20464 2001-12-19  Vincent Celier <celier@gnat.com>
20465
20466         * prj-tree.ads (Project_Node_Record): Add comments for components
20467         Pkg_Id and Case_Insensitive.
20468
20469 2001-12-19  Pascal Obry <obry@gnat.com>
20470
20471         * g-socket.adb: Minor reformatting. Found while reading code.
20472
20473 2001-12-19  Robert Dewar <dewar@gnat.com>
20474
20475         * prj-tree.ads: Minor reformatting
20476
20477 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
20478
20479         * config-lang.in (diff_excludes): Remove.
20480
20481 2001-12-17  Ed Schonberg <schonber@gnat.com>
20482
20483         * sem_res.adb (Resolve_Selected_Component): do not generate a
20484         discriminant check if the selected component is a component of
20485         the argument of an initialization procedure.
20486
20487         * trans.c (tree_transform, case of arithmetic operators): If result
20488         type is private, the gnu_type is the base type of the full view,
20489         given that the full view itself may be a subtype.
20490
20491 2001-12-17  Robert Dewar <dewar@gnat.com>
20492
20493         * sem_res.adb: Minor reformatting
20494
20495         * trans.c (tree_transform, case N_Real_Literal): Add missing third
20496         parameter in call to Machine (unknown horrible effects from this
20497         omission).
20498
20499         * urealp.h: Add definition of Round_Even for call to Machine
20500         Add third parameter for Machine
20501
20502 2001-12-17  Ed Schonberg <schonber@gnat.com>
20503
20504         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
20505         predefined units in No_Run_Time mode.
20506
20507 2001-12-17  Richard Kenner <kenner@gnat.com>
20508
20509         * misc.c (insn-codes.h): Now include.
20510
20511 2001-12-17  Olivier Hainque <hainque@gnat.com>
20512
20513         * a-except.adb: Preparation work for future integration of the GCC 3
20514         exception handling mechanism
20515         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
20516         to factorize previous code sequences and make them externally callable,
20517         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
20518         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
20519         Use the new notification routines.
20520
20521 2001-12-17  Emmanuel Briot <briot@gnat.com>
20522
20523         * prj-tree.ads (First_Choice_Of): Document the when others case
20524
20525 2001-12-17  Arnaud Charlet <charlet@gnat.com>
20526
20527         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
20528         HI-E mode, in order to support Ravenscar profile properly.
20529
20530         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
20531         mode on 32 bits targets.
20532
20533 2001-12-17  Vincent Celier <celier@gnat.com>
20534
20535         * fmap.adb: Initial version.
20536
20537         * fmap.ads: Initial version.
20538
20539         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
20540         If search is successfully done, add to mapping.
20541
20542         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
20543
20544         * make.adb:
20545         (Gnatmake): Add new local variable Mapping_File_Name.
20546          Create mapping file when using project file(s).
20547          Delete mapping file before exiting.
20548
20549         * opt.ads (Mapping_File_Name): New variable
20550
20551         * osint.adb (Find_File): Use path name found in mapping, if any.
20552
20553         * prj-env.adb (Create_Mapping_File): New procedure
20554
20555         * prj-env.ads (Create_Mapping_File): New procedure.
20556
20557         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
20558         (Mapping_File)
20559
20560         * usage.adb: Add entry for new switch -gnatem.
20561
20562         * Makefile.in: Add dependencies for fmap.o.
20563
20564 2001-12-17  Ed Schonberg <schonber@gnat.com>
20565
20566         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
20567         is a package instantiation rewritten as a package body.
20568         (Install_Withed_Unit): Undo previous change, now redundant.
20569
20570 2001-12-17  Gary Dismukes <dismukes@gnat.com>
20571
20572         * layout.adb:
20573         (Compute_Length): Move conversion to Unsigned to callers.
20574         (Get_Max_Size): Convert Len expression to Unsigned after calls to
20575         Compute_Length and Determine_Range.
20576         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
20577         Compute_Length and Determine_Range.
20578         Above changes fix problem with length computation for supernull arrays
20579         where Max (Len, 0) wasn't getting applied due to the Unsigned
20580         conversion used by Compute_Length.
20581
20582 2001-12-17  Arnaud Charlet <charlet@gnat.com>
20583
20584         * rtsfind.ads:
20585         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
20586          System.Secondary_Stack.
20587         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
20588          in HI-E mode.
20589         Remove unused entity RE_Exception_Data.
20590
20591         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
20592
20593         * rident.ads (No_Secondary_Stack): New restriction.
20594
20595 2001-12-17  Joel Brobecker <brobecke@gnat.com>
20596
20597         * gnat_rm.texi: Fix minor typos. Found while reading the section
20598         regarding "Bit_Order Clauses" that was sent to a customer.
20599         Very interesting documentation!
20600
20601 2001-12-17  Robert Dewar <dewar@gnat.com>
20602
20603         * sem_case.adb (Choice_Image): Avoid creating improper character
20604         literal names by using the routine Set_Character_Literal_Name. This
20605         fixes bombs in certain error message cases.
20606
20607 2001-12-17  Arnaud Charlet <charlet@gnat.com>
20608
20609         * a-reatim.adb: Minor reformatting.
20610
20611 2001-12-17  Ed Schonberg <schonber@gnat.com>
20612
20613         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
20614         case where the formal is an extension of another formal in the current
20615         unit or in a parent generic unit.
20616
20617 2001-12-17  Arnaud Charlet <charlet@gnat.com>
20618
20619         * s-tposen.adb: Update comments.  Minor reformatting.
20620         Minor code clean up.
20621
20622         * s-tarest.adb: Update comments.  Minor code reorganization.
20623
20624 2001-12-17  Gary Dismukes <dismukes@gnat.com>
20625
20626         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
20627         when Java_VM.
20628
20629 2001-12-17  Robert Dewar <dewar@gnat.com>
20630
20631         * exp_attr.adb: Minor reformatting
20632
20633 2001-12-17  Ed Schonberg <schonber@gnat.com>
20634
20635         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
20636         derivations nested within a child unit: verify that the parent
20637         type is declared in an outer scope.
20638
20639 2001-12-17  Robert Dewar <dewar@gnat.com>
20640
20641         * sem_ch12.adb: Minor reformatting
20642
20643 2001-12-17  Ed Schonberg <schonber@gnat.com>
20644
20645         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
20646         warning if current unit is a predefined one, from which bodies may
20647         have been deleted.
20648
20649 2001-12-17  Robert Dewar <dewar@gnat.com>
20650
20651         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
20652         Fix header format. Add 2001 to copyright date.
20653
20654         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
20655         which caused CE during compilation if checks were enabled.
20656
20657 2001-12-17  Vincent Celier <celier@gnat.com>
20658
20659         * make.adb:
20660         (Switches_Of): New function
20661         (Test_If_Relative_Path): New procedure
20662         (Add_Switches): Use new function Switches_Of
20663         (Collect_Arguments_And_Compile): Use new function Switches_Of.
20664         When using a project file, test if there are any relative
20665         search path. Fail if there are any.
20666         (Gnatmake): Only add switches for the primary directory when not using
20667         a project file. When using a project file, change directory to the
20668         object directory of the main project file. When using a project file,
20669         test if there are any relative search path. Fail if there are any.
20670         When using a project file, fail if specified executable is relative
20671         path with directory information, and prepend executable, if not
20672         specified as an absolute path, with the exec directory.  Make sure
20673         that only one -o switch is transmitted to the linker.
20674
20675         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
20676
20677         * prj-nmsc.adb:
20678         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
20679         when using a non standard naming scheme.
20680         (Check_Ada_Naming_Scheme): Make sure that error messages
20681         do not raise exceptions.
20682         (Is_Illegal_Append): Return True if there is no dot in the suffix.
20683         (Language_Independent_Check): Check the exec directory.
20684
20685         * prj.adb (Project_Empty): Add new component Exec_Directory
20686
20687         * prj.ads:
20688         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
20689         (Project_Data): Add component Exec_Directory
20690
20691         * snames.adb: Updated to match snames.ads revision 1.215
20692
20693         * snames.ads: Added Exec_Dir
20694
20695 2001-12-17  Robert Dewar <dewar@gnat.com>
20696
20697         * make.adb: Minor reformatting
20698
20699         * prj-nmsc.adb: Minor reformatting
20700
20701         * snames.adb: Updated to match snames.ads
20702
20703         * snames.ads: Alphebetize entries for project file
20704
20705 2001-12-17  Ed Schonberg <schonber@gnat.com>
20706
20707         * trans.c (process_freeze_entity): Do nothing if the entity is a
20708         subprogram that was already elaborated.
20709
20710 2001-12-17  Richard Kenner <kenner@gnat.com>
20711
20712         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
20713         and Esize if object is referenced via pointer.
20714
20715 2001-12-17  Ed Schonberg <schonber@gnat.com>
20716
20717         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
20718         is discrete before analyzing choices.
20719
20720 2001-12-17  Joel Brobecker <brobecke@gnat.com>
20721
20722         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
20723         containing the name of the Ada Main Program. This string is mainly
20724         intended for the debugger.
20725         (Gen_Output_File_C): Do the equivalent change when generating a C file.
20726
20727 2001-12-17  Robert Dewar <dewar@gnat.com>
20728
20729         * ali.adb: Set new Dummy_Entry field in dependency entry
20730
20731         * ali.ads: Add Dummy_Entry field to source dependency table
20732
20733         * bcheck.adb (Check_Consistency): Ignore dummy D lines
20734
20735         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
20736
20737         * lib-writ.ads: Document dummy D lines for missing files.
20738
20739         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
20740
20741 2001-12-17  Robert Dewar <dewar@gnat.com>
20742
20743         * ali.adb: Type reference does not reset current file.
20744
20745         * ali.adb: Recognize and scan renaming reference
20746
20747         * ali.ads: Add spec for storing renaming references.
20748
20749         * lib-xref.ads: Add documentation for handling of renaming references
20750
20751         * lib-xref.adb: Implement output of renaming reference.
20752
20753         * checks.adb:
20754         (Determine_Range): Document local variables
20755         (Determine_Range): Make sure Hbound is initialized. It looks as though
20756          there could be a real problem here with an uninitialized reference
20757          to Hbound, but no actual example of failure has been found.
20758
20759 2001-12-17  Laurent Pautet <pautet@gnat.com>
20760
20761         * g-socket.ads:
20762         Fix comment of Shutdown_Socket and Close_Socket. These functions
20763         should not fail silently because if they are called twice, this
20764         probably means that there is a race condition in the user program.
20765         Anyway, this behaviour is consistent with the rest of this unit.
20766         When an error occurs, an exception is raised with the error message
20767         as exception message.
20768
20769 2001-12-17  Robert Dewar <dewar@gnat.com>
20770
20771         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
20772         that it happens before modification of Sloc values for -gnatD.
20773
20774         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
20775         so that it happens before modification of Sloc values for -gnatD.
20776
20777         * switch.adb: Minor reformatting
20778
20779 2001-12-15  Richard Henderson  <rth@redhat.com>
20780
20781         * sem_ch7.adb: Wrap comment.
20782
20783 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
20784
20785         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
20786         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
20787         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
20788         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
20789         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
20790         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
20791         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
20792         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
20793         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
20794         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
20795         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
20796         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
20797         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
20798         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
20799         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
20800         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
20801         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
20802         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
20803         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
20804         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
20805         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
20806         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
20807         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
20808         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
20809         spelling errors.
20810
20811 2001-12-14  Vincent Celier <celier@gnat.com>
20812
20813         * osint.adb(Create_Debug_File): When an object file is specified,
20814         put the .dg file in the same directory as the object file.
20815
20816 2001-12-14  Robert Dewar <dewar@gnat.com>
20817
20818         * osint.adb: Minor reformatting
20819
20820         * lib-xref.adb (Output_Instantiation): New procedure to generate
20821         instantiation references.
20822
20823         * lib-xref.ads: Add documentation of handling of generic references.
20824
20825         * ali.adb (Read_Instantiation_Ref): New procedure to read
20826         instantiation references
20827
20828         * ali.ads: Add spec for storing instantiation references
20829
20830         * bindusg.adb: Minor reformatting
20831
20832         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
20833
20834         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
20835
20836         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
20837
20838         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
20839
20840         * csets.ads:
20841         Fix header format
20842         Add 2001 to copyright date
20843         Add entry for Latin-5 (Cyrillic ISO-8859-5)
20844
20845 2001-12-14  Matt Gingell <gingell@gnat.com>
20846
20847         * adaint.c: mktemp is a macro on Lynx and can not be used as an
20848         expression.
20849
20850 2001-12-14  Richard Kenner <kenner@gnat.com>
20851
20852         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
20853         if operand is CONSTRUCTOR.
20854
20855 2001-12-14  Ed Schonberg <schonber@gnat.com>
20856
20857         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
20858         before emiting check on right-hand side, so that exception information
20859         is correct.
20860
20861 2001-12-14  Richard Kenner <kenner@gnat.com>
20862
20863         * utils.c (create_var_decl): Throw away initializing expression
20864         if just annotating types and non-constant.
20865
20866 2001-12-14  Vincent Celier <celier@gnat.com>
20867
20868         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
20869         Default_Ada_...
20870
20871         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
20872         Remove functions.
20873         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
20874
20875         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
20876         Remove functions.
20877         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
20878
20879 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
20880
20881         * ChangeLog: Remove piece of diff output.
20882
20883 2001-12-14  Geert Bosch <bosch@gnat.com>
20884
20885         * config-lang.in: Update copyright notice
20886
20887         * layout.adb: Remove commented out code.
20888
20889         * mdllfile.ads: Update copyright notice. Fix header format.
20890
20891         * sem_case.ads: Likewise.
20892
20893         * sem_ch3.adb: Minor reformatting.
20894
20895 2001-12-12  Geert Bosch <bosch@gnat.com>
20896
20897         * freeze.ads: Update copyright date.
20898
20899         * g-comlin.ads: Minor reformatting.
20900
20901         * gnat-style.texi: Fix typo.
20902
20903 2001-12-12  Geert Bosch <bosch@gnat.com>
20904
20905         *  einfo.h: Regenerate.
20906
20907 2001-12-12  Ed Schonberg <schonber@gnat.com>
20908
20909         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
20910         on known node types, rather than untyped fields. Further cleanups.
20911
20912 2001-12-12  Robert Dewar <dewar@gnat.com>
20913
20914         * sem_ch12.adb:
20915         (Save_Entity_Descendant): Minor comment update.
20916         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
20917          of an N_Attribute_Reference node. As per note below, this does not
20918         eliminate need for Associated_Node in attribute ref nodes.
20919         (Associated_Node): Documentation explicitly mentions attribute
20920         reference nodes, since this field is used in such nodes.
20921
20922         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
20923
20924 2001-12-12  Robert Dewar <dewar@gnat.com>
20925
20926         * s-stalib.adb: Add more comments on with statements being needed
20927
20928         * par-ch12.adb: Minor reformatting
20929
20930         * prj-dect.ads: Fix copyright header
20931
20932         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
20933         inputs fit in 32 bits, but the result still overflows.
20934
20935         * s-fatgen.ads: Minor comment improvement
20936
20937 2001-12-12  Ed Schonberg <schonber@gnat.com>
20938
20939         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
20940         formal derived type, look for an inherited component from the full
20941         view of the parent, if any.
20942
20943 2001-12-12  Robert Dewar <dewar@gnat.com>
20944
20945         * checks.ads (Apply_Alignment_Check): New procedure.
20946
20947         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
20948         ensure that the alignment of objects with address clauses is
20949         appropriate, and raise PE if not.
20950
20951         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
20952         Exp_Pakd.Known_Aligned_Enough
20953
20954         * mdllfile.ads: Minor reformatting
20955
20956         * mlib-fil.ads: Minor reformatting
20957
20958 2001-12-12  Ed Schonberg <schonber@gnat.com>
20959
20960         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
20961         fix to any component reference if enclosing record has non-standard
20962         representation.
20963
20964 2001-12-12  Vincent Celier <celier@gnat.com>
20965
20966         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
20967         Iteration
20968
20969 2001-12-12  Ed Schonberg <schonber@gnat.com>
20970
20971         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
20972         sem_attr.
20973
20974 2001-12-12  Robert Dewar <dewar@gnat.com>
20975
20976         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
20977
20978 2001-12-12  Emmanuel Briot <briot@gnat.com>
20979
20980         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
20981         and it adds dependencies to system.io.
20982
20983 2001-12-12  Pascal Obry <obry@gnat.com>
20984
20985         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
20986         variable name.
20987
20988 2001-12-11  Ed Schonberg <schonber@gnat.com>
20989
20990         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
20991         that is the parent of other generics, the instance body replaces the
20992         instance node.  Retrieve the instance of the spec, which is the one
20993         that is visible in clients and within the body.
20994
20995 2001-12-11  Vincent Celier <celier@gnat.com>
20996
20997         * gnatmain.adb: Initial version.
20998
20999         * gnatmain.ads: Initial version.
21000
21001         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
21002
21003         * snames.adb: Updated to match snames.ads.
21004
21005         * snames.ads: Added Gnatstub.
21006
21007 2001-12-11  Vincent Celier <celier@gnat.com>
21008
21009         * prj-attr.adb (Initialization_Data): Change name from
21010         Initialisation_Data.
21011
21012 2001-12-11  Emmanuel Briot <briot@gnat.com>
21013
21014         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
21015         + and * applied to backslashed expressions like \r.
21016
21017 2001-12-11  Vasiliy Fofanov <fofanov@gnat.com>
21018
21019         * g-os_lib.ads: String_List type added, Argument_List type is now
21020         subtype of String_List.
21021
21022 2001-12-11  Robert Dewar <dewar@gnat.com>
21023
21024         * g-os_lib.ads: Change copyright to FSF
21025         Add comments for String_List type
21026
21027 2001-12-11  Vincent Celier <celier@gnat.com>
21028
21029         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
21030         string to the buffer).
21031
21032 2001-12-11  Ed Schonberg <schonber@gnat.com>
21033
21034         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
21035         sem_attr.
21036
21037         * sem_attr.adb: Simplify previous fix for Address.
21038         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
21039         to avoid anomalies where the bound of the type appears to raise
21040         constraint error.
21041
21042 2001-12-11  Robert Dewar <dewar@gnat.com>
21043
21044         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
21045         handled.
21046
21047 2001-12-11  Ed Schonberg <schonber@gnat.com>
21048
21049         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
21050         renamed unit before checking for recursive instantiations.
21051
21052 2001-12-11  Emmanuel Briot <briot@gnat.com>
21053
21054         * prj.ads: Add comments for some of the fields.
21055
21056 2001-12-11  Robert Dewar <dewar@gnat.com>
21057
21058         * lib-xref.adb (Output_Refs): Don't output type references outside
21059         the main unit if they are not otherwise referenced.
21060
21061 2001-12-11  Ed Schonberg <schonber@gnat.com>
21062
21063         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
21064         code and diagnose additional illegal uses
21065
21066         * sem_util.adb (Is_Object_Reference): An indexed component is an
21067         object only if the prefix is.
21068
21069 2001-12-11  Vincent Celier <celier@gnat.com>
21070
21071         * g-diopit.adb: Initial version.
21072
21073         * g-diopit.ads: Initial version.
21074
21075         * g-dirope.adb:
21076         (Expand_Path): Avoid use of Unbounded_String
21077         (Find, Wildcard_Iterator): Moved to child package Iteration
21078
21079         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
21080
21081 2001-12-11  Robert Dewar <dewar@gnat.com>
21082
21083         * sem_attr.adb: Minor reformatting
21084
21085 2001-12-11  Ed Schonberg <schonber@gnat.com>
21086
21087         * sem_ch3.adb: Clarify some ???.
21088
21089 2001-12-11  Robert Dewar <dewar@gnat.com>
21090
21091         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
21092         Exp_Pakd.Known_Aligned_Enough
21093
21094         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
21095         version is moved to Exp_Ch13.
21096
21097 2001-12-11  Robert Dewar <dewar@gnat.com>
21098
21099         * einfo.ads: Minor reformatting
21100
21101         * exp_ch5.adb: Add comment for previous.change
21102
21103         * ali.adb: New interface for extended typeref stuff.
21104
21105         * ali.ads: New interface for typeref stuff.
21106
21107         * checks.adb (Apply_Alignment_Check): New procedure.
21108
21109         * debug.adb: Add -gnatdM for modified ALI output
21110
21111         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
21112
21113         * lib-xref.adb: Extend generation of <..> notation to cover
21114         subtype/object types. Note that this is a complete rewrite,
21115         getting rid of the very nasty quadratic algorithm previously
21116         used for derived type output.
21117
21118         * lib-xref.ads: Extend description of <..> notation to cover
21119         subtype/object types. Uses {..} for these other cases.
21120         Also use (..) for pointer types.
21121
21122         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
21123
21124         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
21125         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
21126
21127 2001-12-11  Vincent Celier <celier@gnat.com>
21128
21129         * gnatcmd.adb:
21130         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
21131         Changed /BIND_ONLY to /ACTIONS=BIND
21132         Changed /LINK_ONLY to /ACTIONS=LINK
21133
21134 2001-12-11  Ed Schonberg  <schonber@gnat.com>
21135
21136         * sem_ch8.adb (Find_Selected_Component): improved search for a
21137         candidate package in case of error.
21138
21139         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
21140         chain back on scope stack before reinstalling use clauses.
21141
21142         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
21143         is enabled, do not kill the code for the condition, to preserve
21144         warning.
21145
21146 2001-12-11  Robert Dewar <dewar@gnat.com>
21147
21148         * checks.adb (Insert_Valid_Check): Apply validity check to expression
21149         of conversion, not to result of conversion.
21150
21151 2001-12-11  Ed Schonberg <schonber@gnat.com>
21152
21153         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
21154         before freezing parent. If the declarations are mutually recursive,
21155         an access to the current record type may be frozen before the
21156         derivation is complete.
21157
21158 2001-12-05  Vincent Celier <celier@gnat.com>
21159
21160         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
21161         -c /COMPILE_ONLY, -l /LINK_ONLY
21162
21163         * opt.ads:
21164         (Bind_Only): New Flag
21165         (Link_Only): New flag
21166
21167         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
21168         and -l (Link_Only)
21169
21170         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
21171
21172         * make.adb:
21173         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
21174         (Gnatmake): Set the step flags. Only perform a step if the
21175         corresponding step flag is True.
21176         (Scan_Make_Arg): Reset the bind and link step flags when -u
21177         or -gnatc has been specified.
21178
21179 2001-12-05  Ed Schonberg <schonber@gnat.com>
21180
21181         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
21182         get bounds from right operand.
21183
21184         * sem_eval.adb: Minor reformatting
21185
21186         * exp_util.adb (Make_Literal_Range): use bound of literal rather
21187         than Index'First, its lower bound may be different from 1.
21188
21189         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
21190         and C48009J
21191
21192 2001-12-05  Vincent Celier <celier@gnat.com>
21193
21194         * prj-nmsc.adb Minor reformatting
21195
21196         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
21197         set and libraries are not supported.
21198
21199 2001-12-05  Ed Schonberg <schonber@gnat.com>
21200
21201         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
21202         private view explicitly, so the back-end can treat as a global
21203         when appropriate.
21204
21205 2001-12-05  Ed Schonberg <schonber@gnat.com>
21206
21207         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
21208          unit, always replace instance node with new body, for ASIS use.
21209
21210 2001-12-05  Vincent Celier <celier@gnat.com>
21211
21212         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
21213         libraries are not supported and both attributes Library_Name and
21214         Library_Dir are specified.
21215
21216         * prj-proc.adb (Expression): Set location of Result to location of
21217         first term.
21218
21219         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
21220         (prj-nmsc is now importing MLib.Tgt)
21221
21222         * prj-proc.adb: Put the change indicated above that was forgotten.
21223
21224 2001-12-05  Robert Dewar <dewar@gnat.com>
21225
21226         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
21227
21228 2001-12-05  Ed Schonberg <schonber@gnat.com>
21229
21230         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
21231         constraint, introduce explicit subtype declaration and derive from it.
21232
21233         * sem_ch3.adb: Minor reformatting
21234
21235 2001-12-05  Robert Dewar <dewar@gnat.com>
21236
21237         * checks.adb (Determine_Range): Increase cache size for checks.
21238         Minor reformatting
21239
21240         * exp_ch6.adb: Minor reformatting
21241         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
21242         a parameter whose root type is System.Address, since treating such
21243         subprograms as pure in the code generator is almost surely a mistake
21244         that will lead to unexpected results.
21245
21246         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
21247         change handling of conversions.
21248
21249         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
21250
21251 2001-12-05  Ed Schonberg <schonber@gnat.com>
21252
21253         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
21254         aggregate with static wrong size, attach generated Raise node to
21255         declaration.
21256
21257 2001-12-05  Robert Dewar <dewar@gnat.com>
21258
21259         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
21260         Fixes compilation abandoned bomb in B24009B.
21261
21262 2001-12-05  Ed Schonberg <schonber@gnat.com>
21263
21264         * sem_ch12.adb:
21265         Document use of Associated_Node on Selected_Components.
21266         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
21267         to clarify use of untyped descendant fields.
21268
21269 2001-12-05  Robert Dewar <dewar@gnat.com>
21270
21271         * prj-dect.ads: Add ??? comment
21272         Add 2001 to copyright notice (was not done in after all)
21273
21274         * prj-part.adb: Minor reformatting. Reword one awkward error message.
21275
21276         * prj.ads: Minor reformatting throughout, and add some ??? comments
21277
21278         * snames.ads: Minor reformatting
21279
21280 2001-12-05  Geert Bosch <bosch@gnat.com>
21281
21282         * snames.adb: Autoupdate
21283
21284 2001-12-05  Vincent Celier <celier@gnat.com>
21285
21286         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
21287
21288         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
21289
21290         * prj-env.adb: Minor comment changes (modifying -> extends).
21291
21292         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
21293
21294         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
21295         Tok_Extends.
21296
21297         * prj.adb (Initialize): Change Modifying to Extends.
21298
21299         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
21300
21301         * prj.ads: Minor comment change (Modifying -> extending).
21302
21303         * snames.ads: Change modifying to extends.
21304
21305 2001-12-05  Robert Dewar <dewar@gnat.com>
21306
21307         * sem_warn.adb: Remove stuff for conditionals, we are not going to
21308         do this after all.
21309
21310         * sem_warn.ads: Remove stuff for conditionals, we are not going to
21311         do this after all.  Add 2001 to copyright notice
21312
21313 2001-12-04  Geert Bosch <bosch@gnat.com>
21314
21315         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
21316
21317 2001-12-04  Robert Dewar <dewar@gnat.com>
21318
21319         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
21320         location if we already have errors. Stops some cases of cascaded
21321         errors.
21322
21323         * errout.adb: Improve comment.
21324
21325 2001-12-04  Robert Dewar <dewar@gnat.com>
21326
21327         * sem_ch12.adb:
21328         (Analyze_Formal_Type_Definition): Defend against Error.
21329         (Analyze_Formal_Subprogram): Defend against Error.
21330
21331         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
21332         remove following semicolon if present. Removes cascaded error.
21333
21334 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
21335
21336         * bindgen.adb:
21337         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
21338          exceptions equals 0.
21339         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
21340         Fixes PIWG E tests (which have to be run with -gnatL).
21341
21342 2001-12-04  Robert Dewar <dewar@gnat.com>
21343
21344         * einfo.ads: Minor reformatting
21345
21346 2001-12-04  Ed Schonberg <schonber@gnat.com>
21347
21348         * einfo.ads: Block_Node points to the identifier of the block, not to
21349         the block node itself, to preserve the link when the block is
21350         rewritten, e.g. within an if-statement with a static condition.
21351
21352         * inline.adb (Cleanup_Scopes): recover block statement from block
21353         entity using new meaning of Block_Node.
21354
21355         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
21356         identifier of block node, rather than to node itself.
21357
21358 2001-12-04  Gary Dismukes <dismukes@gnat.com>
21359
21360         * layout.adb:
21361         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
21362         (Discrimify): Go back to setting the Etypes of the selected component
21363         because the Vname component does not exist at this point and will
21364         fail name resolution. Also set Analyzed.
21365         Remove with and use of Sem_Res.
21366
21367 2001-12-04  Arnaud Charlet <charlet@gnat.com>
21368
21369         * Makefile.in: (HIE_SOURCES): add s-fat*.
21370
21371 2001-12-04  Robert Dewar <dewar@gnat.com>
21372
21373         * sem_attr.adb:
21374         (Compile_Time_Known_Attribute): New procedure.
21375         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
21376          proper range check.
21377
21378 2001-12-04  Ed Schonberg <schonber@gnat.com>
21379
21380         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
21381         processing discriminants to diagnose illegal default values.
21382
21383 2001-12-04  Ed Schonberg <schonber@gnat.com>
21384
21385         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
21386         access discriminant within a type extension that constrains its
21387         parent discriminants.
21388
21389 2001-12-04  Ed Schonberg <schonber@gnat.com>
21390
21391         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
21392         is malformed, use instance of Any_Id to allow analysis to proceed.
21393
21394         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
21395         type definition is illegal.
21396         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
21397         misplaced.
21398
21399 2001-12-04  Ed Schonberg <schonber@gnat.com>
21400
21401         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
21402         constants.
21403
21404 2001-12-04  Robert Dewar <dewar@gnat.com>
21405
21406         * errout.adb: Minor reformatting
21407
21408 2001-12-04  Robert Dewar <dewar@gnat.com>
21409
21410         * exp_util.adb: Minor reformatting from last change
21411
21412         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
21413         which is a rewriting of an expression, traverse the original
21414         expression to remove warnings that may have been posted on it.
21415
21416 2001-12-04  Ed Schonberg <schonber@gnat.com>
21417
21418         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
21419         record that has other packed components.
21420
21421 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
21422
21423         * adaint.c: Minor cleanups.
21424
21425 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
21426
21427         * adaint.c: Do not use utime.h on vxworks.
21428
21429 2001-12-04  Arnaud Charlet <charlet@gnat.com>
21430
21431         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
21432         more confusion than it solves.
21433
21434 2001-12-04  Geert bosch <bosch@gnat.com>
21435
21436         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
21437
21438 2001-12-04  Geert Bosch  <bosch@gnat.com>
21439
21440         * Makefile.in (update-sources): New target.
21441         For use by gcc_release script.
21442
21443 2001-12-04  Ed Schonberg <schonber@gnat.com>
21444
21445         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
21446         a configuration pragma, it is now legal wherever a pragma can appear.
21447
21448 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
21449
21450         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
21451         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
21452         is now @CROSS@ -DIN_GCC; update comment.
21453
21454 2001-12-04  Robert Dewar <dewar@gnat.com>
21455
21456         * einfo.adb (Has_Pragma_Pure_Function): New flag.
21457         Fix problem that stopped ceinfo from working
21458
21459         * einfo.ads (Has_Pragma_Pure_Function): New flag.
21460
21461         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
21462
21463 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
21464
21465         * gnatchop.adb:
21466         (File_Time_Stamp): New procedure.
21467         (Preserve_Mode): New boolean.
21468         (Write_Unit): Pass time stamp.
21469         Implement -p switch (preserve time stamps).
21470
21471         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
21472
21473         * gnatchop.adb: Do usage info for -p switch
21474
21475         * adaint.h (__gnat_set_file_time_name): New function
21476
21477         * adaint.c (__gnat_set_file_time_name): Implement
21478
21479         * adaint.h: Fix typo
21480
21481 2001-12-03  Robert Dewar <dewar@gnat.com>
21482
21483         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
21484         have Associated_Node.
21485
21486 2001-12-03  Robert Dewar <dewar@gnat.com>
21487
21488         * prj-proc.adb: Minor reformatting
21489
21490         * make.adb: Minor reformatting
21491
21492 2001-12-03  Geert Bosch <bosch@gnat.com>
21493
21494         * make.adb: Minor reformatting.
21495
21496 2001-12-03 Robert Dewar  <dewar@gnat.com>
21497
21498         * sem_ch12.adb: Minor reformatting
21499
21500 2001-12-03  Ed Schonberg <schonber@gnat.com>
21501
21502         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
21503         push Standard on the stack before analyzing the instance body,
21504         in order to have a clean visibility environment.
21505
21506         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
21507
21508 2001-12-03  Ed Schonberg <schonber@gnat.com>
21509
21510         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
21511         instantiation of a body that contains an inlined body.
21512
21513 2001-12-03  Ed Schonberg <schonber@gnat.com>
21514
21515         * sem_ch12.adb:
21516         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
21517         to prevent freezing within formal packages.
21518         (Freeze_Subprogram_Body): If body comes from another instance that
21519         appeared before its own body, place freeze node at end of current
21520         declarative part, to prevent a back-end crash.
21521         (Inline_Instance_Body): Handle properly a package instance within
21522         a subprogram instance that is a child unit.
21523
21524 2001-12-01  Graham Stott  <grahams@redhat.com>
21525
21526         * Makefile.in (misc.o): Add missing $(srcdir) prefix
21527         and add optabs.h dependency.
21528
21529         * misc.c: Include optabs.h
21530         (gnat_tree_code_type): Make static and const.
21531         (gnat_tree_code_length): Likewise.
21532         (gnat_tree_code_name): Likewise.
21533         (update_setjmp_buf): Obtain operands mode from insn_data.
21534
21535 2001-11-29  Richard Henderson  <rth@redhat.com>
21536
21537         * init.c: Remove obsolete dwarf2 frame.h section.
21538
21539 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
21540
21541         * Make-lang.in (ada.generated-manpages): New dummy target.
21542
21543 2001-11-29  Ed Schonberg <schonber@gnat.com>
21544
21545         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
21546         into Command, an array conversion is illegal here. Uncovered by
21547         ACATS B460005.
21548
21549 2001-11-28  Geert Bosch <bosch@gnat.com>
21550
21551         * init.c: Minor whitespace changes.
21552
21553 2001-11-28  Doug Rupp <rupp@gnat.com>
21554
21555         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
21556         signal stack.
21557
21558 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
21559
21560         * misc.c (gnat_expand_constant): Move declaration above
21561         definition of lang_hooks.
21562         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
21563         (gnat_init): lang_expand_constant no longer exists.
21564
21565         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
21566         always have vprintf.
21567         (gnat_init): Always call set_internal_error_function.
21568
21569 2001-11-27  Andreas Jaeger  <aj@suse.de>
21570
21571         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
21572
21573 2001-11-27  Laurent Guerby  <guerby@acm.org>
21574
21575         * Makefile.in: Regenerate Ada dependencies.
21576
21577 2001-11-26  Richard Henderson  <rth@redhat.com>
21578
21579         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
21580         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
21581         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
21582
21583 2001-11-25  Laurent Guerby  <guerby@acm.org>
21584
21585         * sysdep.c (rts_get_*): Fix style.
21586
21587 2001-11-19  Laurent Guerby  <guerby@acm.org>
21588
21589         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
21590         since it is of no apparent use and cause warnings.
21591
21592 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
21593
21594         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
21595         static too.
21596         (gnat_init): Don't return NULL.
21597         (finish_parse): Remove.
21598
21599 2001-11-17  Laurent Guerby  <guerby@acm.org>
21600
21601         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
21602         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
21603         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
21604         * lang-spec.h: Add missing struct field to silence warnings.
21605         * sysdep.c (rts_get_*): Provide K&R prototype.
21606         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
21607         * traceback.c (Unlock_Task, Lock_Task): Likewise.
21608         * tracebak.c (__gnat_backtrace): Remove unused variable.
21609         * utils.c (end_subprog_body): Move to K&R style.
21610
21611 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21612
21613         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
21614
21615 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
21616
21617         * misc.c (gnat_init): Change prototype.  Include the
21618         functionality of the old init_parse and init_decl_processing.
21619         (gnat_init_decl_processing): New prototype.
21620         (init_parse): Remove.
21621         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
21622
21623 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
21624
21625         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
21626         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
21627         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
21628         set_yydebug): Remove.
21629
21630 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
21631
21632         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
21633         (struct lang_hooks): Constify.
21634         (language_string, lang_identify): Remove.
21635         * utils.c (init_decl_processing): Update.
21636
21637 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
21638
21639         * misc.c: Include langhooks-def.h.
21640         * Makefile.in: Update.
21641
21642 2001-10-30  Robert Dewar <dewar@gnat.com>
21643
21644         * style.adb:
21645         (Check_Identifier): Rewrite circuit to be compatible with use of letters
21646         in the upper half of ASCII.
21647         (Check_Identifier): Minor reformatting
21648
21649 2001-10-30  Geert Bosch <bosch@gnat.com>
21650
21651         * (Associated_Node, Set_Associated_Node): Do not check for
21652         Freeze_Entity.
21653
21654 2001-10-30  Robert Dewar <dewar@gnat.com>
21655
21656         * a-reatim.ads: Minor reformatting
21657
21658 2001-10-30  Robert Dewar <dewar@gnat.com>
21659
21660         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
21661         undocumented declarations.
21662
21663 2001-10-30  Pascal Obry <obry@gnat.com>
21664
21665         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
21666         to the binder and linker.
21667         Minor style fix.
21668
21669         * mdll.ads: Fix layout.  Update copyright notice.
21670
21671         * mdll.adb: Fix layout.  Update copyright notice.
21672
21673 2001-10-30  Robert Dewar <dewar@gnat.com>
21674
21675         * usage.adb: Minor fix to output for -gnaty.
21676
21677 2001-10-30  Ed Schonberg <schonber@gnat.com>
21678
21679         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
21680         to accommodate all its possible values.
21681
21682         * a-reatim.adb (Split): Special-case handling of Time_Span_First
21683         and of small absolute values of T.
21684
21685 2001-10-30  Richard Kenner <kenner@gnat.com>
21686
21687         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
21688         set_mem_attributes since not needed and wrong if RESULT if a REG;
21689         fixes ACATS failures.
21690
21691 2001-10-30  Geert Bosch <bosch@gnat.com>
21692
21693         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
21694         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
21695
21696 2001-10-30  Robert Dewar <dewar@gnat.com>
21697
21698         * bindusg.adb: Undocument -f switch.
21699
21700         * gnatcmd.adb: Remove /FULL_ELABORATION.
21701
21702         * opt.ads (Force_RM_Elaboration_Order): Document that this is
21703         obsolescent.
21704
21705         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
21706
21707         * gnatbind.adb: Minor update of warning msg.
21708
21709 2001-10-30  Vincent Celier <celier@gnat.com>
21710
21711         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
21712         for project file switches (-P (/PROJECT_FILE=),
21713          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
21714         or MEDIUM or HIGH)
21715
21716 2001-10-30  Geert Bosch <bosch@gnat.com>
21717
21718         * decl.c: Minor whitespace fixes.
21719
21720 2001-10-30  Richard Kenner <kenner@gnat.com>
21721
21722         * utils2.c (build_allocator): Test for SIZE overflow in array case too
21723
21724 2001-10-30  Geert Bosch <bosch@gnat.com>
21725
21726         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
21727         Found due to GCC 3.0 warning of using uninitialized value.
21728
21729         * layout.adb:
21730         (Get_Max_Size): Use variant record for tracking value/expression.
21731          Makes logic clearer and prevents warnings for uninitialized variables.
21732         (Layout_Array_Type): Use variant record for tracking value/expression.
21733          Makes logic clearer and prevents warnings for uninitialized variables.
21734
21735 2001-10-30  Robert Dewar <dewar@gnat.com>
21736
21737         * lib.adb: Minor reformatting
21738
21739         * s-taprop.ads: Minor reformatting
21740
21741 2001-10-29  Laurent Guerby  <guerby@acm.org>
21742
21743         * init.c:
21744         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
21745         const.
21746         (_gnat_error_handler): Make MSG const.
21747
21748 2001-10-29  Richard Kenner <kenner@gnat.com>
21749
21750         * sysdep.c: Fix localtime_r problem on LynxOS.
21751         Also remove #elif to avoid warnings.
21752
21753         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
21754         used by this.
21755
21756         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
21757
21758 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
21759
21760         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
21761         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
21762         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
21763         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
21764         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
21765         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
21766         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
21767         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
21768         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
21769         types.ads, urealp.adb: Fix spelling errors.
21770
21771 2001-10-27  Laurent Guerby <guerby@acm.org>
21772
21773         * trans.c (gigi): Fix non determinism leading to bootstrap
21774         comparison failures for debugging information.
21775
21776 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
21777
21778         * gnat_rm.texi: Use @./@: where appropriate.
21779
21780 2001-10-26  Robert Dewar <dewar@gnat.com>
21781
21782         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
21783
21784 2001-10-26  Richard Kenner <kenner@gnat.com>
21785
21786         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
21787
21788 2001-10-26  Richard Kenner <kenner@gnat.com>
21789
21790         * decl.c (validate_size): Modify message for bad size to avoid
21791         implication that compiler is modifying the size.
21792
21793 2001-10-26  Robert Dewar <dewar@gnat.com>
21794
21795         * prj-util.adb: Minor reformatting. Fix bad header format.
21796
21797 2001-10-26  Robert Dewar <dewar@gnat.com>
21798
21799         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
21800
21801         * sinfo.ads: Clarify use of Associated_Node (documentation only).
21802
21803         * sem_ch12.adb: Change Node4 to Associated_Node. Change
21804         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
21805         much more narrowly in places where needed. These are cleanups.
21806
21807 2001-10-26  Joel Brobecker <brobecke@gnat.com>
21808
21809         * 5zosinte.ads (null_pthread): new constant.
21810
21811         * 5ztaprop.adb:
21812         (Initialize_TCB): Initialize thread ID to null, to be able to verify
21813          later that this field has been set.
21814         (Finalize_TCB): ditto.
21815         (Suspend_Task): Verify that the thread ID is not null before using it.
21816         (Resume_Task): ditto.
21817
21818         * s-tasdeb.adb:
21819         (Resume_All_Tasks): Lock the tasks list before using it.
21820         (Suspend_All_Tasks): ditto.
21821
21822 2001-10-26  Richard Kenner <kenner@gnat.com>
21823
21824         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
21825         Make constant variant of designated type for Is_Access_Constant.
21826         Call update_pointer_to with main variant.
21827
21828         * trans.c (process_freeze_entity, process_type):
21829         Call update_pointer_to on main variant.
21830
21831         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
21832         If main variant, update all other variants.
21833
21834         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
21835         TREE_STATIC.
21836
21837 2001-10-26  Robert Dewar <dewar@gnat.com>
21838
21839         * prj-util.adb: Minor reformatting
21840
21841 2001-10-26  Robert Dewar <dewar@gnat.com>
21842
21843         * prj-util.adb: Minor reformatting
21844
21845 2001-10-26  Robert Dewar <dewar@gnat.com>
21846
21847         * prj-attr.adb: Minor reformatting throughout
21848
21849 2001-10-26  Robert Dewar <dewar@gnat.com>
21850
21851         * prj-attr.ads: Minor reformatting
21852         Add ??? comment (this whole spec has almost no comments)
21853
21854 2001-10-26  Vincent Celier <celier@gnat.com>
21855
21856         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
21857         ("//") that precede the drive letter on Interix.
21858
21859 2001-10-26  Geert Bosch <bosch@gnat.com>
21860
21861         * gnat_rm.texi: Add GNAT Reference Manual.
21862
21863 2001-10-25  Robert Dewar <dewar@gnat.com>
21864
21865         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
21866         is Error. Similar change for other renaming cases.
21867
21868 2001-10-25  Robert Dewar <dewar@gnat.com>
21869
21870         * s-atacco.ads: Add pragma Inline_Always for functions.
21871         Fix header format. Add copyright 2001
21872
21873 2001-10-25  Ed Schonberg <schonber@gnat.com>
21874
21875         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
21876         return Error rather than Empty so that analysis can proceed.
21877
21878 2001-10-25  Ed Schonberg <schonber@gnat.com>
21879
21880         * sem_util.adb (Enter_Name): better handling of cascaded error
21881         messages when a unit appears in its own context.
21882
21883 2001-10-25  Ed Schonberg <schonber@gnat.com>
21884
21885         * sem_util.adb (Defining_Entity): in case of error, attach created
21886         entity to specification, so that semantic analysis can proceed.
21887
21888 2001-10-25  Robert Dewar <dewar@gnat.com>
21889
21890         * sem_util.adb
21891         (Defining_Entity): Deal with Error.
21892         (Process_End_Label): Deal with bad end label for.
21893
21894 2001-10-25  Ed Schonberg <schonber@gnat.com>
21895
21896         * sem_elab.adb (Check_A_Call): refine message when call is in an
21897         instance but callee is not declared in the generic unit.
21898
21899 2001-10-25  Ed Schonberg <schonber@gnat.com>
21900
21901         * sem_elab.adb (Check_A_Call): check for renaming before finding the
21902         enclosing unit, which may already be different from the calling unit.
21903
21904 2001-10-25  Geert Bosch <bosch@gnat.com>
21905
21906         * 4gintnam.ads: fix header format.
21907
21908 2001-10-25  Ed Schonberg <schonber@gnat.com>
21909
21910         * sem_res.adb (Resolve_Call): if the call is actually an indexing
21911         operation on the result of a parameterless call, perform elaboration
21912         check after the node has been properly rewritten.
21913
21914         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
21915         inlined within the generic tree, the defining identifier is not a
21916         compilation_unit.
21917
21918 2001-10-25  Ed Schonberg <schonber@gnat.com>
21919
21920         * sem_res.adb (Resolve): special-case resolution of Null in an
21921          instance or an inlined body to avoid view conflicts.
21922
21923         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
21924          compatibility by retrieving the access type of the generic copy.
21925
21926 2001-10-25  Robert Dewar <dewar@gnat.com>
21927
21928         * sem_ch3.adb:
21929         (Analyze_Number_Declaration): Handle error expression.
21930         (Signed_Integer_Type_Declaration): Handle error bound.
21931         (Analyze_Subtype_Indication): Handle error range.
21932
21933         * sem_util.adb (Get_Index_Bounds): Check for Error.
21934
21935 2001-10-25  Robert Dewar <dewar@gnat.com>
21936
21937         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
21938         in no run time mode.
21939
21940 2001-10-25  Pascal Obry <obry@gnat.com>
21941
21942         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
21943         mode case for ALLOC case.
21944
21945         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
21946         all platforms. Improvement of last change.
21947
21948 2001-10-25  Robert Dewar <dewar@gnat.com>
21949
21950         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
21951
21952 2001-10-25  Geert Bosch  <bosch@gnat.com>
21953
21954         * osint.adb (Is_Relative): Remove duplicate.
21955
21956 2001-10-25  Pascal Obry <obry@gnat.com>
21957
21958         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
21959         pathnames in UNIX and DOS style with drive letter.
21960         (Is_Relative): new routine.
21961
21962         * osint.adb: Minor reformatting
21963
21964         * osint.adb (Is_Relative): implementation using
21965         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
21966
21967 2001-10-25  Pascal Obry <obry@gnat.com>
21968
21969         * g-dirope.adb (Basename): correctly compute offset between the
21970         original Path and the translated one.
21971
21972         * g-dirope.adb: (Base_Name): add some comments.
21973
21974 2001-10-25  Robert Dewar <dewar@gnat.com>
21975
21976         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
21977         in HIE mode, avoids compilation abandoned message
21978
21979         * exp_imgv.adb: Correct typo in previous change
21980
21981         * exp_imgv.adb: Correct typo in previous change (not my day!)
21982
21983 2001-10-25  Robert Dewar <dewar@gnat.com>
21984
21985         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
21986
21987 2001-10-25  Pascal Obry <obry@gnat.com>
21988
21989         * g-awk.ads: Move all pragma inlines next to the routine
21990          declarations. This is more uniform with other GNAT spec.
21991
21992 2001-10-22  Geert Bosch  <bosch@gnat.com>
21993
21994         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
21995
21996 2001-10-19  Geert Bosch  <bosch@gnat.com>
21997
21998         * Makefile.in (tools, gnattools): Remove gnatmem.
21999
22000 2001-10-17  Richard Henderson  <rth@redhat.com>
22001
22002         * Makefile.in (misc.o): Depend on langhooks.h.
22003         * misc.c: Include it.
22004         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
22005         (LANG_HOOKS_DECODE_OPTION): New.
22006         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
22007
22008 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
22009
22010         * trans.c (tree_transform): Adjust to recent change in
22011         expand_asm_operands to implement named asm operands.
22012
22013 2001-10-11  Ed Schonberg  <schonber@gnat.com>
22014
22015         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
22016         renaming of discriminant for mutable record type.
22017
22018 2001-10-11  Robert Dewar  <dewar@gnat.com>
22019
22020         * validsw.adb: Properly save -gnatVn status.
22021
22022 2001-10-11  Robert Dewar <dewar@gnat.com>
22023
22024         * usage.adb: Add lines for V switch.
22025
22026         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
22027         (/VALIDITY_CHECKING).
22028
22029 2001-10-11  Ed Schonberg <schonber@gnat.com>
22030
22031         * sem_type.adb (Add_One_Interp): an operator for a type declared in
22032         an extension of System is known to be visible.
22033
22034 2001-10-11  Ed Schonberg <schonber@gnat.com>
22035
22036         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
22037         properly. Fixes regression on ACATS C34005G.
22038
22039 2001-10-11  Robert Dewar <dewar@gnat.com>
22040
22041         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
22042         loop in generic instance, since this is likely not very useful.
22043
22044 2001-10-11  Robert Dewar <dewar@gnat.com>
22045
22046         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
22047         the error message for high integrity mode.
22048
22049         * rtsfind.adb (RTE): Give message if we try to find an entity that
22050         is not available in high integrity mode.
22051
22052         * rtsfind.ads:
22053         (OK_To_Use_In_HIE_Mode): New array.
22054         (RTE): May return Empty in high integrity mode.
22055
22056         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
22057         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
22058
22059         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
22060         unit if not inlined always and in no runtime mode. Fixes problem
22061         caused by new Rtsfind changes.
22062
22063         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
22064         body is deleted.
22065
22066         * rtsfind.adb (RTE): Make sure we do not try to load unit after
22067         giving message for entity not available in high integrity mode.
22068
22069 2001-10-11  Pascal Obry <obry@gnat.com>
22070
22071         * impunit.adb: Add GNAT.CRC32.
22072
22073 2001-10-11  Ed Schonberg <schonber@gnat.com>
22074
22075         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
22076         properly the case where one universal operand in a non-static
22077         exponentiation of a real literal.
22078
22079 2001-10-11  Ed Schonberg <schonber@gnat.com>
22080
22081         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
22082         clause, return the gobal finalization list, for lack of anthing else.
22083
22084 2001-10-11  Ed Schonberg <schonber@gnat.com>
22085
22086         * exp_ch7.adb (Make_Transient_Block): if statement is within
22087         exception handler, always use new transient scope to place Clean
22088         procedure.
22089
22090 2001-10-11  Pascal Obry <obry@gnat.com>
22091
22092         * Makefile.in:
22093         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
22094         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
22095         (GNATLS_RTL_OBJS): add g-crc32.o
22096         (GNATMAKE_RTL_OBJS): add g-crc32.o
22097
22098         * ali-util.adb:
22099         (CRC_Match): new function.
22100         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
22101         instead of the previous simple checksum algorithm.
22102         (Time_Stamp_Mismatch): use CRC_Match for comparison.
22103         (Set_Source_Table): idem.
22104
22105         * ali-util.ads:
22106         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
22107         instead of simple checksum.
22108         (CRC_Match): new function.
22109         (CRC_Error): new constant.
22110
22111         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
22112         a CRC now and not a simple checksum. A CRC uses lower-case hex
22113         letters, fixes ambiguity in parsing.
22114
22115         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
22116         is what this variable will store.
22117
22118         * bcheck.adb: Change reference to chechsum in comments by CRC.
22119         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
22120         rename All_Checksum_Match to All_CRC_Match. Change due to API
22121         renaming since now GNAT does not use a simple checksum but a
22122         CRC using GNAT.CRC32.
22123
22124         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
22125         now and not anymore a simple checksum.
22126
22127         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
22128         places.
22129
22130         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
22131
22132         * scans.adb:
22133         (Restore_Scan_State): rename Checksum to CRC.
22134         (Save_Scan_State): idem.
22135
22136         * scans.ads:
22137         With GNAT.CRC32.
22138         (Checksum): rename to CRC.
22139         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
22140
22141         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
22142         GNAT.CRC32).  Update copyright notice.
22143
22144         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
22145         GNAT.CRC32).  Update copyright notice.
22146
22147         * scn.adb:
22148         (Accumulate_Checksum): removed.
22149         (Update): new procedure. Add a wide-character into the CRC.
22150
22151         * sinput-l.adb:
22152         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
22153         (Load_File): fix initialization of S (change Source_Checksum to
22154         Source_CRC)
22155
22156         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
22157         Source_CRC in S initialization.
22158
22159         * sinput.adb (Source_Checksum): renamed to Source_CRC.
22160
22161         * sinput.ads (Source_Checksum): renamed to Source_CRC.
22162         Update comments for the CRC.
22163
22164         * types.adb (Hex): Use lowercase for the letter part.
22165
22166         * types.ads (Get_Hex_String): Returns the hexadecimal representation
22167         for a word. This is currently used only for CRC. In previous version,
22168         the checksum was using a representation with all letter being
22169         upper-case. With the new implementation (using CRC) we do not remove
22170         the 32th bit of the CRC, so we can have an upper-case starting letter
22171         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
22172         It is ambigous since the CRC was optional and could be followed by
22173         options like EB, EE. So now this routines uses lower-case letter for
22174         the hexadecimal representation. Strange enough only lower case letters
22175         where checked in Scan_ALI (even if this was not a possible case).
22176
22177         * gnatvsn.ads (Library_Version): changed to 3.15a.
22178
22179         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
22180         for the compiler.
22181
22182         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
22183         for the compiler.
22184
22185         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
22186         Add 2001 to copyright notice
22187         (Accumulate_Checksum): Modify to use System.CRC32.
22188
22189         * ali-util.ads: Redo changes of previous revision to continue to use
22190         the word Checksum. Add 2001 to copyright notice.
22191
22192         * ali.adb: Undo some of previous changes, not needed.
22193         Keep the change for lower case letters in the checksum.
22194
22195         * ali.ads: Undo previous change not needed.
22196
22197         * bcheck.adb: Undo most of previous change, not needed.
22198         But do use Checksums_Match for checksum comparison.
22199
22200         * gnatls.adb: Undo most of previous change, not needed.
22201         But do use Checksums_Match for comparing checksums.
22202
22203         * lib-load.adb: Undo previous change, not needed.
22204
22205         * lib-writ.adb: Undo previous change, not needed.
22206
22207         * lib-writ.ads: Document that checksums use lower case,
22208         not upper case letters.
22209
22210         * scans.adb: Undo previous change, not needed
22211
22212         * scans.ads: Undo previous change, not needed.
22213
22214         * scn-nlit.adb: Undo previous changes, not needed.
22215
22216         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
22217
22218         * scn.adb:
22219         (Accumulate_Checksum): Use System.CRC32.
22220         (Initialize_Checksum): New procedure.
22221         Remove other changes of previous revision.
22222
22223         * sinput-p.adb: Undo previous change, not needed.
22224
22225         * sinput.adb: Undo previous change, not needed.
22226
22227         * sinput-l.adb: Undo previous change, not needed.
22228
22229         * sinput.ads: Undo previous change, not needed.  Keep only comment
22230         on new checksum algorithm
22231
22232         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
22233         Also remove a-tags and a-stream from GNAT sources.
22234
22235         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
22236
22237         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
22238
22239 2001-10-11  Geert Bosch  <bosch@gnat.com>
22240
22241         * einfo.h: Regenerate.
22242
22243         * nmake.ads: Regenerate.
22244
22245         * nmake.adb: Regenerate.
22246
22247         * sinfo.h: Regenerate.
22248
22249         * treeprs.adb: Regenerate.
22250
22251 2001-10-10  Geert Bosch  <bosch@gnat.com>
22252
22253         * gnat-style.texi: New file describing coding guidelines for Ada.
22254
22255 2001-10-10  Ed Schonberg <schonber@gnat.com>
22256
22257         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
22258         is Flag174.
22259
22260 2001-10-10  Geert Bosch  <bosch@gnat.com>
22261
22262         * snames.ads: Add new names for project facility.
22263
22264         * snames.adb: Update to reflect snames.ads changes.
22265
22266         * snames.h: Update to reflect snames.ads changes.
22267
22268 2001-10-10  Vincent Celier <celier@gnat.com>
22269
22270         * make.adb:
22271         (Add_Switches): reflect the changes for the switches attributes
22272         Default_Switches indexed by the programming language,
22273         Switches indexed by the file name.
22274         (Collect_Arguments_And_Compile): Idem.
22275         Reflect the attribute name changes.
22276
22277         * prj-attr.adb:
22278         (Initialisation_Data): Change the names of some packages and
22279         attributes.
22280         (Initialize): process case insensitive associative arrays.
22281
22282         * prj-attr.ads:
22283         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
22284
22285         * prj-dect.adb:
22286         (Parse_Attribute_Declaration): For case insensitive associative
22287          arrays, set the index string to lower case.
22288
22289         * prj-env.adb:
22290         Reflect the changes of the project attributes.
22291
22292         * prj-nmsc.adb:
22293         Replace Check_Naming_Scheme by Ada_Check and
22294         Language_Independent_Check.
22295
22296         * prj-nmsc.ads:
22297         Replaced Check_Naming_Scheme by 2 procedures:
22298         Ada_Check and Language_Independent_Check.
22299
22300         * prj-proc.adb:
22301         (Process_Declarative_Items): For case-insensitive associative
22302         arrays, set the index string to lower case.
22303         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
22304         Prj.Nmsc.Check_Naming_Scheme.
22305
22306         * prj-tree.adb:
22307         (Case_Insensitive): New function
22308         (Set_Case_Insensitive): New procedure
22309
22310         * prj-tree.ads:
22311         (Case_Insensitive): New function
22312         (Set_Case_Insensitive): New procedure
22313         (Project_Node_Record): New flag Case_Insensitive.
22314
22315         * prj-util.adb:
22316         (Value_Of): new function to get the string value of a single
22317         string variable or attribute.
22318
22319         * prj-util.ads:
22320         (Value_Of): new function to get the string value of a single
22321         string variable or attribute.
22322
22323         * prj.adb:
22324         (Ada_Default_Spec_Suffix): New function
22325         (Ada_Default_Impl_Suffix): New function
22326         Change definitions of several constants to reflect
22327         new components of record types.
22328
22329         * prj.ads:
22330         (Naming_Data): Change several components to reflect new
22331         elements of naming schemes.
22332         (Project_Data): New flags Sources_Present and
22333         Language_Independent_Checked.
22334         (Ada_Default_Spec_Suffix): New function.
22335         (Ada_Default_Impl_Suffix): New function.
22336
22337         * snames.ads:
22338         Modification of predefined names for project manager: added
22339         Implementation, Specification_Exceptions, Implementation_Exceptions,
22340         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
22341         Default_Switches, _Languages, Builder, Cross_Reference,
22342         Finder. Removed Body_Part, Specification_Append, Body_Append,
22343         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
22344         Gnatlink.
22345
22346         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
22347         Add comments.
22348
22349         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
22350         not that it is Nil_Variable_Value.
22351
22352         * prj.ads: Add ??? for uncommented declarations
22353
22354 2001-10-10  Ed Schonberg <schonber@gnat.com>
22355
22356         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
22357         constant, do not indicate possible modification, so that gigi can
22358         treat it as a bona fide constant.
22359
22360 2001-10-10  Robert Dewar <dewar@gnat.com>
22361
22362         * sem_prag.adb: Add processing for pragma External.
22363
22364         * snames.ads: Add entry for pragma External.
22365
22366         * par-prag.adb: Add pragma External.
22367
22368         * snames.adb: Updated to match snames.ads.
22369
22370 2001-10-10  Ed Schonberg <schonber@gnat.com>
22371
22372         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
22373         a dynamic task if the allocator appears in an indexed assignment
22374         or selected component assignment.
22375
22376         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
22377         For a dynamic task in an assignment statement, use target of
22378         assignment to generate meaningful name.
22379
22380 2001-10-10  Ed Schonberg <schonber@gnat.com>
22381
22382         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
22383         a generic package.
22384
22385         * einfo.ads: Body_Entity is also defined for generic package.
22386         Documentation change only
22387
22388         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
22389         others_choice for a discriminated component initialization,
22390         convert discriminant references into the corresponding discriminals.
22391
22392         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
22393         only if original type is private and expression has to be wrapped
22394         in a conversion.
22395
22396         * checks.adb:
22397         (Apply_Constraint_Check): Do not perform length check
22398         if expression is an aggregate with only an others_choice.
22399         (Length_N_Cond): two references to the same in_parameter
22400         (typically the discriminal in an init_proc) denote the same value.
22401         Two useful optimization uncovered by bugfixes above.
22402
22403 2001-10-10  Robert Dewar <dewar@gnat.com>
22404
22405         * xeinfo.adb: Change int to char in translation of enumeration types.
22406         This fixes a problem in the C representation of component alignment.
22407         Add 2001 to copyright notice
22408
22409 2001-10-10  Richard Kenner <kenner@gnat.com>
22410
22411         * decl.c: (validate_size): Do check size of object of integral type
22412         if it is a packed array type.
22413
22414 2001-10-10  Richard Kenner <kenner@gnat.com>
22415
22416         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
22417         VAR_DECL for constant if not Is_Public but -O0.
22418
22419 2001-10-10  Richard Kenner  <kenner@gnat.com>
22420
22421         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
22422
22423 2001-10-10  Geert Bosch  <bosch@gnat.com>
22424
22425         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
22426         use '/' as switch character, allowing for absolute file names.
22427
22428 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
22429
22430         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
22431         FSF address.
22432
22433 2001-10-08  Geert Bosch  <bosch@gnat.com>
22434
22435         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
22436         Automatically build utilities when files need to be regenerated.
22437
22438 2001-10-08  Geert Bosch  <bosch@gnat.com>
22439
22440         * xsnames.adb: New utility for updating snames.ads and snames.adb
22441
22442 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
22443
22444         * Make-lang.in (ADAFLAGS): Add -W -Wall.
22445         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
22446         (gnat1): Also depend on attribs.o.
22447         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
22448         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
22449         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
22450         (ADAFLAGS): Add -W -Wall.
22451         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
22452         take out CFLAGS.
22453
22454         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
22455         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
22456         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
22457         Use $(ADAC), not $(CC), as compilation command.
22458
22459         (gnattools): Depend directly on tools to build, don't use
22460         recursive make.
22461         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
22462
22463         * einfo.h, sinfo.h: New files (autogenerated).
22464
22465 2001-10-08  Richard Henderson  <rth@redhat.com>
22466
22467         * comperr.adb (Abort_In_Progress): New.
22468         (Compiler_Abort): Use it to prevent recursion.
22469
22470 2001-10-08  Robert Dewar <dewar@gnat.com>
22471
22472         * atree.adb: Set Error_Posted in Error node, helps error recovery.
22473
22474         * par-endh.adb (Output_End_Expected): We should also not test
22475         Error_Posted on the Error node, since now it is always set.
22476
22477         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
22478         to help error recovery. Part of general work on 9407-004.
22479
22480         * par.adb: Add ??? for misuse of error
22481
22482         * sem_res.adb:
22483         (Resolve): Defend against Error, fixes 9407-003.
22484         (Resolve_Discrete_Subtype_Indication): Defend against Error.
22485
22486         * sinfo.ads (N_Error): Now has Etype field (which will be set
22487         to Any_Type to help error recovery).
22488
22489 2001-10-08  Richard Kenner (kenner@gnat.com)
22490
22491         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
22492         Consistently set MEM attributes from expression; fixes
22493         bootstrap failure on x86.
22494
22495 2001-10-08  Geert Bosch  (bosch@gnat.com)
22496
22497         * 5oosinte.adb: Add 2001 to copyright notice.
22498
22499 2001-10-08  Geert Bosch  (bosch@gnat.com)
22500
22501         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
22502
22503         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
22504
22505 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
22506
22507         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
22508
22509 2001-10-05  Geert Bosch  (bosch@gnat.com)
22510
22511         * adaint.h: Small formatting fix.
22512
22513 2001-10-04  Geert Bosch  <bosch@gnat.com>
22514
22515         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
22516         Arg is int, not FILE *, in dummy version of functions.
22517
22518         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
22519         Arg is int, not FILE *.
22520
22521 2001-10-04  Geert Bosch  <bosch@gnat.com>
22522
22523         * 3lsoccon.ads: Added file, missed with initial check ins.
22524
22525         * 4lintnam.ads: Fix header format.
22526         Change Linux to GNU/Linux.
22527
22528         * 5iosinte.adb: Change Linux to GNU/Linux.
22529
22530         * 5iosinte.ads: Change Linux to GNU/Linux.
22531
22532         * 5itaprop.adb: Change Linux to GNU/Linux.
22533
22534         * 5itaspri.ads: Change Linux to GNU/Linux.
22535         Update copyright notice.
22536
22537         * 5lintman.adb: Change Linux to GNU/Linux.
22538
22539         * 5lml-tgt.adb: Change Linux to GNU/Linux.
22540
22541         * 5losinte.ads: Change Linux to GNU/Linux.
22542
22543         * 5lsystem.ads: Change Linux to GNU/Linux.
22544
22545         * 5qosinte.adb: Change Linux to GNU/Linux.
22546
22547         * 5qosinte.ads: Change Linux to GNU/Linux.
22548
22549         * 5qparame.ads: Change Linux to GNU/Linux.
22550
22551         * 5qtaprop.adb: Change Linux to GNU/Linux.
22552
22553         * 5qtaspri.ads: Change Linux to GNU/Linux.
22554         Add 2001 to copyright notice.
22555
22556         * 5vintman.ads: Change Linux to GNU/Linux.
22557         Fix header format.  Add 2001 to copyright notice.
22558
22559         * g-soccon.ads: Change Linux to GNU/Linux.
22560
22561         * g-trasym.ads: Change Linux to GNU/Linux.
22562         Add 2001 to copyright notice.
22563
22564         * memtrack.adb: Change Linux to GNU/Linux.
22565
22566         * s-intman.ads: Change Linux to GNU/Linux.
22567         Add 2001 to copyright notice.  Fix header format.
22568
22569         * s-stache.adb: Change Linux to GNU/Linux.
22570
22571         * adaint.c: Change Linux to GNU/Linux.
22572
22573         * cio.c: Change Linux to GNU/Linux.
22574
22575         * cstreams.c: Change Linux to GNU/Linux.
22576
22577         * init.c: Change Linux to GNU/Linux.
22578
22579         * gmem.c: Change Linux to GNU/Linux.
22580
22581         * tracebak.c: Change Linux to GNU/Linux.
22582
22583
22584 2001-10-02  Geert Bosch  <bosch@gnat.com>
22585
22586         * misc.c (insert_default_attributes): Add dummy version.