OSDN Git Service

2007-12-19 Gary Dismukes <dismukes@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
2
3         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
4
5 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
6
7         * s-vxwork-alpha.ads: Removed, no longer used.
8
9 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
10
11         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
12
13 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
14
15         PR ada/34360
16         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
17         mlib-tgt-specific.adb.
18
19 2007-12-13  Bob Duff  <duff@adacore.com>
20
21         * trans.c (Attribute_to_gnu): Check for violations of the
22         No_Implicit_Dynamic_Code restriction. This checking used to be done in
23         the front end, but is moved here so we can make it more accurate.
24
25 2007-12-13  Pascal Obry  <obry@adacore.com>
26
27         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
28          version is provided for older GNU/Linux distribution not
29          supporting thread affinity sets.
30         
31         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
32         call.
33         (bit_field): New packed boolean type used by cpu_set_t.
34         (cpu_set_t): New type corresponding to the C type with
35         the same name. Note that on the Ada side we use a bit
36         field array for the affinity mask. There is not need
37         for the C macro for setting individual bit.
38         (pthread_setaffinity_np): New imported routine.
39         
40         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
41         no null.
42         (Create_Task): Set the processor affinity mask if information
43         is present.
44         
45         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
46         
47 2007-12-13  Robert Dewar  <dewar@adacore.com>
48
49         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads, 
50         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads, 
51         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads, 
52         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
53         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
54         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads, 
55         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads, 
56         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
57         for subprogram pointers.
58
59         * g-ctrl_c.adb: New file.
60
61         * g-ctrl_c.ads (Install_Handler): New body.
62
63         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
64         instead of obsolete function Is_Always_Inlined.
65         (Freeze_Entity): check for tagged type in imported C subprogram
66         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
67         (Freeze_Entity): check for convention Ada subprogram pointer in
68         imported C subprogram.
69         (Freeze_Fixed_Point_Type): In the case of a base type where the low
70         bound would be chopped off and go from negative to zero, force
71         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
72         bound) so that the size computation for the base type will take
73         negative values into account.
74
75 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
76             Bob Duff  <duff@adacore.com>
77             Tristan Gingold  <gingold@adacore.com>
78
79         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
80         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads, 
81         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
82         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
83         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads, 
84         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
85         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
86         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
87         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
88         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
89         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
90         (Always_Compatible_Rep): New flag to control trampolines globally.
91         (Dynamic_Trampolines_Used): New flag for implementing the
92         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
93         and not yet set correctly for some targets).
94
95         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
96         Simply indirectly call s-stchop when a task is created.
97
98         * ali.ads: 
99         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
100         appears as an argument (entries A) in an ALI file.
101
102         * fe.h (Stack_Check_Limits): Declare new target parameter.
103         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
104
105         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
106         This variable is declared in C to be sure not subject to elaboration
107         code.
108         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
109         Storage_Error.
110
111         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
112         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
113
114         * s-stchop.ads: Add comments.
115
116         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
117         limit method of stack checking.
118
119         * s-stchop-limit.ads: New file.
120
121 2007-12-13  Robert Dewar  <dewar@adacore.com>
122
123         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb, 
124         a-cihama.adb, g-awk.adb, 
125         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
126         warnings
127
128         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
129
130         * sem.adb: Update handling of assigned value/unreferenced warnings
131
132         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
133
134         * lib-xref.ads: Improve documentation for k xref type
135
136         * lib-xref.adb: 
137         Update handling of assigned value/unreferenced warnings
138         (Generate_Reference): Warning for reference to entity for which a
139         pragma Unreferenced has been given should be unconditional.
140         If the entity is a discriminal, mark the original
141         discriminant as referenced.
142
143         * sem_warn.ads, sem_warn.adb
144         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
145         no entities referenced in package
146         (Check_One_Unit): Don't give message about no entities referenced in
147         a package if a pragma Unreferenced has appeared.
148         Handle new warning flag -gnatw.a/-gnatw.A
149         Update handling of assigned value/unreferenced warnings
150
151         * atree.h: Add flags up to Flag247
152         (Flag231): New macro.
153
154 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
155
156         * adaint.h: (__gnat_plist_init): Not defined for RTX.
157
158         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
159         RTX systems.
160
161         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
162         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
163         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
164         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
165
166         * mingw32.h: 
167         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
168
169         * sysdep.c (winflush_function for RTX): Procedure that does nothing
170         since we only have problems with Windows 95/98, which are not
171         supported by RTX.
172         (__gnat_ttyname): Return the empty string on Nucleus, just as
173         done on vxworks.
174
175 2007-12-13  Robert Dewar  <dewar@adacore.com>
176
177         * a-textio.adb, a-textio.ads: 
178         Extensive changes to private part for wide character encoding
179
180         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
181         (Look_Ahead): Fix mishandling of encoded sequences
182         Move declaration of Wch_Con to private part (should not be visible)
183
184         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
185         UTF-8. Probably this is never used, but if it is, brackets is
186         clearly correct.
187
188         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
189         setting wide character encoding for no main program case and when
190         encoding is specified using -W?
191         Initialize stack limit of environment task if stack limit method of
192         stack checking is enabled.
193         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
194         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
195         (Get_Main_Unit_Name): New function.
196         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
197         (Gen_Output_File): Set Bind_Main_Program to True for .NET
198
199         * bindusg.adb: Add line for -Wx switch
200
201         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
202         Add comments
203         Add new useful constant WC_Longest_Sequences
204
205         * switch-b.adb: Clean up handling of -Wx switch
206         For -gnatWx, set Wide_Character_Encoding_Method_Specified
207
208         * switch-c.adb: -gnatg activates warning on assertion errors
209         For -gnatWx, set Wide_Character_Encoding_Method_Specified
210
211         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
212
213 2007-12-13  Robert Dewar  <dewar@adacore.com>
214             Ed Schonberg  <schonberg@adacore.com>
215
216         * a-ngcoty.adb: New pragma Fast_Math
217
218         * opt.adb: New pragma Fast_Math
219
220         * par-prag.adb: 
221         Add Implemented_By_Entry to the list of pragmas which do not require any
222         special processing.
223         (Favor_Top_Level): New pragma.
224         New pragma Fast_Math
225
226         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
227         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
228         Expand_Allocator_Expression): Take into account VM_Target
229         (Expand_Attribute, case 'Identity):  Handle properly the case where
230         the prefix is a task interface.
231         New pragma Fast_Math
232
233         * par.adb (Next_Token_Is): New function
234         (P_Pragma): Add Skipping parameter
235         (U_Left_Paren): New procedure
236         (U_Right_Paren): New procedure
237         New pragma Fast_Math
238
239         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
240         subunit
241         New pragma Fast_Math
242
243         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
244         Implemented_By_Entry.
245         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
246         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
247         items, since it can apply to more than one overloadable entity. Set
248         new flag Has_Pragma_Inline_Always for Inline_Always case.
249         (Analyze_Pragma, case Complex_Representation): Improve error message.
250         (Analyze_Pragma, case Assert): When assertions are disabled build the
251         rewritten code with Sloc of expression rather than pragma, so new
252         warning about failing is not deleted.
253         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
254         protected types and update error message to reflect that. Test whether
255         the protected type is allowed for the pragma (an error is issued if the
256         type has any entries, or components that do not have preelaborable
257         initialization).
258         New pragma Fast_Math
259         (Analyze_Pragma, case No_Return): Handle generic instance
260
261         * snames.h, snames.ads, snames.adb: 
262         Add new predefined name for interface primitive _Disp_Requeue.
263         New pragma Fast_Math
264
265         * a-tags.ads, a-tags.adb: New calling sequence for
266         String_To_Wide_[Wide_]String
267         (Secondary_Tag): New subprogram.
268
269         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
270         from Exp_Attr
271         New calling sequence for String_To_Wide_[Wide_]String
272         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
273         the use of the secondary stack for image routines.
274
275         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
276         calling sequence for String_To_Wide_[Wide_]String
277
278         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
279         Ada 95 mode
280         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
281         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
282
283         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
284         (P_Formal_Part): Use Skipping parameter in P_Pragma call
285         to improve error recovery
286
287         * par-util.adb (Next_Token_Is): New function
288         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
289
290         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
291         semicolon if missing
292         (P_Pragma): Implement new Skipping parameter
293         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
294         Fix location of flag for unrecognized pragma message
295
296         * par-tchk.adb (U_Left_Paren): New procedure
297         (U_Right_Paren): New procedure
298
299 2007-12-13  Geert Bosch  <bosch@adacore.com>
300
301         * a-tifiio.adb: 
302         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
303         the second or later Scaled_Divide would omit leading zeroes,
304         resulting in too few digits produced and a Layout_Error as result.
305         (Put): Initialize Pos.
306
307 2007-12-13  Robert Dewar  <dewar@adacore.com>
308
309         atree.ads, atree.adb (Flag231..Flag247): New functions
310         (Set_Flag231..Set_Flag247): New procedures
311         (Basic_Set_Convention): Rename Set_Convention to be
312         Basic_Set_Convention
313         (Nkind_In): New functions
314         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
315
316         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
317         instead
318          of obsolete function Is_Always_Inlined
319         (Register_Predefined_DT_Entry): Initialize slots of the second
320         secondary dispatch table.
321         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
322         (Expand_N_Function_Call): Remove special provision for stack checking.
323
324         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
325         Include _Disp_Requeue in the list of predefined operations.
326         (Find_Interface_ADT): Modified to fulfill the new specification.
327         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
328
329         * par-ch4.adb, nlists.ads, nlists.adb: 
330         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
331
332         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
333         Fix location of flag for unrecognized pragma message
334
335         * sem_ch7.adb: Use Nkind_In
336
337 2007-12-13  Vincent Celier  <celier@adacore.com>
338
339         * opt.ads: 
340         Indicate what flags are used by the Project Manager, gprbuild and
341         gprclean.
342         (Opt.Follow_Links_For_Dirs): New flag
343         (Warn_On_Assertion_Failure): New flag
344         (Wide_Character_Encoding_Method_Specified): New flag
345         (Suppress_All_Inlining): New switch set by -fno-inline
346         (Real_VMS_Target): New flag
347         New pragma Fast_Math
348
349 2007-12-13  Robert Dewar  <dewar@adacore.com>
350
351         * back_end.adb: Recognize -fno-inline
352
353 2007-12-13  Robert Dewar  <dewar@adacore.com>
354
355         * checks.adb: Fix optimization problem with short-circuited form
356
357 2007-12-13  Bob Duff  <duff@adacore.com>
358
359         * clean.adb (Usage): Add line for -aP
360         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
361         with a parameter "procedure Usage", instead of passing a pointer to a
362         procedure. This is to eliminate trampolines (since the Usage procedure
363         is often nested in a main procedure, and it would be inconvenient to
364         unnest it).
365
366         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
367         to be generic, with a parameter "procedure Callback (...)", instead of
368         passing a pointer to a procedure. This is to eliminate trampolines
369         (since the Callback procedure is usually nested).
370
371         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb, 
372         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
373         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
374
375         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
376         Use the generic Heap_Sort_G instead of Heap_Sort_A.
377
378 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
379
380         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
381         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
382         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
383         (Renamed_In_Spec): New flag
384         (Has_Pragma_Inline_Always): New flag
385         Add missing doc for pragma Obsolescent_Warning
386         Add missing doc for 17 additional unused flags (230-247)
387         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
388         Alphabetize with clauses.
389         Separate Is_Thunk and Has_Thunks flags
390         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
391         (Related_Interface): Renamed to Related_Type.
392         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
393         (Set_Is_Flag): Restrict the assertion.
394
395 2007-12-13  Vincent Celier  <celier@adacore.com>
396
397         * errout.adb (Output_Source_Line): Do not keep a trailing space after
398         the source line number if the source line is empty.
399
400 2007-12-13  Geert Bosch  <bosch@adacore.com>
401
402         * eval_fat.adb (Decompose_Int): Handle argument of zero.
403         (Compose): Remove special casing of zero.
404         (Exponent): Likewise.
405         (Fraction): Likewise.
406         (Machine): Likewise.
407         (Decompose): Update comment.
408
409 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
410
411         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
412         limited ancestor part, initialize controllers of enclosing record
413         before expanding ancestor aggregate.
414         (Gen_Assign): If a component of the aggregate is box-initialized, add
415         code to call Initialize if the component is controlled, and explicit
416         assignment of null if the component is an access type.
417
418         Handle properly aggregates for limited types that appear in object
419         declarations when the aggregate contains controlled values such as
420         protected types.
421         When expanding limited aggregates into individual components, do not
422         call Adjust on controlled components that are limited.
423
424 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
425
426         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
427
428 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
429
430         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
431         predefined primitive _Disp_Requeue.
432         (Make_Predefined_Primitive_Specs): Create the spec for predefined
433         primitive _Disp_Requeue.
434         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
435         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
436         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
437         an interface type. In case of limited interfaces we now declare all the
438         predefined primitives associated with synchronized interfaces as
439         abstract.
440         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
441         declarations.
442         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
443         tagged type is an interface type and there is no user-defined equality
444         function.
445         Add also bodies of predefined primitives associated with synchronized
446         interfaces.
447         (Freeze_Record_Type): Do not build bodies of predefined primitives of
448         interface types because they are now defined abstract.
449         Add missing documentation.
450         (Expand_Record_Controller): Update occurrence of Related_Interface
451         to Related_Type.
452         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
453         (Expand_N_Object_Declaration): Take into account VM_Target when handling
454         class wide interface object declaration.
455         (Expand_Previous_Access_Type): Do not create a duplicate master entity
456         if the access type already has one.
457         (Expand_N_Object_Declaration): Defend against attempt to validity check
458         generic types. Noticed for -gnatVcf specified with previous errors.
459
460 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
461
462         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
463         Expand_Allocator_Expression): Take into account VM_Target
464
465         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
466         secondary stack when VM_Target /= No_VM
467
468 2007-12-13  Javier Miranda  <miranda@adacore.com>
469             Ed Schonberg  <schonberg@adacore.com>
470
471         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
472         Is_Complation_Unit by Is_Library_Level_Entity in the code
473         that decides if the static dispatch tables need to be built.
474         (Wrap_Transient_Declaration): Do not generate a finalization call if
475         this is a renaming declaration and the renamed object is a component
476         of a controlled type.
477
478 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
479
480         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
481         In the case where the renamed subprogram is a dereference, call
482         Force_Evaluation on the prefix.
483
484 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
485             Ed Schonberg  <schonberg@adacore.com>
486
487         * exp_ch9.adb (Expand_N_Asynchronous_Select,
488         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
489         comment reformatting.
490         (Set_Privals): Inherit aliased flag from formal. From code reading.
491         (Build_Simple_Entry_Call): Out parameters of an access type are passed
492         by copy and initialized from the actual. This includes entry parameters.
493         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
494         and Ada 2005 models of requeue.
495         (Null_Statements): Still connsider do-end block null if it contains
496         Unreferenced and Warnings pragmas.
497         (Expand_N_Accept_Statement): Do not optimize away null do end if
498         dispatching policy is other than defaulted.
499         (Expand_N_Timed_Entry_Call): When the triggering statement is a
500         dispatching call, manually analyze the delay statement.
501         (Find_Parameter_Type): Move subprogram to Sem_Util.
502
503 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
504             Javier Miranda  <miranda@adacore.com>
505
506         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
507         _Disp_Requeue occupies dispatch table slot number 15. Move
508         _Disp_Timed_Select to slot 16.
509         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
510         generate the spec and body of _Disp_Reqeueue.
511         (Make_DT): Build and initialize the second dispatch table.
512         Handle initialization of RC_Offset when the parent
513         is a private type with variable size components.
514         (Make_Secondary_DT): Complete documentation. Add support to
515         initialize the second dispatch table.
516         (Make_Tags): Generate the tag of the second dispatch table.
517         (Register_Primitive): Add support to register primitives in the
518         second dispatch table.
519
520 2007-12-13  Pascal Obry  <obry@adacore.com>
521
522         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
523         Windows. This signal is used by gnatmake to kill child processes for
524         example.
525
526 2007-12-13  Javier Miranda  <miranda@adacore.com>
527
528         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
529         support for generic dispatching constructor calls in which we need to
530         locate the tag of a secondary dispatch table associated with an
531         interface type to properly dispatch the call.
532         (Expand_N_Attribute_Reference [case Address],
533         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
534         handling of VM targets.
535
536 2007-12-13  Robert Dewar  <dewar@adacore.com>
537             Ed Schonberg  <schonberg@adacore.com>
538
539         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
540         assert fail
541
542         * ug_words: Add entries for -gnatw.a -gnatw.A
543
544         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
545         literal is a subtype with non-static constraints, use the base type of
546         the context as the base of the string subtype, to prevent type
547         mismatches in gigi.
548         (Resolve_Actuals): If the actual is an entity name, generate a
549         reference before the actual is resolved and expanded, to prevent
550         spurious warnings on formals of enclosing protected operations.
551         (Analyze_Overloaded_Selected_Component): If type of prefix if
552         class-wide, use visible components of base type.
553         (Resolve_Selected_Component): Ditto.
554         (Resolve_Short_Circuit): Detect case of pragma Assert argument
555         evaluating to False, and issue warning message.
556
557         * usage.adb: Add lines for -gnatw.a and -gnatw.A
558
559 2007-12-13  Emmanuel Briot  <briot@adacore.com>
560
561         * g-calend.ads (No_Time): New constant, to represent an uninitialized
562         time value
563
564         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
565         formats.
566         (Month_Name_To_Number): New subprogram
567
568         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
569         letter to upper-case.
570
571 2007-12-13  Robert Dewar  <dewar@adacore.com>
572             Ed Schonberg  <schonberg@adacore.com>
573
574         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
575
576         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
577         context is a limited view, use non-limited view when available. If the
578         non-limited view is an unconstrained array, this enforces consistency
579         requirements in 3.10.2 (27).
580         (Layout_Type): For an access type whose designated type is a limited
581         view, examine its declaration to determine if it is an unconstrained
582         array, and size the access type accordingly.
583         (Layout_Type): Do not force 32-bits for convention c subprogram
584         pointers in -gnatdm mode, only if real vms target.
585
586         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
587         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
588         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
589         violations of the No_Implicit_Dynamic_Code restriction.
590         (Resolve_Attribute, case 'Access): If designated type of context is a
591         limited view, use non-limited view when available. If the non-limited
592         view is an unconstrained array, this enforces consistency requirements
593         in 3.10.2 (27).
594         (Layout_Type): For an access type whose designated type is a limited
595         view, examine its declaration to determine if it is an unconstrained
596         array, and size the access type accordingly.
597
598 2007-12-13  Vincent Celier  <celier@adacore.com>
599
600         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
601         object directory of main project does not exist.
602         On VMS, correctly set then environment variable for the source
603         directories.
604
605 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
606
607         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
608         set to True this procedure will create the value of type REG_EXPAND_SZ.
609         It was only possible to create REG_SZ values before.
610
611 2007-12-13  Robert Dewar  <dewar@adacore.com>
612
613         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
614         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
615         namet-sp.adb, namet-sp.ads: New files.
616
617         * g-speche.adb: Use generic routine in g-spchge
618
619         * s-wchcnv.ads, s-wchcnv.adb: 
620         Minor code cleanup (make formal type consistent with spec)
621
622         * namet.adb: Update comments.
623
624         * par-endh.adb (Evaluate_End_Entry): Use new
625         Namet.Sp.Is_Bad_Spelling_Of function
626
627         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
628
629         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
630         ancestor is an access type initialized with a box, set its type
631         explicitly, for use in subsequent expansion.
632         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
633         function
634
635 2007-12-13  Robert Dewar  <dewar@adacore.com>
636
637         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
638         access Vstring)
639
640 2007-12-13  Robert Dewar  <dewar@adacore.com>
641
642         * inline.adb (Back_End_Cannot_Inline): Use new flag
643         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
644
645         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
646         Has_Pragma_Inline_Always instead.
647         of obsolete function Is_Always_Inlined
648         (Build_Body_To_Inline): Same change
649         (Cannot_Inline): Same change
650         Do not give warning on exception raise in No_Return function
651
652         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
653         component has two inconsistent component clauses in the same record
654         representation clause, favor the message that complains about
655         duplication rather than inconsistency.
656         Update comments.
657         (Record_Representation_Clause): Do not warn on missing component
658         clauses for inherited components of a type extension.
659         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
660         an overloadable item if it is a pragma that can apply to multiple
661         overloadable entities (e.g. Inline) because a pragma cannot be on
662         more than one chain at a time.
663         (Validate_Unchecked_Conversion): Add code to warn on unchecked
664         conversion where one of the operands is Ada.Calendar.Time.
665         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
666         For now, ignore Component_Size clause on VM targets, as done for
667         pragma Pack.
668
669 2007-12-13  Emmanuel Briot  <briot@adacore.com>
670             Vincent Celier  <celier@adacore.com>
671
672         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
673         string
674         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
675         prj.ads
676         (Hash): Move instantiation of System.HTable.Hash from spec to body
677         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
678         systems, since we do not need to recompute the Name_Id for the canonical
679         file name.
680         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
681         as a parameter. This parameter is in fact always "ada" in all calls, and
682         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
683         while loading a project with 40000 files
684
685         * prj-attr.adb: Fix name of attribute Dependency_Driver
686         Change the kind of indexing for attribute Root
687
688         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
689         variables already declared, in case constructions.
690
691         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
692         Current_Object_Path_File to No_Path.
693
694         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
695         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
696
697         * prj-makr.adb: new parameter Current_Dir
698
699         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
700         Ada sources when language is not Ada.
701         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
702         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
703         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
704         (Locate_Directory): Always resolve links when computing Canonical_Path
705         (Look_For_Sources): Make sure that Name_Buffer contains the file name
706         in Source_Files before checking for the presence of a directory
707         separator.
708         Optimize calls to Name_Find when on case sensitive systems.
709         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
710         as a parameter.
711         (Prj.Nmsc.Check): new parameter Current_Dir
712         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
713         cannot be empty and the spec suffix cannot be the same as the body or
714         separate suffix.
715         (Get_Unit): When a file name can be of several unit kinds (spec, body or
716         subunit), always consider the longest suffix.
717         (Check_Configuration): Do not issue an error if there is no compiler
718         for a language. Just issue a warning and ignore the sources for the
719         language.
720         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
721         not empty.
722         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
723         (Unit_Exceptions): New hash table
724         (Check_Naming_Schemes): Check if a file that could be a unit because of
725         the naming scheme is not in fact a source because there is an exception
726         for the unit.
727         (Look_For_Sources): Put the unit exceptions in hash table
728         Unit_Exceptions
729         (Get_Unit_Exceptions): Give initial value No_Source to local variable
730         Other_Part to avoid exception when code is compiled with validity
731         checking.
732         (Get_Sources_From_File): Check that there is no directory information
733         in the file names.
734         (Look_For_Sources): Check that there is no directory information in the
735         list of file names in Source_Files.
736         (Look_For_Sources): In multi-language mode, do not allow exception file
737         names that are excluded.
738         (Excluded_Sources_Htable): New hash table
739         (Search_Directories.Check_File): New procedure to simplify
740         Search_Directories.
741         (Search_Directories): Do not consider excluded sources
742         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
743         Search_Directories.
744         (Get_Exceptions): Set component Lang_Kind of Source_Data
745         (Get_Unit_Exceptions): Ditto
746         (Search_Directories): Ditto
747
748         * prj-pars.adb: new parameter Current_Dir
749
750         * prj-part.ads, prj-part.adb: 
751         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
752         (Opt.Follow_Links_For_Dirs): New flag
753         (Project_Path_Name_Of): Cache information returned by this routine as
754         Locate_Regular_File is a costly routine. The code to output a log
755         information and the effective call to Locate_Regular_File is now
756         factorized into a routine (code clean-up).
757         (Parse, Parse_Single_Project): new parameter Current_Dir
758         When main project file cannot be found, indicate in the error
759         message the project path that was used to do the search.
760
761         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
762         (Prj.Proc.Process*): new parameter Current_Dir
763
764         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
765
766 2007-12-13  Bob Duff  <duff@adacore.com>
767
768         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
769         procedure to be called from the back end to check the
770         No_Implicit_Dynamic_Code restriction.
771
772 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
773
774         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
775         Fixes another case where RTE_Available_Call was ignored instead of being
776         taken into account.
777         (Load_Fail): Ditto.
778
779         * rtsfind.ads: Add new entries.
780
781 2007-12-13  Robert Dewar  <dewar@adacore.com>
782
783         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
784         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
785
786         * scn.adb: Implement BOM recognition
787
788 2007-12-13  Thomas Quinot  <quinot@adacore.com>
789             Ed Schonberg  <schonberg@adacore.com>
790
791         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
792         subprogram body that acts as its own spec may not have a non-private
793         WITH clause on a private sibling.
794         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
795         child unit is a renaming, create an implicit with_clause on that
796         parent, and not on the unit it renames, to prevent visibility errors
797         in the current unit.
798
799 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
800
801         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
802         renaming declaration, use the Slocs of the formal parameters from the
803         declaration of the formal subprogram when creating the formal parameter
804         entities in the renaming declaration.
805         (Analyze_Formal_Type_Declaration): Change the placement of the error
806         message concerning illegal known discriminants. It is now posted on the
807         type rather than on the first discriminant. This change ensures early
808         error report.
809         (Freeze_Subprogram_Body): If the generic subprogram is nested within
810         the package body that contains the instance, do not generate an
811         out-of-place freeze node for the enclosing package.
812         (Collect_Previous_Instantiations): Ignore internal instantiations
813         generated for formal packages.
814         (Validate_Derived_Type_Instance): Add a check that when a formal
815         derived type is Known_To_Have_Preelab_Init then the actual type must
816         have preelaborable initialization, and issue an error when this
817         condition is violated.
818
819 2007-12-13  Robert Dewar  <dewar@adacore.com>
820
821         * s-imenne.adb, s-imenne.ads: New files.
822
823         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb, 
824         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb, 
825         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads, 
826         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb, 
827         s-imgwch.ads: New calling sequence for Image routines to avoid sec
828         stack usage.
829
830 2007-12-13  Javier Miranda  <miranda@adacore.com>
831             Ed Schonberg  <schonberg@adacore.com>
832
833         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
834         generation of spurious error if parent is an interface type; caused
835         because predefined primitive bodies will be generated later by
836         Freeze_Record_Type.
837         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
838         flag.
839         (Derive_Subprograms): Handle derivations of predefined primitives
840         after all the user-defined primitives to ensure that they are
841         found in proper order in instantiations.
842         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
843         of Related_Interface to Related_Type.
844         (Record_Type_Declaration): Minor reordering of calls to decorate the
845         Tag component because the entity must have set its Ekind attribute
846         before setting its Is_Tag attribute.
847         (Analyze_Subtype_Declaration): In the case of subtypes with
848         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
849
850 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
851             Ed Schonberg  <schonberg@adacore.com>
852
853         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
854         statement to the list of contexts where a selected component with a
855         concurrent tagged type prefix should yield a primitive operation.
856         (Find_Primitive_Operation): Handle case of class-wide types.
857         (Analyze_Overloaded_Selected_Component): If type of prefix is
858         class-wide, use visible components of base type.
859         (Resolve_Selected_Component): Ditto.
860         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
861         formal of a generic subprogram. find candidate interpretations by
862         scanning the list of generic formal declarations.:
863         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
864         type from a limited_with_clause, and the full view is available, use it
865         for subsequent semantic checks.
866         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
867         (Find_Primitive_Operation): New function.
868         (Analyze_Overloaded_Selected_Component): insert explicit dereference
869         only once if several interpretations of the prefix yield an access type.
870         (Try_Object_Operation): Code and comment cleanup.
871         (Analyze_Selected_Component): Reorder local variables. Minot comment and
872         code reformatting. When the type of the prefix is tagged concurrent, a
873         correct interpretation might be available in the primitive and
874         class-wide operations of the type.
875
876 2007-12-13  Robert Dewar  <dewar@adacore.com>
877             Ed Schonberg  <schonberg@adacore.com>
878
879         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
880         renaming entry as subprogram using rename-as-body if subprogram spec
881         frozen.
882         (Use_One_Type): The clause is legal on an access type whose designated
883         type has a limited view.
884         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
885         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
886         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
887         operation denoted by a selected component.
888         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
889         it can be an expression, possibly overloaded, that returns a task or
890         an access to one.
891
892 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
893             Gary Dismukes  <dismukes@adacore.com>
894
895         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
896         requeue statement is dispatching. Do not emit an error when the name is
897         not an entry and the context is a dispatching select. Add code to
898         perform subtype conformance between the formals of the current entry
899         and those of the target interface primitive.
900         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
901         Timed_Entry_Call): Analyze the triggering statement as the first step of
902         the processing. If this is a dispatching select, postpone the analysis
903         of all select statements until the Expander transforms the select. This
904         approach avoids generating duplicate identifiers after the Expander has
905         replicated some of the select statements. In case the Expander is
906         disabled, perform regular analysis.
907         (Check_Triggering_Statement): New routine.
908         (Analyze_Requeue): Exclude any interpretations that are not entries when
909         checking overloaded names in a requeue. Also test type conformance for
910         matching interpretations rather than requiring subtype conformance at
911         that point to conform with the RM's resolution rule for requeues.
912
913 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
914
915         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
916         inherited operation is a defaulted tag-indeterminate call, and there is
917         a statically tagged actual, use the static tag as a controlling actual
918         for the defaulted actual.
919
920 2007-12-13  Geert Bosch  <bosch@adacore.com>
921
922         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
923         context, so do not call Check_Non_Static_Context.
924
925 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
926
927         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
928         whether formal E is an entity which may have parameters.
929
930 2007-12-13  Bob Duff  <duff@adacore.com>
931             Javier Miranda  <miranda@adacore.com>
932             Robert Dewar  <dewar@adacore.com>
933
934         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
935         (Set_Convention): New procedure to set the Convention flag, and in
936         addition make sure the Favor_Top_Level flag is kept in sync (all
937         foreign-language conventions require Favor_Top_Level = True).
938         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
939         to Related_Type.
940         (Collect_Interfaces_Info): Minor update to handle the two secondary
941         dispatch tables. Update occurrence of Related_Interface to Related_Type.
942         (Generate_Parent_Ref): Add parameter to specify entity to check
943         (Is_Preelaborable_Expression): Allow the name of a discriminant to
944         initialize a component of a type with preelaborable initialization.
945         This includes the case of a discriminal used in such a context.
946         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
947         latest Ada 2005 rules about renaming and 'Access of
948         discriminant-dependent components.
949         (Check_Nested_Access): Add handling when there are no enclosing
950         subprograms (e.g. case of a package body).
951         (Find_Parameter_Type): Factor routine from several other compiler files.
952         Remove routine from Find_Overridden_Synchronized_Primitive.
953
954 2007-12-13  Thomas Quinot  <quinot@adacore.com>
955
956         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
957         an invalid access to an uninitialized slot in the
958         Source_File_Index_Table.
959
960 2007-12-13  Thomas Quinot  <quinot@adacore.com>
961
962         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
963
964 2007-12-13  Bob Duff  <duff@adacore.com>
965
966         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
967         access-to-subprogram types in this package.
968
969 2007-12-13  Olivier Hainque  <hainque@adacore.com>
970
971         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
972         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
973         Stack_Overlay_Address and document that we are using an internal
974         abstraction.
975         (Byte_Size, Unsigned_32_Size): Remove, now useless.
976         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
977         consistently throughout the various implementation pieces.
978
979         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
980         overlay we are using to fill the stack area with patterns.
981         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
982         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
983         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
984
985 2007-12-13  Robert Dewar  <dewar@adacore.com>
986
987         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
988
989 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
990
991         * s-tassta.adb: 
992         (Create_Task): Take into account tasks created by foreign threads.
993         Code clean up: use constants instead of hard coded values.
994
995 2007-12-13  Robert Dewar  <dewar@adacore.com>
996
997         * styleg.adb (Check_Comment): More liberal rules for comment placement
998
999 2007-12-13  Olivier Hainque  <hainque@adacore.com>
1000
1001         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
1002         of Procedure Value instead of Frame Pointer as the invocation
1003         identifier associated with the instruction pointer in each traceback
1004         entry.
1005
1006         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
1007         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
1008         Pointer as the invocation identifier passed to tbk$symbolize.
1009
1010         * s-traent-vms.ads, s-traent-vms.adb
1011         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
1012         Procedure Value instead of Frame Pointer as the invocation identifier
1013         passed to tbk$symbolize.
1014
1015 2007-12-13  Robert Dewar  <dewar@adacore.com>
1016
1017         * tbuild.ads, tbuild.adb: 
1018         Fix location of flag for unrecognized pragma message
1019
1020 2007-12-13  Robert Dewar  <dewar@adacore.com>
1021
1022         * treepr.ads, treepr.adb: (pl): implement use of positive value
1023         shorthands
1024
1025 2007-12-13  Robert Dewar  <dewar@adacore.com>
1026
1027         * xeinfo.adb: Remove warnings
1028         * xnmake.adb: Remove warnings
1029         * xsinfo.adb: Remove warnings
1030         * xtreeprs.adb: Remove warnings
1031         * xsnames.adb: Remove warnings
1032
1033         * a-ngcoar.adb: Fix typo.
1034         * s-interr.adb: Minor reformatting
1035         * env.c: Minor reformatting.
1036         * g-bytswa.adb: Minor reformatting.
1037         * g-rannum.ads: Minor documentation improvements
1038         * s-tasinf-mingw.adb: Minor header fix
1039         * a-clrefi.adb: Minor reformatting
1040         * g-sttsne.ads: Minor documentation improvement
1041         * g-sttsne-locking.ads: Minor documentation improvement
1042         * g-soliop-solaris.ads: Minor documentation improvement
1043         * g-soliop-mingw.ads: Minor documentation improvement
1044         * g-soliop.ads: Minor documentation improvement
1045         * exp_aggr.ads: Minor reformatting
1046         * debug.adb: Add documentation for the gprbuild debug flags
1047         * exp_ch2.adb: Use Nkind_In to simplify code throughout
1048         * exp_pakd.adb: Minor reformatting
1049
1050         * g-altive.ads, g-alleve.adb: Remove assertions.
1051         Add comment about minor differences between targets regarding
1052         floating-point operations.
1053
1054         * g-thread.adb: Remove pragma unreferenced.
1055         * lib.ads: Minor reformatting
1056         * par-ch9.adb: Minor reformatting of error messages
1057         * sem_case.adb: Minor reformatting
1058         * s-fileio.adb: Minor reformattinng
1059         * s-vmexta.ads: Minor typo
1060         * vxaddr2line.adb: 
1061         Take into account 'Success' value as per new GNAT warning.
1062
1063 2007-12-13  Vincent Celier  <celier@adacore.com>
1064
1065         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
1066         even on Windows
1067
1068 2007-12-13  Robert Dewar  <dewar@adacore.com>
1069             Bob Duff  <duff@adacore.com>
1070
1071         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
1072         Document that suffixes may be terminations of each others
1073         Add doc for -gnatw.a and -gnatw.A
1074         Document gnatbind -Wx switch
1075         Document BOM recognition
1076         Document pragma Implemented_By_Entry.
1077         Document new units.
1078
1079         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
1080         Add doc for pragma Unreferenced suppressing no entities referenced msg
1081         Add documentation of GNAT.Directory_Operations.Iteration
1082         Add documentation of GNAT.Random_Numbers
1083         Add documentation for pragma Shared.
1084         Correct documentation for Bit_Order
1085         Add documentation for the Pool_Address attribute.
1086         Fix and improve documentation of pragma machine_attribute.
1087         New pragma Fast_Math
1088         Document BOM recognition
1089
1090         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
1091         Add /Wide_Character_Encoding for binder
1092         Add qualifier for the new gnatpp option --no-separate-loop-then
1093
1094 2007-12-13  Matthew Heaney  <heaney@adacore.com>
1095
1096         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
1097         which generic formal operations are called for each operation.
1098
1099 2007-12-13  Olivier Hainque  <hainque@adacore.com>
1100
1101         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
1102         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
1103
1104 2007-12-13  Emmanuel Briot  <briot@adacore.com>
1105
1106         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
1107         Reference_Dir unless we actually need it.
1108
1109 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
1110             Tristan Gingold  <gingold@adacore.com>
1111
1112         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
1113
1114         * s-osprim-vms.adb,
1115         a-calend-vms.adb: Remove pragma warning off and add pragma
1116         unreferenced.
1117
1118 2007-12-13  Robert Dewar  <dewar@adacore.com>
1119
1120         * impunit.adb: Add entries for missing units
1121
1122         * Makefile.rtl: Add new run-time units.
1123
1124         * Make-lang.in:  Update dependencies.
1125
1126 2007-12-13  Bob Duff  <duff@adacore.com>
1127
1128         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
1129         types, set Can_Use_Internal_Rep appropriately, based on
1130         Always_Compatible_Rep_On_Target.
1131
1132 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
1133             Arnaud Charlet  <charlet@adacore.com>
1134
1135         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
1136         it to the front end and setting the aamp_target environment variable
1137         to the switch's argument to ensure that gnaampbind and gnaamplink will
1138         take the specified library into account.
1139         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
1140         target, since the CIL compiler supports an "object" file (.il files).
1141
1142 2007-12-13  Vincent Celier  <celier@adacore.com>
1143
1144         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
1145         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
1146
1147 2007-12-13  Geert Bosch  <bosch@adacore.com>
1148
1149         * s-parame-vxworks.adb: 
1150         Update comments to reflect usage of this package by Nucleus.
1151
1152 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
1153
1154         * i-vxwork.ads: Kill new warning on Convention C, since changing the
1155         spec would break code.
1156
1157         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
1158
1159         * system-vxworks-alpha.ads: Removed.
1160
1161 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
1162
1163         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
1164
1165 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
1166
1167         PR ada/34366
1168         * sem_ch3.adb (Designates_T): New function.
1169         (Mentions_T): Factor reusable part of the logic into Designates_T.
1170         Consider non-access parameters and access and non-access result.
1171         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
1172         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
1173
1174         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
1175
1176 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
1177
1178         PR ada/34361
1179         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
1180         the new implementation of target-specific calls.
1181
1182 2007-12-07  Olivier Hainque  <hainque@adacore.com>
1183
1184         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
1185         the designated full view, only follow a second level Full_View link
1186         for Non_Limited_Views of from_limited_with references.
1187         
1188 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
1189
1190         PR ada/15805
1191         * sem_ch6.adb (Process_Formals): Prevent an access type formal
1192         to be initialized with an access to constant object.
1193
1194         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
1195         when an access to constant is used to initialize an access
1196         value.
1197
1198         PR ada/21346
1199         * a-direct.adb (Compose): Containing_Directory can be an empty string.
1200
1201 2007-12-07  Olivier Hainque  <hainque@adacore.com>
1202
1203         PR ada/34173
1204         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
1205         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
1206         this is from an alignment clause on the GNAT entity.
1207         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
1208         to distinguish the case where we set it from the type's alignment.
1209         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
1210         whether this alignment was set from an explicit alignment clause.
1211
1212 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
1213
1214         * decl.c (make_packable_type): Revert last change.
1215         (gnat_to_gnu_field): Avoid setting size and position multiple times.
1216         * utils.c (finish_record_type): Retrieve the real name of the type.
1217
1218 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
1219
1220         * trans.c (lvalue_required_p): Take base node directly instead
1221         of its parent.  Rename second parameter to 'gnu_type'.
1222         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
1223         <N_Slice>: Likewise.
1224         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
1225         Adjust calls to lvalue_required_p.
1226
1227 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
1228
1229         PR ada/21489
1230         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
1231         parameters of an entry call.
1232
1233 2007-12-03  Robert Dewar <dewar@adacore.com>
1234             Samuel Tardieu  <sam@rfc1149.net>
1235
1236         PR ada/34287
1237         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
1238         of variables declared in a library-level package.
1239     
1240 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
1241
1242         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
1243         of Empty_String'Unchecked_Access.
1244
1245         * Makefile.in: Add support for sh4-linux.
1246
1247         * system-linux-sh4.ads: New file.
1248
1249 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
1250
1251         PR ada/33722
1252         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
1253         and its argument must not be free()ed.
1254
1255 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
1256
1257         * decl.c (make_packable_type): Retrieve the real name of the type.
1258         (maybe_pad_type): Simplify similar code.
1259
1260 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
1261
1262         PR ada/15804
1263         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
1264         than an identifier is used after "case" in a variant_part.
1265
1266         PR ada/17318
1267         * par-ch4.adb (Is_Parameterless_Attribute): New map.
1268         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
1269         attribute name or not depending on the new map.
1270
1271         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
1272         returning a string or a type will not be called with improper
1273         arguments.
1274
1275         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
1276
1277         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
1278
1279         PR ada/32792
1280         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
1281         Signal an error when attribute argument is a fixed-point value of
1282         an unknown type.
1283
1284         PR ada/22559
1285         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
1286         a derived ordinary fixed point type.
1287
1288         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
1289         RM_Size when a Small clause is found.
1290
1291 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
1292
1293         PR 34081/C++
1294         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
1295         Pass 'false' for the new allocate_struct_function parameter.
1296         * utils.c (build_function_stub): Likewise.
1297
1298 2007-11-25  Richard Guenther  <rguenther@suse.de>
1299
1300         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
1301         (gnat_poplevel): Likewise.
1302
1303 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
1304
1305         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
1306         strict alignment, no alignment clause and a known static size, cap
1307         the type alignment to the greatest power of 2 factor of the size.
1308         (gnat_to_gnu_field): If the field has a component clause, is aliased
1309         or of a type with strict alignment, require that its size be equal to
1310         that of the type.
1311         (validate_size): Use the type size as the minimum size for a type with
1312         strict alignment.
1313
1314 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
1315
1316         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
1317         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
1318         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
1319         Use 'Access instead of 'Unchecked_Access in second and third
1320         arguments of pthread_sigmask.
1321
1322 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1323
1324         * decl.c (ceil_alignment): New function.
1325         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
1326         (make_packable_type): Likewise.
1327
1328 2007-11-22  Olivier Hainque  <hainque@adacore.com>
1329
1330         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
1331         to fit in 80 columns.
1332
1333 2007-11-21  Aurelien Jarno <aurelien@aurel32.net>
1334
1335         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
1336         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
1337
1338 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
1339
1340         PR ada/34098
1341         * misc.c (gnat_adjust_rli): Delete.
1342         (gnat_init): Do not initialize the translation code here.
1343         Do not call set_lang_adjust_rli.
1344         * trans.c (init_code_table): Make static.
1345         (gnat_init_stmt_group): Delete.
1346         (gigi): Initialize the translation code entirely here.
1347         Emit debug info for the common types here instead of...
1348         * utils.c (gnat_init_decl_processing): ...here.
1349         * gigi.h (init_code_table): Delete.
1350         (gnat_init_stmt_group): Likewise.
1351
1352 2007-11-16  Olivier Hainque  <hainque@adacore.com>
1353
1354         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
1355         retrieving an allocator return value from a super-aligned address from
1356         here to ...
1357         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
1358         expect a super-aligned address for a fat or thin pointer.
1359         
1360 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
1361
1362         * trans.c (call_to_gnu): Always set the source location on the call
1363         expression.  If the function returns-by-target, also set it on the
1364         address expression.
1365
1366 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
1367
1368         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
1369         sections of non-supported Interix target.
1370
1371         * s-osinte-interix.ads: Removed.
1372
1373         * i-cstrin.ads (chars_ptr): Make it a C convention type.
1374
1375 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
1376
1377         * a-tasatt.adb: Add a comment at the beginning of the package
1378         explaining why in general 'Unchecked_Access must be used instead
1379         of 'Access.
1380
1381         * sem_prag.adb (Process_Convention): Move the test for the
1382         entity on which the Convention pragma applies down to also
1383         forbid pragma Convention on enumeration literals reached
1384         through renamings.
1385
1386 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
1387
1388         * a-tasatt.adb: Revert previous change for this file as it will
1389         generate an error when this package is instantiated from a
1390         local context.
1391
1392 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
1393
1394         * a-tasatt.adb: Type Wrapper should be declared in comment instead
1395         of already declared type Node_Access.
1396         Use 'Access instead of 'Unchecked_Access when applicable. Local
1397         lifetime is the one of the package.
1398         (Set_Value): W is allocated on the heap.
1399
1400         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
1401         applicable.
1402         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
1403         access type.
1404         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
1405         access type.
1406
1407         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
1408         applicable.
1409         (elaboration code): Timer_Queue lifetime is the one of the
1410         package.
1411
1412         * tracebak.c (i386 alternative): Remove useless comparaison
1413         which is always false; LOWEST_ADDRESS is 0 and is never greater
1414         than an unsigned integer.
1415
1416         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
1417         embedded check for "Ada_Version >= Ada_05".
1418
1419 2007-11-07  Olivier Hainque  <hainque@adacore.com>
1420
1421         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
1422         craft and expand comment.
1423
1424 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
1425
1426         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
1427
1428 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
1429
1430         * misc.c (gnat_handle_option): Replace call to abort with
1431         call to gcc_unreachable.
1432         (gnat_init): Likewise.
1433         (gnat_expand_expr): Likewise.
1434         (fp_prec_to_size): Likewise.
1435         (fp_size_to_prec): Likewise.
1436
1437 2007-10-23  Richard Guenther  <rguenther@suse.de>
1438
1439         PR bootstrap/33608
1440         * tracebak.c: #undef abort after including system.h.
1441
1442 2007-10-20  Danny Smith <dannysmith@users.sourceforge.net>
1443
1444         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
1445         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
1446         for win32 targets.
1447         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
1448
1449 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
1450
1451         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
1452         Set the protection status of the guard page based on the value of On.
1453
1454         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
1455
1456         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
1457         (Exit_Task): Pass False to Hide_Yellow_Zone.
1458
1459 2007-10-15  Robert Dewar  <dewar@adacore.com>
1460
1461         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
1462         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
1463         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb, 
1464         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb, 
1465         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb, 
1466         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb, 
1467         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb, 
1468         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb, 
1469         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb, 
1470         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
1471         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb, 
1472         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb, 
1473         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb, 
1474         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb, 
1475         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb, 
1476         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
1477         Minor reformatting.
1478         Add Unreferenced and Warnings (Off) pragmas for cases of
1479         variables modified calls where they are IN OUT or OUT parameters and
1480         the resulting values are not subsequently referenced. In a few cases,
1481         we also remove redundant code found by the new warnings.
1482
1483         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads, 
1484         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
1485         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
1486         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
1487         warning controlled by -gnatw.o that warns on cases of out parameter
1488         values being ignored.
1489
1490 2007-10-15  Geert Bosch  <bosch@adacore.com>
1491
1492         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
1493
1494         * expect.c: Initial port to arm-mentor-nucleus.
1495         Use kill for __gnat_kill() on VMS.
1496
1497 2007-10-15  Emmanuel Briot  <briot@adacore.com>
1498
1499         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
1500         value.
1501         (Xref_Record): Change type for Line, since in the case of a reference to
1502         a predefined entity (as happens for array index types), the line is set
1503         to 0.
1504         Add support for parsing multiple array index types info, or
1505         multiple inherited interfaces info. This information cannot be stored
1506         in Xref_Entity_Record, which only supports a single instance of Tref_*,
1507         and is therefore stored in the list of references instead. It has a
1508         special treatement later on in tools that use this information.
1509
1510 2007-10-15  Tristan Gingold  <gingold@adacore.com>
1511
1512         * debug.adb: Document use of -gnatd.a and -gnatd.I
1513
1514         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
1515
1516 2007-10-15  Javier Miranda  <miranda@adacore.com>
1517
1518         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
1519         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
1520         care of access to class-wide interface types plus removal of bizarre
1521         conversion of tagged object to access type (reported by Gary
1522         Dismukes). After this patch there is no need to perform any
1523         additional management on these nodes in Expand_Interface_Actuals.
1524
1525         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
1526         that handles use of 'Access and 'Unchecked_Access applied to
1527         actuals covering interface types. Such code is now
1528         centralized in Expand_N_Attribute_Reference.
1529
1530 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
1531
1532         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
1533         of tagged types whose ultimate ancestor is a CPP type.
1534         (Freeze_Array_Type): For a packed array type, generate an initialization
1535         procedure if the type is public, to handle properly a client that
1536         specifies Normalize_Scalars.
1537
1538 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
1539
1540         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
1541         inside a generic body, retrieve the full view of the entry family
1542         discrete subtype if available.
1543
1544 2007-10-15  Thomas Quinot  <quinot@adacore.com>
1545
1546         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
1547         attempt to generate stubs for hidden primitive operations.
1548
1549 2007-10-15  Vincent Celier  <celier@adacore.com>
1550
1551         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
1552         returning None, used when there is no platform specific body for
1553         MLib.Tgt.Specific.
1554
1555 2007-10-15  Bob Duff  <duff@adacore.com>
1556
1557         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
1558         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
1559         the generic Heap_Sort_G, in order to avoid trampolines.
1560
1561 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
1562             Jose Ruiz  <ruiz@adacore.com>
1563
1564         * vx_stack_info.c: New file.
1565
1566         * i-forbla-unimplemented.ads: New file.
1567
1568         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
1569         for unsupported configurations; use it on VMS targets instead of the
1570         real one.
1571         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
1572         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
1573         used by VxWorks targets to have access to task-specific data and be
1574         able to extract the stack boundaries for stack checking.
1575         Use system-vms-ia64.ads on ivms.
1576
1577         * Make-lang.in: Update dependencies.
1578
1579         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
1580         (vx_stack_info.c).
1581
1582 2007-10-15  Vincent Celier  <celier@adacore.com>
1583
1584         * snames.adb, snames.ads: Add new standard name runtime_library_dir
1585
1586         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
1587
1588         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
1589
1590         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
1591         the source is unknown.
1592
1593         * prj-ext.adb: Spelling error fix
1594
1595         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
1596         95 reserved word in its name.
1597         (Process_Project_Level_Array_Attributes): Process new attribute
1598         Runtime_Library_Dir.
1599
1600         * prj-part.adb (Parse_Single_Project): Do not check the name of the
1601         config project against the user project names.
1602
1603         * prj-proc.adb (Expression): In multi-language mode, indexes that do
1604         not include a dot are always case insensitive.
1605         (Process_Declarative_Items): Ditto
1606         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
1607         detected.
1608
1609         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
1610         True, compare both indexes in lower case.
1611
1612 2007-10-15  Robert Dewar  <dewar@adacore.com>
1613
1614         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
1615
1616 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
1617
1618         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
1619         association for an access component, add an association with null as
1620         the expression. Remove testing for array subtypes and the setting in
1621         that case of Ctyp to the array component type, which prevented proper
1622         inclusion of an association for null-initialized arrays. Collapse
1623         condition that tests for array subtypes into just a test of
1624         Is_Partially_Initialized_Type (which already covers arrays anyway).
1625
1626 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
1627
1628         * sem_ch12.adb: Minor code reformatting.
1629         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
1630         find the parent package which may have been hidden by local
1631         declarations.
1632
1633 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
1634
1635         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
1636         flag of derived concurrent types, taking into account the flag setting
1637         on the parent subtype and any new set of discriminants.
1638
1639 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
1640
1641         * sem_ch4.adb: Minor code and comment reformatting.
1642         (Analyze_Allocator): When the designated type of an unconstrained
1643         allocator is a record with unknown discriminants or an array with
1644         unknown range bounds, emit a detailed error message depending on the
1645         compilation mode and whether the designated type is limited.
1646
1647 2007-10-15  Tristan Gingold  <gingold@adacore.com>
1648
1649         * system-vms-ia64.ads: New file.
1650
1651         * system-vms_64.ads: Minor comment fix.
1652
1653 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
1654
1655         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
1656         body generated for a function with a controlling result that is a null
1657         extension, discard the generated body in favor of the current explicit
1658         one.
1659
1660 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
1661
1662         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
1663         examining its original form, to handle properly operator calls that
1664         have been rewritten.
1665
1666 2007-10-15  Olivier Hainque  <hainque@adacore.com>
1667
1668         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
1669         instead of a procedure value in each traceback entry.
1670
1671         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
1672         instead of procedure value to TBK$SYMBOLIZE.
1673
1674         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
1675         field.
1676         (TB_Entry_For): Account for the PV/FP renaming.
1677
1678         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
1679         add comment.
1680         (Null_TB_Entry): Account for change of component name.
1681         (PV_For): Rename as FP_For.
1682
1683 2007-10-15  Tristan Gingold  <gingold@adacore.com>
1684
1685         * trans.c (gnat_to_gnu): Remove the padding structure more often.
1686         This optimize assignment to over-aligned record.
1687
1688 2007-10-15  Emmanuel Briot  <briot@adacore.com>
1689
1690         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
1691         interfaces.
1692
1693         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
1694         type, for dispatching calls.
1695
1696 2007-10-15  Vincent Celier  <celier@adacore.com>
1697             Robert Dewar  <dewar@adacore.com>
1698
1699         * gnat_ugn.texi: Add documentation for switches --version and --help
1700         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
1701         gnatxref, gnatfind, gnatls, and gnatclean.
1702         Document -gnatw.o.
1703         Mention attribute Excluded_Source_Dirs
1704         Replace obsolescent attribute Locally_Removed_Files with attribute
1705         Excluded_Source_Files.
1706         Improve documentation of -u (gnatbind)
1707         Document how to do reliable stack checking for the environmental task
1708         on iVMS.
1709
1710         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
1711         Document attribute Excluded_Source_Files and indicate that attribute
1712         Locally_Removed_Files is obsolescent.
1713
1714 2007-10-15  Thomas Quinot  <quinot@adacore.com>
1715
1716         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
1717
1718         * gen-soccon.c: 
1719         Update documentation to note that OpenVMS 8.3 or later must be used
1720         to generate g-soccon-vms.ads.
1721
1722         * atree.adb: Add ??? comment
1723
1724         * exp_util.adb: Minor reformatting.
1725         Add ??? comment in Kill_Dead_Code.
1726
1727 2007-10-15  Robert Dewar  <dewar@adacore.com>
1728
1729         * errout.ads: Comment clarification
1730
1731         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
1732         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
1733
1734         * lib.ads: Comment update
1735
1736         * init.c: Minor reformatting.
1737
1738         * sem_attr.adb: Minor formatting
1739
1740         * osint-b.ads: Minor reformatting
1741
1742         * sem_ch9.adb: Implement -gnatd.I switch
1743
1744         * g-comlin.adb: (Start): Fix handling of empty command line.
1745
1746         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
1747         even when -rules follows the -cargs section.
1748
1749 2007-10-08  Ollie Wild  <aaw@google.com>
1750
1751         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
1752         gnat_return_tree.
1753         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
1754         gnat_return_tree.
1755         (gnat_eh_runtime_type): Removed.
1756         (gnat_return_tree): New function.
1757
1758 2007-10-08  Ben Elliston  <bje@au.ibm.com>
1759
1760         PR ada/33454
1761         Revert:
1762         2007-08-31  Ben Elliston  <bje@au.ibm.com>
1763
1764         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
1765         when compiling for powerpc64-*-linux.
1766         * system-linux-ppc64.ads: New file.
1767
1768 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
1769
1770         Mapped location support
1771         * back_end.adb (Call_Back_End): Pass information about source
1772         files instead of units to gigi.
1773         * gigi.h (struct File_Info_Type): New.
1774         (gigi): Rename and change type of number_units parameter, change
1775         type of file_info_ptr parameter.
1776         * trans.c (number_files): New global variable.
1777         (gigi): Rename and change type of number_units parameter, change
1778         type of file_info_ptr parameter.
1779         If mapped location support is enabled, create the isomorphic mapping
1780         between source files and line maps.
1781         (Sloc_to_locus): If mapped location support is enabled, translate
1782         source location into mapped location.
1783         (annotate_with_node): Rename into set_expr_location_from_node.
1784         Call set_expr_location instead of annotate_with_locus.
1785         (Pragma_to_gnu): Adjust for above change.
1786         (Loop_Statement_to_gnu): Likewise.
1787         (call_to_gnu): Likewise.
1788         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
1789         (gnat_to_gnu): Likewise.
1790         (add_stmt_with_node): Likewise.
1791         (add_cleanup): Likewise.
1792         * utils.c (gnat_init_decl_processing): Do not set input_line.
1793
1794 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
1795
1796         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
1797         (Applicable_Use): Emit a warning when a package tries to use itself.
1798         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
1799         is already in use or the package where it is declared is in use or is
1800         declared in the current package.
1801         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
1802
1803         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
1804         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
1805         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
1806
1807 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
1808
1809         * a-calend-vms.adb, a-calend.adb: 
1810         Add a section on leap seconds control along with two entities used to
1811         enable and disable leap seconds support. The array Leap_Second_Times is
1812         now constant and contains hard time values pre-generated. Remove
1813         all elaboration code used to populate the table of leap seconds.
1814
1815         * bindgen.adb: 
1816         Add entity Leap_Seconds_Support to the list of global run-time variables
1817         along with a comment on its usage and values.
1818         (Gen_Adainit_Ada): Add code to generate the declaration and import of
1819         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
1820         or one (enabled) depending on the presence of binder switch "-y".
1821         (Gen_Adainit_C): Add code to generate the declaration of external int
1822         __gl_leap_seconds_support. Set is value to zero (disabled) or one
1823         (enabled) depending on the presence of binder switch "-y".
1824
1825         * init.c: Add __gl_leap_seconds_support to the list of global values
1826         computed by the binder.
1827
1828 2007-09-26  Jerome Guitton  <guitton@adacore.com>
1829
1830         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
1831         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
1832          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
1833         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
1834
1835         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
1836
1837         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
1838         function which can be called by the debugger to interrupt the tasks of
1839         an Ada application asynchronously, as needed on VxWorks.
1840         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
1841
1842         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
1843         renamed from Stop_All_Tasks. Update comments.
1844         (Stop_All_tasks): New function declaration.
1845
1846 2007-09-26  Olivier Hainque  <hainque@adacore.com>
1847
1848         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
1849         #include <utime.h> and #define GCC_RESOURCE_H before
1850         #include <sys/wait.h>.
1851         Add more protections in __gnat_translate_vms.
1852
1853         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
1854         #include <sys/wait.h>.
1855
1856 2007-09-26  Thomas Quinot  <quinot@adacore.com>
1857             Sergey Rybin  <rybin@adacore.com>
1858
1859         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
1860
1861         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
1862         where it belongs.
1863
1864         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
1865
1866         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
1867         where it belongs.
1868
1869         * sem_dist.ads: Minor comment fix
1870
1871         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
1872
1873 2007-09-26  Javier Miranda  <miranda@adacore.com>
1874             Eric Botcazou  <ebotcazou@adacore.com>
1875
1876         * a-tags.adb: 
1877         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
1878          indirection added to the HT_Link component of the TSD. This is required
1879          to statically allocate the TSD.
1880
1881         * a-tags.ads: 
1882         Minor reordering of the declarations in the private part. Required to
1883         add a level of indirection to the contents of the TSD component HT_Link.
1884         This is required to statically allocate the TSD.
1885
1886         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
1887         Is_Statically_Allocated set from constant objects.
1888         Do not make exported constants created by the compiler volatile.
1889         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
1890         as read-only.
1891
1892         * trans.c (Identifier_to_gnu): For constants, unshare initializers
1893         before returning them.
1894
1895         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
1896         public part of the package.
1897         (Make_DT): Move HT_Link component out of the TSD record. For this
1898         purpose Make_DT now declares a separate object that stores the
1899         HT_Link value, and initializes the TSD component with the address
1900         of this new object. The addition of this level of indirection is
1901         required to statically allocate the TSD because the TSD cannot
1902         have variable components.
1903         (Expand_Interface_Conversion): Improve the expanded code.
1904         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
1905
1906         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
1907         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
1908         if we are building static dispatch tables then we must not generate
1909         extra code to register the primitive because the dispatch table will
1910         be built at the end of the library package; otherwise we notify that
1911         we cannot build the static dispatch table.
1912
1913 2007-09-26  Robert Dewar  <dewar@adacore.com>
1914
1915         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
1916         overlays.
1917
1918         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
1919         (Analyze_Record_Representation_Clause): Suppress junk warning for
1920         missing component clause.
1921         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
1922         tests for controlled type overlay to composites with controlled
1923         components.
1924         (Analyze_Record_Representation_Clause): Add reference for component name
1925
1926 2007-09-26  Javier Miranda  <miranda@adacore.com>
1927             Gary Dismukes  <dismukes@adacore.com>
1928
1929         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
1930         for thunks associated with interface types.
1931
1932         * einfo.ads: Improve documentatation of Is_Internal
1933         (Is_Thunk): New attribute applicable to subprograms. True for thunks
1934         associated with interface types.
1935         Extensive comment fixes regarding flags that appear in all entities. The
1936         documentation is now consistent for all such flags (there were a number
1937         of errors in the documentation in this regard).
1938
1939         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
1940
1941         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
1942         of these procedures are passed a function call that already has
1943         build-in-place actuals (testing new flag
1944         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
1945         the case where processing continues.
1946         (Expand_Call): If the call is generated from a thunk body then we
1947         propagate the extra actuals associated with the accessibility
1948         level of the access type actuals.
1949
1950         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
1951         of each extra formal of a protected operation to reference the
1952         corresponding extra formal of the subprogram denoted by the
1953         operation's Protected_Body_Subprogram.
1954         
1955         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
1956         N_Function_Call nodes.
1957
1958 2007-09-26  Robert Dewar  <dewar@adacore.com>
1959
1960         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
1961
1962         * debug.adb: Add d.s flag.
1963
1964 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
1965
1966         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
1967         debug variable so that it won't be initialized when pragma
1968         Initialize_Scalars is in effect.
1969
1970 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
1971
1972         * freeze.adb (Freeze_Entity): Remove check for preelaborable
1973         initialization of a full view. This is moved to
1974         Analyze_Package_Specification.
1975
1976         * sem_ch7.adb (Analyze_Package_Specification): Add check for
1977         preelaborable initialization of a full view in entity loop.
1978         (Uninstall_Declarations): If entity is a use-visible compilation unit,
1979         its child units are use-visible only if they are visible child units.
1980
1981         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
1982         whether an expression can be used within a type declaration that
1983         requires preelaborable init.
1984         (Check_Components): Replace inline code that does partial checking for
1985         preelaborable default expressions with call to
1986         Is_Preelaborable_Expression.
1987         (Has_Preelaborable_Initialization): In the case of a generic actual
1988         subtype, (that is, Is_Generic_Actual is True), return the result of
1989         applying Has_Preelaborable_Initialization to the generic actual's base
1990         type.
1991
1992 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
1993
1994         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
1995         call to Jan_1_Day _Of_Week to optimize its performance.
1996         (Is_Leap): Move the routine to the scope of Week_In_Year.
1997         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
1998         weekday on which January 1 falls of Year - 1 and Year + 1. This function
1999         avoids calling Time_Of and Split, thus making it more efficent.
2000         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
2001
2002         * g-calend.ads (Week_In_Year): Change comment to reflect new
2003         implementation.
2004
2005 2007-09-26  Emmanuel Briot  <briot@adacore.com>
2006
2007         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
2008         Command_Line): New types
2009         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
2010         support for defining how switches can be grouped on a command line (as
2011         is the case for -gnatw... for GNAT), and how simple switches can be
2012         used as aliases for more complex switches (-gnatwa is same as
2013         -gnatwbcef...)
2014         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
2015         (Start, Current_*): New subprograms
2016         Added support for parsing an array of strings in addition to the real
2017         command line.
2018         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
2019          be moved from the body to the private part of the spec.
2020         (*): All subprograms now have an extra parameter with default value to
2021         specify which parser should be used. For backward compatibility, it
2022         defaults to parsing the command line of the application. They were also
2023         modified to properly handle cases where each of the argument does not
2024         start at index 1 (which is always true for Ada.Command_Line, but not
2025         when processing any Argument_List).
2026         (Free): New subprogram
2027         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
2028         Argument): New subprograms
2029         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
2030         special characters like ':', '=',... are now handled in a single place,
2031         which makes the code more extensible eventually.
2032         (Getopt, Full_Switch): When the switch was returned as part of the
2033         special character '*', make sure it is prepended by the switch character
2034         ('-' in general), so that the application knows whether "foo" or "-foo"
2035         was specified on the command line.
2036
2037 2007-09-26  Florian Villoing  <villoing@adacore.com>
2038
2039         * g-dirope.adb (Remove_Dir): In case we are removing directories
2040         recursively, make sure that if an exception is raised during the
2041         processing, the current working directory is reset to its initial
2042         value before propagating the exception.
2043
2044 2007-09-26  Vincent Celier  <celier@adacore.com>
2045
2046         * gnatbind.adb: If there are several ALI files specified and there is
2047         a main program to bind, the first ALI is expected to contain the main
2048         subprogram and the names of the binder generated files will be derived
2049         from the first ALI file name.
2050         (Gnatbind): Fix insertion character in invocation of Error_Msg
2051
2052 2007-09-26  Vincent Celier  <celier@adacore.com>
2053
2054         * gnatcmd.adb (Check_Files): Do not include sources that have been
2055         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
2056
2057 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
2058
2059         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
2060         information about each of its index types, following the type
2061         reference for its component type.
2062
2063 2007-09-26  Vincent Celier  <celier@adacore.com>
2064
2065         * make.adb: (Kill): New procedure (__gnat_kill imported)
2066         (Running_Compile, Outstanding_Compiles): Global variables that
2067         were previously local to procedure Compile_Sources.
2068         (Sigint_Intercepted): Send signal SIGINT to all outstanding
2069         compilation processes.
2070
2071         (Gnatmake): If project files are used, create the mapping of all the
2072         sources, so that the correct paths will be found.
2073
2074         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
2075
2076 2007-09-26  Vincent Celier  <celier@adacore.com>
2077
2078         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
2079
2080         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
2081         Replace components Compiler_Min_Options and Binder_Min_Options with
2082         Compiler_Required_Switches and Binder_Required_Switches in record
2083         Language_Config.
2084         Remove components Default_Language and Config in Project_Tree_Data,
2085         no longer used.
2086
2087         * prj-attr.adb: New attributes Required_Switches (<language>) in
2088         packages Compiler and Binder.
2089
2090         * prj-nmsc.adb: Major rewrite of the processing of configuration
2091         attributes for gprbuild. No impact on GNAT tools.
2092
2093         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
2094         process configuration attributes: this is done in Prj.Nmsc.Check.
2095         (Recursive_Process): Make a full copy of packages inherited from project
2096         being extended, instead of a shallow copy.
2097         (Process_Project_Tree_Phase_1): New procedure
2098         (Process_Project_Tree_Phase_1): New procedure
2099         (Process): Implementation now uses the two new procedures
2100
2101         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
2102         from the project config, not the tree config that no longer exists.
2103
2104 2007-09-26  Vincent Celier  <celier@adacore.com>
2105
2106         * Make-lang.in: Update dependencies..
2107
2108 2007-09-26  Vincent Celier  <celier@adacore.com>
2109
2110         * osint.adb, osint.ads: Minor reformatting
2111
2112         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
2113
2114 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
2115
2116         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
2117         message to cite use of <> in aggregate component associations rather
2118         than wrongly indicating use of limited aggregates.
2119
2120 2007-09-26  Robert Dewar  <dewar@adacore.com>
2121
2122         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
2123         Address_Taken.
2124
2125 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
2126
2127         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
2128         ancestor of the derived type, the operations are inherited from the
2129         primary dispatch table of the parent.
2130         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
2131         when the context is an explicit type conversion.
2132
2133 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
2134
2135         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
2136         rule for qualified expressions properly, to detect improper conversions
2137         and resolve some cases of overloading.
2138
2139 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
2140
2141         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
2142         proper kind of reference to the primitive operation, for better source
2143         navigation.
2144         (Valid_Conversion): A tagged conversion is legal if both operands are
2145         tagged.
2146
2147 2007-09-26  Robert Dewar  <dewar@adacore.com>
2148
2149         * sem_warn.adb (Check_References): Catch more cases of unreferenced
2150         packages.
2151
2152 2007-09-26  Vincent Celier  <celier@adacore.com>
2153
2154         * snames.adb, snames.ads: Change Include_Option to Include_Switches
2155
2156 2007-09-26  Robert Dewar  <dewar@adacore.com>
2157
2158         * s-wchstw.adb: provide messages for run time unit exceptions
2159
2160         * a-witeio.adb: Minor reformatting
2161
2162         * exp_ch13.adb: Minor reformatting
2163
2164 2007-09-26  Sergey Rybin  <rybin@adacore.com>
2165
2166         * vms_data.ads: Revise gnatmetric qualifiers.
2167         Add qualified for the new gnatbind option '-y'
2168
2169         * gnat_ugn.texi: Revise the gnatmetric section.
2170         Add entry for new gnatbind option '-y'.
2171
2172         * gnat_rm.texi: Minor spelling correction.
2173         Document restriction on overlaying controlled types
2174
2175 2007-09-26  Vincent Celier  <celier@adacore.com>
2176
2177         * makegpr.adb (Link_Executables): Do not fail when the root project has
2178         no sources, but is an extending project.
2179
2180 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
2181
2182         * trans.c: Fix misplaced #define.
2183
2184 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
2185
2186         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
2187         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
2188
2189 2007-09-21  Olivier Hainque  <hainque@adacore.com>
2190
2191         * utils.c (type_for_nonaliased_component_p): Return false for
2192         all AGGREGATE_TYPEs.
2193
2194 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
2195
2196         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
2197         object covered by 13.3(19) volatile.
2198
2199 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
2200
2201         PR ada/26797
2202         PR ada/32407
2203         * utils.c (unchecked_convert): Use a subtype as the intermediate type
2204         in the special VIEW_CONVERT_EXPR case.
2205
2206 2007-09-12  Robert Dewar  <dewar@adacore.com>
2207
2208         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
2209
2210         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
2211         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
2212         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
2213         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
2214         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
2215         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
2216         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
2217         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
2218         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads, 
2219         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads, 
2220         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb, 
2221         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb, 
2222         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads, 
2223         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads, 
2224         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads, 
2225         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads, 
2226         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
2227         pragma Compiler_Unit and adds it to relevant library units.
2228
2229 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
2230
2231         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
2232         a box need not correspond to any component.
2233
2234 2007-09-12  Robert Dewar  <dewar@adacore.com>
2235
2236         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
2237         the tasking version of the Ada run time when foreign threads are
2238         present and there are no explicit Ada tasks or tasking constructs.
2239
2240         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
2241
2242 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
2243
2244         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
2245         the usage of switch -y.
2246
2247         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
2248         when switch -y is present.
2249
2250         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
2251         leap seconds in Ada.Calendar and its children.
2252
2253 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
2254
2255         * a-extiti.ads (Timer): The discriminant is a "not null access
2256         constant" in the Reference Manual.
2257         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
2258
2259 2007-09-12  Robert Dewar  <dewar@adacore.com>
2260
2261         * a-swuwha.adb: Remove junk RM header
2262
2263 2007-09-12  Vincent Celier  <celier@adacore.com>
2264
2265         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
2266         indicator
2267
2268         * g-bytswa.ads: Minor reformatting
2269
2270 2007-09-12  Thomas Quinot  <quinot@adacore.com>
2271
2272         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads: 
2273         Add new constant Thread_Blocking_IO, always True by default, set False
2274         on a per-runtime basis.
2275         (Need_Netdb_Buffer): New constant.
2276
2277 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
2278
2279         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
2280         Added renames for corresponding functions in System.Partition_Interface.
2281
2282 2007-09-12  Doug Rupp  <rupp@adacore.com>
2283
2284         * Makefile.in: Remove VMS specific System.CRTL packages which are no
2285         longer needed.
2286
2287         * s-crtl-vms64.ads: Removed.
2288
2289 2007-09-12  Olivier Hainque  <hainque@adacore.com>
2290
2291         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
2292         with discriminant constraints, generalize the code for BIT_FIELDs
2293         to PACKED fields of constant size and propagate DECL_PACKED.
2294
2295 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
2296
2297         * decl.c (array_type_has_nonaliased_component): New predicate.
2298         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
2299         set the TYPE_NONALIASED_COMPONENT flag on the type.
2300         <E_Array_Subtype>: Likewise.
2301         * gigi.h (type_for_nonaliased_component_p): Declare.
2302         * utils.c (type_for_nonaliased_component_p): New predicate.
2303         (create_field_decl): Invoke the above predicate to set the
2304         DECL_NONADDRESSABLE_P flag on the field.
2305
2306 2007-09-11  Javier Miranda  <miranda@adacore.com>
2307
2308         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
2309         in library level record type entities if we are generating statically
2310         allocated dispatch tables.
2311
2312         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
2313         importing/exporting the _tag declaration by new code
2314         importing/exporting the dispatch table wrapper. This change allows us
2315         to statically allocate of the TSD.
2316         (Make_DT.Export_DT): New procedure.
2317         (Build_Static_DT): New function.
2318         (Has_DT): New function.
2319
2320         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
2321         True_Constant and Current_Value. Required to statically
2322         allocate the dispatch tables.
2323         (Check_Allocator): Make function iterative instead of recursive.
2324         Also return inner allocator node, when present, so that we do not have
2325         to look for that node again in the caller.
2326
2327 2007-09-11  Jan Hubicka <jh@suse.cz>
2328
2329         * misc.c (gnat_expand_body): Kill.
2330         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
2331
2332 2007-09-10  Robert Dewar  <dewar@adacore.com>
2333
2334         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
2335         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
2336         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2337         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
2338         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
2339         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
2340         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
2341         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
2342         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
2343         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
2344         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
2345         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
2346         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
2347         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
2348         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
2349         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
2350         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
2351         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
2352         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
2353         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
2354         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
2355         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
2356         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
2357         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
2358         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
2359         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
2360         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
2361         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
2362         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
2363         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
2364         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
2365         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
2366         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
2367         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
2368         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
2369         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
2370         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
2371         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
2372         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
2373         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
2374         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
2375         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
2376         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
2377         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
2378         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
2379         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
2380         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
2381         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
2382         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
2383         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
2384         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
2385         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
2386         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
2387         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
2388         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
2389         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
2390         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
2391         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
2392         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
2393         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
2394         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
2395         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
2396         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
2397         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
2398         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
2399         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
2400         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
2401         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
2402         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
2403         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
2404         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
2405         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
2406         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
2407         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
2408         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
2409         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
2410         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
2411         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
2412         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
2413         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
2414         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
2415         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
2416         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
2417
2418 2007-09-10  Emmanuel Briot  <briot@adacore.com>
2419
2420         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
2421         classes ("[]").
2422
2423 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
2424
2425         * adaint.c (__gnat_translate_vms): new function.
2426
2427 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
2428             Thomas Quinot  <quinot@adacore.com>
2429
2430         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
2431         create an abstract subprogram in the case of 'Input. For 'Output we now
2432         create a real spec/body when the type is abstract, since it can
2433         potentially be called.
2434         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
2435         body for 'Output when the type is abstract (only the creation of the
2436         body for 'Input is excluded when the type is abstract).
2437         (Stream_Operation_OK): Add an additional condition in the return
2438         statement, so that False will be returned for TTS_Stream_Input if the
2439         associated tagged type is an abstract extension. Add comments for
2440         return statement.
2441         (Expand_N_Object_Declaration): For the case of a shared passive
2442         variable, insert init proc call only after the shared variable
2443         procedures have been processed, because the IP call needs to undergo
2444         shared passive variable reference expansion, which requires these
2445         procedures to be available (and elaborated).
2446
2447 2007-09-10  Vincent Celier  <celier@adacore.com>
2448
2449         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
2450         parameter Runtime_Project.
2451
2452 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
2453
2454         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
2455         given a box association, the type of the component is discriminated,
2456         and the value of the discriminant is the discriminant of the enclosing
2457         type, retrieve its value from the aggregate itself, where it must have
2458         been supplied.
2459
2460         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
2461         to remove other spurious ambiguities on arithmetic operations involving
2462         literals and addresses, on systems where Address is a visible integer
2463         type, when the operator is called in functional notation.
2464         (Try_Primitive_Operation): Within an instance, a call in prefixed form
2465         is legal when the types match, even if the operation is currently
2466         hidden.
2467
2468 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
2469
2470         * sem_ch12.adb (Build_Local_Package): A formal package with no
2471         associations is legal if all formals have defaults. It is not
2472         equivalent to a formal declared with a box.
2473
2474 2007-09-10  Sergey Rybin  <rybin@adacore.com>
2475
2476         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
2477
2478 2007-09-10  Sergey Rybin  <rybin@adacore.com>
2479
2480         * gnat_ugn.texi: Add description of the new '-lratio' option
2481         Update 7.3.1 section about availability of the feature.
2482
2483 2007-09-10  Thomas Quinot  <quinot@adacore.com>
2484
2485         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
2486         inserted node.
2487
2488 2007-09-10  Olivier Hainque  <hainque@adacore.com>
2489
2490         * Makefile.in: (mips-irix section): Activate build of libgmem.
2491
2492 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
2493
2494         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
2495         x87 registers.
2496
2497 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
2498
2499         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
2500         a debug renaming declaration specially.
2501
2502 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
2503
2504         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
2505         which a constant renaming is treated as a normal object declaration.
2506         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
2507         the N_Indexed_Component case.
2508         <N_Indexed_Component>: Fall through to above case.
2509         <N_Object_Renaming_Declaration>: Return true for all composite types.
2510
2511 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
2512
2513         * decl.c (make_packable_type): If the new type has been given BLKmode,
2514         try again to get an integral mode for it.
2515
2516 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
2517
2518         Re-apply accidentally reverted change:
2519
2520         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
2521
2522         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
2523         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
2524         and _Unwind_SWord with _sleb128_t.
2525
2526 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
2527
2528         * trans.c (convert_with_check): Update call to real_2expN.
2529
2530 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
2531
2532         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
2533         * utils.c (end_subprog_body): Likewise.
2534
2535 2007-09-03  Nick Clifton  <nickc@redhat.com>
2536
2537         * Make-lang.in: Change copyright header to refer to version 3 of
2538         the GNU General Public License and to point readers at the
2539         COPYING3 file and the FSF's license web page.
2540         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
2541         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
2542         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
2543         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
2544         Likewise.
2545
2546 2007-08-31  Vincent Celier  <celier@adacore.com>
2547
2548         PR ada/4720
2549
2550         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb, 
2551         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
2552         (Check_Version_And_Help): New procedure in package Switch to process
2553         switches --version and --help.
2554         Use Check_Version_And_Help in GNAT tools
2555
2556         * make.adb:  Ditto.
2557         (Compile_Sources): Make sure that sources that are "excluded" are not
2558         compiled.
2559         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
2560         project file is used.
2561         (Version_Switch): Remove, moved to Switch
2562         (Help_Switch): Remove, moved to Switch
2563         (Display_Version): Remove, moved to Switch
2564
2565         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
2566         package Switch to process switches --version and --help.
2567         (Display_Version): New procedure
2568
2569         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
2570
2571 2007-08-31  Javier Miranda  <miranda@adacore.com>
2572
2573         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
2574         internal tags.
2575
2576 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
2577
2578         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
2579         (Mark_Non_Null): If the node for which we just generated an access check
2580         is a reference to an *in* parameter and the reference appears in the
2581         declarative part of a subprogram body, mark the node as known non null.
2582
2583 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
2584
2585         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
2586         structure of E_Exception to reflect the new flag.
2587         (Is_Raised, Set_Is_Raised): New inlined routines.
2588         Update the usage of available flag to reflect the addition of Is_Raised.
2589         (Is_Raised, Set_Is_Raised): Bodies of new routines.
2590         (Write_Entity_Flags): Write the status of flag Is_Raised.
2591         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
2592         spurious ambiguities when integer literals appear in the context of an
2593         address type that is a visible integer type.
2594
2595         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
2596         exceptions never being raised.
2597         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
2598         explicitly raised.
2599
2600 2007-08-31  Javier Miranda  <miranda@adacore.com>
2601
2602         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
2603         statement when compiling under restriction No_Exceptions_Proparation.
2604
2605 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
2606
2607         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
2608         initialization aggregate for the type, generate itype references for
2609         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
2610
2611 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
2612
2613         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
2614         library-level package renaming, pass the declaration associated with
2615         the renaming's special debug variable to Qualify_Entity_Names to ensure
2616         that its encoded name is properly qualified.
2617
2618         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
2619         occurring in the list of entities to qualify, and do not attempt to
2620         traverse an entity list in that case. Variables associated with
2621 `       library-level package renamings can now occur in the table.
2622
2623         * exp_dbug.ads: Revise documentation of the encoding for renaming
2624         declarations.
2625
2626 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2627
2628         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
2629         access type points to an unconstrained array.
2630
2631 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
2632
2633         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
2634         conversion.
2635
2636         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
2637         simple redundant qualifications. The check is performed whenever the
2638         expression is a non-overloaded identifier.
2639         (Resolve_Type_Conversion): Enchance the redundant type conversion check
2640         to include loop parameters.
2641         (Valid_Conversion): Avoid generation of spurious error message.
2642
2643 2007-08-31  Bob Duff  <duff@adacore.com>
2644
2645         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
2646         concatenations of string literals into a single literal, in order to
2647         avoid very deep recursion in the front end, which was causing stack
2648         overflow.
2649
2650         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
2651         string, and the right operand is a string literal (the case of "" &
2652         "..."), optimize by avoiding copying the right operand -- just use the
2653         value of the right operand directly.
2654
2655         * stringt.adb (Store_String_Chars): Optimize by growing the
2656         String_Chars table all at once, rather than appending characters one by
2657         one.
2658         (Write_String_Table_Entry): If the string to be printed is very long,
2659         just print the first few characters, followed by the length. Otherwise,
2660         doing "pn(n)" in the debugger can take an extremely long time.
2661
2662         * sem_prag.adb (Process_Interface_Name): Replace loop doing
2663         Store_String_Char with Store_String_Chars.
2664
2665 2007-08-31  Vincent Celier  <celier@adacore.com>
2666
2667         * prj-attr.adb: Add new attribute Excluded_Source_Files
2668
2669         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
2670         Locally_Removed_Files.
2671
2672         * snames.ads, snames.adb: New standard name Excluded_Source_Files
2673
2674 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
2675
2676         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
2677         clauses of subunits, ignore limited_with_clauses that are illegal and
2678         have not been fully analyzed.
2679
2680 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
2681
2682         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
2683         flag, for effiency. It is called when analyzing arithmetic operators
2684         and also for actuals in calls that are universal_integers. The flag is
2685         set for the predefined type address, and for any type or subtype
2686         derived from it.
2687
2688         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
2689         Universal_Integer, when the formal is a descendent of address and the
2690         call appears in user code.
2691         (Analyze_Selected_Component): if the prefix is a private extension, the
2692         tag component is visible.
2693
2694         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
2695         entity flag.
2696
2697 2007-08-31  Robert Dewar  <dewar@adacore.com>
2698
2699         * s-fileio.adb (Open): Normalize file name to lower case in non-case
2700         sensitive file name systems to avoid unexpected mismatch in Vista.
2701
2702 2007-08-31  Vincent Celier  <celier@adacore.com>
2703
2704         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
2705
2706 2007-08-31  Vincent Celier  <celier@adacore.com>
2707
2708         * symbols-vms.adb (Initialize): Read symbol files with continuation
2709         lines
2710         (Finalize): If symbol is long, split the line
2711
2712 2007-08-31  Vincent Celier  <celier@adacore.com>
2713
2714         * fmap.ads: Minor comment updates
2715
2716 2007-08-31  GNAT Script  <nobody@adacore.com>
2717
2718         * Make-lang.in: Makefile automatically updated
2719
2720 2007-08-31  Bob Duff  <duff@adacore.com>
2721
2722         * sinfo.ads: Minor comment fix.
2723
2724 2007-08-31  Thomas Quinot  <quinot@adacore.com>
2725
2726         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
2727         with implementation.
2728         Documentation cleanup only.
2729
2730 2007-08-31  Sergey Rybin  <rybin@adacore.com>
2731
2732         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
2733         gnatpp '--separate-stmt-name' option.
2734         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
2735         option.
2736
2737         * gnat_ugn.texi: Add description for the new gnatpp
2738         '--separate-stmt-name' and '--use-on-new-line' options.
2739
2740 2007-08-31  Ben Elliston  <bje@au.ibm.com>
2741
2742         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
2743         when compiling for powerpc64-*-linux.
2744         * system-linux-ppc64.ads: New file.
2745
2746 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
2747
2748         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
2749         NetBSD.
2750
2751 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2752
2753         * misc.c (gnat_type_max_size): Constify.
2754
2755 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
2756
2757         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
2758         associated with Standard_Debug_Renaming_Type, to be used as the type of
2759         the special variables whose names provide debugger encodings for
2760         renaming declarations.
2761
2762         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
2763         (Set_Debug_Renaming_Link): Change to set Node25.
2764         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
2765         (Write_Field25_Name): Add case for E_Variable to output
2766         "Debug_Renaming_Link".
2767         (Write_Field23_Name): Correct the output string for "Limited_View".
2768
2769         * exp_dbug.adb: Add with and use of Tbuild.
2770         (Debug_Renaming_Declaration): Replace creation of an enumeration type
2771         and literal with creation of a variable of type
2772         Standard_Debug_Renaming_Type whose name encodes both the renamed object
2773         and the entity of the renaming declaration.
2774         (Qualify_Entity_Name): Add the delayed qualification of the entity name
2775         part of the name of a variable that has a Debug_Renaming_Link.
2776
2777         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
2778         special type to be associated with variables that provide debugger
2779         encodings for renaming declarations.
2780
2781 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
2782             Ed Schonberg  <schonberg@adacore.com>
2783             Javier Miranda  <miranda@adacore.com>
2784
2785         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
2786         ancestor part given by an aggregate to test for an unchecked conversion,
2787         since this can occur in some cases when the ancestor part is a function
2788         call, and we don't want to fall into the recursive call to this
2789         procedure in that case.
2790
2791         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
2792         stream attributes on limited types to account for user-specified
2793         attributes as well as whether Input (resp. Output) becomes available
2794         due to Read (resp. Write) being available for the type. Change Boolean
2795         variable to the more accurate name
2796         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
2797         double-"not" predicate at beginning of return statement to more
2798         understandable form.
2799
2800         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
2801         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
2802         in a block statement and use that as the first statement of the
2803         expanded return rather than incorrectly using the handled sequence as
2804         the first statement.
2805
2806         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
2807         operation, generate an explicit freeze node for it rather than
2808         generating extra formals, to ensure that gigi has the proper order of
2809         elaboration for anonymous subtypes in the signature of the subprograms.
2810         (Build_In_Place_Formal): Move assertion to beginning of loop.
2811         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
2812         applied to a function call (occurs for some cases of 'Input).
2813         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
2814         applied to a function call (occurs for some cases of 'Input).
2815
2816         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
2817         2005, generate an extended return statement enclosing the result object
2818         and 'Read call.
2819
2820         * freeze.adb (Freeze_Record_Type): Extend the current management of
2821         components that are access type with an allocator as default value: add
2822         missing support to the use of qualified expressions of the
2823         allocator (which also cause freezing of the designated type!)
2824         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
2825         dispatching operation, since extra formals may be needed by calls to
2826         build-in-place functions (such as stream 'Input).
2827
2828         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
2829         formals for 'Constrained and accessibility level in the case of a
2830         predefined dispatching operation.
2831
2832         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
2833         point, no need to find the parent node.
2834
2835 2007-08-16  Javier Miranda  <miranda@adacore.com>
2836
2837         * exp_attr.adb (Attribute_Priority): Add missing support for entries
2838         and entry barriers.
2839
2840 2007-08-16  Javier Miranda  <miranda@adacore.com>
2841
2842         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
2843         is not really required and can introduce regression with the debugger.
2844         The original problem is fixed with the patch written for checks.adb.
2845
2846 2007-08-16  Thomas Quinot  <quinot@adacore.com>
2847
2848         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
2849         Range_Check on Allocated_Table.
2850
2851 2007-08-16  Vincent Celier  <celier@adacore.com>
2852
2853         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
2854         Including_Non_Switch set to False.
2855         (Gnatmake): For the compiler, call Test_If_Relative_Path with
2856         Including_Non_Switch set to False.
2857
2858         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
2859         parameter Including_Non_Switch, defaulted to True. When
2860         Including_Non_Switch is False, options that are not switches and
2861         appear as relative path are not converted to absolute paths.
2862
2863 2007-08-16  Nicolas Roche  <roche@adacore.com>
2864
2865         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
2866         makefiles
2867
2868         * Make-lang.in: Update dependencies
2869
2870 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
2871
2872         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
2873         currently inspected is a selected component, retrieve the entity of
2874         its selector.
2875         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
2876         from the immediate ancestor of Main_Unit_Entity.
2877         (Install_Limited_Withed_Unit): Do not install the limited view of
2878         package P if P is reachable through an ancestor chain from package C
2879         and C also has a with clause for P in its body.
2880         (Has_Limited_With_Clause): New routine.
2881         (Has_With_Clause): New routine.
2882
2883 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
2884
2885         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
2886         generic for an enclosing instance is a global reference, even though
2887         its scope is the enclosing instance.
2888
2889 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
2890             Javier Miranda  <miranda@adacore.com>
2891
2892         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
2893         initialize a limited object.
2894         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
2895         13/2 and 14/2.
2896         Make sure Has_Complex_Representation is inherited by derived type.
2897
2898 2007-08-16  Robert Dewar  <dewar@adacore.com>
2899
2900         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
2901         exception case
2902
2903 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
2904
2905         * sem_disp.adb (Check_Dispatching_Operation): If the operation
2906         implements an operation inherited from a progenitor interface, verify
2907         that they are subtype-conformant.
2908
2909 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
2910             Bob Duff  <duff@adacore.com>
2911             Nicolas Setton  <setton@adacore.com>
2912
2913         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
2914         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
2915         the statement which is being resolved comes from a predefined library
2916         unit, all non-predefined library interpretations are skipped.
2917         (Resolve_Op_Concat): If string concatenation was folded in the parser,
2918         but the "&" is user defined, give an error, because the folding would
2919         be wrong.
2920
2921         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
2922         the parser has folded a long sequence of concatenations of string
2923         literals.
2924
2925         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
2926         and "JMP_BUF" variables as artificial.
2927         (N_String_Literal): Do not use alloca for very long string literals. Use
2928         xmalloc/free instead. Otherwise the stack might overflow.
2929
2930         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
2931         compiler.
2932
2933 2007-08-16  Vincent Celier  <celier@adacore.com>
2934
2935         * vms_conv.adb (Process_Argument): Ensure that project related options
2936         are not put in the -cargs section when using GNAT COMPILE.
2937
2938 2007-08-16  Robert Dewar  <dewar@adacore.com>
2939
2940         * gnat_ugn.texi: Add note on preprocessing (output file not written)
2941
2942 2007-08-16  Thomas Quinot  <quinot@adacore.com>
2943
2944         * a-tags.adb: Minor reformatting.
2945
2946 2007-08-16  Bob Duff  <duff@adacore.com>
2947
2948         * sem_type.ads, sem_ch4.adb: Minor reformatting.
2949
2950 2007-08-14  Thomas Quinot  <quinot@adacore.com>
2951
2952         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads, 
2953         s-osinte-interix.ads, system-interix.ads: Removed.
2954
2955 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
2956
2957         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
2958         calls to Check_Within_Time_Bounds.
2959         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
2960         (Difference): Account for possible rounding of the resulting difference
2961
2962 2007-08-14  Robert Dewar  <dewar@adacore.com>
2963
2964         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
2965         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
2966         s-osinte-solaris.adb, s-osinte-solaris.ads,
2967         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
2968
2969         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
2970         switch -gnatyS. Enable -gnatyS in GNAT style check mode
2971
2972 2007-08-14  Robert Dewar  <dewar@adacore.com>
2973             Ed Schonberg  <schonberg@adacore.com>
2974
2975         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads: 
2976         Suppress unmodified in-out parameter warning in some cases
2977         This patch is a also fairly significant change to the way suppressible
2978         checks are handled.
2979
2980         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
2981         needed for access to concurrent record types generated by the expander.
2982         (Generate_Range_Check): When generating a temporary to capture the
2983         value of a conversion that requires a range check, set the type of the
2984         temporary before rewriting the node, so that the type is always
2985         properly placed for back-end use.
2986         (Apply_Float_Conversion_Check): Handle case where the conversion is
2987         truncating.
2988         (Get_Discriminal): Code reformatting. Climb the scope stack looking
2989         for a protected type in order to examine its discriminants.
2990
2991 2007-08-14  Robert Dewar  <dewar@adacore.com>
2992             Gary Dismukes  <dismukes@adacore.com>
2993             Ed Schonberg  <schonberg@adacore.com>
2994             Thomas Quinot  <quinot@adacore.com>
2995
2996         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb, 
2997         a-stwisu.adb, a-strsup.adb: Fix warnings for range
2998         tests optimized out.
2999
3000         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
3001         (Get_Allocator_Final_List): For the case of an anonymous access type
3002         that has a specified Associated_Final_Chain, do not go up to the
3003         enclosing scope.
3004         (Expand_N_Type_Conversion): Test for the case of renamings of access
3005         parameters when deciding whether to apply a run-time accessibility
3006         check.
3007         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
3008         aggregate code before allocator, and ahead of declaration for
3009         temporary, to prevent access before elaboration when the allocator is
3010         an actual for an access parameter.
3011         (Expand_N_Type_Conversion): On an access type conversion involving an
3012         access parameter, do not apply an accessibility check when the
3013         operand's original node was an attribute other than 'Access. We now
3014         create access conversions for the expansion of 'Unchecked_Access and
3015         'Unrestricted_Access in certain cases and clearly accessibility should
3016         not be checked for those.
3017
3018         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
3019         includes a type conversion of a packed component that has been expanded,
3020         recover the original expression for the object, and use this expression
3021         in the post-call assignment statement, so that the assignment is made
3022         to the object and not to a back-end temporary.
3023         (Freeze_Subprogram): In case of primitives of tagged types not defined
3024         at the library level force generation of code to register the primitive
3025         in the dispatch table. In addition some code reorganization has been
3026         done to leave the implementation clear.
3027         (Expand_Call): When expanding an inherited implicit conversion,
3028         preserve the type of the inherited function after the intrinsic
3029         operation has been expanded.
3030
3031         * exp_ch2.ads, exp_ch2.adb
3032         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
3033         of an entry formal appearing in an assignment statement does not assign
3034         to the formal.
3035         (Expand_Current_Value): Instead of calling a routine to determine
3036         whether the prefix of an attribute reference should be optimized or
3037         not, prevent the optimization of such prefixes all together.
3038
3039         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
3040         component whose prefix is known to be of an access type is an implicit
3041         dereference and does not assign to the prefix.
3042
3043 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
3044             Robert Dewar  <dewar@adacore.com>
3045
3046         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
3047         itype is visited, make an entry into table to link associated node and
3048         new itype.
3049         Add comments and correct harmless error in Build_NCT_Hash_Tables
3050         (Array_Aggr_Subtype): Associate each itype created for an index type to
3051         the corresponding range construct, and not to the aggregate itself. to
3052         maintain a one-to-one correspondence between itype and its associated
3053         node, to prevent errors when complex expression is copied.
3054         Fix mishandling of multiple levels of parens
3055
3056         * sem_aggr.adb: Create a limited view of an incomplete type, to make
3057         treatment of limited views uniform for all visible declarations in a
3058         limited_withed package.
3059         (New_Copy_Tree): If hash table is being used and itype is visited,
3060         make an entry into table to link associated node and new itype.
3061         (Resolve_Record_Aggregate): Do not add an others box association for a
3062         discriminated record component that has only discriminants, when there
3063         is a box association for the component itself.
3064
3065         * par-ch4.adb: Fix mishandling of multiple levels of parens
3066
3067 2007-08-14  Robert Dewar  <dewar@adacore.com>
3068
3069         * comperr.adb: Fix problem with suppressing warning messages from gigi
3070
3071         * erroutc.ads, erroutc.adb, errout.ads, 
3072         errout.adb (Write_Eol): Remove trailing spaces before writing the line
3073         (Write_Eol_Keep_Blanks): New procedure to write a line, including
3074         possible trailing spaces.
3075         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
3076         Fix problem with suppressing warning messages from back end
3077         Improve handling of deleted warnings
3078
3079         * gnat1drv.adb: 
3080         Fix problem with suppressing warning messages from back end
3081         Handle setting of Static_Dispatch_Tables flag.
3082
3083         * prepcomp.adb: 
3084         Fix problem with suppressing warning messages from back end
3085
3086         * exp_intr.adb: Improve handling of deleted warnings
3087
3088 2007-08-14  Robert Dewar  <dewar@adacore.com>
3089
3090         * debug.adb: Improve -gnatdI to cover all cases of serialization
3091         Add documentation of dZ, d.t
3092
3093         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
3094         serialization.
3095         (Sprint_Node_Actual): Generate new output associated with implicit
3096         importation and implicit exportation of object declarations.
3097
3098 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
3099             Robert Dewar  <dewar@adacore.com>
3100             Javier Miranda  <miranda@adacore.com>
3101             Gary Dismukes  <dismukes@adacore.com>
3102
3103         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
3104         to make treatment of limited views uniform for all visible declarations
3105         in a limited_withed package.
3106         Improve warnings for in out parameters
3107         (Set_Related_Interaface/Related_Interface): Allow the use of this
3108         attribute with constants.
3109         (Write_Field26_Name): Handle attribute Related_Interface in constants.
3110         Warn on duplicate pragma Preelaborable_Initialialization
3111
3112         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
3113         generation of a freezing node to ensure proper management of null
3114         excluding access types in the backend.
3115         (Create_Extra_Formals): Test base type of the formal when checking for
3116         the need to add an extra accessibility-level formal. Pass the entity E
3117         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
3118         originally being done in a couple of cases), to ensure that the
3119         Extra_Formals list gets set on the entity E when the first entity is
3120         added.
3121         (Conforming_Types): Add missing calls to Base_Type to the code that
3122         handles anonymous access types. This is required to handle the
3123         general case because Process_Formals builds internal subtype entities
3124         to handle null-excluding access types.
3125         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
3126         functions that need it, even when not marked Requires_Overriding.
3127         Improve warnings for in out parameters
3128         (Analyze_Function_Return): Warn for disallowed null return
3129         Warn on return from procedure with unset out parameter
3130         Ensure consistent use of # in error messages
3131         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
3132         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
3133         the implicit conversion of the expression done for anonymous access
3134         types. This is required to generate the code of the null excluding
3135         check (if required).
3136
3137         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
3138         A formal parameter is never publicly referenceable outside of its body.
3139         (Check_References): For an unreferenced formal parameter in an accept
3140         statement, use the same warning circuitry as for subprogram formal
3141         parameters.
3142         (Warn_On_Unreferenced_Entity): New subprogram, taken from
3143         Output_Unreferenced_Messages, containing the part of that routine that
3144         is now reused for entry formals as described above.
3145         (Goto_Spec_Entity): New function
3146         (Check_References): Do not give IN OUT warning for dispatching operation
3147         Improve warnings for in out parameters
3148         (Test_Ref): Check that the entity is not undefinite before calling
3149         Scope_Within, in order to avoid infinite loops.
3150         Warn on return from procedure with unset out parameter
3151         Improved warnings for unused variables
3152
3153 2007-08-14  Robert Dewar  <dewar@adacore.com>
3154             Javier Miranda  <miranda@adacore.com>
3155             Gary Dismukes  <dismukes@adacore.com>
3156
3157         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
3158         (Expand_N_Attribute_Reference): Further unify the handling of the
3159         three forms of access attributes, using common code now for all three
3160         cases. Add a test for the case of applying an access attribute to
3161         an explicit dereference when the context is an access-to-interface
3162         type. In that case we need to apply the conversion to the prefix
3163         of the explicit dereference rather than the prefix of the attribute.
3164         (Attribute_Version, UET_Address): Set entity as internal to ensure
3165         proper dg output of implicit importation.
3166         (Expand_Access_To_Type): Removed.
3167         (Expand_N_Attribute_Reference): Merge the code from the three cases
3168         of access attributes, since the processing is largely identical for
3169         these cases. The substantive fix here is to process the case of a
3170         type name prefix (current instance case) before handling the case
3171         of interface prefixes.
3172
3173 2007-08-14  Thomas Quinot  <quinot@adacore.com>
3174             Ed Schonberg  <schonberg@adacore.com>
3175             Javier Miranda  <miranda@adacore.com>
3176             Robert Dewar  <dewar@adacore.com>
3177
3178         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
3179         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
3180         type that is an anonymous access to controlled object, establish
3181         an associated finalization chain to avoid corrupting the global
3182         finalization list when a dynamically allocated object designated
3183         by such a component is deallocated.
3184         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
3185         functions that need it, even when not marked Requires_Overriding.
3186         (Initialize_Tag): Replace call to has_discriminants by call to
3187         Is_Variable_Size_Record in the circuitry that handles the
3188         initialization of secondary tags.
3189         (Is_Variable_Size_Record): New implementation.
3190         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
3191         Suppress_Initialization pragma for a derived type.
3192         (Is_Variable_Size_Record): New subprogram.
3193         (Build_Offset_To_Top_Functions): New implementation that simplifies the
3194         initial version of this routine and also fixes problems causing
3195         incomplete initialization of the table of interfaces.
3196         (Build_Init_Procedure): Improve the generation of code to initialize the
3197         the tag components of secondary dispatch tables.
3198         (Init_Secondary_Tags): New implementation that simplifies the previous
3199         version of this routine.
3200         (Make_DT): Add parameter to indicate when type has been frozen by an
3201         object declaration, for diagnostic purposes.
3202         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
3203         diagnose attemps to freeze a subprogram when some untagged type of its
3204         profile is a private type whose full view has not been analyzed yet.
3205         (Freeze_Array_Type): Generate init proc for packed array if either
3206         Initialize or Normalize_Scalars is set.
3207         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
3208         constructing the new profile, copy the null_exclusion indicator for each
3209         parameter, to ensure full conformance of the new body with the spec.
3210
3211         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
3212         Create wrappers for constructor functions that need it, even when not
3213         marked Requires_Overriding.
3214         (Covers): Handle properly designated types of anonymous access types,
3215         whose non-limited views are themselves incomplete types.
3216         (Add_Entry): Use an entity to store the abstract operation which hides
3217         an interpretation.
3218         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
3219         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
3220         initialization aggregate.
3221         (Function_Interp_May_Be_Hidden): Rename to
3222         Function_Interp_Has_Abstract_Op.
3223         (Has_Compatible_Type): Remove machinery that skips interpretations if
3224         they are labeled as potentially hidden by an abstract operator.
3225         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
3226         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
3227         (Write_Overloads): Output the abstract operator if present.
3228         (Add_Entry): Before inserting a new entry into the interpretation table
3229         for a node, determine whether the entry will be disabled by an abstract
3230         operator.
3231         (Binary_Op_Interp_May_Be_Hidden): New routine.
3232         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
3233         aggregate.
3234         (Function_Interp_May_Be_Hidden): New routine.
3235         (Has_Compatible_Type): Do not consider interpretations hidden by
3236         abstract operators when trying to determine whether two types are
3237         compatible.
3238         (Has_Hidden_Interp): New routine.
3239         (Set_May_Be_Hidden_Interp): New routine.
3240         (Write_Overloads): Write the status of flag May_Be_Hidden.
3241
3242 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
3243             Javier Miranda  <miranda@adacore.com>
3244
3245         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
3246         types declared in the declarative part of a nested package body or in
3247         the proper body of a stub.
3248         (Set_All_DT_Position): Add missing check to avoid wrong assignation
3249         of the same dispatch table slot to renamed primitives.
3250         (Make_Select_Specific_Data_Table): Handle private types.
3251         (Tagged_Kind): Handle private types.
3252         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
3253         output of implicit importation and exportation.
3254         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
3255         first formal of the thunk is always associated with the controlling
3256         type. In addition perform the following code cleanup: remove formal
3257         Thunk_Alias which is no longer required, cleanup evaluation of the
3258         the controlling type, and update the documentation.
3259         Replace occurrence of Default_Prim_Op_Count by
3260         Max_Predef_Prims. Addition of compile-time check to verify
3261         that the value of Max_Predef_Prims is correct.
3262         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
3263         (Make_DT): Add parameter to indicate when type has been frozen by an
3264         object declaration, for diagnostic purposes.
3265         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
3266         construction of statically allocated dispatch tables.
3267         (Make_DT): In case of library-level tagged types export the declaration
3268         of the primary tag. Remove generation of tags (now done by Make_Tags).
3269         Additional modifications to handle non-static generation of dispatch
3270         tables. Take care of building tables for asynchronous interface types
3271         (Make_Tags): New subprogram that generates the entities associated with
3272         the primary and secondary tags of Typ and fills the contents of Access_
3273         Disp_Table. In case of library-level tagged types imports the forward
3274         declaration of the primary tag that will be declared later by Make_DT.
3275         (Expand_Interface_Conversion): In case of access types to interfaces
3276         replace an itype declaration by an explicit type declaration to avoid
3277         problems associated with the scope of such itype in transient blocks.
3278
3279 2007-08-14  Robert Dewar  <dewar@adacore.com>
3280             Ed Schonberg  <schonberg@adacore.com>
3281             Javier Miranda  <miranda@adacore.com>
3282
3283         * exp_util.ads, exp_util.adb: 
3284         This patch replaces a number of occurrences of explicit tests for N_Null
3285         with calls to Known_Null. This improves tracking of null values, since
3286         Known_Null also catches null constants, and variables currently known to
3287         be null, so we get better tracking.
3288         (Ensure_Defined): create an itype reference only in the scope of the
3289         itype.
3290         (Side_Effect_Free): A selected component of an access type that
3291         denotes a component with a rep clause must be treated as not
3292         side-effect free, because if it is part of a linked structure its
3293         value may be affected by a renaming.
3294         (Expand_Subtype_From_Expr): For limited objects initialized with build
3295         in place function calls, do nothing; otherwise we prematurely introduce
3296         an N_Reference node in the expression initializing the object, which
3297         breaks the circuitry that detects and adds the additional arguments to
3298         the called function. Bug found working in the new patch for statically
3299         allocated dispatch tables.
3300         (Is_Library_Level_Tagged_Type): New subprogram.
3301         (Remove_Side_Effects): If the expression of an elementary type is an
3302         operator treat as a function call.
3303         (Make_Literal_Range): If the index type of the array is not integer, use
3304         attributes properly to compute the constraint on the resulting aggregate
3305         which is a string.
3306
3307         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
3308         class-wide type whose base type is an incomplete private type, leave
3309         class-wide type unfrozen so that freeze nodes can be generated
3310         properly at a later point.
3311         (Freeze_Entity, array case): Handle case of pragma Pack and component
3312         size attributre clause for same array.
3313
3314 2007-08-14  Vincent Celier  <celier@adacore.com>
3315
3316         * prj.ads, prj.adb: Update Project Manager to new attribute names for
3317         gprbuild.
3318         Allow all valid declarations in configuration project files
3319         (Reset): Initialize all tables and hash tables in the project tree data
3320         Major update of the Project Manager and of the project aware tools,
3321         including gprmake, so that the same sources in the GNAT repository
3322         can be used by gprbuild.
3323         (Slash_Id): Change type to be Path_Name_Type
3324         (Slash): Return a Path_Name_Type instead of a File_Name_Type
3325
3326         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
3327         gprbuild.
3328         Update Project Manager to new attribute names for ghprbuild
3329         Allow all valid declarations in configuration project files
3330         Major update of the Project Manager and of the project aware tools,
3331         including gprmake, so that the same sources in the GNAT repository
3332         can be used by gprbuild.
3333
3334         * prj-com.ads: 
3335         Major update of the Project Manager and of the project aware tools,
3336         including gprmake, so that the same sources in the GNAT repository
3337         can be used by gprbuild.
3338
3339         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
3340         insensitive flag for attributes with optional index.
3341         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
3342         array attribute, put the index in lower case.
3343         Update Project Manager to new attribute names for ghprbuild
3344         Allow all valid declarations in configuration project files
3345         Major update of the Project Manager and of the project aware tools,
3346         including gprmake, so that the same sources in the GNAT repository
3347         can be used by gprbuild.
3348
3349         * prj-env.ads, prj-env.adb: 
3350         Major update of the Project Manager and of the project aware tools,
3351         including gprmake, so that the same sources in the GNAT repository
3352         can be used by gprbuild.
3353         (Get_Reference): Change type of parameter Path to Path_Name_Type
3354
3355         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
3356         removing '-' from the path to start with the first character of the
3357         next directory.
3358         Major update of the Project Manager and of the project aware tools,
3359         including gprmake, so that the same sources in the GNAT repository
3360         can be used by gprbuild.
3361         Major update of the Project Manager and of the project aware tools,
3362         including gprmake, so that the same sources in the GNAT repository
3363         can be used by gprbuild.
3364
3365         * prj-nmsc.ads, prj-nmsc.adb: 
3366         Update Project Manager to new attribute names for ghprbuild
3367         Allow all valid declarations in configuration project files
3368         (Search_Directories): Detect subunits that are specified with an
3369         attribute Body in package Naming. Do not replace a source/unit in the
3370         same project when the order of the source dirs are known. Detect
3371         duplicate sources/units in the same project when the order of the
3372         source dirs are not known.
3373         (Check_Ada_Name): Allow all identifiers that are not reserved words
3374         in Ada 95.
3375         Major update of the Project Manager and of the project aware tools,
3376         including gprmake, so that the same sources in the GNAT repository
3377         can be used by gprbuild.
3378         (Look_For_Sources): If the list of sources is empty, set the object
3379         directory of non extending project to nil.
3380         Change type of path name variables to be Path_Name_Type
3381         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
3382         otherwise creating missing directories will fail.
3383
3384         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb, 
3385         prj-part.ads, prj-part.adb:
3386         Major update of the Project Manager and of the project aware tools,
3387         including gprmake, so that the same sources in the GNAT repository
3388         can be used by gprbuild.
3389
3390         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
3391         insensitive flag for attributes with optional index.
3392         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
3393         array attribute, put the index in lower case.
3394         (Parse_Variable_Reference): Allow the current project name to be used in
3395         the prefix of an attribute reference.
3396
3397         * prj-util.ads, prj-util.adb
3398         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
3399         defaulted to False. When True, always check against indexes in lower
3400         case.
3401
3402         * snames.ads, snames.h, snames.adb: 
3403         Update Project Manager to new attribute names for gprbuild
3404         Allow all valid declarations in configuration project files
3405
3406 2007-08-14  Robert Dewar  <dewar@adacore.com>
3407             Ed Schonberg  <schonberg@adacore.com>
3408
3409         * opt.ads: Warning for non-local exception propagation now off by
3410         default
3411         New switch -gnatI to disable representation clauses
3412         Implement new pragma Implicit_Packing
3413
3414         * usage.adb: 
3415         Warning for non-local exception propagation now off by default
3416         Add warning for unchecked conversion of pointers wi different
3417         conventions.
3418         New switch -gnatI to disable representation clauses
3419
3420         * usage.adb: new switch -gnatyS
3421
3422         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
3423         note that aggregates of anonymous array types are not flagged.
3424         -gnatwc now includes membership tests optimized away
3425         -gnatw.x warnings are now off by default
3426         Added conditional compilation Appendix
3427         Add documentation of -gnatI
3428         Add documentation for new -gnatyS style check
3429         Update documentation about SAL and auto-init on Windows.
3430
3431         * gnat_rm.texi: 
3432         Add documentation for pragma Check_Name and 'Enabled attribute
3433         Document that Eliminate on dispatching operation is ignored
3434         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
3435         Document pragma Main
3436         Document pragma Implicit_Packing
3437
3438         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
3439         different conventions
3440         New switch -gnatI to disable representation clauses
3441
3442         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
3443         recognized, report the invalid characters including "-gnat" instead of
3444         just the first character in the switch.
3445         New switch -gnatI to disable representation clauses
3446         Set Warn_On_Object_Renames_Function true for -gnatg
3447
3448         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
3449         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
3450         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
3451         to switch -aP (add directory to project search dir).
3452
3453         * par-prag.adb: Implement new pragma Implicit_Packing
3454
3455         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
3456         type as having a non-standard representation, to force expansion on
3457         conversion to related types.
3458         (Analyze_Pragma): Warn on misspelled pragma
3459         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
3460         Ensure consistent use of # in error messages
3461         Implement pragma Implicit_Packing
3462
3463 2007-08-14  Olivier Hainque  <hainque@adacore.com>
3464             Eric Botcazou  <ebotcazou@adacore.com>
3465
3466         * targtyps.c (get_target_maximum_default_alignment): New function.
3467         Maximum alignment
3468         that the compiler might choose by default for a type or object.
3469         (get_target_default_allocator_alignment): New function. Alignment known
3470         to be honored by the target default allocator.
3471         (get_target_maximum_allowed_alignment): New function. Maximum alignment
3472         we might accept for any type or object on the target.
3473         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
3474
3475         * gigi.h (get_target_maximum_default_alignment): Declare new function.
3476         (get_target_default_allocator_alignment): Likewise.
3477         (get_target_maximum_allowed_alignment): Likewise.
3478
3479         PR ada/19037
3480         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
3481         result of a function call, first try to use a stabilized reference for
3482         a constant renaming too.
3483         (validate_alignment): Use target_maximum_allowed_alignment instead of
3484         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
3485         (gnat_to_gnu_entity): Use common nodes directly.
3486         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
3487         alignment and size for the object.
3488         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
3489         and N_Procedure_Call_Statement.
3490         (takes_address): Rename to lvalue_required_p, add third parameter
3491         'aliased' and adjust recursive calls.
3492         <N_Indexed_Component>: Update 'aliased' from the array type.
3493         <N_Selected_Component>: New case.
3494         <N_Object_Renaming_Declaration>: New Likewise.
3495         (Identifier_to_gnu): Adjust for above changes.
3496         (maybe_stabilize_reference) <CONST_DECL>: New case.
3497
3498         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
3499         between type variants.
3500         (build_simple_component_ref): Likewise.
3501         (build_call_alloc_dealloc): Use target_default_allocator_alignment
3502         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
3503         aligning type circuitry for allocations from the default storage pool.
3504         (build_allocator): Likewise.
3505         (build_simple_component_ref): Manually fold the reference for a
3506         constructor if the record type contains a template.
3507
3508         * utils.c (value_zerop): Delete.
3509         (gnat_init_decl_processing): Emit debug info for common types.
3510         (rest_of_record_type_compilation): If a union contains a field
3511         with a non-constant qualifier, treat it as variable-sized.
3512         (finish_record_type): Give the stub TYPE_DECL a name.
3513         (rest_of_record_type_compilation): Likewise.
3514         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
3515         types are equivalent array types.
3516         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
3517         even if the type is not passed by reference.
3518         (static_ctors, static_dtors): Delete.
3519         (end_subprog_body): Do not record constructors and destructors.
3520         (build_global_cdtor): Delete.
3521         (gnat_write_global_declarations): Do not call build_global_cdtor.
3522
3523         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
3524         -fRTS=rtp is specified.
3525         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
3526         specified.
3527
3528         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
3529         of the personality function with SJLJ exceptions.
3530
3531         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
3532         the name of the personality function with SJLJ exceptions.
3533
3534 2007-08-14  Robert Dewar  <dewar@adacore.com>
3535             Ed Schonberg  <schonberg@adacore.com>
3536
3537         * par.ads, par.adb: Improve handling of extra right parens.
3538         (Par): Remove flag From_Limited_With_Clause.
3539
3540         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
3541         Improve handling of extra right parens.
3542
3543 2007-08-14  Robert Dewar  <dewar@adacore.com>
3544
3545         * par-tchk.adb (TF_Semicolon): Improve error recovery
3546
3547 2007-08-14  Robert Dewar  <dewar@adacore.com>
3548             Ed Schonberg  <schonberg@adacore.com>
3549
3550         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
3551         enumeration type, mark all literals as referenced.
3552         (Eval_Attribute, case 'Image): If the argument is an enumeration
3553         literal and names are available, constant-fold but mark nevertheless as
3554         non-static.
3555         Clean up function names.
3556         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
3557         comment.
3558         (Requires_Simple_Name_Prefix): Removed.
3559
3560 2007-08-14  Robert Dewar  <dewar@adacore.com>
3561             Ed Schonberg  <schonberg@adacore.com>
3562
3563         * sem_ch11.adb: Improved warnings for unused variables
3564
3565         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
3566         is a synchronized interface, the derived type is limited.
3567         (Analyze_Object_Declaration): Mark the potential coextensions in the
3568         definition and expression of an object declaration node.
3569         (Build_Derived_Type): For the completion of a private type declaration
3570         with a derived type declaration, chain the parent type's representation
3571         items to the last representation item of the derived type (not the
3572         first one) if they are not present already.
3573         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
3574         object declaration of forward references to tags.
3575         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
3576         subprogram types can appear as access discriminants of synchronized
3577         types.
3578         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
3579         given in prefixed form as a selected component.
3580         (Process_Discriminants): If not all discriminants have defaults, place
3581         error message on a default that is present.
3582         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
3583         extend a synchronized tagged type.
3584         Improved warnings for unused variables
3585         (Is_Visible_Component): Fix a visibility hole on a component inherited
3586         by a private extension when parent is itself declared as a private
3587         extension, and the derivation is in a child unit.
3588         (Find_Hidden_Interface): Move spec from the package body.
3589
3590 2007-08-14  Robert Dewar  <dewar@adacore.com>
3591             Ed Schonberg  <schonberg@adacore.com>
3592
3593         * sem_ch5.adb: Improve warnings on redundant assignments
3594
3595         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
3596         parameter
3597         (Is_Synchronized_Tagged_Type): New subprogram that returns true
3598         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
3599         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
3600         is set to False. Improves handling of Known_[Not_]Null.
3601         (Wrong_Type): Special case address arithmetic attempt
3602         (Collect_Abstract_Interfaces): Add new formal to allow collecting
3603         abstract interfaces just using the partial view of private types.
3604         (Has_Abstract_Interfaces): Add new formal to allow checking types
3605         covering interfaces using the partial view of private types.
3606         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
3607         component still needs to be defined in this case, but is never
3608         initialized as VMs are using other dispatching mechanisms.
3609         (Abstract_Interface_List): For a protected type, use base type to get
3610         proper declaration.
3611         Improve warnings on redundant assignments
3612         (Is_Variable): Handle properly an implicit dereference of a prefixed
3613         function call.
3614         (Build_Actual_Subtype): If this is an actual subtype for an
3615         unconstrained formal parameter, use the sloc of the body for the new
3616         declaration, to prevent anomalises in the debugger.
3617
3618 2007-08-14  Robert Dewar  <dewar@adacore.com>
3619
3620         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
3621         dispatching operation
3622
3623 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
3624             Gary Dismukes  <dismukes@adacore.com>
3625
3626         * exp_aggr.ads, 
3627         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
3628         expanded aggregate code before allocator, and ahead of declaration for
3629         temporary, to prevent access before elaboration when the allocator is
3630         an actual for an access parameter.
3631         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
3632         the TSD and the table of interfaces.
3633         (Convert_To_Assignments): Augment the test for delaying aggregate
3634         expansion for limited return statements to include the case of extended
3635         returns, to prevent creation of an unwanted transient scope.
3636         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
3637         (Expand_Array_Aggregate): Handle aggregates associated with
3638         statically allocated dispatch tables.
3639         (Expand_Record_Aggregate): Handle aggregates associated with
3640         statically allocated dispatch tables.
3641         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
3642         of anonymous access type.
3643
3644 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
3645
3646         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
3647         is a variable that renames a slice, use the variable itself in the
3648         expannsion when the renamed expression itself may be modified between
3649         the declaration of the renaming and the array assignment.
3650
3651 2007-08-14  Jerome Guitton  <guitton@adacore.com>
3652
3653         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb, 
3654         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb, 
3655         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
3656         New functions; dummy implementations.
3657
3658         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
3659         functions, used to implement the multi-tasks mode routines on VxWorks.
3660
3661         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
3662         New functions, thin
3663         binding to the VxWorks routines which have changed between VxWorks 5
3664         and 6.
3665         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
3666         which are not callable from a RTP.
3667
3668         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
3669         implemented for the multi-tasks mode on VxWorks 5 and 6.
3670
3671         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
3672
3673         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
3674         functions.
3675
3676 2007-08-14  Vincent Celier  <celier@adacore.com>
3677
3678         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb, 
3679         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
3680         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb, 
3681         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb, 
3682         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, 
3683         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
3684         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
3685         procedure.
3686         (Major_Id_Name): New function.
3687         mlib-tgt.ads/mlib.tgt.adb:
3688         (Library_Major_Minor_Id_Supported): New function, default returns True
3689         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
3690         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
3691         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
3692         Implementation of Library_Major_Minor_Id_Supported returns False
3693         clean.adb:
3694         (Clean_Library_Directory): If major/minor ids are supported, clean all
3695         library files.
3696         Major update of the Project Manager and of the project aware tools,
3697         including gprmake, so that the same sources in the GNAT repository
3698         can be used by gprbuild.
3699
3700 2007-08-14  Olivier Hainque  <hainque@adacore.com>
3701
3702         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
3703         (GCC_ZCX_Support): Switch to True.
3704         
3705         * s-intman-solaris.adb (Notify_Exception): Call
3706         Adjust_Context_For_Raise before raising, as expected for signal
3707         handlers in general.
3708         
3709         * s-intman-posix.adb (Notify_Exception): Remove declaration of
3710         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
3711         to other implementation bodies.
3712         
3713         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
3714         be visible by multiple implementation bodies.
3715         
3716         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
3717         only for conditions coming from hardware.
3718         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
3719         adjustments to signal context prior to exception raise from signal
3720         handler.
3721         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
3722         mode.
3723         Solaris section: (__gnat_adjust_context_for_raise): New function.
3724         Implementation of the machine context adjustments to perform prior to
3725         raise from a signal handler. Version for both sparc and x86.
3726         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
3727         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
3728         prior to raising as expected for any handler, before possible nested
3729         faults to make sure all the contexts in a chain have been adjusted by
3730         the time we propagate.
3731
3732 2007-08-14  Pascal Obry  <obry@adacore.com>
3733
3734         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
3735         (SYSTEM_INFO): New record.
3736         (SetThreadIdealProcessor): New imported routine needed for supporting
3737         task_info pragma on Windows.
3738
3739         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
3740         info can be applied to the current host.
3741         (Create_Task): Set the ideal processor if information is present.
3742
3743         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
3744         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
3745
3746 2007-08-14  Olivier Hainque  <hainque@adacore.com>
3747
3748         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
3749         stack size and initial stack pointer value for a given task.
3750         (Enter_Task): Get the stack attributes of the task we are entering and
3751         let the stack checking engine know about them.
3752
3753         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
3754         Let the stack-checking engine know about the initial sp value and stack
3755         size associated with the current task.
3756         (Set_Stack_Info): If a stack base has been notified for the current
3757         task, honor it. Fallback to the previous less accurate method otherwise.
3758
3759         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
3760
3761 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
3762
3763         * sem_ch10.adb: Create a limited view of an incomplete type, to make
3764         treatment of limited views uniform for all visible declarations in a
3765         limited_withed package.
3766         Set flag indicating that a subprogram body for a child unit has a
3767         generated spec.
3768         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
3769         separate declaration, remove the unit name from visibility after
3770         compilation, so that environment is clean for subsequent compilations.
3771         (Install_Limited_Context_Clauses): Do not install a
3772         limited_private_with_clause unless the current unit is a body or a
3773         private child unit.
3774         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
3775         in the same fashion.
3776         (Install_Limited_Withed_Unit): Do not install a limited with clause if
3777         it applies to the declaration of the current package body.
3778         (Remove_Private_With_Clauses): If there is a regular with_clause for
3779         the unit, delete Private_With_Clause from context, to prevent improper
3780         hiding when processing subsequent nested packages and instantiations.
3781
3782 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
3783
3784         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
3785         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
3786         representing absolute path names.
3787         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
3788
3789         * cstreams.c (__gnat_full_name for VxWorks): Use
3790         __gnat_is_absolute_path to detect whether we need to add the current
3791         directory to normalize the path.
3792
3793 2007-08-14  Javier Miranda  <miranda@adacore.com>
3794
3795         * a-tags.ads, 
3796         a-tags.adb (Displace): Associate a message with the raised CE
3797         exception.
3798         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
3799         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
3800         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
3801         spec.
3802         (Default_Prim_Op_Count): Removed.
3803         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
3804         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
3805         Remove pragma Inline_Always.
3806
3807         * rtsfind.ads (Default_Prim_Op_Count): Removed
3808         (Max_Predef_Prims): New entity
3809         (RE_Expanded_Name): Removed
3810         (RE_HT_Link): Removed
3811         (RE_Iface_Tag): Remmoved
3812         (RE_Ifaces_Table): Removed
3813         (RE_Interfaces_Array): Removed
3814         (RE_Interface_Data_Element): Removed
3815         (RE_Nb_Ifaces): Removed
3816         (RE_RC_Offset): Removed
3817         (RE_Static_Offset_To_Top): Removed
3818
3819         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
3820         formal.
3821         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
3822         Prim_Op_Count by Max_Predef_Prims.
3823
3824 2007-08-14  Thomas Quinot  <quinot@adacore.com>
3825             Vincent Celier  <celier@adacore.com>
3826
3827         * binde.adb (Elab_All_Links): Remove unnecessary call to
3828         Generic_Separately_Compiled (if a unit satisfies this predicate, there
3829         won't be an associated Afile).
3830         (Elab_All_Links): Fail if a referenced unit cannot be found
3831
3832         * bindgen.adb: 
3833         Fix comments in bindgen regarding consistency checks done in Bcheck:
3834         the checks are made across units within a partition, not across several
3835         partitions.
3836         Fix generation of C binder file for VxWorks.
3837
3838         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
3839         Generic_May_Lack_ALI, more descriptive of the current use of the
3840         predicate, and update documentation.
3841
3842         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
3843         reorganization and documentation update for the case of predefined
3844         library generics (for which we do not reference an Afile).
3845
3846 2007-08-14  Robert Dewar  <dewar@adacore.com>
3847
3848         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
3849         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
3850         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
3851         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
3852         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
3853         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
3854         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
3855         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
3856         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
3857         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
3858         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
3859         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
3860         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
3861         g-altcon.adb: Minor reformatting
3862
3863         ada-tree.h: Delete empty line.
3864
3865         ali.ads: Minor reformatting
3866         Clarification of comments.
3867         Minor spelling correction
3868
3869         * exp_dbug.adb: Add Warnings Off to suppress new warning
3870
3871         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
3872         formal
3873
3874         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
3875         value
3876
3877         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
3878
3879         * a-textio.ads: Reorder the standard input/output/error declarations
3880         for consistency.
3881
3882         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
3883
3884         * par-ch2.adb: Recognize RM specially in errout
3885         Change 'R'M to RM in all error messages
3886
3887         * scng.adb: Recognize RM specially in errout
3888
3889         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
3890         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
3891
3892         * s-direio.adb: Add missing routine header box.
3893
3894         * sem_attr.ads: Add ??? comments
3895
3896         * sem_eval.adb: Recognize RM specially in errout
3897         Change 'R'M to RM in all error messages
3898
3899         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
3900
3901         * s-tasinf.ads: Fix minor comment typo.
3902
3903         * a-cihama.adb: Minor comment addition
3904
3905         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
3906         formal
3907
3908         * s-tasinf-tru64.ads: Fix minor comment typo.
3909
3910         * itypes.ads: Comment update.
3911
3912         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
3913         anymore.
3914
3915         * argv.c: Added protection against null gnat_argv and gnat_envp.
3916
3917         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
3918         warning message when Tolerate_Consistency_Errors is True.
3919
3920         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
3921         Any_Id, as this subprogram is only applicable to *type* entities (it
3922         sets RM_Size). Instead initialize just Esize and Alignment.
3923
3924 2007-08-14  Bob Duff  <duff@adacore.com>
3925
3926         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads, 
3927         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
3928         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads, 
3929         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
3930         a-coorse.ads (Next): Applied pragma Inline.
3931         Make all Containers packages Remote_Types (unless they are already
3932         Pure).
3933         (Previous): applied pragma Inline
3934         (Elements_Type): is now a record instead of an array
3935
3936 2007-08-14  Thomas Quinot  <quinot@adacore.com>
3937
3938         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
3939         of Set_Item.
3940         (Set_Item): When the new item is an element of the currently allocated
3941         table passed by reference, save a copy on the stack if we're going
3942         to reallocate. Also, in Table.Set_Item, make sure we test the proper
3943         variable to determine whether to call Set_Last.
3944
3945         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
3946         symbols-vms.adb, symbols-processing-vms-alpha.adb,
3947         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
3948         some occurrences of the pattern
3949            T.Increment_Last;
3950            T.Table (T.Last) := Value;
3951         with a cleaner call to
3952            T.Append (Value);
3953
3954 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
3955             Gary Dismukes  <dismukes@adacore.com>
3956             Thomas Quinot  <quinot@adacore.com>
3957
3958         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
3959         derived type with interface progenitors use the analyzed formal as the
3960         parent of the actual, to create renamings for all the inherited
3961         operations in Derive_Subprograms.
3962         (Collect_Previous_Instances): new procedure within of
3963         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
3964         unit being loaded, to ensure that the generation of global symbols is
3965         consistent in different compilation modes.
3966         (Is_Tagged_Ancestor): New function testing the ancestor relation that
3967         takes progenitor types into account.
3968         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
3969         traversing over the primitives of the formal and actual types to locate
3970         any abstract subprograms of the actual type that correspond to a
3971         nonabstract subprogram of the formal type's ancestor type(s), and issue
3972         an error if such is found.
3973         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
3974         Instantiate_Package_Body, Instantiate_Subprogram_Body):
3975         Remove bogus guard around calls to Inherit_Context.
3976         (Reset_Entity): If the entity is the selector of a selected component
3977         that denotes a named number, propagate constant-folding to the generic
3978         template only if the named number is global to the generic unit.
3979         (Set_Instance_Env): Only reset the compilation switches when compiling
3980         a predefined or internal unit.
3981
3982 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
3983
3984         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
3985         parameter to determine whether operation applies to the prefix.
3986         (Complete_Object_Operation): If actual has an access type and
3987         controlling formal is not an in_parameter, reject the actual if it is
3988         an access_to_constant type.
3989         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
3990         type, the candidate operations are found in the scope of declaration of
3991         the type, because the type has no primitive subprograms.
3992         (Analyze_Selected_Component): If prefix is class-wide, and root type is
3993         a private extension, only examine visible components before trying to
3994         analyze as a prefixed call.
3995         Change Entity_List to Type_To_Use, for better readability.
3996         (Has_Fixed_Op): Use base type when checking whether the type of an
3997         operator has a user-defined multiplication/division
3998         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
3999         user-defined operators are available for fixed-point types.
4000
4001 2007-08-14  Thomas Quinot  <quinot@adacore.com>
4002             Ed Schonberg  <schonberg@adacore.com>
4003
4004         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
4005         formal At_Any_Place indicating, when True, that we want to test for
4006         availability of the stream attribute at any place (as opposed to the
4007         current visibility context only).
4008         (Missing_Read_Write_Attributes): A stream attribute is missing for the
4009         purpose of enforcing E.2.2(8) only if it is not available at any place.
4010         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
4011         when checking the legality of an extension aggregate in a preelaborable
4012         package. Treat the literal null as a valid default expression in a
4013         component declaration for a type with preelaborable initialization.
4014         A limited interface is a legal progenitor for the designated type of a
4015         remote access to class-wide type.
4016
4017 2007-08-14  Thomas Quinot  <quinot@adacore.com>
4018             Ed Schonberg  <schonberg@adacore.com>
4019
4020         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
4021         reference): Use correct entity as denoted entity for the selector of
4022         the rewritten node.
4023         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
4024         setting the Referenced_As_LHS flag for entities that are implicitly
4025         dereferenced.
4026         (Find_Type): If the type is an internally generated incomplete type,
4027         mark the full view as referenced, to prevent spurious warnings.
4028         (Find_Selected_Component, Has_Components): Handle properly non-limited
4029         views that are themselves incomplete types.
4030         Handle interfaces visible through limited-with clauses.
4031         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
4032         subprogram generic actual for which we have generated a renaming.
4033         Warn when the renaming introduces a homonym of
4034         the renamed entity, and the renamed entity is directly visible.
4035
4036 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
4037             Hristian Kirtchev  <kirtchev@adacore.com>
4038
4039         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
4040         appear in the subtree to the current allocator if it is not a static
4041         coextension.
4042         (Resolve_Allocator): Perform cleanup if resolution has determined that
4043         the allocator is not a coextension.
4044         (Resolve): Skip an interpretation hidden by an abstract operator only
4045         when the type of the interpretation matches that of the context.
4046         (Resolve): When looping through all possible interpretations of a node,
4047         do not consider those that are hidden by abstract operators.
4048         (Resolve_Actuals): When verifying that an access to class-wide object
4049         is an actual  for a controlling formal, ignore anonymous access to
4050         subprograms whose return type is an access to class_wide type.
4051         (Resolve_Slice): If the prefix of the slice is a selected component
4052         whose type depends on discriminants, build its actual subtype before
4053         applying range checks on the bounds of the slice.
4054         (Valid_Conversion): In an instance or inlined body, compare root types,
4055         to prevent anomalies between private and public views.
4056         (Resolve): Improve error message for ambiguous fixed multiplication
4057         expressions that involve universal_fixed multiplying operations.
4058
4059 2007-08-14  Javier Miranda  <miranda@adacore.com>
4060             Hristian Kirtchev  <kirtchev@adacore.com>
4061
4062         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
4063         location to allow the correct generation of errors in case of
4064         restrictions applied to the expanded code.
4065         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
4066         function if the condition does not reference them.
4067         (Expand_Entry_Body_Declarations): Mark the index constant as having a
4068         valid value.
4069
4070 2007-08-14  Thomas Quinot  <quinot@adacore.com>
4071
4072         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
4073         typecode parameters for a union (in a variant record), remove
4074         extraneous layer of Any wrapping for member label.
4075         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
4076         elabration statements, register the package with the name server
4077         at the beginning, not at the end, of the elaboration statements so
4078         that they can create remote access to subprogram values that designate
4079         remote subprograms from the package.
4080
4081 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
4082
4083         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
4084         values to compute the number of seconds since the Unix Epoc in order to
4085         account for Daylight Savings Time. Perform special processing for dates
4086         that are earlier than the Unix Epoc to obtain a negative number.
4087
4088 2007-08-14  Emmanuel Briot  <briot@adacore.com>
4089
4090         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
4091         switches.
4092
4093 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
4094
4095         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
4096         binder-generated file is not in Ada.
4097         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
4098         recorded in the ALI file.
4099         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
4100
4101 2007-08-14  Vincent Celier  <celier@adacore.com>
4102
4103         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
4104         (Output_Source): Do nothing if parameter is No_Sdep_Id
4105
4106         * make.adb (Gnatmake): Do not rebuild an archive simply because a
4107         shared library it imports has a later time stamp.
4108         (Check): Resolve the symbolic links in the path name of the object
4109         directory.
4110         Check that the ALI file is in the correct object directory
4111         Check if a file name does not correspond to the mapping of units
4112         to file names.
4113         (Display_Version): New procedure
4114         (Initialize): Process switches --version and --help
4115         Use type Path_Name_Type for path name
4116
4117 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
4118
4119         * impunit.adb: Re-organize System.Random_Numbers and
4120         GNAT.Random_Numbers and add to builds.
4121
4122         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
4123
4124         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
4125
4126         * a-assert.ads, a-assert.adb: New files.
4127
4128 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
4129
4130         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
4131         if AAMP_On_Target is True, then the size of the type encompasses two
4132         addresses (a static link and a subprogram address), except in the case
4133         of library-level access types.
4134
4135 2007-08-14  Vincent Celier  <celier@adacore.com>
4136
4137         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
4138         writing the line.
4139         (Write_Eol_Keep_Blanks): New procedure to write a line, including
4140         possible trailing spaces.
4141         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
4142
4143 2007-08-14  Javier Miranda  <miranda@adacore.com>
4144
4145         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
4146         null-excluding access types.
4147
4148 2007-08-14  Javier Miranda  <miranda@adacore.com>
4149
4150         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
4151         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
4152         of private types add missing check on matching interfaces in the
4153         partial and full declarations.
4154         (Analyze_Protected_Type): Code cleanup.
4155         (Analyze_Task_Type): Code cleanup.
4156
4157 2007-08-14  Javier Miranda  <miranda@adacore.com>
4158
4159         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
4160         generated interface thunk.
4161
4162 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
4163
4164         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
4165         obsolescent warning on application of 'Class to an incomplete type.
4166
4167         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
4168         prevent obsolescent warning on application of 'Class to an incomplete
4169         type.
4170
4171 2007-08-14  Pascal Obry  <obry@adacore.com>
4172
4173         * s-fileio.adb (Is_Open): Add check for usability of the underlying
4174         file stream.
4175
4176 2007-08-14  Cyrille Comar  <comar@adacore.com>
4177
4178         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
4179         since it is potentially used in cases implying double finalization of
4180         the same object.
4181
4182 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
4183
4184         * s-tasini.adb (Get_Stack_Info): Move this function to
4185         System.Soft_Links.Tasking because it is common to the full and the
4186         restricted run times.
4187         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
4188         in SSL.Tasking.Init_Tasking_Soft_Links.
4189
4190         * s-solita.adb (Get_Stack_Info): Function moved from
4191         System.Tasking.Initialization because it is common to the full and the
4192         restricted run times.
4193         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
4194
4195 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
4196
4197         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
4198         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
4199         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
4200         parameter.
4201
4202         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
4203         guard to 12K.
4204
4205 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
4206
4207         * s-veboop.adb (SU): New named number initialized to
4208         System.Storage_Unit.
4209         (True_Val): The initialization expression is revised to use SU (=
4210         Storage_Unit) rather than assuming 8 for the component size of an
4211         unpacked Boolean array.
4212
4213 2007-08-14  Tristan Gingold  <gingold@adacore.com>
4214
4215         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
4216
4217         * tb-ivms.c: New file.
4218
4219         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
4220
4221 2007-08-14  Geert Bosch  <bosch@adacore.com>
4222
4223         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
4224         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
4225         Add required linker pragmas for automatically linking with the gnalasup
4226         linear algebra support library, and the systems math library.
4227         Rename cdot to cdotu and zdot to zdotu.
4228         Update header comment to describe purpose of package.
4229
4230 2007-08-14  Thomas Quinot  <quinot@adacore.com>
4231
4232         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
4233         an explicitly specified Associated_Final_Chain, use that list.
4234         (Expand_N_Package_Body): Build dispatch tables of library level tagged
4235         types.
4236         (Expand_N_Package_Declaration): Build dispatch tables of library level
4237         tagged types. Minor code cleanup.
4238
4239 2007-08-14  Vincent Celier  <celier@adacore.com>
4240
4241         * gnatchop.adb (Terminate_Program): Remove exception and use
4242         Types.Terminate_Program instead.
4243
4244         * osint.ads, osint.adb (Current_Exit_Status): New global variable
4245         (Find_Program_Name): Added protection against empty name.
4246         (OS_Exit_Through_Exception): New procedure
4247
4248         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
4249         (OS_Exit_Default): New procedure that contains the previous
4250         implementation of procedure OS_Exit.
4251         (Final_Value): Remove obsolete Interix stuff.
4252
4253 2007-08-14  Thomas Quinot  <quinot@adacore.com>
4254
4255         * g-socket.ads: Reorganize example code so that it also works on
4256         Windows XP.
4257
4258 2007-08-14  Tristan Gingold  <gingold@adacore.com>
4259
4260         * g-trasym.ads: AIX now supports symbolic backtraces.
4261
4262 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
4263
4264         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
4265         units being loaded to detect circularities. A circularity may be
4266         present even if the current chain of pending units to load starts from
4267         a limited_with_clause.
4268
4269         * lib-load.ads: Change profile of Load_Unit to use a with_clause
4270         rather than a boolean flag, in order to detect circularities in
4271         with_clauses.
4272
4273         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
4274         than propagating the From_Limited_With flag, in order to handle
4275         properly circularities involving with_clauses.
4276
4277 2007-08-14  Nicolas Setton  <setton@adacore.com>
4278
4279         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
4280         warnings.
4281
4282 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
4283
4284         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
4285         to build for libgnala.
4286         libgnat: Add rules to build libgnala.a
4287         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
4288         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
4289         Add s-osinte-vxworks-kernel.adb to the target pairs of the
4290         kernel run-time lib for VxWorks 6, which would provide a different
4291         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
4292         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
4293         running ZCX by default.
4294         Add g-sttsne-locking to LynxOS version.
4295         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
4296         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
4297
4298         * system-darwin-x86.ads: New file.
4299
4300         * Make-lang.in: Delete files before copying onto them, so if they are
4301         read-only, the copy won't fail.
4302         Update dependencies
4303
4304 2007-08-14  Pascal Obry  <obry@adacore.com>
4305
4306         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
4307         naming scheme.
4308
4309 2007-08-14  Vincent Celier  <celier@adacore.com>
4310
4311         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
4312         (Gcc): Initialize Gcc_Name at the first call
4313
4314 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
4315
4316         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
4317         with_clauses of the enclosing unit when analyzing the package
4318         specification of a nested instance.
4319
4320 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
4321
4322         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
4323         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
4324         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
4325         layout of N_Allocator.
4326
4327 2007-08-14  Thomas Quinot  <quinot@adacore.com>
4328
4329         * rtsfind.adb (Check_RPC): Add PCS version check.
4330
4331         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
4332         (Gnat_Free_Software): New function.
4333
4334         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
4335         the PCS_Version value from s-parint, used to check that it is consistent
4336         with what exp_dist expects.
4337
4338         * s-parint.ads (PCS_Version): New entity for checking consistency
4339         between exp_dist and PCS.
4340
4341         * gen-soccon.c: (SO_REUSEPORT): New constant.
4342
4343 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
4344
4345         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
4346         variable Sub_Second to Duration in order to accomodate a larger range
4347         of arithmetic operations.
4348
4349 2007-08-14  Bob Duff  <duff@adacore.com>
4350
4351         * g-sttsne-locking.ads: Move comments from spec to body.
4352         * g-sttsne-locking.adb: Move comments from spec to body.
4353         * g-sttsne-vxworks.ads: Removed.
4354         * g-sttsne-vxworks.adb: Removed.
4355
4356 2007-08-11  Ian Lance Taylor  <iant@google.com>
4357
4358         * misc.c (gnat_get_alias_set): Change return type to
4359         alias_set_type.
4360
4361 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4362
4363         * decl.c, utils2.c: Fix whitespace in last change.
4364
4365 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4366
4367         * decl.c (compare_field_bitpos): Constify.
4368         * utils2.c (compare_elmt_bitpos): Likewise.
4369
4370 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
4371
4372         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by 
4373         anonymous access type.
4374         (pthread_sigmask): Now take an access sigset_t.
4375
4376 2007-07-05  Joel Sherrill <joel.sherrill@oarcorp.com>
4377
4378         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
4379         
4380 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
4381
4382         PR tree-optimization/25737
4383         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
4384
4385 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4386
4387         * trans.c (Attribute_to_gnu): When subtracting an
4388         offset from a pointer, use POINTER_PLUS_EXPR with
4389         NEGATE_EXPR instead of MINUS_EXPR.
4390         (gnat_to_gnu): Likewise.
4391         * utils.c (convert): When converting between
4392         thin pointers, use POINTER_PLUS_EXPR and sizetype
4393         for the offset.
4394         * utils2.c (known_alignment): POINTER_PLUS_EXPR
4395         have the same semantics as PLUS_EXPR for alignment.
4396         (build_binary_op): Add support for the semantics of
4397         POINTER_PLUS_EXPR's operands.
4398         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
4399
4400 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
4401
4402         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
4403         of get_signed_or_unsigned_type.
4404         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
4405
4406 2007-06-11  Bob Duff  <duff@adacore.com>
4407             Thomas Quinot  <quinot@adacore.com>
4408
4409         * g-stsifd-sockets.adb (Create): Work around strange behavior of
4410         'bind' on windows that causes 'connect' to fail intermittently, by
4411         retrying the 'bind'.
4412         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
4413
4414 2007-06-10  Duncan Sands  <baldrick@free.fr>
4415
4416         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
4417         than to void, for the fields when making a new fat pointer type.
4418         (gnat_substitute_in_type): Now substitute_in_type.
4419         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
4420         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
4421         * utils.c (update_pointer_to): Update fat pointers by updating the
4422         dummy node pointers used for the fields.
4423
4424 2007-06-06  Thomas Quinot  <quinot@adacore.com>
4425             Bob Duff  <duff@adacore.com>
4426
4427         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
4428         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, 
4429         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
4430         constant Thread_Blocking_IO, always True by default, set False
4431         on a per-runtime basis.
4432         (Need_Netdb_Buffer): New constant.
4433
4434         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
4435         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
4436         files.
4437
4438         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
4439         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
4440         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
4441         child package Task_Safe_NetDB
4442         (Host_Error_Messages): Add stub body.
4443         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
4444
4445         * g-soccon-mingw.ads: Add Windows-specific constants.
4446         (Need_Netdb_Buffer): New constant.
4447         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
4448         wrapper and import inet_addr(3) from the standard sockets library
4449         directly instead.
4450         (In_Addr): Add alignment clause.
4451         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
4452
4453 2007-06-06  Robert Dewar  <dewar@adacore.com>
4454
4455         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
4456         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
4457         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
4458         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
4459         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
4460         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
4461         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
4462         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
4463         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
4464         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
4465         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
4466         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
4467         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
4468         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
4469         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
4470         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
4471         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
4472         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
4473         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
4474         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
4475         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
4476         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
4477         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
4478         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
4479         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
4480         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
4481         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
4482         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
4483         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
4484         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
4485         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
4486         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
4487         Unchecked_* by Ada.Unchecked_*
4488
4489 2007-06-06  Robert Dewar  <dewar@adacore.com>
4490
4491         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
4492         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
4493         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
4494         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
4495         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
4496         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
4497
4498         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
4499         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
4500         s-tasloc.adb, s-tasloc.ads: New files.
4501
4502 2007-06-06  Bob Duff  <duff@adacore.com>
4503
4504         * g-expect-vms.adb: 
4505         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
4506         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
4507         (Send_Signal, Close): Raise Invalid_Process if the process id is
4508         invalid.
4509         (Pattern_Matcher_Access): Is now a general access type to be able to
4510         use aliased string.
4511
4512 2007-06-06  Thomas Quinot  <quinot@adacore.com>
4513             Arnaud Charlet  <charlet@adacore.com>
4514
4515         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
4516         (SIGEMT is now used instead of SIGTERM on AIX).
4517
4518         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
4519         (Time_Slice_Supported): Set to True.
4520         Use SIGEMT instead of SIGTERM as SIGADAABORT.
4521
4522 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
4523
4524         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
4525         (Time, Time)): Use To_Relative_Time rather than manual calculation to
4526         express the bounds of Duration as Time. Raise Time_Error when the
4527         result is greater or equal to the higher bound of Duration (on the
4528         margin case).
4529         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
4530         Ada_High_And_Leaps.
4531         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
4532         Ada_High_And_Leaps.
4533         ("-" (Time, Time)): Reorder code.
4534         (All_Leap_Seconds): Removed.
4535         (Arithmetic_Operations.Add): Remove sign related kludge.
4536         (Arithmetic_Operations.Difference): Control the leaps seconds processing
4537         with flag Leap_Support.
4538         (Arithmetic_Operations.Subtract): Remove sign related kludge.
4539         (Check_Within_Time_Bounds): New procedure.
4540         (Clock): Control the leap seconds processing with flag Leap_Support.
4541         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
4542         (Formatting_Operations.Split): Control the leap seconds processing with
4543         flag Leap_Support.
4544         (Formatting_Operations.Time_Of): Control the leaps seconds processing
4545         with flag Leap_Support. Adjust the year, month and day (if applicable)
4546         when the value of day seconds designates a new day.
4547         (Split): Use parameter associations for better readability. Integrate
4548         flag Is_Ada_05.
4549         (Time_Of): Use parameter associations for better readability. Integrate
4550         flag Is_Ada_05.
4551
4552         * a-calfor.adb (Split): Use parameter associations for better
4553         readability. Integrate flag Is_Ada_05.
4554         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
4555         better readability. Integrate flag Is_Ada_05.
4556
4557 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
4558
4559         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb, 
4560         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb, 
4561         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb, 
4562         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads, 
4563         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb, 
4564         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb, 
4565         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads, 
4566         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads, 
4567         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads, 
4568         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
4569         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
4570         time when entering this routine to detect a backward clock setting
4571         (manual setting or DST adjustment), to avoid waiting for a longer delay
4572         than needed.
4573         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
4574         Remove handling of deferred priority change, and replace by setting the
4575         task priority directly, as required by AI-188.
4576         Update comments.
4577         (Max_Task_Image_Length): New constant.
4578         Replace Warnings (Off) by Unreferenced pragma, cleaner.
4579         (Dynamic_Priority_Support): Removed, no longer needed.
4580         (Poll_Base_Priority_Change): Ditto.
4581         (Set_Ceiling): Add this procedure to change the ceiling priority
4582         associated to a lock. This is a dummy implementation because dynamic
4583         priority ceilings are not supported by the underlying system.
4584
4585         * a-dynpri.adb (Set_Priority): Take into account case where Target is
4586         accepting a RV with its priority boosted.
4587         Remove handling of deferred priority change, and replace by setting the
4588         task priority directly, as required by AI-188.
4589
4590         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
4591         Succeeded = True.
4592         Remove handling of deferred priority change, and replace by setting the
4593         task priority directly, as required by AI-188.
4594         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
4595         of Self_Id earlier.
4596
4597         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
4598         (Poll_Base_Priority_Change): Removed.
4599         Code clean up: use SSL.Current_Target_Exception.
4600
4601         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
4602         to run as this is a potentially dispatching point.
4603         (Call_Synchronous): Use Local_Defer_Abort.
4604         (Callable): Relax assertion.
4605         (Selective_Wait): Relax assertion in case abort is not allowed.
4606         Remove handling of deferred priority change, and replace by setting the
4607         task priority directly, as required by AI-188.
4608
4609         * s-tasuti.adb (Make_Passive): Adjust assertions.
4610         Remove handling of deferred priority change, and replace by setting the
4611         task priority directly, as required by AI-188.
4612
4613 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
4614
4615         * system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
4616         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
4617         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads, 
4618         system-vxworks-mips.ads, system-vxworks-alpha.ads, 
4619         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads, 
4620         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads, 
4621         system-interix.ads, system-linux-hppa.ads, system-tru64.ads, 
4622         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads, 
4623         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
4624         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
4625         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
4626         This patch changes the largest non-binary modulus from 2**31-1 to
4627         2**32-1.
4628         (Compiler_System_Version): Removed, no longer used.
4629         Clean up system files by removing flags only used on a single target.
4630         Also remove obsolete flags, only used during bootstrap from system.ads
4631         (Address): Add a pragma Preelaborable_Initialization.
4632
4633         * system-aix.ads:  Ditto.
4634         (GCC_ZCX_Support): Set to true.
4635         Update priority range on AIX and map Ada priorities to target
4636         priorities appropriately for different scheduling policies.
4637
4638         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
4639
4640 2007-06-06  Vincent Celier  <celier@adacore.com>
4641
4642         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
4643         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
4644
4645         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb, 
4646         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb, 
4647         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, 
4648         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, 
4649         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
4650         MLib.Tgt, containing the default versions of the exported subprograms.
4651         For each platform, create a specific version of the body of new child
4652         package MLib.Tgt.Specific that contains only the body of subprograms
4653         that are different from the default.
4654         (Archive_Builder_Append_Options): New function.
4655
4656 2007-06-06  Matthew Gingell  <gingell@adacore.com>
4657
4658         * s-osinte-aix.adb: Map Ada priorities to target priorities
4659         appropriately for different scheduling policies.
4660
4661 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
4662
4663         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
4664         its C counterpart.
4665         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
4666         Replace Unchecked_Conversion by Ada.Unchecked_Conversion. 
4667
4668 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
4669
4670         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
4671         Noop on VMS, added for interface commonality.
4672
4673 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
4674             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4675             Olivier Hainque  <hainque@adacore.com>
4676
4677         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
4678         renamed expression of a full renaming at toplevel.
4679         (gnat_to_gnu_entity, case object): If not defining, do not look inside
4680         the values the constant is initialized to if it is an N_Allocator.
4681         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
4682         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
4683         (make_aligning_type): Accept an extra ROOM argument for storage to be
4684         made available before the aligned field, and an extra BASE_ALIGN
4685         argument for callers to pass the alignment guaranteed to be honored for
4686         the whole aligning object. Avoid call to finish_record_type, which only
4687         interferes with the sizes we want to set.
4688         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
4689         make_aligning_type for super-aligned objects on stack.
4690         (components_to_record): Pass the adjusted size of the type when creating
4691         fields in the qualified union for the variant part.
4692         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
4693         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
4694         packed array type.
4695         (maybe_pad_type): Set TYPE_USER_ALIGN.
4696         (make_aligning_type): Likewise.
4697         ALIGN argument is unsigned int.
4698         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
4699         (gnat_to_gnu_param): Likewise, for parameters.
4700         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
4701         if it is constant and stems from a function call.
4702         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
4703         of the record is specified.  Adjust accordingly.
4704         (adjust_packed): New static function.
4705         (gnat_to_gnu_field): Use it to adjust the packedness setting.
4706         (components_to_record): Likewise.
4707         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
4708         side-effects if the object is deemed constant.
4709         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
4710         type instead of merely finalizing it.  Tidy.
4711         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
4712         <E_Access_Type>: Likewise.
4713         (defer_debug_incomplete_list): Rename to defer_finalize_list.
4714         (defer_debug_level): Delete.
4715         (gnat_to_gnu_entity) <debug_deferred>: Likewise
4716         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
4717         type.
4718         <E_Record_Type>: Do not explicitly defer finalizing the type.
4719         Adjust for write_record_type_debug_info renaming.
4720         <E_Subprogram_Type>: Likewise.
4721         Finalize deferred types right after deferred incomplete types are
4722         expanded.
4723         (rest_of_type_decl_compilation): New global function.
4724         (components_to_record): Rename defer_debug parameter to do_not_finalize.
4725         (components_to_record): Propagate the packedness to the fields of the
4726         qualified union type if there is a variant part.
4727         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
4728         instead of inline code to adjust the XUT field offsets.
4729         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
4730         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
4731         and write the debug info if the type derives from a discriminated one.
4732         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
4733         <E_Array_Subtype>: Likewise.
4734         <E_String_Literal_Subtype>: Likewise.
4735         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
4736         an alignment clause.
4737         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
4738         before giving warning.
4739         (prepend_one_attribute_to): New function, helper to prepend an attribute
4740         to an attribute list.
4741         (gnat_to_gnu_entity) <E_Procedure>: Use it.
4742         (prepend_attributes): Likewise.
4743         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
4744         <E_Array_Type>: Declare the padding type for the element type, if any.
4745         <E_Array_Subtype>: Likewise.
4746         (defer_limited_with): New variable.
4747         (Gigi_Equivalent_Type): New function.
4748         (gnat_to_gnu_entity): Use it at start and use result throughout.
4749         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
4750         Gigi_Equivalent_Type, support Limited_With, allow two levels of
4751         indirection, precompute if unconstrained array to simplify logic, and
4752         use defer_limited_with to defer elaboration of some types from limited
4753         with.
4754         (finalize_from_with_types): New function.
4755
4756 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
4757             Eric Botcazou  <ebotcazou@adacore.com>
4758             Tristan Gingold  <gingold@adacore.com>
4759             Olivier Hainque  <hainque@adacore.com>
4760
4761         * trans.c (Identifier_to_gnu): Change test for deferred constant by
4762         adding guard that the entity is an E_Constant before testing presence
4763         of Full_view (and remove unnecessary test that entity is not a type).
4764         For a CONST_DECL used by reference, manually retrieve
4765         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
4766         (struct language_function): Move from utils.c to here.
4767         (struct parm_attr): New structure.
4768         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
4769         (f_parm_attr_cache): New macro.
4770         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
4771         expressions for the 'First, 'Last and 'Length attributes of the
4772         unconstrained array IN parameters.
4773         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
4774         Allocate the information structure for the function earlier, as well
4775         as the language-specific part.
4776         If the parameter attributes cache has been populated, evaluate the
4777         cached expressions on entry.
4778         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
4779         N_Procedure_Call_Statement and N_Indexed_Component.
4780         (Pragma_to_gnu): Translate inspection_point to an asm statement
4781         containaing a comment and a reference to the object (either its address
4782         for BLKmode or its value).
4783         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
4784         to go to DECL_INITIAL. Together with the size constraint relaxation
4785         in create_var_decl, enlarges the set of situations in which an
4786         identifier may be used as an initializer without implying elaboration
4787         code.
4788         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
4789         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
4790         node.
4791         (maybe_stabilize_reference): Remove lvalues_only parameter.
4792         (gnat_stabilize_reference): Adjust for above change.
4793         (gnat_to_gnu): Do not set location information on the result
4794         if it is a reference.
4795         (add_cleanup): Add gnat_node parameter and set the location of the
4796         cleanup to it.
4797         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
4798         (Exception_Handler_to_gnu_zcx): Likewise.
4799         (gigi): Remove the cgraph node if the elaboration procedure is empty.
4800         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
4801         the former right after the latter.
4802         (start_stmt_group): Make global.
4803         (end_stmt_group): Likewise.
4804         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
4805         vars.
4806         (gnu_program_error_label_stack): Likewise.
4807         (gigi): Initialize them.
4808         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
4809         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
4810         New cases.
4811         (push_exception_label_stack): New function.
4812         (takes_address): New function.
4813
4814         * utils.c (struct language_function): Move to trans.c from here.
4815         (unchecked_convert): Do not wrap up integer constants in
4816         VIEW_CONVERT_EXPRs.
4817         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
4818         the latter for aggregate types, unexpected by later passes, and relax an
4819         arbitrary size constraint on the former.
4820         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
4821         to compare the sizes.
4822         (convert_vms_descriptor): When converting to a fat pointer type, be
4823         prepared for a S descriptor at runtime in spite of a SB specification.
4824         (shift_unc_components_for_thin_pointers): New function.
4825         (write_record_type_debug_info): For variable-sized fields, cap the
4826         alignment of the pointer to the computed alignment.
4827         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
4828         If REP_LEVEL is 2, do not compute the sizes.
4829         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
4830         (build_unc_object_type): Likewise.
4831         (declare_debug_type): New function.
4832
4833         * ada-tree.def: USE_STMT: removed (not emitted anymore).
4834
4835         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
4836         no statement is expandable anymore.
4837         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
4838         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
4839         when the user requested it explicitely.
4840         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
4841         to 0 for Ada.
4842         (get_alias_set): Return alias set 0 for a type if
4843         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
4844
4845         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
4846         (DECL_FUNCTION_STUB): New accessor macro.
4847         (SET_DECL_FUNCTION_STUB): New setter macro.
4848
4849         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
4850
4851         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
4852         declarations.
4853
4854 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
4855
4856         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
4857         Rename to Abort_Task_Interrupt to be able to keep the same interface
4858         as the rest of the targets.
4859
4860         * s-osinte-vxworks.ads s-osinte-vxworks.adb
4861         (To_VxWorks_Priority): Remove explicit "in" mode indicator
4862
4863         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
4864         New files.
4865
4866 2007-06-06  Robert Dewar  <dewar@adacore.com>
4867
4868         * a-chahan.ads: Remove obsolescent pragmas
4869
4870         * a-chlat1.ads: Minor reformatting
4871
4872 2007-06-06  Robert Dewar  <dewar@adacore.com>
4873
4874         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
4875         for Errout
4876
4877         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
4878         implementation
4879
4880         * errout.ads (Finalize): Changed interface
4881         (Output_Messages): New procedure
4882         (Compilation_Errors): New Interface
4883
4884         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
4885         Finalize/Output_Messages interface for Errout
4886         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
4887         Errout.
4888
4889 2007-06-06  Thomas Quinot  <quinot@adacore.com>
4890             Olivier Hainque  <hainque@adacore.com>
4891             Robert Dewar  <dewar@adacore.com>
4892
4893         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
4894         check.
4895         (Raise_Current_Excep): Call Debug_Raise_Exception just before
4896         propagation starts, to let debuggers know about the event in a reliable
4897         fashion.
4898         (Local_Raise): Moved to System.Exceptions
4899         More convenient to have this as a separate unit
4900
4901         * s-except.adb, s-except.ads: New files.
4902
4903         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
4904         Debug_Unhandled_Exception in System.Exceptions where it belongs
4905         together with a couple of other debug helpers.
4906         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
4907         the former Unhandled_Exception.
4908
4909         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
4910         (Warn_No_Exception_Propagation): New procedure
4911         (Warn_If_No_Propagation): Rewritten for new warning generation
4912         (Expand_Exception_Handlers): New warning generation
4913         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
4914         (Add_Exception_Label): Use Special_Exception_Package_Used for test
4915         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
4916         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
4917         even if restriction is set (makes life easier in Check_Returns)
4918         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
4919         checking exception identities.
4920         (Expand_Local_Exception_Handlers): Do not optimize when all others case
4921         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
4922         block for handler (used by Check_Returns)
4923         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
4924         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
4925         remove all exception handlers when optimizing local raise statements.
4926         (Find_Local_Handler): Use Get_Renamed_Entity
4927         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
4928         marked analyzed after expanding exception handlers, do not generate
4929         redundant cleanup actions, because they have been constructed already.
4930
4931 2007-06-06  Thomas Quinot  <quinot@adacore.com>
4932
4933         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
4934         presence of this categorization pragma is mandated by the language.
4935         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
4936         for this type.
4937
4938 2007-06-06  Vincent Celier  <celier@adacore.com>
4939             Robert Dewar  <dewar@adacore.com>
4940
4941         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb, 
4942         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads, 
4943         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads, 
4944         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads, 
4945         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads, 
4946         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb, 
4947         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb, 
4948         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads, 
4949         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb, 
4950         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb, 
4951         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
4952         ali.ads, ali.adb: 
4953         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
4954         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
4955         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
4956         Use variables of types File_Name_Type and Unit_Name_Type in error
4957         messages.
4958         (Get_Name): Add parameter Ignore_Special, and set it reading file name
4959         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
4960         here.
4961         Define flags Flag217-Flag230 with associated subprograms
4962         (Flag_Word5): New record type.
4963         (Flag_Word5_Ptr): New access type.
4964         (To_Flag_Word5): New unchecked conversion.
4965         (To_Flag_Word5_Ptr): Likewise.
4966         (Flag216): New function.
4967         (Set_Flag216): New procedure.
4968
4969 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
4970
4971         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
4972         instead of 'Size.
4973
4974         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
4975
4976 2007-06-06  Javier Miranda  <miranda@adacore.com>
4977
4978         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
4979         the package.
4980         (Object_Specific_Data_Array): This is now internal to the package.
4981         (Object_Specific_Data): This is now internal to the package.
4982         (Select_Specific_Data_Element): This is now internal to the package.
4983         (Select_Specific_Data_Array): This is now internal to the package.
4984         (Select_Specific_Data): This is now internal to the package.
4985         (Offset_To_Top_Function_Ptr): This is now public.
4986         (To_Offset_To_Top_Function_Ptr): Removed.
4987         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
4988          local to subprogram Offset_To_Top.
4989         (Predefined_DT): Removed.
4990         (Typeinfo_Ptr): Removed.
4991         (OSD): This function is now internal to this package.
4992         (SSD): This function is now internal to this package.
4993         (DT): New function that displaces the pointer to the table of primitives
4994          to get access to the enclosing wrapper record.
4995         (IW_Membership): Code cleanup.
4996         (Offset_To_Top): Code cleanup.
4997         (Predefined_DT): Removed.
4998         (Register_Interface_Tag): Removed.
4999         (Set_Interface_Table): Removed.
5000         (Set_Offset_Index): Removed.
5001         (Set_Offset_To_Top): Code cleanup.
5002         (Set_OSD): Removed.
5003         (Set_Signature): Removed.
5004         (Set_SSD): Removed.
5005         (Set_Tagged_Kind): Removed.
5006         (Typeinfo_Ptr): Removed.
5007         (TSD): Removed.
5008         (Displace): Add missing check on null actual.
5009
5010         * exp_disp.ads, exp_disp.adb
5011         (Select_Expansion_Utilities): Removed.
5012         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
5013         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
5014         the interface requires a new parameter.
5015         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
5016         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
5017         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
5018         Done to remove package Select_Expansion_Utilities.
5019         (Make_DT): New implementation for statically allocated dispatch tables.
5020         (Make_Secondary_DT): Moved to the scope of Make_DT.
5021         (Register_Primitive): Code cleanup plus incoporate the use of the new
5022         function DT_Address_Attribute.
5023         (Expand_Interface_Thunk): The profile of this subprogram has been
5024         changed to return the Thunk_Id and the corresponding code.
5025         (Fill_DT_Entry): Removed. Its functionality is now provided by
5026         subprogram Register_Primitive.
5027         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
5028         subprogram Register_Primitive.
5029         (Register_Primitive): New subprogram that incorporates the previous
5030         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
5031         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
5032         was only required to call Make_DT_Access_Action, which is now removed.
5033         (Ada_Actions): Removed
5034         (Action_Is_Proc): Removed
5035         (Action_Nb_Arg): Removed
5036         Replace all the calls to Make_DT_Access_Action by direct calls to
5037         Make_Procedure_Call_Statement or Make_Function_Call.
5038         (Set_DTC_Entity_Value): New subprogram.
5039         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
5040         (Expand_Interface_Thunk): Add missing support for primitives that are
5041         functions with a controlling result (case in which there is no need
5042         to generate the thunk).
5043
5044         * exp_atag.ads, exp_atag.adb
5045         (Build_DT): New subprogram that displaces the pointer to reference the
5046         base of the wrapper record.
5047         (Build_Typeinfo_Offset): Removed.
5048         (RTE_Tag_Node): Removed.
5049         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
5050         (Build_Get_RC_Offset): Removed.
5051         (Build_Inherit_Predefined_Prims): Removed.
5052         (Build_Inherit_TSD: Removed.
5053         (Build_New_TSD): Removed.
5054         (Build_Set_External_Tag): Removed.
5055         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
5056         (Build_Set_Prim_Op_Address): Add documentation.
5057         (Build_Set_TSD): Removed.
5058
5059         * rtsfind.ads, rtsfind.adb
5060         (Load_Fail): If load fails and we are not in configurable run-time
5061         mode, then raise Unrecoverable_Error.
5062         (Text_IO_Kludge): Generate an error message if a run-time library is
5063         not available in a given run-time (ie. zfp run-time).
5064         (RTE_Record_Component): Add code to check that the component we search
5065         for is not found in two records in the given run-time package.
5066         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
5067         (RE_DT_Predef_Prims_Offset): New entity
5068         (RE_Static_Offset_To_Top): New entity
5069         (RE_HT_Link): New entity.
5070         (System_Address_Image): Addition of this run-time package.
5071         (RE_Address_Image): New entity.
5072         (RE_Abstract_Interface): Removed.
5073         (RE_Default_Prim_Op_Count): Removed.
5074         (RE_DT_Entry_Size): Removed.
5075         (RE_DT_Min_Prologue_Size): Removed.
5076         (RE_DT_Prologue_Size): Removed.
5077         (RE_Ifaces_Table_Ptr): Removed.
5078         (RE_Interface_Data_Ptr): Removed.
5079         (RE_Type_Specific_Data): Removed.
5080         (RE_Primary_DT): Removed.
5081         (RE_Register_Interface_Tag): Removed.
5082         (RE_Set_Offset_Index): Removed.
5083         (RE_Set_OSD): Removed.
5084         (RE_Set_SSD): Removed.
5085         (RE_Set_Signature): Removed.
5086         (RE_Set_Tagged_Kind): Removed.
5087         (RE_Address_Array): New entity.
5088         (RE_DT): New entity.
5089         (RE_Iface_Tag): New entity.
5090         (RE_Interfaces_Table): New entity.
5091         (RE_No_Dispatch_Table): New entity.
5092         (RE_NDT_Prims_Ptr): New entity.
5093         (RE_NDT_TSD): New entity.
5094         (RE_Num_Prims): New entity.
5095         (RE_Offset_To_Top_Function_Ptr): New entity.
5096         (RE_OSD_Table): New entity.
5097         (RE_OSD_Num_Prims): New entity.
5098         (RE_Predef_Prims): New entity
5099         (RE_Predef_Prims_Table_Ptr): New entity.
5100         (RE_Primary_DT): New entity.
5101         (RE_Signature): New entity.
5102         (RE_SSD): New entity.
5103         (RE_TSD): New entity.
5104         (RE_Type_Specific_Data): New entity.
5105         (RE_Tag_Kind): New entity.
5106
5107 2007-06-06  Thomas Quinot  <quinot@adacore.com>
5108
5109         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
5110         C imported variable.
5111         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
5112         on entry.
5113
5114 2007-06-06  Robert Dewar  <dewar@adacore.com>
5115
5116         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
5117         character
5118
5119 2007-06-06  Vincent Celier  <celier@adacore.com>
5120
5121         * a-tifiio.adb (Put, internal): For negative numbers, check that there
5122         is room for at least one digit and the minus sign.
5123         (Put.Put_Character): Never put a character outside of the range of
5124         string To.
5125
5126 2007-06-06  Olivier Hainque  <hainque@adacore.com>
5127             Eric Botcazou  <ebotcazou@adacore.com>
5128
5129         * utils2.c (build_allocator): Provide the extra arguments to
5130         make_aligning_type for super-aligned objects allocated from the default
5131         pool. Leave enough room for a pointer before the aligning field, and
5132         store the system's allocator return value there.
5133         (build_call_alloc_dealloc): When releasing a super-aligned object,
5134         retrieve the system's allocator return value from where build_allocator
5135         has stored it, just ahead of the adjusted address we are passed.
5136         (build_call_raise): Handle properly the generation of line numbers when
5137         the node is marked No_Location.
5138         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
5139         by using DECL_UID on ties.
5140         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
5141         main variant.
5142         (build_call_raise): Handle converting exception into goto; support new
5143         argument KIND.
5144         (build_component_ref): Add new arg to build_call_raise.
5145
5146 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
5147
5148         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
5149         "." in the case of nnn.xxx when nnn terminates with an underscore.
5150         Parse the remaining "#" or ":" in the case of nnn#.xxx#
5151
5152 2007-06-06  Robert Dewar  <dewar@adacore.com>
5153
5154         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
5155
5156 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
5157             Vincent Celier  <celier@adacore.com>
5158             Robert Dewar  <dewar@adacore.com>
5159
5160         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
5161         needed.
5162         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
5163         ((destructor)) for adafinal, even when switch -a is used.
5164         Do not issue pragma Linker_Destructor for adafinal when switch -a is
5165         used.
5166         (Gen_Object_Files_Options): Add formatting of Linker Options, when
5167         Output_Linker_Option_List is set. Suppress this formatting when
5168         Zero_Formatting is set.
5169         Add case for CLI_Target.
5170         (System_Restrictions_Used): New flag, used to avoid generating with of
5171         System_Restrictions and initialization of the data unless there is
5172         some use of System.Restrictions in the partition.
5173         (Check_System_Restrictions_Used): New procedure
5174
5175         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
5176         since we only with this unit in the binder file if it is used elsewhere
5177         in the partition.
5178
5179 2007-06-06  Vincent Celier  <celier@adacore.com>
5180
5181         * bindusg.adb: Add line for @<response file>
5182         Add lines for new switches -R and -Z
5183
5184         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
5185         hierarchy in the list of files of the closure when -R is used
5186         (Gnatbind): Accept arguments starting with '@' to indicate response
5187         files and take the arguments from the response files.
5188         If List_Closure is set, display the referenced files
5189
5190 2007-06-06  Javier Miranda  <miranda@adacore.com>
5191             Robert Dewar  <dewar@adacore.com>
5192             Ed Schonberg  <schonberg@adacore.com>
5193
5194         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
5195         which the address-clause is applied to in-mode actuals (allowed by
5196         13.1(22)).
5197         (Apply_Discriminant_Check): Do not generate a check if the type is
5198         constrained by a current instance.
5199         (Activate_Division_Check): New procedure
5200         (Activate_Overflow_Check): New procedure
5201         (Activate_Range_Check): New procedure
5202         Call these new Activate procedures instead of setting flags directly
5203         (Apply_Array_Size_Check): Removed, no longer needed.
5204         Code clean up: remove obsolete code related to GCC 2.
5205         (Get_E_Length): Protect against bomb in case scope is standard
5206         (Selected_Range_Checks): If the node to be checked is a conversion to
5207         an unconstrained array type, and the expression is a slice, use the
5208         bounds of the slice to construct the required constraint checks.
5209         Improve NOT NULL error messages
5210         (Apply_Constraint_Check): If the context is a null-excluding access
5211         type, diagnose properly the literal null.
5212
5213 2007-06-06  Pascal Obry  <obry@adacore.com>
5214
5215         * clean.adb (Clean_Archive): Use untouched casing for the archive name
5216         and the corresponding .deps file.
5217         (Clean_Interface_Copy_Directory): Use untouched casing for the library
5218         src directory. Minor code-clean-up. Use untouched casing for files
5219         read into the library src dir.
5220         (Clean_Library_Directory): Idem.
5221         (Parse_Cmd_Line): Accept new switch -aP
5222
5223 2007-06-06  Javier Miranda  <miranda@adacore.com>
5224             Ed Schonberg  <schonberg@adacore.com>
5225             Robert Dewar  <dewar@adacore.com>
5226             Eric Botcazou  <ebotcazou@adacore.com>
5227             Arnaud Charlet  <charlet@adacore.com>
5228
5229         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
5230         applicable to types that have the With_Type flag set. Returns the
5231         non-limited view of the type, if available, otherwise the type itself.
5232         For class-wide types, there is no direct link in the tree, so we have
5233         to retrieve the class-wide type of the non-limited view of the Etype.
5234         New attributes Static_Initialization and Static_Elaboration_Desired.
5235         Remove the pragma Thread_Body, and the associated flag
5236         Is_Thread_Body in entities, and all related code.
5237         (Suppress_Value_Tracking_On_Call): New flag
5238         E_Exception has Esize and Alignment fields
5239         (Universal_Aliasing): New function.
5240         (Set_Universal_Aliasing): New procedure.
5241         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
5242         (Check_Nested_Access): New procedure.
5243         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
5244         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
5245         (Related_Interface): New attribute. Present in dispatch table pointer
5246         components of records. Set to point to the entity of the corresponding
5247         interface type.
5248         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
5249         (Original_Access_Type): Remove, not needed.
5250         (Root_Type): Handle properly subtypes of class-wide-types.
5251         Update comments.
5252
5253         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
5254         class-wide types visible through limited-with clauses.
5255         (Try_Primitive_Operation): When examining all primitive operations of a
5256         tagged type, do not consider subprograms labeled as hidden unless they
5257         belong to a private generic type with a tagged parent.
5258         (Try_Object_Operation): Extensive rewriting, to handle properly various
5259         overloading cases, when several ancestors may have class-wide operations
5260         that are possible candidates, and when the overloaded functions return
5261         array types and have defaulted parameters so that the call may be
5262         interpreted as an indexing.
5263         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
5264         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
5265         successive actuals before analyzing the call itself.
5266         (Try_Primitive_Operation): A primitive operation is compatible with the
5267         prefix if the prefix has a synchronized type and the type of the formal
5268         is its corresponding record, as can be the case when the primitive
5269         operation is declared outside of the body of the type.
5270         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
5271         perform homonym traversal, looking for class-wide operation matches
5272         (formerly done in statements of Try_Class_Wide_Operation). Matches on
5273         access parameters are now restricted to anonymous access types.
5274         (Mark_Allocator): An allocator with a discriminant association parent is
5275         a coextension.
5276         (Try_One_Prefix_Interpretation): If the type of the object is
5277         incomplete, as can be happen when it is a limited view obtained through
5278         a limited_with_clause, the selected component is not part of a prefixed
5279         call.
5280         (Complete_Object_Operation): Diagnose properly an object that is not
5281         aliased when the corresponding controlling formal is an access
5282         parameter.
5283         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
5284         ambiguous calls in prefixed notation, where two primitives differ only
5285         in that the controlling argument of one is an access parameter.
5286
5287         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
5288         whether a function that returns an unconstrained type can be inlined.
5289         (Process_Formals): Diagnose properly the illegal use of an incomplete
5290         type in the profile of an access_to_subprogram declaration.
5291         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
5292         operations are attached to the corresponding record.
5293         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
5294         When processing a primitive of a concurrent type which implements an
5295         interface change the type of all controlling formals to that of the
5296         corresponding record type.
5297         (Check_Synchronized_Overriding): Relax the conditional logic when trying
5298         to determine the tagged type to which a primitive belongs.
5299         (Check_Conventions): Capture condition to ignore a primitive operation
5300         (which is shared between the loop in Check_Conventions and the one in
5301         Check_Convention) in a new local function Skip_Check.
5302         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
5303         confusion with Check_Conventions' own Prim_Op local variable.
5304         (Create_Extra_Formals): Test for a tagged result type rather than a
5305         controlling result when determining whether to add a BIP_Alloc_Form
5306         formal and a BIP_Final_List formal to the function.
5307         (Check_Conformance); For parameters that are anonymous access types,
5308         subtype conformance requires that the not null and the constant
5309         indicators must match
5310         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
5311         to retrieve the appropriate type when processing a concurrent type
5312         declared within a generic. Minor comment reformatting. Change invocation
5313         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
5314         mitive.
5315         (Analyze_Subprogram_Body): If the return type of a function is an
5316         anonymous access to the limited view of a class-wide type, and the
5317         non-limited view of the type is available, update the type of the
5318         function so that code can be generated.
5319         (Process_Formals): In case of access-subtype itype whose designated
5320         type is also an itype (situation that happens now with access to
5321         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
5322         attribute to avoid backend problems.
5323         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
5324         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
5325         anonymous types' designated types are same before testing
5326         Subtypes_Statically_Match.
5327         (Create_Extra_Formals): Test for a named access parameter that is a
5328         controlling formal as an additional condition for adding an
5329         accessibility level formal. This can occur in the subp type created for
5330         dispatching calls in Expand_Dispatching_Call, and allows calling
5331         Create_Extra_Formals from that procedure rather than special-casing the
5332         extra formals there.
5333         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
5334         when the function has a controlling result.
5335         (Check_Returns): Add much more knowledge of the optimization of local
5336         raise statements to gotos, to retain proper warnings in this case.
5337         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
5338         nodes when looking for last statement.
5339
5340         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
5341         class-wide types visible through limited with clauses.
5342         (Add_One_Interp): If the operands are anonymous access types, the
5343         predefined operator on universal_access is immediately visibles
5344         (Find_Unique_Type): Handle anonymous access to subprogram types just as
5345         other anonymous access types.
5346         (Disambiguate): Take into account CIL convention.
5347         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
5348
5349 2007-06-06  Robert Dewar  <dewar@adacore.com>
5350
5351         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
5352         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
5353         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
5354         Fix lower bound of tables.
5355         Add rep clauses.
5356
5357         * nlists.adb: Ditto.
5358         (Prev_Node, Next_Node): Change index type to Int so that it properly
5359         covers the range First_Node_Id - 1 up.
5360
5361 2007-06-06  Javier Miranda  <miranda@adacore.com>
5362             Ed Schonberg  <schonberg@adacore.com>
5363             Bob Duff  <duff@adacore.com>
5364             Hristian Kirtchev  <kirtchev@adacore.com>
5365
5366         * exp_aggr.ads, exp_aggr.adb: 
5367         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
5368         in extension aggregates.
5369         (Flatten): Other conditions being met, an aggregate is static if the
5370         low bound given by component associations is different from the low
5371         bound of the base index type.
5372         (Packed_Array_Aggregate_Handled): If the component type is itself a
5373         packed array or record, the front-end must expand into assignments.
5374         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
5375         Init_Pr, instead of Ancestor_Is_Expression.
5376         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
5377         coextension chain root, either generate a list controller or use the
5378         already existing one.
5379         (Static_Array_Aggregate): New procedure to construct a positional
5380         aggregate that can be handled by the backend, when all bounds and
5381         components are compile-time known constants.
5382         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
5383         types covering interface types into assignments.
5384         (Replace_Type): move to Build_Record_Aggr_Code.
5385         (Expand_Record_Aggr_Code): if the target of the aggregate is an
5386         interface type, convert to the definite type of the aggregate itself,
5387         so that needed components are visible.
5388         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
5389         components and the context is an extended return statement do not
5390         create a transient block for it, to prevent premature finalization
5391         before the return is executed.
5392         (Gen_Assign): Do not generate a call to deep adjust routine if the
5393         component type is itself an array of controlled (sub)-components
5394         initialized with an inner aggregate.
5395         (Component_Check): New name for Static_Check. This name is now more
5396         appropriate, and documentation is added which was missing.
5397         (Component_Check): Add test for bit aligned component value
5398         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
5399         Tagged_Comps, name is more appropriate given added function below.
5400         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
5401
5402 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
5403             Javier Miranda  <miranda@adacore.com>
5404             Robert Dewar  <dewar@adacore.com>
5405
5406         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
5407         Terminated: Add unchecked type conversion from System.Address to
5408         System.Tasking.Task_Id when calling the predefined primitive
5409         _disp_get_task_id.
5410         Disable new Ada 05 accessibility check for JVM.NET targets, which
5411         cannot be implemented in a practical way.
5412         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
5413         the sources always references the tag of the actual object. Therefore,
5414         if 'Tag is applied in the sources to class-wide interface objects we
5415         generate code that displaces "this" to reference the base of the object.
5416         (Expand_N_Attribute_Reference, case Size): Return specified size if
5417         known to front end.
5418         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
5419         has code that displaces the pointer of the object to manage interface
5420         types. However this code must not be executed when the prefix is a
5421         subprogram. This bug caused the wrong expansion of the internally
5422         generated assignment that fills the dispatch table when the primitive
5423         is a function returning a class-wide interface type.
5424         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
5425         Set_Attribute_Name for Name_Unaligned_Valid.
5426
5427 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
5428             Gary Dismukes  <dismukes@adacore.com>
5429
5430         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
5431         If the initialization is the equivalent aggregate of the initialization
5432         procedure of the type, do not remove it.
5433         (Expand_N_Attribute_Definition_Clause): Exclude access variables
5434         initialized to null from having their expression reset to empty and
5435         note this exception in the comment.
5436
5437 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
5438             Robert Dewar  <dewar@adacore.com>
5439             Ed Schonberg  <schonberg@adacore.com>
5440             Gary Dismukes  <dismukes@adacore.com>
5441
5442         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
5443         Add "with" and "use" clauses for Sem_Attr.
5444         (Expand_Current_Value): Do not replace occurences of attribute
5445         references where the prefix must be a simple name.
5446
5447         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
5448         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
5449         Attribute_Requires_Simple_Name_Prefix.
5450         (Name_Modifies_Prefix): Body of new function.
5451         (Requires_Simple_Name_Prefix): Body of new function.
5452         (Resolve_Attribute, case Access): Improve error message for case of
5453         mismatched conventions.
5454         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
5455         incomplete type.
5456         (Analyze_Attribute, case 'Access): If the type of the prefix is a
5457         constrained subtype for a nominal unconstrained type, use its base type
5458         to check for conformance with the context.
5459         (Resolve_Attribute): Remove test of the access type being associated
5460         with a return statement from condition for performing accessibility
5461         checks on access attributes, since this case is now captured by
5462         Is_Local_Anonymous_Access.
5463         (Analyze_Access_Attribute): Set Address_Taken on entity
5464         (Analyze_Attribute, case Address): Set Address_Taken on entity
5465         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
5466         validating an access attribute whose prefix is a current instance.
5467         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
5468         applied to dispatching operations, if freezing is required then we set
5469         the attribute Has_Delayed_Freeze in the prefix's entity.
5470         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
5471         current scope if access of local subprogram taken
5472         (Analyze_Access_Attribute): Check legality of self-reference even if the
5473         expression comes from source, as when a single component association in
5474         an aggregate has a box association.
5475         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
5476         the prefix if it is a protected operation and the attribute is
5477         Unrestricted_Access.
5478         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
5479         reference to the base type of the context, to force a constraint check
5480         when the context is an access subtype with an explicit constraint.
5481         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
5482         node is rewritten as an interface conversion. leave unanalyzed after
5483         resolution, to ensure that type checking against the context will take
5484         place.
5485
5486 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
5487             Javier Miranda  <miranda@adacore.com>
5488             Robert Dewar  <dewar@adacore.com>
5489
5490         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
5491         wrapper when the full view of the controlling type of an inherited
5492         function that dispatches on result implements interfaces.
5493         (Expand_N_Object_Declaration): In cases where the type of the
5494         declaration is anonymous access, create finalization list for it.
5495         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
5496         if the object has no explicit initialization, to match description of
5497         functionality of pragam Persistent_BSS.
5498         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
5499         new function to build static aggregates, to replace initialization call
5500         when static initialization is desired.
5501         (Freeze_Type): Generate a list controller for an access type whenever
5502         its designated type has controlled anonymous access discriminants.
5503         (Build_Equivalent_Aggregate): New procedure to compute a static
5504         aggregate to be used as default initialization for composite types,
5505         instead of a generating a call to the initialization procedure for the
5506         type.
5507         (Build_Initialization_Call): When available, replace a call to the
5508         initialization procedure with a copy of the equivalent static aggregate
5509         for the type.
5510         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
5511         declarations for objects of a class-wide interface type, rather than
5512         just identifiers, to prevent visibility problems.
5513         (Expand_N_Object_Declaration): When expanding the declaration for an
5514         object of a class-wide interface type, preserve the homonym chain of
5515         the original entity before exchanging it with that of the generated
5516         renaming declaration.
5517         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
5518         active, because there is no way to handle the exception.
5519         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
5520         to do a minimum decoration of the Access_Disp_Table list.
5521         (Expand_Record_Controller): Avoid the addition of the controller between
5522         the component containing the tag of a secondary dispatch table and its
5523         adjacent component that stores the offset to the base of the object.
5524         This latter component is only generated when the parent type has
5525         discriminants ---documented in Add_Interface_Tag_Components).
5526         (Apply_Array_Size_Check): Removed, no longer needed.
5527         (Expand_N_Full_Type_Declaration): If the type has anonymous access
5528         components, create a Master_Entity for it only if it contains tasks.
5529         (Build_Init_Procedure): Suppress the tag assignment compiling under
5530         no run-time mode.
5531         (Freeze_Record_Type): Remove code associated with creation of dispatch
5532         table.
5533         (Init_Secondary_Tags): Update type of actuals when generating calls to
5534         Ada.Tags.Set_Offset_To_Top
5535         (Stream_Operation_OK): Disable use of streams compiling under no
5536         run-time mode
5537         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
5538         if Has_Init_Expression set.
5539         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
5540         Register_Primitive, which provides the same functionality.
5541         (Requires_Init_Proc): Return false in case of interface types.
5542         (Add_Secondary_Tables): Use the new attribute Related_Interface to
5543         cleanup the code.
5544         (Predefined_Primitive_Freeze): Do not assume that an internal entity
5545         is always associated with a predefined primitive because the internal
5546         entities associated with interface types are not predefined primitives.
5547         Therefore, the call to Is_Internal is replaced by a call to the
5548         function Is_Predefined_Dispatching_Operation.
5549         (Make_Eq_If): When generating the list of comparisons for the
5550         components of a given variant, omit the controller component that is
5551         present if the variant has controlled components.
5552
5553 2007-06-06  Javier Miranda  <miranda@adacore.com>
5554             Hristian Kirtchev  <kirtchev@adacore.com>
5555             Bob Duff  <duff@adacore.com>
5556
5557         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
5558         handle the creation of finalization lists and calls for nested
5559         coextensions when the root of the chains is part of a return statement.
5560         (Inside_A_Return_Statement): New function inside Complete_Coextension_
5561         Finalization.
5562         (Expand_Record_Equality): Skip components that are interface types.
5563         (Displace_Allocator_Pointer): Add missing support for interface subtypes
5564         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
5565         with Rewrite_Coextension. Change the condition for detecting coextension
5566         root nodes.
5567         (Is_Local_Access_Discriminant): Removed.
5568         (Rewrite_Coextension): New routine which rewrites a static coextension
5569         as a temporary and uses its unrestricted access in the construction of
5570         the outer object.
5571         (Complete_Coextension_Finalization): New routine. Generate finalization
5572         attachment calls to all delayed coextensions.
5573         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
5574         the allocator is not a coextension itself and has delayed coextensions.
5575         If the current allocator is controlled, but also a coextension, delay
5576         the generation of the finalization attachment call.
5577         Rename local variable "Node" to "Nod" in order to avoid confusion with
5578         "Elists.Node".
5579         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
5580         limited types that are not inherently limited. Such an allocator is
5581         illegal, but is generated by the expander for a return statement, to
5582         copy the result onto the secondary stack. This is the only case where a
5583         limited object can be copied. Generate code to displace the pointer
5584         to the object if the qualified expression is a class-wide interface
5585         object. Such displacement was missing and hence the copy of the object
5586         was wrong.
5587         (Apply_Accessibility_Check): Handle allocated objects initialized in
5588         place.
5589         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
5590         and Expand_Allocator_Expression. Allocating class-wide interface objects
5591         this routine displaces the pointer to the allocated object to reference
5592         the component referencing the corresponding secondary dispatch table.
5593         Expand_Allocator_Expression): Add missing support to allocate class-wide
5594         interface objects initialized with a qualified expression.
5595         (Get_Allocator_Final_List): Test for an anonymous access type that is a
5596         function result type, and use the finalization list associated with the
5597         function scope in that case (such an anonymous type should not be
5598         treated like an access parameter's type).
5599
5600 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
5601             Gary Dismukes  <dismukes@adacore.com>
5602             Javier Miranda  <miranda@adacore.com>
5603
5604         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
5605         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
5606         required exception handler.
5607         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
5608         properly the case of a function whose return type is a limited
5609         class-wide interface type. Modify the code of the accessibility
5610         check to handle class-wide interface objects. In this case we need to
5611         displace "this" to reference the primary dispatch table to get access
5612         to the TSD of the object (to evaluate its accessibility level).
5613         (Expand_N_Extended_Return_Statement): Test for a tagged result type
5614         rather than a controlling result as one of the conditions for
5615         generating tests of the implicit BIP_Alloc_Form formal. The
5616         initialization assignment is also handled according to whether the
5617         result is tagged instead of controlling.
5618         In the case where the init assignment is inserted in the "then" part of
5619         the allocation conditional, rewrite the target to be a dereference of
5620         the implicit BIP_Object_Access formal.
5621         If the returned value is unconstrained and created on the secondary
5622         stack, mark the enclosing block and function so that the secondary
5623         stack is not reclaimed on return.
5624         Treat returns from functions with controlling results similarly to
5625         returns from functions with unconstrained result subtypes.
5626         If the object returned is unconstrained, and an allocator must be
5627         created for it, analyze the allocator once the block for the extended
5628         return is installed, to ensure that finalizable components
5629         of the expression use the proper finalization list. Guard the call to
5630         Move_Final_List with a check that there is something to finalize.
5631         (Make_Tag_Ctrl_Assignment): Use "old" handling
5632         of controlled type assignment for virtual machines, since new code uses
5633         unsupported features (such as direct access to bytes in memory).
5634
5635 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
5636             Ed Schonberg  <schonberg@adacore.com>
5637
5638         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
5639         accessibility actual, check for the case of an aliased object that has
5640         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
5641         we fall into processing for the attribute rather than the name of the
5642         object.
5643         (Expand_Inline_Call): If an actual is a literal, and the corresponding
5644         formal has its address taken in the body, create a temporary to capture
5645         value.  If the return type is a limited interface, do not treat the
5646         return value as Controlled.
5647         (Is_In_Place_Function):  If the return type is a limited interface,
5648         treat as returning in place. The actual returned object may not always
5649         be limited, but the caller has to assume that it is returned in place.
5650         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
5651         context of an allocator, use the correct finalization chain (that is,
5652         the chain belonging to the access type, rather than the chain belonging
5653         to the current scope).
5654         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
5655         result type rather than a controlling result as a precondition for
5656         adding an allocation form actual to a build-in-place call.
5657         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
5658         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
5659         primitive in the dispatch tables. This work is now done by Make_DT when
5660         the type is frozen.
5661         (Register_Predefined_DT_Entry): Removed.
5662         (Add_Return): If end label is not present, use sloc of last statement
5663         for generated return statement in procedure, for better gdb behavior
5664         on expanded code.
5665         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
5666         object address nodes to ensure proper processing by routines like
5667         Insert_After*.
5668         (Expand_Call): Fix generation of validity check for parameter
5669         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
5670         the allocation form parameter if the result subtype is constrained,
5671         except when the function has a controlling result.
5672         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
5673         rather than Is_Controlled and Has_Controlled_Component, since we want to
5674         include class-wide result types in this treatment. Also test for a
5675         controlling result, since that also requires passing a finalization
5676         list.
5677         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
5678         even when the result subtype is constrained, to handle calls involving
5679         controlling results.
5680         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
5681         is now called even when the result subtype is constrained, to handle
5682         calls involving controlling results.
5683         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
5684         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
5685         now performs the test).
5686         (Make_Build_In_Place_Call_In_Object_Declaration):
5687         Add_Alloc_Form_Actual_* is now called even when the result subtype is
5688         constrained, to handle calls involving controlling results.
5689         (Add_Return): Accomodate rewritten pattern from local raise to goto
5690         transformation, so that we still recognize an transfer statement
5691         and do the right thing here in that case.
5692         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
5693         and end of subprogram code.
5694         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
5695         support for primitives that are functions (without formals) with a
5696         controlling result.
5697         (Inherited_From_Formal): If the actual subtype has not generic parent
5698         type, it is not an actual for a formal derived type, and there is no
5699         operation to inherit from the formal.
5700
5701 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
5702             Thomas Quinot  <quinot@adacore.com>
5703
5704         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
5705         inserted cleanup code appropriately for GDB use.
5706         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
5707         exception handler for Deep_Adjust or Deep_Finalize.
5708         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
5709         Raise_From_Controlled_Operation is available, use a call to that
5710         subprogram instead of a plain "raise Program_Error" node to raise
5711         Program_Error if an exception is propagated from an Adjust or Finalize
5712         operation.
5713         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
5714         appears in the optional statement list of a triggering alternative, the
5715         scope actions can be inserted directly there, and not in the list that
5716         includes the asynchronous select itself.
5717
5718 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
5719             Robert Dewar  <dewar@adacore.com>
5720             Hristian Kirtchev  <kirtchev@adacore.com>
5721
5722         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
5723         generated exception handler appropriately when debugging generated code.
5724         Deal properly with No_Exception_Propagation restriction mode.
5725         (Expand_N_Abort_Statement): Add an unchecked type conversion from
5726         System.Address to System.Tasking.Task_Id when processing the result of
5727         the predefined primitive _disp_get_task_id.
5728         (Expand_N_Asynchronous_Select): Clarify comment.
5729         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
5730         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
5731         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
5732         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
5733         privals and for generated call to Complete_Entry_Body, for better gdb
5734         behavior.
5735         (Copy_Result_Type): Utility to construct a parameter and result profile
5736         for protected functions whose return type is an anonymous access to
5737         subprogram.
5738         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
5739         call the above.
5740         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
5741         point when the local-raise-to-goto transformation has taken place.
5742
5743 2007-06-06  Javier Miranda  <miranda@adacore.com>
5744             Nicolas Setton  <setton@adacore.com>
5745
5746         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
5747         functionality when the backend is generating code.
5748         Otherwise any serious error
5749         reported by the backend calling the frontend routine Error_Msg
5750         changes the Compilation_Mode to Check_Semantics, disables the
5751         functionality of this routine and causes the generation of
5752         spureous additional errors.
5753
5754         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
5755         debugging information now generated by the compiler for fat-pointer
5756         types.
5757         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
5758         DWARF2/3.
5759         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
5760
5761 2007-06-06  Thomas Quinot  <quinot@adacore.com>
5762
5763         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
5764         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
5765         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
5766         For a remote call to a function with a classwide return type, apply an
5767         E.4(18) check to the returned value.
5768         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
5769         stream attributes of the designated type of an RACW, as they are not
5770         dispatching primitive operations.
5771
5772 2007-06-06  Geert Bosch  <bosch@adacore.com>
5773
5774         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
5775         negative literal
5776         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
5777         positive
5778         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
5779         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
5780         positive
5781         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
5782
5783 2007-06-06  Javier Miranda  <miranda@adacore.com>
5784
5785         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
5786         attribute compiling package Ada.Tags under No_Run_Time_Mode.
5787
5788 2007-06-06  Javier Miranda  <miranda@adacore.com>
5789
5790         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
5791         deallocation of class-wide interface objects.
5792         (Expand_Dispatching_Constructor_Call): Take into account that if the
5793         result of the dispatching constructor is an interface type, the
5794         function returns a class-wide interface type; otherwise the returned
5795         object would be actual. The frontend previously accepted returning
5796         interface types because Expand_Interface_Actuals silently performed
5797         the management of the returned type "as if" it were a class-wide
5798         interface type.
5799         (Expand_Dispatching_Constructor_Call): Replace call to
5800         Make_DT_Access_Action by direct call to Make_Function_Call.
5801
5802 2007-06-06  Robert Dewar  <dewar@adacore.com>
5803             Ed Schonberg  <schonberg@adacore.com>
5804
5805         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
5806         compute masking constant, since we now set Esize properly to the
5807         underlying size.
5808         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
5809         to match the alignment.
5810         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
5811         packed arrays of 8 bits or less.
5812
5813         * freeze.adb (Freeze_Entity): When freezing the formals of a
5814         subprogram, freeze the designated type of a parameter of an access type
5815         only if it is an access parameter.
5816         Increase size of C convention enumeration object
5817         (Freeze_Entity, array type case): Make sure Esize value is properly
5818         adjusted for the alignment if it is known.
5819         (Freeze_Entity, array type case): When checking bit packed arrays for
5820         the size being incorrect, check RM_Size, not Esize.
5821         (Freeze_Record_Type): Check for bad discriminated record convention
5822         (In_Exp_Body): Return true if the body is generated for a subprogram
5823         renaming, either an attribute renaming or a renaming as body.
5824         (Check_Itype): If the designated type of an anonymous access component
5825         is a non-protected subprogram type, indicate that it is frozen, to
5826         prevent out-of-scope freeze node at some subsequent call.
5827         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
5828         only if the subprogram is neither imported nor exported, as well as the
5829         NCA descriptor class if the subprogram is exported.
5830
5831 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
5832             Arnaud Charlet  <charlet@adacore.com>
5833             Robert Dewar  <dewar@adacore.com>
5834             Gary Dismukes  <dismukes@adacore.com>
5835
5836         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
5837         default initialization on an imported object, when there is no
5838         initialization call generated for it.
5839         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
5840         restriction
5841
5842         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
5843         Static_Elaboration_Desired.
5844         Remove pragma Thread_Body.
5845         Implement a new pragma No_Body
5846         Removes the Explicit_Overriding pragma
5847         Remove Optional_Overriding pragma
5848         (Prag): Deal with Universal_Aliasing.
5849         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
5850         Pragma_CIL_Constructor): New names.
5851
5852         * sem_cat.adb (Validate_Object_Declaration): An initialization that
5853         uses the equivalent aggregate of a type must be treated as an implicit
5854         initialization.
5855         (Get_Categorization): Check a unit for pragma Preelaborate only if it
5856         has none of the other categories.
5857         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
5858         to apply Import to an object renaming declaration.
5859
5860         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
5861         from a C++ class should be declared as limited and that it will be
5862         considererd limited.
5863         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
5864         should be declared as limited and that it will be considererd limited.
5865         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
5866         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
5867         (Analyze_Pragma): Deal with Universal_Aliasing.
5868         (Sig_Flags): Likewise.
5869         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
5870         (Overflow_Checks_Unsuppressed): New flag.
5871         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
5872         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
5873         case of JVM or .NET targets, and compiling user code.
5874         Add debugging convenience routine rv
5875
5876 2007-06-06  Robert Dewar  <dewar@adacore.com>
5877
5878         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
5879         are interface type.
5880         (Build_Elementary_Input_Call): For floating-point use right type in the
5881         absence of strange size or stream size clauses.
5882         (Build_Elementary_Write_Call): Same fix
5883         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
5884         set to value that does not match base type size.
5885
5886 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
5887
5888         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
5889         object of a limited type can be initialized with a call to a function
5890         that returns in place. If the limited type has unknown discriminants,
5891         and the underlying type is a constrained composite type, build an actual
5892         subtype from the function call, as is done for private types.
5893         (Side_Effect_Free): An expression that is the renaming of an object or
5894         whose prefix is the renaming of a object, is not side-effect free
5895         because it may be assigned through the renaming and its value must be
5896         captured in a temporary.
5897         (Has_Controlled_Coextensions): New routine.
5898         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
5899         as is done for other limited types.
5900         (Non_Limited_Designated_Type): new predicate.
5901         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
5902         objects.
5903         Remove all handling of with_type clauses.
5904
5905         * par-ch10.adb: Remove all handling of with_type clauses.
5906
5907         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
5908         checksum if the main source could not be parsed.
5909         (Loat_Unit): When processing a child unit, determine properly whether
5910         the parent unit is a renaming when the parent is itself a child unit.
5911         Remove handling of with_type clauses.
5912
5913         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
5914         (Set_Is_Static_Coextension): New procedure.
5915         (Has_Local_Raise): New function
5916         (Set_Has_Local_Raise): New procedure
5917         (Renaming_Exception): New field
5918         (Has_Init_Expression): New flag
5919         (Delay_Finalize_Attach): Remove because flag is obsolete.
5920         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
5921         Remove all handling of with_type clauses.
5922         (Exception_Junk): Can now be set in N_Block_Statement
5923
5924 2007-06-06  Vincent Celier  <celier@adacore.com>
5925             Robert Dewar  <dewar@adacore.com>
5926
5927         * frontend.adb (Frontend): Return immediately if the main source could
5928         not be parsed, because of preprocessing errors.
5929
5930         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
5931         (Gnat1drv): Exit with errors if the main source could not be parsed,
5932         because of preprocessing errors.
5933         (Check_Rep_Info): New procedure
5934
5935 2007-06-06  Robert Dewar  <dewar@adacore.com>
5936
5937         * g-hesorg.ads, g-heasor.ads,
5938         g-busorg.ads, g-bubsor.ads: Update documentation
5939         GNAT.Heap/Bubble_Sort_G is now pure
5940
5941 2007-06-06  Robert Dewar  <dewar@adacore.com>
5942
5943         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
5944
5945 2007-06-06  Robert Dewar  <dewar@adacore.com>
5946             Ed Schonberg  <schonberg@adacore.com>
5947
5948         * g-comlin.ads, g-comlin.adb: 
5949         Add new warning for renaming of function return objects
5950
5951         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
5952         (Tree_Read): Use size of object instead of type'object_size, since the
5953         latter is incorrect for packed array types.
5954         (Tree_Write): Same fix
5955
5956         * opt.ads: Add new warning for renaming of function return objects
5957         (Generating_Code): New boolean variable used to indicate that the
5958         frontend as finished its work and has called the backend to process
5959         the tree and generate the object file.
5960         (GCC_Version): Is now private
5961         (Static_Dispatch_Tables): New constant declaration.
5962         (Overflow_Checks_Unsuppressed): New flag.
5963         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
5964         (List_Closure): New flag for gnatbind (-R)
5965         Zero_Formatting: New flag for gnatbind (-Z)
5966         (Special_Exception_Package_Used): New flag.
5967         (Warn_On_Unrepped_Components): New flag.
5968
5969         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
5970         unit is a compilation unit, rather than relying on its scope, so that
5971         Standard can be renamed.
5972         (Analyze_Object_Renaming): Add new warning for renaming of function
5973         return objects.
5974         Also reject attempt to rename function return object in Ada 83 mode.
5975         (Attribute_Renaming): In case of tagged types, add the body of the
5976         generated function to the freezing actions of the type.
5977         (Find_Type): A protected type is visible right after the reserved word
5978         "is" is encountered in its type declaration. Set the entity and type
5979         rather than emitting an error message.
5980         (New_Scope): Properly propagate Discard_Names to inner scopes
5981         (Check_Nested_Access): New procedure.
5982         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
5983         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
5984
5985         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
5986         Add new warning for renaming of function return objects
5987         (Check_References): Suppress warnings for objects whose type or
5988         base type has Warnings suppressed.
5989         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
5990         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
5991
5992 2007-06-06  Vincent Celier  <celier@adacore.com>
5993             Emmanuel Briot  <briot@adacore.com>
5994             Olivier Hainque  <hainque@adacore.com>
5995
5996         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
5997         absolute value of Header.Block_Size when displaying the freed physical
5998         memory in traces.
5999         (Allocate): Compute Storage_Address using Integer_Address, not
6000         Storage_Offset, because the range of Storage_Offset may not be large
6001         enough.
6002         (Configure): New parameter Low_Level_Traces
6003         (Allocate, Deallocation, Free_Physically): Added low-level traces
6004         (Configure): new parameter Errors_To_Stdout.
6005         (Output_File): new subprogram
6006         (Deallocate, Dereference): Send error messages to the proper stream
6007         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
6008         documented. Previous code would send it to the current output file
6009         defined in GNAT.IO, which might not be stdout
6010         (Is_Valid): Adjust comment to mention that a positive reply means that
6011         Header_Of may be used to retrieve the allocation header associated with
6012         the subprogram Storage address argument. Return False early if this
6013         address argument is misaligned.
6014
6015 2007-06-06  Vincent Celier  <celier@adacore.com>
6016
6017         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
6018         switch -P
6019         (ASIS_Main): New global variable
6020         (Get_Closure): New procedure
6021         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
6022         check, metric or pretty. Call Get_Closure in this case.
6023         (Check_Files): For GNAT LIST, check all sources of all projects when
6024         All_Projects is True.
6025         (GNATCmd): Accept -U for GNAT LIST
6026
6027 2007-06-06  Vincent Celier  <celier@adacore.com>
6028
6029         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
6030         has been specified
6031         Correct error message when invocation of the linker fails
6032         Add explicit size clause for the C imported variables
6033         Object_List_File_Supported and Using_GNU_Linker to emphasize that
6034         we expect char size.
6035         Read target parameters earlier, since this is needed to set
6036         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
6037         targets.
6038
6039 2007-06-06  Vincent Celier  <celier@adacore.com>
6040
6041         * gnatls.adb: 
6042         Add 3 spaces before the default project directory when displaying
6043         the project search path.
6044         Add new command line switch '-l' to display license information.
6045
6046 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
6047
6048         * gmem.c: Add support for timestamps on memory operations.
6049
6050         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
6051         operations (not used currently, just foundation for future
6052         enhancements). Add possibility to perform full dump of gmem.out file.
6053         (Print_Back_Traces): Declare accesses to root arrays constants since
6054         they aren't modified.
6055         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
6056
6057 2007-06-06  Vincent Celier  <celier@adacore.com>
6058
6059         * gnatsym.adb: Update Copyright notice
6060         (Parse_Cmd_Line): Accept new switch -D
6061         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
6062          file.
6063
6064         * prj.ads (Policy): New policy Direct
6065         (Yes_No_Unknown): New enumeration type
6066         (Project_Data): New component Libgnarl_Needed
6067
6068         * prj-nmsc.adb (Check_For_Source): When recording a source file make
6069         use the untouched pathname casing.
6070         (Get_Directories): Ensure that the Display_Exec_Directory is using the
6071         proper casing on non case-sensitive platforms like Windows.
6072         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
6073         on all platforms, as it is not possible to know which one is allowed
6074         before processing the project files.
6075         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
6076         specified when symbol policy is Direct. Check that when there is a
6077         symbol file defined (either by default or with attribute
6078         Library_Symbol_File) it is not the same as the reference symbol file.
6079         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
6080         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
6081         extending projects.
6082         (Record_Ada_Source): Record a source that has been locally removed in an
6083         imported project.
6084
6085         * symbols.ads (Policy): New policy Direct
6086
6087         * symbols-vms.adb (Initialize): Take new policy Direct in case
6088         statement
6089
6090 2007-06-06  Vincent Celier  <celier@adacore.com>
6091
6092         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
6093         Correct obvious bug (return Dir; instead of return Directory;).
6094         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
6095
6096 2007-06-06  Thomas Quinot  <quinot@adacore.com>
6097
6098         * g-pehage.adb (Produce): Open output files in Binary mode, so that
6099         they have UNIX line endings (LF only) even on Windows, and thus pass
6100         all GNAT style checks.
6101
6102 2007-06-06  Emmanuel Briot  <briot@adacore.com>
6103
6104         * g-regpat.adb (Quote): Fix improper quoting of '.'
6105
6106 2007-06-06  Thomas Quinot  <quinot@adacore.com>
6107
6108         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
6109         default, set False on a per-runtime basis.
6110         (Need_Netdb_Buffer): New constant.
6111
6112         * g-socket.ads, g-socket.adb: Import new package
6113         GNAT.Sockets.Thin.Task_Safe_NetDB.
6114         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
6115         binding to obtain proper message.
6116         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
6117         Replace various occurrences of Arry (Arry'First)'Address with the
6118         equivalent Arry'Address (GNAT always follows implementation advice from
6119         13.3(14)).
6120         (Get_Host_By_Address, Get_Host_By_Name,
6121         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
6122         instead, rely on platform-specific task safe netdb operations provided
6123         by g-socthi.
6124
6125         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
6126         parameter Process_Blocking_IO.
6127         (Host_Error_Messages): Add stub body.
6128         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
6129         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
6130         Safe_Getservbyport): Move functions into new child package
6131         Task_Safe_NetDB.
6132         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
6133         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
6134         (In_Addr): Add alignment clause.
6135
6136 2007-06-06  Robert Dewar  <dewar@adacore.com>
6137
6138         * g-trasym.ads, g-traceb.ads: Update list of supported targets
6139         Add note about symbolic traceback
6140
6141 2007-06-06  Pascal Obry  <obry@adacore.com>
6142
6143         * hostparm.ads (Normalized_CWD): Use the host directory separator
6144         instead of the hardcoded forward slash which is not the proper
6145         character on Windows for example.
6146         (Java_VM): Removed.
6147
6148 2007-06-06  Vincent Celier  <celier@adacore.com>
6149             Arnaud Charlet  <charlet@adacore.com>
6150
6151         * a-clrefi.adb, a-clrefi.ads: New files
6152
6153         * impunit.adb: Add s-os_lib in the list of user visible units.
6154         (Non_Imp_File_Names_95): Add a-clrefi to this list
6155         Remove obsolete run-time entries.
6156         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
6157          "a-exetim" -- Ada.Execution_Time
6158          "a-extiti" -- Ada.Execution_Time.Timers
6159
6160         * mlib-prj.ads, mlib-prj.adb
6161         (Build_Library): Use untouched object dir and library dir. At the
6162         same time makes sure that the checks are done using the canonical
6163         form. Removes hard-coded directory separator and use the proper host
6164         one instead.
6165         (Process_Project): Do not look in object directory to check if libgnarl
6166         is needed for a library, if there is no object directory.
6167         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
6168         linking.
6169         (Build_Library): When invoking gnatbind, use a response file if the
6170         total size of the arguments is too large.
6171
6172         * Makefile.rtl: (g-sttsne): New object file.
6173         Add entry for a-clrefi, s-utf_32, System.Exceptions
6174
6175         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
6176         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
6177         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
6178         Change g-string to s-string, g-os_lib to s-os_lib
6179         Change all g-utf_32 references to s-utf_32
6180
6181 2007-06-06  Tristan Gingold  <gingold@adacore.com>
6182             Olivier Hainque  <hainque@adacore.com>
6183
6184         * init.c: Do not adjust IP of an imported VMS exception of ia64.
6185         LIB$STOP is called to raise an exception and the IP of the exception
6186         is the instruction right after the call.
6187         (__gnat_adjust_context_for_raise, AIX): Implement.
6188         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
6189          adjust_context_for_raise before Raise_From_Signal_Hanler.
6190         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
6191         siginfo is passed to the handler, necessary to let the zcx propagation
6192         engine unwind past it.
6193
6194 2007-06-06  Olivier Hainque  <hainque@adacore.com>
6195
6196         * initialize.c (__gnat_initialize for vxworks):  Update documentation
6197         on the ZCX support, using different sets of crtstuff objects than with
6198         GCC 3.4.
6199
6200 2007-06-06  Robert Dewar  <dewar@adacore.com>
6201
6202         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
6203         spec from body
6204         (Layout_Type): Fix recomputation of size from alignment.
6205
6206 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
6207             Javier Miranda  <miranda@adacore.com>
6208
6209         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
6210         association in an instance.
6211         (Copy_Generic_Node): If the node is a string literal, no need to copy
6212         its descendants.
6213         (Is_Generic_Formal): For a formal subprogram, the declaration is the
6214         grandparent of the entity.
6215         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
6216         to simplify handling of formal interfaces that derive from other formal
6217         interfaces.
6218         (Instantiate_Subprogram_Body): The defining unit name of the body of
6219         the instance should be a defining identifier.
6220         (Install_Formal_Packages): make global to the package, for use in
6221         instantiations of child units.
6222         (Analyze_Package_Instantiation): Do not attempt to set information on an
6223         enclosing master of an entry when expansion is disabled.
6224         (Instantiate_Type): If the actual is a tagged synchronized type and the
6225         generic ancestor is an interface, create a generic actual for the
6226         corresponding record.
6227         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
6228         declaration, to ensure that the interface list is processed correctly.
6229         (Inline_Instance_Body): If enclosing scope is an instance body, remove
6230         its entities from visibiility as well.
6231         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
6232         given with a named association, analyze the expression only, not the
6233         discriminant association itself.
6234         (Reset_Entity): If the analysis of a selected component is transformed
6235         into an expanded name in the prefix of a call with parameters, do not
6236         transform the original node into an expanded name, to prevent visibility
6237         errors in the case of nested generics.
6238         (Check_Private_View): For an array type, check whether the index types
6239         may need exchanging.
6240
6241 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
6242             Vincent Celier  <celier@adacore.com>
6243
6244         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
6245         since both are separated.
6246         Add support for imported CIL packages.
6247         Add further special handling of "value_type" for CIL.
6248         Add special handling of pragma Import for CIL.
6249
6250         * make.ads, make.adb: When switch -eS is used, direct all outputs to
6251         standard output instead of standard error, except errors.
6252         (Absolute_Path): Use untouched casing for the parent directory.
6253         (Add_Library_Search_Dir): Use the untouched directory name.
6254         (Add_Source_Search_Dir): Idem.
6255         (Change_To_Object_Directory): Update output to use proper casing.
6256         (Create_Binder_Mapping_File): Use the untouched filename to set
6257         ALI_Name.
6258         (Gnatmake): Use untouched library and executable directory names.
6259         (Insert_Project_Sources): Use untouched filename for spec and body.
6260         (Is_In_Object_Directory): Use untouched object directory.
6261         (Mark_Directory): Idem.
6262         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
6263         contains the non-canonical filename in all cases.
6264         (Change_To_Object_Directory): In verbose mode, display the name of the
6265         object directory we're changing to.
6266         (Compile_Sources): Make sure, when a project file is used, to compile
6267         the body of the unit, when there is one, even when only the spec is
6268         recorded in an ALI file.
6269         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
6270         spec to the body.
6271         (Report_Compilation_Failed): New procedure
6272         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
6273         procedures moved from the spec to the body.
6274         (Extract_Failure): Removed, not used
6275         Replace explicit raises of exception Bind_Failed and Link_Failed with
6276         calls to Make_Failed with the proper message.
6277         Replace explicit raises of exception Compilation_Failed with calls to
6278         procedure Report_Compilation_Failed.
6279         (Initialize): Create mapping files unconditionally when using project
6280         files.
6281
6282         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
6283         Pragma_CIL_Constructor): New names.
6284
6285         * targparm.ads, targparm.adb
6286         (Compiler_System_Version): Removed, no longer used.
6287         (Get_Target_Parameters): Relax checks on system.ads validity. Add
6288         handling of two new system flags: JVM and CLI.
6289
6290 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
6291             Arnaud Charlet  <charlet@adacore.com>
6292
6293         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
6294         time, use the default s-interr body that provides interrupt support
6295         based on signals.
6296         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
6297         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
6298         g-soccon.ads, and s-taprop.adb for the marte run time.
6299         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
6300         timers are supported on marte.
6301         (EH_MECHANISM for marte): Do not use ZCX.
6302         (THREADSLIB for marte): Use -lmarte.
6303         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
6304         Add mlib-tgt-specific.o to gnatmake objects
6305         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
6306         longer of MLib.Tgt.
6307         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
6308         6, either kernel or rtp, use a specialized version of s-osinte.ads.
6309
6310 2007-06-06  Pascal Obry  <obry@adacore.com>
6311
6312         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
6313
6314 2007-06-06  Vincent Celier  <celier@adacore.com>
6315
6316         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
6317         separator, use instead the proper host directory separator.
6318         (Copy_ALI_Files): Make sure that an already existing ALI file in the
6319         ALI copy dir is writable, before doing the copy.
6320
6321         * mlib-utl.ads, mlib-utl.adb: 
6322         (Gcc): If length of command line is too long, put the list of object
6323         files in a response file, if this is supported by the platform.
6324         (Ar): If invocation of the archive builder is allowed to be done in
6325         chunks and building it in one shot would go above an OS dependent
6326         limit on the number of characters on the command line, build the archive
6327         in chunks.
6328
6329 2007-06-06  Vincent Celier  <celier@adacore.com>
6330
6331         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
6332         of specified object file is not equal to base name of source.
6333
6334 2007-06-06  Javier Miranda  <miranda@adacore.com>
6335             Hristian Kirtchev  <kirtchev@adacore.com>
6336             Ed Schonberg  <schonberg@adacore.com>
6337
6338         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
6339         the full type declaration.
6340         (Analyze_Component_Declaration): Add local variable E to capture the
6341         initialization expression of the declaration. Replace the occurences of
6342         Expression (N) with E.
6343         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
6344         limited interface object with a function call.
6345         (Array_Type_Declaration): If the declaration lacks subtype marks for
6346         indices, create a simple index list to prevent cascaded errors.
6347         (Is_Null_Extension): Ignore internal components created for secondary
6348         tags when checking whether a record extension is a null extension.
6349         (Check_Abstract_Interfaces): Add missing support for interface subtypes
6350         and generic formals.
6351         (Derived_Type_Declaration): Add missing support for interface subtypes
6352         and generic formals.
6353         (Analyze_Object_Declaration): If an initialization expression is
6354         present, traverse its subtree and mark all allocators as static
6355         coextensions.
6356         (Add_Interface_Tag_Component): When looking for components that may be
6357         secondary tags, ignore pragmas that can appear within a record
6358         declaration.
6359         (Check_Abstract_Overriding): an inherited function that dispatches on
6360         result does not need to be overriden if the controlling type is a null
6361         extension.
6362         (Mentions_T): Handle properly a 'class attribute in an anonymous access
6363         component declaration, when the prefix is an expanded name.
6364         (Inherit_Component): If the derivation is for a private extension,
6365         inherited components remain visible and their ekind should not be set
6366         to Void.
6367         (Find_Type_Of_Object): In the case of an access definition, always set
6368         Is_Local_Anonymous_Access. We were previously not marking the anonymous
6369         access type of a return object as a local anonymous type.
6370         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
6371         range with character literal bounds.
6372         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
6373         (Access_Subprogram_Declaration): Indicate that the type declaration
6374         depends on an incomplete type only if the incomplete type is declared
6375         in an open scope.
6376         (Analyze_Subtype_Declaration): Handle properly subtypes of
6377         synchronized types that are tagged, and that may appear as generic
6378         actuals.
6379         (Access_Subprogram_Declaration): An anonymous access to subprogram can
6380         appear as an access discriminant in a private type declaration.
6381         (Add_Interface_Tag_Components): Complete decoration of the component
6382         containing the tag of a secondary dispatch table and the component
6383         containing the offset to the base of the object (this latter component
6384         is only generated when the parent type has discriminants --as documented
6385         in this routine).
6386         (Inherit_Components): Use the new decoration of the tag components to
6387         improve the condition that avoids inheriting the components associated
6388         with secondary tags of the parent.
6389         (Build_Discriminanted_Subtype): Indicate to the backend that the
6390         size of record types associated with dispatch tables is known at
6391         compile time.
6392         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
6393         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
6394         to include task, protected, and synchronized interfaces as limited
6395         interfaces.
6396         (Process_Discriminants): Remove the setting of
6397         Is_Local_Anonymous_Access on the type of (anonymous) access
6398         discriminants of nonlimited types.
6399         (Analyze_Interface_Type_Declaration): Complete the decoration of the
6400         class-wide entity it is is already present. This situation occurs if
6401         the limited-view has been previously built.
6402         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
6403         field.
6404         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
6405         Related_Interface.
6406
6407 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
6408
6409         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
6410         of the type that specify the position of interface tags when the type
6411         inherits discriminated array components from the parent type.
6412         If a component is initialized with a box, check for the presence of a
6413         default expression in its declaration before using its default
6414         initialization procedure.
6415         (Resolve_Record_Aggregate): If a component is box-initialized, and the
6416         component type has a discriminants, create a partial aggregate for it
6417         by copying the discriminants of the component subtype.
6418         Reject attempt to initialize a discriminant with a box.
6419         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
6420         associated with dispatch tables is known at compile time.
6421         (Get_Value): If an association in a record aggregate has a box
6422         association, and the corresponding record component has a default
6423         expression, always copy the default expression, even when the
6424         association has a single choice, in order to create a proper
6425         association for the expanded aggregate.
6426
6427 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
6428             Robert Dewar  <dewar@adacore.com>
6429
6430         * par-ch12.adb (P_Generic_Associations): The source position of an
6431         Others association is that of the others keyword, not that of the token
6432         that follows the box.
6433         (P_Formal_Type_Definition): Handle formal access types that carry a
6434         not null indicator.
6435
6436         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
6437         multiple identifier are present, save Scan_State before scanning the
6438         colon, to ensure that separate trees are constructed for each
6439         declaration.
6440         (P_Identifier_Declarations): For object declaration, set new flag
6441         Has_Init_Expression if initialization expression present.
6442         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
6443         Improve NOT NULL error messages
6444
6445 2007-06-06  Robert Dewar  <dewar@adacore.com>
6446
6447         * par-ch4.adb: (P_Name): Recover from literal used as name
6448
6449 2007-06-06  Vincent Celier  <celier@adacore.com>
6450
6451         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
6452         defaulted to False.
6453         In the "not" case, recursive call with Complemented set to True.
6454         Do not allow "or" or "and" operators when Complemented is True.
6455
6456 2007-06-06  Vincent Celier  <celier@adacore.com>
6457
6458         * prj.adb (Project_Empty): Gives default value for new component
6459         Libgnarl_Needed
6460
6461         * prj-attr.ads: Minor reformatting
6462
6463         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
6464         directory using the untouched casing.
6465         (For_All_Source_Dirs): Idem.
6466
6467         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
6468         directories specified with switches -aP.
6469         (Add_Search_Project_Directory): New procedure
6470         (Initialize_Project_Path): Put the directories in table
6471         Search_Directories in the project search path.
6472         (Initialize_Project_Path): For VMS, transform into canonical form the
6473         project path.
6474
6475 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
6476
6477         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
6478         true if configurable run-time or No_Run_Time is set.
6479         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
6480         processing an unit which is not the one being compiled.
6481
6482 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
6483
6484         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
6485         Replace UC by Ada.UC
6486
6487         * s-bitops.adb: Get rid of System.Pure_Exceptions.
6488         Replace UC by Ada.UC
6489
6490 2007-06-06  Robert Dewar  <dewar@adacore.com>
6491
6492         * scng.adb: (Check_End_Of_Line): Deal with very long lines
6493
6494 2007-06-06  Robert Dewar  <dewar@adacore.com>
6495
6496         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
6497         Remove no longer used nodes.
6498
6499 2007-06-06  Javier Miranda  <miranda@adacore.com>
6500             Ed Schonberg  <schonberg@adacore.com>
6501             Robert Dewar  <dewar@adacore.com>
6502
6503         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
6504         on obsolescent withed unit in case of limited-withed units.
6505         (Analyze_Compilation_Unit): Add guard to code that removed an
6506         instantiation from visibility, to prevent compiler aborts when
6507         instantiation is abandoned early on.
6508         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
6509         current unit being analyzed, and Distinguish local incomplete types
6510         from limited views of types declared elsewhere.
6511         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
6512         to state that the class-wide entity is shared by the limited-view
6513         and the full-view.
6514         (Analyze_With_Clause): Improve placement of flag for case of
6515         unimplemented unit.
6516         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
6517         manner similar to GNAT.Current_Exception. This is a violation of
6518         restriction (No_Exception_Propagation), and also inhibits the
6519         optimization of local raise to goto.
6520         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
6521         and if so set Most_Recent_Exception_Used flag in Opt, and also check
6522         for violation of restriction No_Exception_Propagation.
6523
6524 2007-06-06  Javier Miranda  <miranda@adacore.com>
6525             Hristian Kirtchev  <kirtchev@adacore.com>
6526             Gary Dismukes  <dismukes@adacore.com>
6527
6528         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
6529         use of entity Exception_Occurrence if it is not available in the
6530         target run-time.
6531
6532         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
6533         concurrent types are declared within an Ada 2005 generic, build their
6534         corresponding record types since they are needed for overriding-related
6535         semantic checks.
6536         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
6537         protected type does not implement a task interface or a nonlimited
6538         interface.
6539         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
6540         type does not implement a protected interface or a nonlimited interface.
6541         (Single_Task_Declaration, Single_Protected_Declaration): use original
6542         entity for variable declaration, to ensure that debugging information
6543         is correcty generated.
6544         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
6545         routines if the expander is not active.
6546         (Analyze_Task_Body): Mark all handlers to stop optimization of local
6547         raise, since special things happen for task exception handlers.
6548
6549         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
6550         concurrent types declared within a generic.
6551         (Check_Dispatching_Operation): Do not emit warning about late interface
6552         operations in the context of an instance.
6553         (Check_Dispatching_Call): Remove restriction against calling a
6554         dispatching operation with a limited controlling result.
6555         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
6556         Register_Interface_DT_Entry by calls to Register_Primitive.
6557         (Check_Dispatching_Formals): Handle properly a function with a
6558         controlling access result.
6559
6560 2007-06-06  Robert Dewar  <dewar@adacore.com>
6561             Arnaud Charlet  <charlet@adacore.com>
6562
6563         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
6564         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
6565         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
6566         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
6567         message when using a VM, since this attribute is not supported.
6568         (Analyze_Record_Representation_Clause): Give unrepped component warnings
6569
6570         * usage.adb: Add new warning for renaming of function return objects
6571         Indicate that -gnatwp and -gnatwP concern front-end inlining
6572         Add line for -gnatyg
6573         Add usage information for -gnatw.c/C
6574
6575 2007-06-06  Robert Dewar  <dewar@adacore.com>
6576             Ed Schonberg  <schonberg@adacore.com>
6577
6578         * sem_ch5.adb
6579         (Find_Var): Do not consider function call in test for infinite loop
6580         warning if warnings set off for function entity.
6581         (One_Bound): Do not create a temporary for a loop bound if it is a
6582         character literal.
6583         (Analyze_Assignment): Traverse the right hand side of an assignment and
6584         mark all allocators as static coextensions.
6585         (Analyze_Assignment): Exempt assignments involving a dispatching call
6586         to a function with a controlling access result from the check requiring
6587         the target to be class-wide.
6588
6589 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
6590             Ed Schonberg  <schonberg@adacore.com>
6591             Robert Dewar  <dewar@adacore.com>
6592             Javier Miranda  <miranda@adacore.com>
6593
6594         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
6595         chain of coextensions when an allocator serves as the root of such a
6596         chain.
6597         (Propagate_Coextensions): Remove the test for the root being an
6598         allocator.
6599         (Resolve_Allocator): Add condition to ensure that all future decoration
6600         occurs on an allocator node. Add processing and cleanup for static
6601         coextensions.
6602         (Valid_Conversion): If the operand type is the limited view of a
6603         class-wide type, use the non-limited view is available to determine
6604         legality of operation.
6605         (Ambiguous_Character): move to spec, for use elsewhere.
6606         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
6607         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
6608         character literals.
6609         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
6610         Do_Division_Check flag explicitly.
6611         (Resolve_Actuals): If the actual is of a synchronized type, and the
6612         formal is of the corresponding record type, this is a call to a
6613         primitive operation of the type, that is declared outside of the type;
6614         the actual must be unchecked-converted to the type of the actual
6615         (Resolve_Call): Kill all current values for any subprogram call if
6616         flag Suppress_Value_Tracking_On_Call is set.
6617         (Resolve_Type_Conversion): Generate error message the the operand
6618         or target of interface conversions come from a limited view.
6619         (Check_Infinite_Recursion): Ignore generated calls
6620         (Check_Allocator_Discrim_Accessibility): New procedure for checking
6621         that an expression that constrains an access discriminant in an
6622         allocator does not denote an object with a deeper level than the
6623         allocator's access type.
6624         (Resolve_Allocator): In the case of an allocator initialized by an
6625         aggregate of a discriminated type, check that associations for any
6626         access discriminants satisfy accessibility requirements by calling
6627         Check_Allocator_Discrim_Accessibility.
6628         (Resolve_Equality_Op): Handle comparisons of anonymous access to
6629         subprogram types in the same fashion as other anonymous access types.
6630         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
6631         message that is not a continuation message.
6632         (Resolve_Type_Conversion): Add missing support for conversion to
6633         interface type.
6634         (Resolve_Actuals): Introduce a transient scope around the call if an
6635         actual is a call to a function returning a limited type, because the
6636         resulting value must be finalized after the call.
6637         (Resolve_Actuals): If the call was given in prefix notations, check
6638         whether an implicit 'Access reference or implicit dereference must be
6639         added to make the actual conform to the controlling formal.
6640
6641 2007-06-06  Robert Dewar  <dewar@adacore.com>
6642             Javier Miranda  <miranda@adacore.com>
6643
6644         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
6645         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
6646         overriding of an inherited private subprogram now there is no need to
6647         inherit its dispatching slot and reduce the size of the dispatch table.
6648         Set_All_DT_Position now ensures that the same slot is now assigned to
6649         both entities. This is required to statically build the dispatch table.
6650         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
6651         of calling Set_All_DT_Position to re-evaluate the position of the
6652         entries in the dispatch table. Such reevaluation is not desired if
6653         the tagged type is already frozen.
6654
6655 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
6656             Gary Dismukes  <dismukes@adacore.com>
6657             Robert Dewar  <dewar@adacore.com>
6658             Javier Miranda  <miranda@adacore.com>
6659
6660         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
6661         reference acts as an lvalue when the attribute name modifies the prefix
6662         (Is_Coextension_Root): New routine.
6663         (Mark_Static_Coextensions): New routine.
6664         (Type_Access_Level): Revise code for checking the level of the
6665         anonymous access type of a return object.
6666         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
6667         (Matches_Prefixed_View_Profile): Remove the no longer necessary
6668         retrieval of the corresponding controlling record type.
6669         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
6670         concurrent types declared within a generic as well as class wide types.
6671         Emit a mode incompatibility error whenever a protected entry or routine
6672         override an interface routine whose first parameter is not of mode
6673         "out", "in out" or access to variable.
6674         (Overrides_Synchronized_Primitive): Rename to
6675         Find_Overridden_Synchronized_Primitive.
6676         (Collect_Interface_Components): New subprogram that collects all the
6677         components of a tagged record containing tags of secondary dispatch
6678         tables.
6679         (Add_Global_Declaration): New procedure
6680         (Abstract_Interface_List): Handle properly the case of a subtype of a
6681         private extension.
6682         (Type_Access_Level): In the case of a type whose parent scope is a
6683         return statement, call Type_Access_Level recursively on the enclosing
6684         function's result type to determine the level of the return object's
6685         type.
6686         (Build_Elaboration_Entity): Build name of elaboration entity from the
6687         scope chain of the entity, rather than the unit name of the file name.
6688         (Check_Nested_Access): New procedure.
6689         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
6690         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
6691         (Get_Renamed_Entity): Utility routine for performing common operation
6692         of chasing the Renamed_Entity field of an entity.
6693
6694 2007-06-06  Robert Dewar  <dewar@adacore.com>
6695
6696         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
6697         elaboration model
6698         (Check_A_Call): Add check for entry call which was causing blowup
6699
6700 2007-06-06  Olivier Hainque  <hainque@adacore.com>
6701
6702         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
6703         special code on ia64-vms to handle major incompatibilities between the
6704         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
6705         this routine with a very different set of arguments and expectations on
6706         the return value.
6707
6708 2007-06-06  Thomas Quinot  <quinot@adacore.com>
6709
6710         * socket.c (__gnat_close_signalling_fd): New function.
6711         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
6712         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
6713         New supporting functions for task safe Netdb operations.
6714
6715 2007-06-06  Thomas Quinot  <quinot@adacore.com>
6716             Olivier Hainque  <hainque@adacore.com>
6717
6718         * a-except-2005.ads, a-except-2005.adb
6719         (Raise_From_Controlled_Operation): New procedure in
6720         (private part of) Ada.Exceptions (standard runtime version). Used to
6721         provide informational exception message when Program_Error is raised as
6722         a result of an Adjust or Finalize operation propagating an exception.
6723         (Rmsg_28): Fix description for E.4(18) check.
6724         (Raise_Current_Excep): Call Debug_Raise_Exception just before
6725         propagation starts, to let debuggers know about the event in a reliable
6726         fashion.
6727         Take the address of E and dereference to make sure it is homed on stack
6728         and prevent the stores from being deleted, necessary for proper
6729         debugger behavior on "break exception" hits.
6730         (Local_Raise): Moved to System.Exceptions
6731
6732         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
6733         exception message from the current occurrence and raise Program_Error
6734         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
6735
6736 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
6737             Arnaud Charlet  <charlet@adacore.com>
6738
6739         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
6740         lock, if needed.
6741
6742         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
6743         priority associated to a lock.
6744
6745         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
6746         assertion to take into account case of no abort restriction.
6747         (Initialize_Protection_Entries): Add initialization for the field
6748         New_Ceiling associated to the protected object.
6749         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
6750         needed.
6751
6752         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
6753         since this function needs to be set consistently with Update_Exception.
6754
6755         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
6756         since this function needs to be set consistently with Update_Exception.
6757
6758         * s-taskin.ads: Update comments on
6759         Interrupt_Server_Blocked_On_Event_Flag.
6760         (Unbind_Handler): Fix handling of server_task wakeup
6761         (Server_Task): Set self's state so that Unbind_Handler can take
6762         appropriate actions.
6763         (Common_ATCB): Now use a constant from System.Parameters to determine
6764         the max size of the Task_Image field.
6765
6766         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
6767         Initialize_Analyzer function.
6768         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
6769         take into account case of no abort restriction.
6770         ([Vulnerable_]Complete_Master): Modify assertion.
6771
6772         * s-tataat.adb (Finalize): Use the nestable versions of
6773         Defer/Undefer_Abort.
6774
6775         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
6776
6777         * s-tpobop.ads: Update comments.
6778
6779         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
6780         of locking the object manually, to avoid inconsistencies between
6781         Lock/Unlock_Entry assertions.
6782
6783         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
6784         terminating
6785         application and System.Parameters.No_Abort is True.
6786         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
6787         (Unbind_Handler): Fix handling of server_task wakeup
6788         (Server_Task): Set self's state so that Unbind_Handler can take
6789         appropriate actions.
6790
6791 2007-06-06  Thomas Quinot  <quinot@adacore.com>
6792
6793         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
6794         declarations instead of an explicit null body, for conciseness.
6795
6796 2007-06-06  Robert Dewar  <dewar@adacore.com>
6797
6798         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
6799         illegal aggregate and the type is still Any_Composite.
6800         (Subtypes_Statically_Match): Fix problem of empty discriminant list
6801
6802 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
6803
6804         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
6805         to prevent subsequent expansion.
6806
6807 2007-06-06  Robert Dewar  <dewar@adacore.com>
6808
6809         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
6810
6811 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
6812             Robert Dewar  <dewar@adacore.com>
6813
6814         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
6815         exceptions.
6816         (Write_Itype): Handle case of string literal subtype, which
6817         comes up in this context.
6818         (Update_Itype): when debugging expanded code, update sloc of itypes
6819         associated with defining_identifiers and ranges, for gdb use.
6820         (Sprint_Node_Actual): Add static keyword to object or exception
6821         declaration output if Is_Statically_Allocated is True.
6822         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
6823         or task body, so that the tree carries the proper Sloc information for
6824         debugging use.
6825         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
6826
6827 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
6828
6829         * s-secsta.adb (Chunk): Ensure this object has a static size known at
6830         compile time, to avoid dynamic memory allocation
6831         (Elaboration code): Only use dynamic memory allocation when needed.
6832
6833 2007-06-06  Quentin Ochem  <ochem@adacore.com>
6834
6835         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
6836         "Overflow_Guard".
6837         (Stack_Analyzer): Added field "Overflow_Guard"
6838         (Task_Result): Added field "Overflow_Guard".
6839         (Index_Str): New constant.
6840         (Task_Name_Str): New constant.
6841         (Actual_Size_Str): New constant.
6842         (Pattern_Array_Element_Size): New constant.
6843         (Get_Usage_Range): New subprogram.
6844         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
6845         Now align the output.
6846         Added comments.
6847         (Initialize): Added value for Overflow_Guard.
6848         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
6849         Update the value of the overflow guard according to the actual
6850         beginning of the pattern array.
6851         (Initialize_Analyzer): Added parameter Overflow_Guard.
6852         Take this parameter into accound when computing the max size.
6853         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
6854         (Report_Result): Removed extra useless procedure.
6855         Updated call to Output_Result.
6856         Moved full computation of the Task_Result here.
6857
6858 2007-06-06  Thomas Quinot  <quinot@adacore.com>
6859
6860         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
6861         Thread_Blocking_IO, always True by default, set False on a per-runtime
6862         basis.
6863         Add Windows-specific constants
6864         Add new constant Need_Netdb_Buffer.
6865         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
6866         not, whether to use getXXXbyYYY_r.
6867
6868         * gsocket.h: Add new constant Need_Netdb_Buffer.
6869         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
6870         not, whether to use getXXXbyYYY_r.
6871
6872 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
6873
6874         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
6875         than their first call.
6876         Add type Dummy_Communication_Block used in the generation of the pre-
6877         defined dispatching primitive _disp_asynchronous_select.
6878         (Storage_Element): Put Pragma Universal_Aliasing on it.
6879
6880 2007-06-06  Vincent Celier  <celier@adacore.com>
6881
6882         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
6883         function.
6884
6885         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
6886         letter if it is not followed by a '/' or a '\'.
6887         (Windows): New Boolean function
6888
6889         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
6890         Ada 2005.
6891         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
6892         drive letter.
6893         (Containing_Directory): Raise Use_Error when the directory is a root
6894         directory.
6895         (Extension): When returning the result, use a conversion to Result_Type,
6896         not a qualification.
6897
6898 2007-06-06  Robert Dewar  <dewar@adacore.com>
6899
6900         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
6901         (Set_Style_Check_Options): Recognize new -gnatyg style switch
6902
6903         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
6904         Warn_On_Non_Local_Exception to False, to turn off warnings for
6905         No_Exception_Propagation in ZFP runtime.
6906         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
6907         back-ends.
6908         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
6909
6910 2007-06-06  Vincent Celier  <celier@adacore.com>
6911
6912         * switch-b.adb (Scan_Binder_Switches): Add processing for new
6913         switches -R and -Z
6914
6915         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
6916         (Scan_Make_Switches): Recognize new switch -aP
6917
6918 2007-06-06  Matthew Gingell  <gingell@adacore.com>
6919             Jose Ruiz  <ruiz@adacore.com>
6920
6921         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
6922         VxWorks task descriptor in the Ada run time, call a C subprogram
6923         (__gnat_get_stack_info) that extracts the required information.
6924
6925         * sysdep.c: Back out temporary lynxos workaround.
6926         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
6927         time the stack information associated to the currently executing task.
6928         Only VxWorks systems require this function.
6929
6930 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
6931
6932         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
6933         add the stack bias if the offset is computed from a frame address.
6934         (__gnat_backtrace): Adjust for above change.
6935
6936 2007-06-06  Thomas Quinot  <quinot@adacore.com>
6937
6938         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
6939         PE_Non_Transportable_Actual.
6940         (By_Descriptor_Last): New constant.
6941         (By_Copy_Return): Likewise.
6942
6943 2007-06-06  Vincent Celier  <celier@adacore.com>
6944
6945         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
6946         is.
6947
6948         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
6949         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
6950         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
6951         Add missing comment for /OPTIMIZE=SPACE
6952         Add entry for OPTIMIZE=SPACE
6953         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
6954         Add documentation for new qualifiers corresponding to -gnatw.c/.C
6955
6956 2007-06-06  Vincent Celier  <celier@adacore.com>
6957             Robert Dewar  <dewar@adacore.com>
6958
6959         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
6960         -gnatw.C)
6961
6962         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
6963         Document gnatbind switch -a
6964         (case Constructions): Document that variables declarations are allowed
6965         for previously declared variables.
6966         Fix external lib project example
6967         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
6968         Indicate that "#if not X or Y then" is not allowed in input files to
6969         gnatprep.
6970         Document gnatw.x and gnatw.X warning flags
6971         Mention -Winline switch to activate warnings when back-end inlining is
6972         ineffective.
6973         Add gnatcheck rule descriptions
6974         Describe how to use the GNAT driver to call a tool on a closure.
6975         Describe how to run project-wide checks or metrics.
6976         Document gnatbind's -R option
6977         Updated to account for Ada 2005 support
6978
6979         * gnat_rm.texi (Case Construction): Allow variable declarations for
6980         previously declared variables.
6981         (Representation Clauses and Pragmas): Lift restriction on alignment
6982         clauses for record types.
6983         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
6984         Document No_Exception_Propagation restriction
6985         Document No_Body pragma
6986         Updated to account for Ada 2005 support; corrected some typos
6987         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
6988
6989         * gnat-style.texi: Make it clear that we never use mode IN for
6990         procedures or functions
6991
6992         * ug_words: Add entries for -gnatw.x and -gnatw.X
6993         Add entries for -gnatw.c/.C
6994
6995 2007-06-06  Pascal Obry  <obry@adacore.com>
6996             Vincent Celier  <celier@adacore.com>
6997
6998         * makegpr.adb (Add_Archive_Path): Use untouched object and library
6999         dirs and library name.
7000         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
7001         comments.
7002         (Build_Library): Idem.
7003         (Compile_Individual_Sources): Idem.
7004         (Compile_Link_With_Gnatmake): Idem.
7005         (Compile_Sources): Idem.
7006         (Get_Imported_Directories): Idem.
7007         (Link_Executables): Idem. Same change for the executable dir.
7008         (Check_Compilation_Needed): C_Source_Path new variable containing
7009         the canonical form of Source_Path to check against the source names
7010         in the dependency file.
7011         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
7012         verbose mode, display the name of the object directory we're changing
7013         to.
7014         (Saved_Switches): New name of table X_Switches
7015         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
7016         (Usage): New line for switch -aP
7017         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
7018         testing if a directory should be added to the search path.
7019
7020 2007-06-06  Javier Miranda  <miranda@adacore.com>
7021
7022         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads, 
7023         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
7024         declaration after freezing point of all its associated tagged types;
7025         otherwise such types are frozen too early.
7026
7027 2007-06-06  Robert Dewar  <dewar@adacore.com>
7028
7029         * a-reatim.adb: Documentation addition
7030
7031         * g-cgideb.adb: Minor code reorganization
7032
7033         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
7034         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
7035         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
7036
7037         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
7038         function.  Change name New_Scope to Push_Scope
7039         (Get_Debug_Flag_K): Remove unused obsolete function.
7040
7041         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
7042         Push_Scope.
7043
7044         * makeusg.adb: Update Copyright notice
7045         Add line for switch -aP
7046
7047         * makeusg.adb: Fix wording of some usage messages
7048
7049         * s-assert.adb (Raise_Assert_Failure): Add call to
7050         Debug_Raise_Assert_Failure.
7051
7052         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
7053         (2, Standard'Alignment) for compatibility with AAMP (where alignment
7054         is restricted to 1).
7055
7056         * s-wchjis.adb: Remove use of System.Pure_Exceptions
7057
7058         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
7059         node location to No_Location when we're not debugging the expanded
7060         code.
7061
7062 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
7063
7064         * misc.c (enumerate_modes): Consider log2_b to always be one.
7065
7066 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
7067
7068         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
7069
7070 2007-05-02  Pascal Obry  <obry@adacore.com>
7071
7072         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
7073         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
7074         encoding support of Stream_IO.
7075         (Write_Unit): Idem.
7076
7077         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
7078         filename and corresponding encoding to match the OS requirement.
7079         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
7080         routine will fail on specific devices like CON: AUX: ...
7081
7082         PR ada/29856: Add missing braces
7083
7084 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7085
7086         PR ada/31660
7087         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
7088
7089 2007-04-21  Jan Hubicka  <jh@suse.cz>
7090
7091         * misc.c (gnat_expand_body): Don't call target for destructors,
7092         avoid redundant check on syntax errors.
7093
7094 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7095
7096         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
7097         instead of checking GIMPLE_STMT_P in chain_next.
7098
7099 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
7100
7101         PR ada/31576
7102         * system-linux-alpha.ads: Disable constant condition warning for the
7103         Default_Bit_Order variable.
7104         * system-linux-s390.ads: Likewise.
7105         * system-linux-s390x.ads: Likewise.
7106         * system-linux-sparc.ads: Likewise.
7107
7108 2007-04-06  Javier Miranda  <miranda@adacore.com>
7109             Matt Heaney  <heaney@adacore.com>
7110             Robert Dewar  <dewar@adacore.com>
7111
7112         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
7113         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
7114         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
7115         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
7116         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
7117         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
7118         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
7119         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
7120         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
7121         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
7122         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
7123         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
7124         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
7125         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
7126         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
7127         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
7128         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
7129         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
7130         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
7131         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
7132         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
7133         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
7134         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
7135         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
7136         s-taprop-tru64.adb, s-taprop-irix.adb,
7137         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
7138         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
7139         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
7140         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb, 
7141         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads, 
7142         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb, 
7143         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads, 
7144         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads, 
7145         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb, 
7146         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads, 
7147         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb, 
7148         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, 
7149         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb, 
7150         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb, 
7151         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads, 
7152         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads, 
7153         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb, 
7154         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
7155         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads, 
7156         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
7157         access types.
7158         Update documentation.
7159         Minor rewording.
7160
7161 2007-04-06  Robert Dewar  <dewar@adacore.com>
7162
7163         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7164         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7165         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
7166         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
7167         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
7168         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7169         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7170         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
7171         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
7172         system-hpux-ia64.ads, targparm.adb,
7173         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
7174
7175         * system.ads: Move Functions_Return_By_DSP to obsolete section,
7176         kept for bootstrap purposes only.
7177
7178 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
7179
7180         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7181         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
7182         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
7183         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
7184
7185 2007-04-06  Robert Dewar  <dewar@adacore.com>
7186
7187         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
7188         (Local_Raise): New dummy procedure called when a raise is converted
7189         to a local goto. Used for debugger to detect that the exception
7190         is raised.
7191
7192         * debug.adb: Document new d.g flag (expand local raise statements to
7193         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
7194
7195         * exp_sel.adb: Use Make_Implicit_Exception_Handler
7196
7197         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
7198         suppress warnings for unused handlers.
7199         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
7200         warnings for raise statements not handled locally.
7201         (Get_RT_Exception_Entity): New function
7202         (Get_Local_Call_Entity): New function
7203         (Find_Local_Handler): New function
7204         (Warn_If_No_Propagation): New procedure
7205         (Expand_At_End_Handler): Call Make_Implicit_Handler
7206         (Expand_Exception_Handlers): Major additions to deal with local handlers
7207         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
7208         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
7209         for local raise
7210
7211         * exp_ch11.ads (Get_RT_Exception_Entity): New function
7212         (Get_Local_Call_Entity): New function
7213
7214         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
7215         of restrictions that the binder will never suggest adding.
7216
7217         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
7218         to No_Elist.
7219
7220         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
7221         be with'ed in the presence of pragma Restriction
7222         (No_Exception_Propagation).
7223
7224         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
7225
7226         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
7227         parameter, then the handler is not a suitable target for a local raise,
7228         and this is a violation of restriction No_Exception_Propagation.
7229         (Analyze_Handled_Statements): Analyze choice parameters in exception
7230         handlers before analyzing statement sequence (needed for proper
7231         detection of local raise statements).
7232         (Analyze_Raise_Statement): Reraise statement is a violation of the
7233         No_Exception_Propagation restriction.
7234
7235         * s-rident.ads: Add new restriction No_Exception_Propagation
7236
7237         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
7238         function, like Make_Exception_Handler but sets Local_Raise_Statements
7239         to No_List.
7240         (Add_Unique_Serial_Number): Deal with case where this is called during
7241         processing of configuration pragmas.
7242
7243 2007-04-06  Thomas Quinot  <quinot@adacore.com>
7244             Pat Rogers  <rogers@adacore.com>
7245             Pascal Obry  <obry@adacore.com>
7246
7247         * g-stsifd-sockets.adb: New file.
7248
7249         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
7250         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
7251         g-socthi-vms.adb: Move signalling
7252         fd management to a nested package, so that they can conveniently be
7253         moved to a subunit that is shared across Windows, VMS, and VxWorks
7254         (Ada implementation) or completed with imported bodies from socket.c
7255         (UNIX case).
7256         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
7257         subprograms.
7258         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
7259         the signalling file descriptor.
7260         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
7261         signalling file descriptor.
7262         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
7263         instead of creating a pair of sockets for signalling here.
7264
7265         * g-socthi.adb: Ditto.
7266         Set the runtime process to ignore SIGPIPEs on platforms that support
7267         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
7268
7269         * g-socthi-mingw.adb: Ditto.
7270         (WS_Version): Use Windows 2.2.
7271         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
7272
7273         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
7274         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
7275
7276         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
7277         added GNAT byte swapping facility
7278         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
7279
7280         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
7281
7282         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
7283         New subprograms.
7284         (__gnat_create_signalling_fds): New subprogram.
7285         Set the runtime process to ignore SIGPIPEs on platforms that support
7286         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
7287
7288 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
7289             Vincent Celier  <celier@adacore.com>
7290
7291         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
7292         New version of Ada.Calendar which supports the new upper bound of Ada
7293         time (2399-12-31 86_399.999999999).
7294         The following modifications have been made to the package:
7295          - New representation of time as count of nanoseconds since the start of
7296            Ada time (1901-1-1 0.0).
7297          - Target independent Split and Time_Of routines which service both
7298            Ada 95 and Ada 2005 code.
7299          - Target independent interface to the Ada 2005 children of Calendar.
7300          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
7301          - Handling of non-leap centenial years.
7302          - Updated clock function.
7303          - Updated arithmetic and comparison operators.
7304
7305         * a-caldel.adb (To_Duration): Add call to target independent routine in
7306         Ada.Calendar to handle the conversion of time to duration.
7307
7308         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
7309         (UTC Offset).
7310         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
7311         set off to 0.
7312         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
7313         targets do not have a natural time zone, GMT is used as a default.
7314         (__gnat_get_task_options): New.
7315
7316         * a-direct.adb (Modification_Time): Add with and use clauses for
7317         Ada.Calendar and Ada.
7318         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
7319         since it is no longer needed.
7320         (Duration_To_Time): Removed.
7321         (OS_Time_To_Long_Integer): Removed.
7322         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
7323         Formatting Time_Of routines which automatically handle time zones,
7324         buffer periods and leap seconds.
7325
7326         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
7327         target independent routines in Ada.Calendar.
7328
7329         * a-calfor.ads, a-calfor.adb: 
7330         Code cleanup and addition of validity checks in various routines.
7331         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
7332         Ada.Calendar.
7333
7334         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
7335         independent routine in Ada.Calendar.
7336
7337 2007-04-06  Olivier Hainque  <hainque@adacore.com>
7338
7339         * adaint.c: 
7340         (convert_addresses): Adjust prototype and dummy definition to expect an
7341          extra file_name argument.
7342
7343         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
7344         filling the now expected file_name argument with the appropriate
7345         argv[0] expansion.
7346         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
7347         (tracebk): Array of void * instead of char *, corresponding to what
7348          convert_addresses expects.
7349         (exename): New static global, to hold the executable file name to be
7350         used in all convert_addresses invocations.
7351         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
7352         change.
7353         (__gnat_gmem_a2l_initialize): Resolve exename.
7354         (__gnat_convert_addresses): Use exename as the convert_addresses
7355         file_name argument.
7356
7357         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
7358         "convert_addresses", now expecting a filename argument. Import the
7359         necessary entities to compute the filename to use and pass it to
7360         convert_addresses.
7361
7362 2007-04-06  Matt Gingell  <gingell@adacore.com>
7363
7364         * system-aix.ads: Back out previous change.
7365         (Functions_Return_By_DSP): Removed
7366
7367 2007-04-06  Pascal Obry  <obry@adacore.com>
7368
7369         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
7370         or the monotonic used by Ada.Real_Time) to compute the sleep duration
7371         on Windows.
7372
7373 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
7374
7375         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
7376         function. Its value changes in different VxWorks versions, and it is
7377         now handled by the function __gnat_get_task_options.
7378
7379         * s-taprop-vxworks.adb (Create_Task): Call the function
7380         __gnat_get_task_options to get the required options for creating a task.
7381
7382 2007-04-06  Pascal Obry  <obry@adacore.com>
7383             Thomas Quinot  <quinot@adacore.com>
7384
7385         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
7386         dealing with filename.
7387         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
7388         filename from a standard string to a wide-string depending on the
7389         encoding value.
7390         (__gnat_freopen): Idem.
7391         (__gnat_current_time): New function (wrapper for time(3) standard C
7392         function).
7393
7394         * g-os_lib.ads (Current_Time): New function. Returns the current
7395         system time as an OS_Time value.
7396
7397         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
7398         (Monotonic_Clock): Same.
7399
7400 2007-04-06  Quentin Ochem  <ochem@adacore.com>
7401
7402         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
7403         not on a natural.
7404         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
7405
7406 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
7407
7408         * a-retide.adb: Add elaboration code to ensure that the tasking run
7409         time is initialized when using delay operations even when no task is
7410         created.
7411
7412 2007-04-06  Javier Miranda  <miranda@adacore.com>
7413
7414         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
7415         component Num_Prim_Ops.
7416         (Set_Num_Prim_Ops): Removed.
7417         Remove all the assertions because all the routines of this
7418         package are inline always.
7419         (Get_Offset_Index): Add support to primary dispatch tables.
7420         Move the documentation about the dispatch table to a-tags.ads
7421         (Set_External_Tag): Removed
7422         (Inherit_TSD): Removed.
7423         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
7424         moved to a-tags.ads
7425         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
7426         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
7427         of the TSD field "Table" because this field has been renamed to
7428         "Ifaces_Table".
7429         (Inherit_CPP_DT): Removed.
7430         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
7431         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
7432         declarations have been moved to a-tags.ads
7433         (Check_Size): Removed.
7434         (Expanded_Name): Updated to get access to the new field of TSD
7435         containing the address of the expanded name.
7436         (Get_Access_Level/Set_Access_Level): Removed.
7437         (Get_Predefined_Prim_Op_Address): Removed.
7438         (Set_Predefined_Prim_Op_Address): Removed.
7439         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
7440         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
7441         (Set_Expanded_Name): Removed.
7442         (Inherit_DT): Removed.
7443         (Inherit_CPP_DT): Removed.
7444         (Set_RC_Offset): Removed.
7445         (Set_TSD): Removed.
7446         (Base_Address): New function that displaces "this" to point to the base
7447         of the object (that is, to point to the primary tag of the object).
7448
7449 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7450             Javier Miranda  <miranda@adacore.com>
7451
7452         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
7453         anonymous access component, do not create a master_id if type already
7454         has one, as may happen if the type is a subcomponent of a packed array
7455         type.
7456         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
7457         Initialize_Tag): Remove code associated with the old CPP pragmas.
7458         CPP_Virtual and CPP_Vtable are no longer supported.
7459         (Build_Offset_To_Top_Internal): Add support for concurrent record types
7460         (Build_Offset_To_Top_Functions): Add support for concurrent record types
7461         (Freeze_Record_Type): Remove call to
7462         Init_Predefined_Interface_Primitives.
7463         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
7464         code required to initialize the tags of the secondary dispatch tables.
7465         This leaves the algoritm more clear.
7466         (Init_Secondary_Tags): Add support for concurrent record types
7467         (Make_Predefined_Primitive_Specs): Code cleanup.
7468         (Predefined_Primitive_Bodies): Code cleanup.
7469         (Build_Master_Renaming): New local subprogram.
7470         (Expand_N_Full_Type_Declaration): Build the master_id associated with
7471         anonymous access to task type components.
7472         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
7473         subtype indication are resolved during analysis, and must not be done
7474         here.
7475         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
7476
7477 2007-04-06  Geert Bosch  <bosch@adacore.com>
7478             Ed Schonberg  <schonberg@adacore.com>
7479             Javier Miranda  <miranda@adacore.com>
7480             Bob Duff  <duff@adacore.com>
7481
7482         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
7483         for conversion of a Float_Type'Truncation to integer.
7484
7485         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
7486         check if a node is an attribute that can be handled directly by the
7487         back end.
7488         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
7489         attributes that can be handled directly by the back end.
7490         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
7491         use new predicate Is_Access_Protected_Subprogram_Type.
7492         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
7493         and Unchecked_Union if it is generated as part of the default  Output
7494         procedure for a type with default discriminants.
7495         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
7496         if we are compiling under restriction No_Dispatching_Calls.
7497         (Constrained): Use Underlying_Type, in case the type is private without
7498         discriminants, but the full type has discriminants.
7499         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
7500         call to Build_Get_Access_Level.
7501         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
7502         interface objects requires a call to the run-time subprogram that
7503         returns the base address of the object.
7504         (Valid_Conversion): Improve error message on illegal attempt to store
7505         an anonymous access to subprogram value into a record component.
7506
7507         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
7508         null".
7509         (Simplify_Type_Conversion): New procedure that performs simplification
7510         of Int_Type (Float_Type'Truncation (X)).
7511         (Resolve_Type_Conversion): Call above procedure after resolving operand
7512         and before performing checks. This replaces the existing ineffective
7513         code in Exp_Ch4.
7514         (Set_String_Literal_Subtype): When creating the internal static lower
7515         bound subtype for a string literal, use a newly created copy of the
7516         subtree representing the lower bound.
7517         (Resolve_Call): Exclude build-in-place function calls from transient
7518         scope treatment. Update comments to describe this exception.
7519         (Resolve_Equality_Op): In case of dispatching call check violation of
7520         restriction No_Dispatching_Calls.
7521         (Resolve_Call): If the call returns an array, the context imposes the
7522         component type of the array, and the function has one non-defaulted
7523         parameter, rewrite the call as the indexing of a call with a single
7524         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
7525         in prefix form.
7526         (Resolve_Actuals): If an actual is an allocator for an access parameter,
7527         the master of the created object is the innermost enclosing statement.
7528         (Remove_Conversions): For a binary operator, check if type of second
7529         formal is numeric, to check if an abstract interpretation is present
7530         in the case of exponentiation as well.
7531
7532 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7533             Bob Duff  <duff@adacore.com>
7534
7535         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
7536         copying a parameter list in a call, set properly the First_Named_Formal
7537         and Next_Named_Formal fields in the new list and in the enclosing call.
7538         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
7539         names, to ease typing in the debugger. Improve comments.
7540         (Watch_Node): New variable, intended to be set in the debugger.
7541         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
7542         called when the watched node is created.
7543         (New_Node_Debugging_Output): Combined version of local procedures
7544         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
7545         with a parameter so that conditional breakpoints like "if Node = 12345"
7546         work.
7547         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
7548         Add Elist1 function
7549
7550 2007-04-06  Thomas Quinot  <quinot@adacore.com>
7551             Ed Schonberg  <schonberg@adacore.com>
7552             Gary Dismukes  <dismukes@adacore.com>
7553
7554         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
7555         required for a conversion between two access-to-unconstrained-array
7556         types.
7557         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
7558         to discriminant constraints on discriminant objects. This rule must
7559         apply as well to discriminants of protected types in private components.
7560         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
7561         object of a null-excluding access type then don't require the
7562         the object declaration to have an expression and don't emit a
7563         run-time check.
7564
7565 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
7566             Eric Botcazou <botcazou@adacore.com>
7567
7568         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
7569         and made constant.
7570
7571         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
7572         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
7573         carry any.
7574
7575         * fe.h (Compiler_Abort): Add third parameter.
7576
7577         * misc.c (internal_error_function): Build third argument from current
7578         input location and pass it to Compiler_Abort.
7579
7580 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
7581
7582         * cstand.adb (Create_Standard): When the target's storage unit size is
7583         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
7584         Standard_String.
7585
7586 2007-04-06  Nicolas Roche  <roche@adacore.com>
7587
7588         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
7589         absolute path can have the following form: device:/a/b. In this case
7590         '/' should be inserted between the path and the filename.
7591
7592 2007-04-06  Olivier Hainque  <hainque@adacore.com>
7593             Eric Botcazou <botcazou@adacore.com>
7594
7595         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
7596         VAR_DECL to a CONST_DECL we make for a public constant when we know the
7597         corresponding definition has created the so made visible variable.
7598         Handle anonymous access to protected subprogram.
7599         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
7600         object with an address clause volatile.  Re-enable original fix.
7601         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
7602         too.
7603         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
7604         associated with either the Equivalent or Root type, instead of the
7605         naked type node.
7606         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
7607         subtree for every field of a global record type.
7608         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
7609         discriminants, invoke again variable_size on its newly computed sizes.
7610
7611 2007-04-06  Robert Dewar  <dewar@adacore.com>
7612             Thomas Quinot  <quinot@adacore.com>
7613             Ed Schonberg  <schonberg@adacore.com>
7614             Bob Duff  <duff@adacore.com>
7615
7616         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
7617         (Next_Component_Or_Discriminant): New function and procedure
7618         (First_Index, First_Literal, Master_Id,
7619         Set_First_Index, Set_First_Literal, Set_Master_Id):
7620         Add missing Ekind assertions.
7621         (Is_Access_Protected_Subprogram_Type): New predicate.
7622         (Has_RACW): New entity flag, set on package entities to indicate that
7623         the package contains the declaration of a remote accecss-to-classwide
7624         type.
7625         (E_Return_Statement): This node type has the Finalization_Chain_Entity
7626         attribute, in case the result type has controlled parts.
7627         (Requires_Overriding): Add this new flag, because "requires
7628         overriding" is subtly different from "is abstract" (see AI-228).
7629         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
7630         Is_Abstract_Type. Make sure these are called only when appropriate.
7631         (Has_Pragma_Unreferenced_Objects): New flag
7632
7633         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
7634         class-wide, the tag of the right-hand side must be an exact match, not
7635         an ancestor of that of the object on left-hand side.
7636         (Move_Activation_Chain): New procedure to create the call to
7637         System.Tasking.Stages.Move_Activation_Chain.
7638         (Expand_N_Extended_Return_Statement): Generate code to call
7639         System.Finalization_Implementation.Move_Final_List at the end of a
7640         return statement if the function's result type has controlled parts.
7641         Move asserts to Build_In_Place_Formal.
7642         (Move_Final_List): New function to create the call statement.
7643         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
7644         tagged type, replace generation of call to the run-time subprogram
7645         CW_Membership by call to Build_CW_Membership.
7646         (Expand_N_Return_Statement): Replace generation of call to the run-time
7647         subprogram Get_Access_Level by call to Build_Get_Access_Level.
7648         (Expand_N_Simple_Function_Return): Replace generation of call to the
7649         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
7650
7651         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
7652         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
7653         access to protected operations.
7654         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
7655         master and chain actual parameters to a build-in-place function call
7656         involving tasks.
7657         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
7658         statement.
7659         (Make_Build_In_Place_Call_In_Allocator,
7660         Make_Build_In_Place_Call_In_Anonymous_Context,
7661         Make_Build_In_Place_Call_In_Assignment,
7662         Make_Build_In_Place_Call_In_Object_Declaration): Call
7663         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
7664         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
7665         stubbed procedure with a null body, replace the call with a null
7666         statement without using the full inlining machinery, for efficiency
7667         and to avoid invalid values in source file table entries.
7668
7669         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
7670         renamings of calls to build-in-place functions.
7671
7672         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
7673         provides the functionality of RTE_Available to record components.
7674         (RTU_Entity): The function Entity has been renamed to RTU_Entity
7675         to avoid undesired overloading.
7676         (Entity): New subprogram that returns the entity for the referened
7677         unit. If this unit has not been loaded, it returns Empty.
7678         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
7679         Remove no longer used entities.
7680         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
7681         (RE_Type_Specific_Data): New entity.
7682         (RE_Move_Any_Value): New entity.
7683         (RE_TA_A, RE_Get_Any_Type): New entities.
7684         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
7685          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
7686          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
7687         (Entity): New subprogram that returns the entity for the referened
7688         unit. If this unit has not been loaded, it returns Empty.
7689         (RTE): Addition of a new formal that extends the search to the scopes
7690         of the record types found in the chain of the package.
7691
7692         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
7693         "abstract subprograms must be visible" message, whether or not the type
7694         is an interface; that is, remove the special case for interface types.
7695         (Analyze_Function_Return): Remove error message "return of task objects
7696         is not yet implemented" because this is now implemented.
7697         (Create_Extra_Formals): Add the extra master and activation chain
7698         formals in case the result type has tasks.
7699         Remove error message "return of limited controlled objects is not yet
7700         implemented".
7701         (Create_Extra_Formals): Add the extra caller's finalization list formal
7702         in case the result type has controlled parts.
7703         (Process_Formals): In case of access formal types there is no need
7704         to continue with the analysis of the formals if we already notified
7705         errors.
7706         (Check_Overriding_Indicator): Add code to check overriding of predefined
7707         operators.
7708         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
7709         flags for formals that do not require them,.
7710         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
7711         hidden entity is use visible or directly visible.
7712         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
7713         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
7714         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
7715         New_Overloaded_Entity): Split Is_Abstract flag into
7716         Is_Abstract_Subprogram and Is_Abstract_Type.
7717
7718         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
7719         a return statement's finalization list to the caller's list, used for
7720         build-in-place functions with result type with controlled parts.
7721         Remove no longer used entities.
7722
7723         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
7724         longer needed, because the full type is now limited, and therefore a
7725         pass-by-reference type.
7726         (Foreign_Task_Level): New constant.
7727
7728         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
7729         move tasks from the activation chain belonging to a return statement to
7730         the one passed in by the caller, and update the master to the one
7731         passed in by the caller.
7732         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
7733         of unactivated tasks, so we don't kill the ones that are being returned
7734         by a build-in-place function.
7735         (Create_Task): Ignore AI-280 for foreign threads.
7736
7737 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7738             Robert Dewar  <dewar@adacore.com>
7739             Bob Duff  <duff@adacore.com>
7740             Gary Dismukes  <dismukes@adacore.com>
7741
7742         * errout.adb (Unwind_Internal_Type): Use predicate
7743         Is_Access__Protected_Subprogram_Type.
7744
7745         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
7746         (Freeze_Entity, packed array case): Do not override explicitly set
7747         alignment and size clauses.
7748         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
7749         the enclosing subprogram is a child unit body that acts as a spec.
7750         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
7751         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
7752         Remove all code for DSP option
7753
7754         * layout.adb (Layout_Record_Type): Use First/
7755         Next_Component_Or_Discriminant
7756         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
7757         to handle properly the anonymous access case.
7758
7759         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
7760         for all access attributes, because overload resolution should work the
7761         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
7762         causes the error message for the ambiguous "X'Access = Y'Access" and
7763         "X'Unrestricted_Access = Y'Access" and so forth to match.
7764         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
7765         now that anonymous access to protected operations have their own kind.
7766         (Resolve_Attribute): In case of dispatching call check the violation of
7767         restriction No_Dispatching_Calls.
7768         (Check_Array_Type): Check new -gnatyA array index style option
7769
7770         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
7771         attempt to derive from a synchronized tagged type.
7772         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
7773         type, inherit the class-wide type already created, because it may
7774         already have been used in a self-referential anonymous access component.
7775         (Mentions_T): Recognize self-referential anonymous access components
7776         that use (a subtype of) the class-wide type of the enclosing type.
7777         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
7778         Derived_Type for Prev formal on call to
7779         Check_Anonymous_Access_Components rather than Empty.
7780         (Make_Incomplete_Type_Declaration): Add test for case where the type has
7781         a record extension in deciding whether to create a class-wide type,
7782         rather than just checking Tagged_Present.
7783         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
7784         to stand-alone object declarations as well as component declarations.
7785         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
7786         prevent accidental overwriting when enclosing package appears in
7787         a limited_with_clause.
7788         (Array_Type_Declaration): If the component type is an anonymous access,
7789         the associated_node for the itype is the type declaration itself.
7790         (Add_Interface_Tag_Components): Modified to support concurrent
7791         types with abstract interfaces.
7792         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
7793         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
7794         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
7795         to complete the decoration of synchronized interface types. Add also
7796         a call to Check_Abstract_Interfaces to verify the ARM rules.
7797         (Derive_Interface_Subprograms): Modified to support concurrent types
7798         with abstract interfaces.
7799         (Analyze_Subtype_Indication): Resolve the range with the given subtype
7800         mark, rather than delaying the full resolution depending on context.
7801         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
7802         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
7803         Array_Type_Declaration,Build_Derived_Record_Type,
7804         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
7805         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
7806         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
7807         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
7808         called only when appropriate.
7809         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
7810         to private type.
7811         (Analyze_Subtype_Declaration): For an access subtype declaration, create
7812         an itype reference for the anonymous designated subtype, to prevent
7813         scope anonmalies in gigi.
7814         (Build_Itype_Reference): New utility, to simplify construction of such
7815         references.
7816
7817 2007-04-06  Vincent Celier  <celier@adacore.com>
7818
7819         * errutil.adb (Initialize): Initialize warnings table, if all warnings
7820         are suppressed, supply an initial dummy entry covering all possible
7821         source locations.
7822
7823         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
7824         and start with only one, such as "-RTS=none".
7825         (Collect_Arguments): Do not check for sources outside of projects.
7826         Do not collect arguments if project is externally built.
7827         (Compile_Sources): Do nothing, not even check if the source is up to
7828         date, if its project is externally built.
7829         (Compile): When compiling a predefined source, add -gnatpg
7830         as the second switch, after -c.
7831         (Compile_Sources): Allow compilation of Annex J renames without -a
7832         (Is_In_Object_Directory): Check if the ALI file is in the object
7833         even if there is no project extension.
7834         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
7835         gnatbind if the ALI file effectively exists.
7836         (Initialize): Add the directory where gnatmake is invoked in front of
7837         the path if it is invoked from a bin directory, even without directory
7838         information, so that the correct GNAT tools will be used when spawned
7839         without directory information.
7840
7841         * makeusg.adb: Change switch -S to -eS
7842         Add lines for new switches -we, -wn and -ws
7843         Add line for new switch -p
7844
7845         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
7846         Treat_As_Error and there are warnings.
7847
7848         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
7849         -gnatww Change gnatmake switch -S to -eS
7850         (Scan_Make_Switches): Code reorganisation. Process separately multi
7851         character switches and single character switches.
7852         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
7853         False when switch is not recognized by gnatmake.
7854         (Scan_Make_Switches): Set Setup_Projects True when -p or
7855         --create-missing-dirs is specified.
7856
7857         * fname.adb (Is_Predefined_File_Name): Return True for annex J
7858         renamings Calendar, Machine_Code, Unchecked_Conversion and
7859         Unchecked_Deallocation only when Renamings_Included is True.
7860
7861         * par.adb: Allow library units Calendar, Machine_Code,
7862         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
7863         when -gnatg is not specified.
7864         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
7865         there is no need to generate always a record_definition_node in case
7866         of synchronized interface types.
7867         (SIS_Entry_Active): Initialize global variable to False
7868         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
7869         indicate cases where AI-447 says "not null" is legal.
7870
7871         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
7872
7873         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
7874         files with with several lines starting with the object fileb name.
7875         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
7876         is specified.
7877         (Initialize): Add the directory where gprmake is invoked in front of the
7878         path, if it is invoked from a bin directory or with directory
7879         information, so that the correct GNAT tools will be used when invoked
7880         directly.
7881         (Check_Compilation_Needed): Process correctly backslashes on Windows.
7882
7883         * vms_data.ads: Update switches/qualifiers
7884
7885 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7886             Thomas Quinot  <quinot@adacore.com>
7887
7888         * exp_aggr.adb:
7889         If the array component is a discriminated record, the array aggregate
7890         is non-static even if the component is given by an aggregate with
7891         static components.
7892         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
7893         (Convert_Aggr_In_Allocator): If the allocator is for an access
7894         discriminant and the type is controlled. do not place on a finalization
7895         list at this point. The proper list will be determined from the
7896         enclosing object.
7897         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
7898         initialize record controller if needed, before the components, to ensure
7899         that they are properly finalized.
7900         (Build_Record_Aggr_Code): For the case of an array component that has a
7901         corresponding array aggregate in the record aggregate, perform sliding
7902         if required.
7903
7904 2007-04-06  Javier Miranda  <miranda@adacore.com>
7905             Gary Dismukes  <dismukes@adacore.com>
7906             Ed Schonberg  <schonberg@adacore.com>
7907
7908         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
7909         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
7910
7911         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
7912         accessibility on class-wide allocators if the allocator occurs at the
7913         same scope level as the allocator's type. The check is guaranteed to
7914         succeed in that case, even when the expression originates from a
7915         parameter of the containing subprogram.
7916         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
7917         under No_Dispatching_Calls restriction. During the semantic analysis
7918         we already notified such violation.
7919         (Tagged_Membership): Constant folding. There is no need to check
7920         the tag at run-time if the type of the right operand is non
7921         class-wide abstract.
7922         Replace call to Is_Ancestor by call to Is_Parent
7923         to support concurrent types with interface types.
7924         (Expand_N_Allocator): Add an assertion associated with the generation
7925         of the master_id.
7926         (Expand_N_Slice): Do not enable range check to nodes associated
7927         with the frontend expansion of the dispatch table.
7928         (Is_Local_Access_Discriminant): Subsidiary function to
7929         Expand_N_Allocator.
7930         (Tagged_Membership): Replace generation of call to the run-time
7931         subprogram CW_Membership by call to Build_CW_Membership.
7932         (Expand_Allocator_Expression): Replace generation of call to the
7933         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
7934
7935         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
7936         initialize most the TSD components by means of an aggregate.
7937         Modify the declaration of the object containing the TSD
7938         because we now expand code that has a higher level of abstraction.
7939         The TSD has a discriminant containing the Inheritance Depth Level,
7940         value that is used in the membership test but also to fix the size
7941         of the table of ancestors.
7942         (Expand_Interface_Conversion): Insert function body at the closest place
7943         to the conversion expression, to prevent access-before-elaboration
7944         errors in the backend.
7945         Code improved to reduce the size of the dispatch table if
7946         compiling under restriction No_Dispatching_Calls plus code cleanup.
7947         Code reorganization plus removal of calls to Set_Num_Prim_Ops
7948         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
7949         (Expand_Dispatching_Call): Minor code reorganization plus addition of
7950         code to return immediately if compiling under No_Dispatching_Calls
7951         restriction.
7952         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
7953         CPP_Virtual and CPP_Vtable are no longer supported.
7954         (Expand_Interface_Conversion): Add missing support for interface type
7955         derivations.
7956         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
7957         Is_Parent to support concurrent types with interfaces.
7958         (Init_Predefined_Interface_Primitives): Removed.
7959         (Make_Secondary_DT): Modified to support concurrent record types.
7960         (Set_All_DT_Position): Modified to support concurrent record types.
7961         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
7962         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
7963         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
7964         with CW_Membership.
7965         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
7966         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
7967         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
7968         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
7969         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
7970         (Expand_Dispatching_Call): Replace generation of call to the run-time
7971         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
7972         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
7973         Address.
7974         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
7975         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
7976         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
7977         Build_Set_Prim_Op_Address.
7978         (Get_Remotely_Callable): Subprogram removed.
7979         (Init_Predefined_Interface_Primitives): Replace generation of call to
7980         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
7981         Prims.
7982
7983         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
7984         First (Parameter_Associations ()) with the call to First_Actual that
7985         returns an actual parameter expression for both named and positional
7986         associations.
7987
7988         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
7989         check violation of restriction No_Dispatching_Calls.
7990         (Check_Controlling_Type): A formal of a tagged incomplete type is a
7991         controlling argument.
7992
7993         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
7994         First/Next_Component_Or_Discriminant
7995         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
7996         (Find_Implemented_Interface): Removed. All the calls to this subprogram
7997         specify Any_Limited_Interface, and this functionality is already
7998         provided by the function Has_Abstract_Interfaces.
7999         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
8000         support concurrent types implementing interfaces.
8001         (Find_Implemented_Interface): Removed. All the calls to this subprogram
8002         specify kind Any_Limited_Interface, and this functionality is already
8003         provided by the function Has_Abstract_Interfaces.
8004         (Remove_Side_Effects): replace Controlled_Type by
8005         CW_Or_Controlled_Type whenever the issue is related to
8006         using or not the secondary stack.
8007
8008         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
8009         P_Interface_Type_Definition to fulfill the new interface (the formal
8010         Is_Synchronized is no longer required).
8011
8012         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
8013         Update dependencies.
8014
8015         * exp_atag.ads, exp_atag.adb: New file
8016
8017 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8018             Bob Duff  <duff@adacore.com>
8019             Cyrille Comar  <comar@adacore.com>
8020
8021         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
8022         anonymous, use finalization list of enclosing dynamic scope.
8023         (Expand_N_Package_Declaration): For a library package declaration
8024         without a corresponding body, generate RACW subprogram bodies in the
8025         spec (just as we do for the task activation call).
8026         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
8027         Is_Abstract_Type. Make sure these are called only when appropriate.
8028         Remove all code for DSP option
8029         (CW_Or_Controlled_Type): new subprogram.
8030
8031 2007-04-06  Eric Botcazou <botcazou@adacore.com>
8032             Ed Schonberg  <schonberg@adacore.com>
8033             Gary Dismukes  <dismukes@adacore.com>
8034
8035         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
8036         parameter. If it is set to true, return a result capped according to
8037         the global upper bound for the index of an entry family.
8038         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
8039         (Build_Find_Body_Index): Adjust for above change.
8040         (Entry_Index_Expression): Likewise.
8041         (Is_Potentially_Large_Family): New function extracted from...
8042         (Collect_Entry_Families): ...here. Call it to detect whether the family
8043         is potentially large.
8044         (Build_Entry_Count_Expression): If the family is potentially large, call
8045         Family_Size with 'Cap' set to true.
8046         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
8047         a protected version of an operation declared in the private part of
8048         a protected object, because they may be invoked through a callback.
8049         (Set_Privals): If the type of a private component is an anonymous access
8050         type, do not create a new itype for each protected body.
8051         If the body of a protected operation creates
8052         controlled types (including allocators for class-widetypes), the
8053         body of the corresponding protected subprogram must include a
8054         finalization list.
8055         (Build_Activation_Chain_Entity): Build the chain entity for extended
8056         return statements.
8057         (Type_Conformant_Parameters): Use common predicate Conforming_Types
8058         to determine whether operation overrides an inherited primitive.
8059         (Build_Wrapper_Spec): Add code to examine the parents while looking
8060         for a possible overriding candidate.
8061         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
8062         hold an actual parameter value since its initialization is separated
8063         from the the declaration. Prevents errors on null-excluding access
8064         formals.
8065
8066 2007-04-06  Thomas Quinot  <quinot@adacore.com>
8067
8068         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
8069         Do an Unchecked_Conversion to handle the passage from the Underlying
8070         Type to the Base Type when calling Build_To_Any_Call and
8071         Build_From_Any_Call.
8072         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
8073         E_Constant, depending upon Variable formal.
8074         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
8075         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
8076         parameter that requires an extra constrained parameter, declare
8077         temporary for actual as a variable, not a constant.
8078         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
8079         the unit being compiled is the one that contains the stub type.
8080         Change primitive operation name for the RACW associated with a RAS
8081         from Call to _Call so it cannot clash with any legal identifier.
8082         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
8083         Is_RAS.
8084         (Append_RACW_Bodies): New subprogram.
8085         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
8086         Add_Receiving_Stubs_To_Declarations functions.
8087         When expanding a package body, this list correspond to the
8088         statements in the HSS at the end of the pacakge.
8089         When expanding a package spec, this list correspond to the
8090         spec declarations.
8091         (Add_Receiving_Stubs_To_Declarations): Append the function
8092         registering the receiving stubs at the end of the 'Stmts' list.
8093         (RCI_Package_Locator): Pass the new Version generic formal when
8094         instantiating a RCI_Locator package.
8095         (Build_From_Any_Function): To compute the High bound for an
8096         unconstrained array actual, we add the Low bound with the length.
8097         Thus we must convert the low bound and the length to an appropriate
8098         type before doing the sum.
8099         (Build_Subprogram_Receiving_Stubs, PolyORB):
8100          * Retrieve the extra formals parameters at the
8101            end of the parameter stream.
8102          * Use Move_Any_Value to write back out parameters
8103            after executing the request as it is more efficient
8104            than Copy_Any_Value.
8105          * Build the any containing Extra Formals with the
8106            appropriate typecode.
8107         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
8108         empty Component_List.
8109         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
8110         the tree the declaration for an object that serves as actual parameter
8111         in server-side stubs.
8112         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
8113         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
8114         Use Build_Actual_Object_Declaration to prepare the actuals.
8115         (Add_Parameter_To_NVList): Set the parameter mode to In for
8116         Extra Constrained Parameters.
8117         (Build_General_Calling_Stubs): Set the parameter type to boolean for
8118         Extra Constrained parameters.
8119         (Build_To_Any_Function, Build_From_Any_Function,
8120         Built_TypeCode_Function): When Typ is implicit, call the correct
8121         function with the first not implicit parent type.
8122         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
8123         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
8124         typecode from the Etype. Therefore we retrieve the correct typecode
8125         with a call to Get_Any_Type.
8126         (Copy_Specification): Do controlling formal type substitution based on
8127         Is_Controlling_Formal flag, instead of caller-provided object type.
8128         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
8129         a RACW primitive operation, we might get a subprogram declaration for an
8130         ancestor of the RACW designated type (not for the designated type
8131         itself), in the case where this operation is inherited. In this case we
8132         have no easy means of determining the original tagged type for which
8133         the primitive was declared, so instead we now rely on
8134         Copy_Specification to use the Is_Controlling_Formal flag to determine
8135         which formals require type substitution.
8136
8137 2007-04-06  Robert Dewar  <dewar@adacore.com>
8138             Ed Schonberg  <schonberg@adacore.com>
8139
8140         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
8141         GNAT.Current_Exception are not allowed if pragma Restrictions
8142         (No_Exception_Propagation) is set and in any case make the associated
8143         handler unsuitable as a target for a local raise statement.
8144         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
8145         run-time subprogram CW_Membership by call to Build_CW_Membership.
8146         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
8147         by a function call, a temporary must be created before expanding the
8148         Constructor_Call itself, to prevent out-of-order elaboration in the
8149         back-end when stack checking is enabled..
8150
8151 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8152
8153         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
8154         result are the bounds of the left operand, not the right.
8155
8156 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8157
8158         * exp_strm.adb
8159         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
8160          discriminant defaults.
8161         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
8162         (Make_Component_List_Attributes): Ditto.
8163
8164 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8165             Bob Duff  <duff@adacore.com>
8166
8167         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
8168         an association with a box as providing a value even though the
8169         initialization procedure for the type is not available.
8170         (Resolve_Record_Aggregate): Check that a choice of an association with a
8171         box corresponds to a component of the type.
8172         (Resolve_Record_Aggregate): Split Is_Abstract flag into
8173         Is_Abstract_Subprogram and Is_Abstract_Type.
8174
8175         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
8176         assert.
8177
8178         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
8179         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
8180         called only when appropriate.
8181
8182 2007-04-06  Olivier Hainque  <hainque@adacore.com>
8183
8184         * g-alleve.ads (Low Level Vector type definitions): Map each to the
8185         associated vector view instead of all to the unsigned char view.
8186
8187         * g-altcon.adb (Generic_Conversions): New internal generic package,
8188         offering facilities for all the Vector/View conversion routines
8189         implemented by this unit.
8190         (To_View/To_Vector - all versions): Reimplemented in a systematic
8191         manner, using the internal Generic_Conversions facilities.
8192
8193 2007-04-06  Pascal Obry  <obry@adacore.com>
8194
8195         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
8196         string.
8197         (Create): Free the source string before storing the new one.
8198
8199 2007-04-06  Vincent Celier  <celier@adacore.com>
8200
8201         * g-debpoo.adb (Validity): New package with a complete new
8202         implementation of subprograms Is_Valid and Set_Valid.
8203         (Is_Valid): Move to local package Validity
8204         (Set_Valid): Move to local package Validity
8205
8206 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
8207
8208         * g-expect.adb (Get_Command_Output): When expanding the output buffer
8209         we must ensure that there is enough place for the new data we are going
8210         to copy in.
8211
8212 2007-04-06  Thomas Quinot  <quinot@adacore.com>
8213
8214         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
8215         computation.
8216
8217 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
8218             Vincent Celier  <celier@adacore.com>
8219
8220         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
8221         (Stack_String): Add this String that contains the name of the Stack
8222         package in the project file.
8223         (Packages_To_Check_By_Stack): Add this list that contains the packages
8224         to be checked by gnatstack, which are the naming and the stack packages.
8225         (Check_Files): If no .ci files were specified for gnatstack we add all
8226         the .ci files belonging to the projects, including binder generated
8227         files.
8228         (Non_VMS_Usage): Document that gnatstack accept project file switches.
8229         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
8230         Add gnatstack to the list of commands that use project file related
8231         switches, and get the single attribute Switches from the stack package
8232         in a project file when calling gnatstack. Parse the -U flag for
8233         processing files belonging to all projects in the project tree.
8234         Remove all processing for command Setup
8235
8236         * prj-attr.adb: Add new package Stack with single attribute Switches
8237
8238         * vms_conv.ads (Command_Type): Add command Stack.
8239         Move to body declarations that are only used in the body: types Item_Id,
8240         Translation_Type, Item_Ptr, Item and its subtypes.
8241
8242         * vms_conv.adb: (Initialize): Add data for new command Stack.
8243         Add declarations moved from the spec: types Item_Id, Translation_Type,
8244         Item_Ptr, Item and its subtypes.
8245         (Cargs_Buffer): New table
8246         (Cargs): New Boolean global variable
8247         (Process_Buffer): New procedure to create arguments
8248         (Place): Put character in table Buffer or Cargs_Buffer depending on the
8249          value of Cargs.
8250         (Process_Argument): Set Cargs when processing qualifiers for GNAT
8251         COMPILE
8252         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
8253         empty, for table Cargs_Buffer.
8254         (Initialize): Remove component Setup in Command_List
8255
8256 2007-04-06  Vincent Celier  <celier@adacore.com>
8257
8258         * gprep.adb (Process_Files.Process_One_File): Use full file name when
8259         issuing pragma Source_Reference.
8260
8261 2007-04-06  Emmanuel Briot  <briot@adacore.com>
8262
8263         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
8264         [[:xdigit:]] character class.
8265         Also raise an exception when an invalid character class is used.
8266
8267 2007-04-06  Pascal Obry  <obry@adacore.com>
8268
8269         * i-cstrea.ads: (fopen): Add encoding parameter.
8270         (freopen): Idem.
8271         Change reference from a-sysdep.c to sysdep.c in comment.
8272         Update copyright notice.
8273         This set of patch add support for the encoding form parameter.
8274
8275         * mingw32.h (S2WSU): New macro to convert from a string to a
8276         wide-string using the UTF-8 encoding. The S2WS macro supports now only
8277         standard 8bits encoding.
8278         (WS2SU): As above but converting from wide-sring to string.
8279         This is needed as it is necessary to have access to both versions in the
8280         runtime for the form parameter encoding support.
8281         This set of patch add support for the encoding form parameter.
8282         (S2WS): Improve implementation to handle cases where the filename is not
8283         UTF-8 encoded. In this case we default to using the current code page
8284         for the conversion.
8285
8286         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
8287         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
8288         the constants defined in adaint.h.
8289         (fopen): Add encoding parameter.
8290         (freopen): Idem.
8291
8292         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
8293         encoding. This is needed for the Reset routine (freopen low level-call).
8294
8295         * s-fileio.adb (Open): Decode encoding form parameter and set the
8296         corresponding encoding value into AFCB structure.
8297         (Reset): Pass the encoding value to freopen.
8298         (Close): Move the call to Lock_Task to the beginning of the procedure.
8299
8300 2007-04-06  Geert Bosch  <bosch@adacore.com>
8301             Robert Dewar  <dewar@adacore.com>
8302
8303         * i-fortra.ads: Add Double_Complex type.
8304
8305         * impunit.adb: (Is_Known_Unit): New function
8306         Add Gnat.Byte_Swapping
8307         Add GNAT.SHA1
8308         Add new Ada 2005 units
8309         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
8310         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
8311         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
8312         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
8313
8314         * impunit.ads (Is_Known_Unit): New function
8315
8316         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
8317         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
8318         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
8319         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
8320         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
8321         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
8322         New files.
8323
8324         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
8325
8326         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
8327
8328 2007-04-06  Eric Botcazou <botcazou@adacore.com>
8329             Arnaud Charlet  <charlet@adacore.com>
8330
8331         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
8332         __gnat_adjust_context_for_raise.
8333         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
8334         implementation of floating point operations as native x86 targets.
8335         So the FPU should be initialized in the same way using finit. Fix
8336         floating point operations accuracy issues.
8337         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
8338         member in struct sigaction, so as to avoid warning for incompatible
8339         pointer types.
8340
8341 2007-04-06 Serguei Rybin <rybin@adacore.com>
8342
8343         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
8344         switches from previously loaded tree
8345
8346 2007-04-06  Thomas Quinot  <quinot@adacore.com>
8347
8348         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
8349         cases where a given dependency has a body or not.
8350         (Write_With_File_Names): New subprogram, common code for the two cases
8351         above.
8352
8353 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8354             Javier Miranda  <miranda@adacore.com>
8355
8356         * lib-xref.ads, lib-xref.adb: 
8357         Modify the loop that collects type references, to include interface
8358         types that the type implements. List each of these interfaces when
8359         building the entry for the type.
8360         (Generate_Definition): Initialize component Def and Typ of new entry
8361         in table Xrefs, to avoid to have these components unitialized.
8362         (Output_References): Split Is_Abstract flag into
8363         Is_Abstract_Subprogram and Is_Abstract_Type.
8364         (Generate_Reference): Add barrier to do not generate the warning
8365         associated with Ada 2005 entities with entities generated by the
8366         expander.
8367
8368 2007-04-06  Robert Dewar  <dewar@adacore.com>
8369             Arnaud Charlet  <charlet@adacore.com>
8370             Vincent Celier  <celier@adacore.com>
8371
8372         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
8373         Update 'Exception Handling Control' chapter which was outdated.
8374         Minor fix to documentation of -gnatwq
8375         Remove section "Adapting the Run Time to a New C++ Compiler" because
8376         it is now obsolete.
8377         Add passage on need of -nostart-files in some non-ada-main cases.
8378         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
8379         Update documentation about Interfacing with C++
8380         Add documentation for new gnatmake switch -p
8381         Add missing protocol part in URLs.
8382         Document -gnatyA
8383         Document pragma Compile_Time_Error
8384         Add documentation for Object_Size indicating that stand alone
8385         objects can have a larger size in some cases.
8386         Add node for GNAT.Byte_Swapping, GNAT.SHA1
8387         Update reference to the Ravenscar profile.
8388         Document pragma Unreferenced_Objects
8389
8390         * gnat-style.texi: Fix typo
8391
8392 2007-04-06  Vincent Celier  <celier@adacore.com>
8393
8394         * mlib.adb (Building_Library): Only output "building a library..." in
8395         verbose mode
8396
8397         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
8398         files in verbose mode.
8399
8400         * mlib-utl.adb (Ar): Only output the first object files when not in
8401         verbose mode.
8402         (Gcc): Do not display all the object files if not in verbose mode, only
8403         the first one.
8404
8405 2007-04-06  Robert Dewar  <dewar@adacore.com>
8406
8407         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
8408         it no longer destroys the contents of Name_Buffer or Name_Len and
8409         non-standard and invalid names are handled better.
8410         (Get_Decoded_Name_String): Improve performance by using
8411         Name_Has_No_Encodings flag in the name table.
8412         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
8413         Used for debugging printouts.
8414
8415 2007-04-06  Robert Dewar  <dewar@adacore.com>
8416             Javier Miranda  <miranda@adacore.com>
8417             Bob Duff  <duff@adacore.com>
8418
8419         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
8420         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
8421         there is no need to generate always a record_definition_node in case
8422         of synchronized interface types.
8423         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
8424         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
8425         illegal in Ada 95, in cases where it is legal. Change the warnings to
8426         errors in other cases. Don't give the error unless the "not null"
8427         parses properly. Correct the source position at which the error occurs.
8428         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
8429         P_Null_Exclusion, to suppress "not null" warnings.
8430         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
8431         associated goto statements.
8432
8433         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
8434         of END RECORD
8435
8436         * scans.ads (Type_Token_Location): New flag
8437
8438         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
8439         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
8440         P_Null_Exclusion, to suppress "not null" warnings.
8441
8442 2007-04-06  Robert Dewar  <dewar@adacore.com>
8443             Javier Miranda  <miranda@adacore.com>
8444             Bob Duff  <duff@adacore.com>
8445             Vincent Celier  <celier@adacore.com>
8446
8447         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
8448         (Extensions_Allowed): No longer sets Ada_Version
8449         Entry for pragma Unreferenced_Objects
8450
8451         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
8452         system.tasking if pragma priority used in a procedure
8453         (Analyze_Pragma, case Warning): Handle dot warning switches
8454         (Process_Compile_Time_Warning_Or_Error): New procedure
8455         (Analyze_Pragma): Add processing for Compile_Time_Error
8456         Add support for extra arguments External_Name and Link_Name.
8457         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
8458         (Process_Import_Or_Interface): Add support for the use of pragma Import
8459         with tagged types.
8460         (Extensions_Allowed): No longer affects Ada_Version
8461         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
8462         Is_Abstract_Type. Make sure these are called only when appropriate.
8463         Add processing for pragma Unreferenced_Objects
8464
8465         * snames.h, snames.ads, snames.adb: Add entry for pragma
8466         Compile_Time_Error
8467         Add new standard name Minimum_Binder_Options for new gprmake
8468         Add new standard names for gprmake: Archive_Suffix,
8469         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
8470         Library_Support, Library_Version_Options,
8471         Shared_Library_Minimum_Options,
8472         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
8473         Change Name_Call to Name_uCall so that it cannot clash with a legal
8474         subprogram name.
8475         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
8476         Append C_Plus_Plus to convention identifiers as synonym for CPP
8477         Add new standard names Stack and Builder_Switches
8478         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
8479         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
8480         Run_Path_Option, Toolchain_Version.
8481         Entry for pragma Unreferenced_Objects
8482
8483         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
8484         switches, without repetition of "eD". Make sure that last character of
8485         -gnatep= switch is not taken as -gnat switch character.
8486         Complete rewrite of circuit for handling saving compilation options
8487         Occasioned by need to support dot switchs for -gnatw, but cleans up
8488         things in general.
8489         -gnatX does not affect Ada_Version
8490         Include -gnatyA in -gnatg style switches
8491
8492         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
8493         warnings on return objects.
8494         (Warn_On_Useless_Assignment): Exclude warnings on return objects
8495         (Set_Dot_Warning_Switch): New procedure
8496         (Check_References): Add missing case of test for
8497         Has_Pragma_Unreferenced_Objects
8498         (Output_Unreferenced_Messages): Implement effect of new pragma
8499         Unreferenced_Objects, remove special casing of limited controlled
8500         variables.
8501
8502 2007-04-06  Vincent Celier  <celier@adacore.com>
8503
8504         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
8505         the default project path, initially done during elaboration of the
8506         package.
8507         If the prefix returned by Sdefault is null, get the prefix from a call
8508         to Executable_Prefix_Path.
8509         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
8510         null.
8511
8512         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
8513         canonical directory name to open the directory from which files are
8514         retrieved.
8515         (Record_Other_Sources): Idem.
8516         (Locate_Directory): Add the possibility to create automatically missing
8517         directories when Setup_Projects is True.
8518         Call Locate_Directory so that the directory will be created when
8519         Setup_Projects is True, for object dir, library dir, library ALI dir,
8520         library source copy dir and exec dir.
8521
8522         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
8523         versions of GNAT.
8524
8525 2007-04-06  Robert Dewar  <dewar@adacore.com>
8526
8527         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
8528         Use First/Next_Component_Or_Discriminant
8529         (Analyze_Record_Representation_Clause):
8530         Use First/Next_Component_Or_Discriminant
8531         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
8532         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
8533         definition if type is unconstrained.
8534         (Adjust_Record_For_Reverse_Bit_Order): New procedure
8535         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
8536         Is_Abstract_Subprogram and Is_Abstract_Type.
8537         (Adjust_Record_For_Reverse_Bit_Order): New procedure
8538
8539         * repinfo.adb (List_Record_Info): Use First/
8540         Next_Component_Or_Discriminant.
8541
8542         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
8543         New procedure.
8544
8545         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
8546         Include -gnatyA in default switches
8547
8548         * opt.ads: (Warn_On_Non_Local_Exception): New flag
8549         (Warn_On_Reverse_Bit_Order): New flag
8550         (Extensions_Allowed): Update the documentation.
8551         (Warn_On_Questionable_Missing_Parens): Now on by default
8552
8553         * usage.adb: Add documentation of -gnatw.x/X switches
8554         Document new -gnatyA style switch
8555         -gnatq warnings are on by default
8556
8557 2007-04-06  Ed Falis  <falis@adacore.com>
8558
8559         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
8560         full word is no longer compared twice.
8561
8562 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8563
8564         * sem_ch10.adb (Install_Limited_Context_Clauses.
8565         Expand_Limited_With_Clause): Use a new copy of selector name in the
8566         call to Make_With_Clause. This fixes the tree structure for ASIS
8567         purposes. Nothing is changed in the compiler behaviour.
8568         (Process_Body_Clauses): Handle properly use clauses whose prefix is
8569         a package renaming.
8570         (Install_Limited_With_Clauses): Do not install non-limited view when it
8571         is still incomplete.
8572
8573 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8574             Gary Dismukes  <dismukes@adacore.com>
8575
8576         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
8577         when capturing size information, instead of base type, which for a
8578         formal array type will be the unconstrained type.
8579         (Analyze_Formal_Object_Declaration): Add check for illegal default
8580         expressions for a formal in object of a limited type.
8581         (Instantiate_Object): Ditto.
8582         (Check_Formal_Package_Instance): Skip entities that are formal objects,
8583         because they were defaulted in the formal package and no check applies
8584         to them.
8585         (Check_Formal_Package_Instance): Extend conformance check to other
8586         discrete types beyond Integer.
8587         (Process_Default): Copy directly the unmatched formal. A generic copy
8588         has already been performed in Analyze_Formal_Package.
8589         (Analyze_Associations): If a formal subprogram has no match, check for
8590         partial parametrization before looking for a default, to prevent
8591         spurious errors.
8592         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
8593         not set the instantiation environment before analyzing the actuals.
8594         Fixes regression on 8515-003 with implementation of AI-133.
8595         Set_Instance_Env checks whether the generic unit is a predefined
8596         unit, in which case the instance must be analyzed with the latest Ada
8597         mode. This setting must take place after analysis of the actuals,
8598         because the actuals must be analyzed and frozen in the Ada mode extant
8599         outside of the current instantiation.
8600         (Save_Env, Restore_Env): Preserve and restore the configuration
8601         parameters so that predefined units can be compiled in the proper Ada
8602         mode.
8603         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
8604         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
8605         and Is_Abstract_Type.
8606         (Analyze_Formal_Package): For better error recovery, Add exception
8607         handler to catch Instantion_Error, which can be raised in
8608         Analyze_Associations
8609
8610 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8611             Bob Duff  <duff@adacore.com>
8612             Gary Dismukes  <dismukes@adacore.com>
8613
8614         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
8615         prefix type is a discriminated subtype of the type of the formal.
8616         (Analyze_Allocator): Collect all coextensions regardless of the context.
8617         Whether they can be allocated statically is determined in exp_ch4.
8618         (Analyze_Selected_Component): If the prefix is a limited view and the
8619         non-limited view is available, use the non-limited one.
8620         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
8621         therefore illegal), suggest a qualified expression rather than a type
8622         conversion, because a type conversion would be illegal in this context.
8623         (Anayze_Allocator): Trace recursively all nested allocators so that all
8624         coextensions are on the corresponding list for the root. Do no mark
8625         coextensions if the root allocator is within a declaration for a stack-
8626         allocated object, because the access discriminants will be allocated on
8627         the stack as well.
8628         (Analyze_Call): Remove restriction on calls to limited functions for the
8629         cases of generic actuals for formal objects, defaults for formal objects
8630         and defaults for record components.
8631         (Analyze_Allocator): Before analysis, chain coextensions on the proper
8632         element list. Their expansion is delayed until the enclosing allocator
8633         is processed and its finalization list constructed.
8634         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
8635         for an operation with the given name among the primitive operations of
8636         the corresponding record type.
8637         (Analyze_Selected_Component): If the prefix is a task type that
8638         implements an interface, and there is no entry with the given name,
8639         check whether there is another primitive operation (e.g. a function)
8640         with that name.
8641         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
8642         properly the indexing of a function call written in prefix form, where
8643         the function returns an array type, and all parameters of the function
8644         except the first have defaults.
8645         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
8646         the original operands, rather than relocating them, for efficiency and
8647         to work properly when an operand is overloaded.
8648         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
8649         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
8650         (Analyze_Selected_Component): If the prefix is a private extension, only
8651         scan the visible components, not those of the full view.
8652         (Try_Primitive_Operation): If the operation is a procedure, collect all
8653         possible interpretations, as for a function, because in the presence of
8654         classwide parameters several primitive operations of the type can match
8655         the given arguments.
8656
8657 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8658             Robert Dewar  <dewar@adacore.com>
8659
8660         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
8661         tag-indeterminate call to an abstract function, when the left-hand side
8662         is not classwide.
8663         (Analyze_Loop_Statement): Improve detection of infinite loops
8664
8665 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8666             Thomas Quinot  <quinot@adacore.com>
8667
8668         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
8669         out of Analyze_Package_Declaration, because processing must be applied
8670         to package bodies as well, for deferred constants completed by pragmas.
8671         (Analyze_Package_Declaration): When the package declaration being
8672         analyzed does not require an explicit body, call Check_Completion.
8673         (May_Need_Implicit_Body): An implicit body is required when a package
8674         spec contains the declaration of a remote access-to-classwide type.
8675         (Analyze_Package_Body): If the package contains RACWs, append the
8676         pending subprogram bodies generated by exp_dist at the end of the body.
8677         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
8678         Is_Abstract_Subprogram and Is_Abstract_Type.
8679         (Preserve_Full_Attributes): The full entity list is not an attribute
8680         that must be preserved from full to partial view.
8681
8682         * sem_dist.adb (Add_RAS_Dereference_TSS):
8683         Change primitive name to _Call so it cannot clash with any legal
8684         identifier, and be special-cased in Check_Completion.
8685         Mark the full view of the designated type for the RACW associated with
8686         a RAS as Comes_From_Source to get proper view switching when installing
8687         private declarations.
8688         Provite a placeholder nested package body along with the nested spec
8689         to have a place for Append_RACW_Bodies to generate the calling stubs
8690         and stream attributes.
8691
8692 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8693             Robert Dewar  <dewar@adacore.com>
8694
8695         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
8696         that is a limited view, check the non-limited view if available.
8697         (Undefined): Refine error message for missing with of Text_IO
8698         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
8699         to distinguish real missing with cases.
8700         Fix format of all missing with messages
8701         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
8702         renaming as body when renamed entity is abstract.
8703
8704 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8705             Javier Miranda  <miranda@adacore.com>
8706
8707         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
8708         predicate recursive, to handle complex expressions on literals whose
8709         spurious ambiguity comes from the abstract interpretation of some
8710         subexpression.
8711         (Interface_Present_In_Ancestor): Add support to concurrent record
8712         types.
8713         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
8714         Is_Abstract_Subprogram and Is_Abstract_Type.
8715
8716 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8717             Javier Miranda  <miranda@adacore.com>
8718
8719         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
8720         dereference of a local object R created as a reference to another
8721         object O, use the access level of O.
8722         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
8723         rather than local Same_Formal_Type, to check whether protected operation
8724         overrides an inherited one.
8725         (Same_Formal_Type): New predicate, used when matching signatures of
8726         overriding synchronized operations, to handle the case when a formal
8727         has a type that is a generic actual.
8728         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
8729         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
8730         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
8731         syntactic ambiguities involving indexing of function calls that return
8732         arrays.
8733         (Abstract_Interface_List): New subprogram that returns the list of
8734         abstract interfaces associated with a concurrent type or a
8735         concurrent record type.
8736         (Interface_Present_In_Parent): New subprogram used to check if a
8737         given type or some of its parents implement a given interface.
8738         (Collect_Abstract_Interfaces): Add support for concurrent types
8739         with interface types.
8740         (Has_Abstract_Interfaces): Add support for concurrent types with
8741         interface types.
8742         (Is_Parent): New subprogram that determines whether E1 is a parent
8743         of E2. For a concurrent type its parent is the first element of its
8744         list of interface types; for other types this function provides the
8745         same result than Is_Ancestor.
8746         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
8747         (Collect_Synchronized_Interfaces): Removed because the subprogram
8748         Collect_Abstract_Interfaces provides this functionality.
8749         (Collect_Abstract_Interfaces): Minor update to give support to
8750         concurrent types and thus avoid undesired code duplication.
8751         (Get_Subprogram_Entity): Handle entry calls.
8752         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
8753         entry calls.
8754         (Enter_Name): Do not give -gnatwh hiding warning for record component
8755         entities, they never result in hiding.
8756
8757 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8758             Robert Dewar  <dewar@adacore.com>
8759
8760         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
8761         to chain nested components that are allocators for access discriminants
8762         of the enclosing object.
8763         Add N_Push and N_Pop nodes
8764         New field Exception_Label added
8765         (Local_Raise_Statements): New field in N_Exception_Handler_Node
8766         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
8767         (Is_Coextension): New flag for allocators, to mark allocators that
8768         correspond to access discriminants of dynamically allocated objects.
8769         (N_Block_Statement): Document the fact that the corresponding entity
8770         can be an E_Return_Statement.
8771         (Is_Coextension): New flag for allocators.
8772         Remove all code for DSP option
8773
8774         * sprint.ads, sprint.adb: Display basic information for class_wide
8775         subtypes. Add handling of N_Push and N_Pop nodes
8776
8777 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
8778
8779         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
8780         before propagating exception.
8781
8782 2007-04-06  Olivier Hainque  <hainque@adacore.com>
8783
8784         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
8785         an address always within the call instruction from a return address.
8786
8787 2007-04-06  Olivier Hainque  <hainque@adacore.com>
8788             Eric Botcazou <botcazou@adacore.com>
8789
8790         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
8791         expression with a COMPOUND_EXPR including the call instead of emitting
8792         the call directly here.
8793         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
8794         high bound is constant and the slice is empty.  Tidy.
8795         (tree_transform, case N_Op_Not): Handle properly the case where the
8796         operation applies to a private type whose full view is a modular type.
8797         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
8798         Address_Clause, use the associated Expression as the GNAT tree
8799         representing the choice value to ensure the corresponding GCC tree is
8800         of the proper kind.
8801         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
8802         instead of just the operands, as the base GCC stabilize_reference does.
8803         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
8804         requested; otherwise fail.
8805         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
8806
8807 2007-04-06  Thomas Quinot  <quinot@adacore.com>
8808
8809         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
8810         implementation of UI_Div.
8811         (UI_Div): Reimplement as a call to UI_Div_Rem.
8812         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
8813         remainder, avoiding the cost of a multiplication and a subtraction.
8814         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
8815         provides both quotient and remainder in a single computation.
8816         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
8817         functions for uint.
8818         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
8819         is undefined if the given n is not inversible.
8820
8821 2007-04-06  Olivier Hainque  <hainque@adacore.com>
8822
8823         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
8824         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
8825         opcodes.
8826
8827 2007-04-06  Eric Botcazou <botcazou@adacore.com>
8828             Olivier Hainque  <hainque@adacore.com>
8829
8830         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
8831         when updating the contents of the old pointer to an unconstrained array.
8832         (end_subprog_body): Set error_gnat_node to Empty.
8833         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
8834         (unchecked_convert): For subtype to base type conversions, require that
8835         the source be a subtype if it is an integer type.
8836         (builtin_decls): New global, vector of available builtin functions.
8837         (gnat_pushdecl): Add global builtin function declaration nodes to the
8838         builtin_decls list.
8839         (gnat_install_builtins): Adjust comments.
8840         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
8841         calling gnat_pushdecl, so that it knows when it handed a builtin
8842         function declaration node.
8843         (builtin_decl_for): Search the builtin_decls list.
8844
8845 2007-04-06  Eric Botcazou <botcazou@adacore.com>
8846
8847         * s-stchop-vxworks.adb: 
8848         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
8849
8850 2007-04-06  Robert Dewar  <dewar@adacore.com>
8851             Arnaud Charlet  <charlet@adacore.com>
8852
8853         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
8854
8855         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
8856         of files
8857         Add mention of -Sev (set initialize_scalars option from environment
8858         variable at run time) in gnatbind usage message.
8859
8860         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
8861
8862         * fname-uf.ads: Minor comment fix
8863
8864         * osint.ads: Change pragma Elaborate to Elaborate_All
8865
8866         * par-load.adb: Add documentation.
8867
8868         * sem_cat.ads, sem_cat.adb: Minor code reorganization
8869
8870         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
8871
8872         * s-secsta.ads: Extra comments
8873
8874         * s-soflin.ads: Minor comment fixes
8875
8876         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
8877
8878         * s-wchcon.ads: Minor comment addition
8879
8880         * treepr.adb: Minor change in message
8881         (Print_Name,Print_Node): Make these debug printouts more robust: print
8882         "no such..." instead of crashing on bad input.
8883
8884 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
8885
8886         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
8887         instead of gnat_signed_or_unsigned_type.
8888         * utils.c (gnat_signed_or_unsigned_type): Remove.
8889         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
8890         * gigi.h (gnat_signed_or_unsigned_type): Remove
8891
8892 2007-03-09  Roger Sayle  <roger@eyesopen.com>
8893
8894         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
8895         fold with the result of buildN.
8896         * decl.c (gnat_to_gnu_entity): Likewise.
8897         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
8898         * utils.c (finish_record_type, merge_sizes, max_size, convert):
8899         Likewise.
8900         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
8901         nonbinary_modular_operation, build_binary_op, build_unary_op,
8902         build_cond_expr): Likewise.
8903
8904         * utils.c (convert): Use fold_build1 when casting values to void.
8905         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
8906         fold_convert instead of convert when appropriate.
8907
8908 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
8909
8910         * Make-lang.in: Add install-pdf target as copied from
8911         automake v1.10 rules.
8912
8913 2007-02-28  Andreas Schwab  <schwab@suse.de>
8914
8915         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
8916         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
8917         (doc/gnat-style.info): Likewise.
8918
8919 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
8920
8921         * gnat-style.texi: Standardize title page.
8922         * gnat_rm.texi: Likewise.
8923         * gnat_ugn.texi: Likewise.
8924
8925 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
8926
8927         * decl.c (annotate_value): Adjust for refactoring of tree_map
8928         hierarchy.
8929
8930 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
8931
8932         * decl.c (annotate_value): Adjust for refactoring of tree_map
8933         hierarchy.
8934
8935 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
8936
8937         PR ada/18819
8938         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
8939         untagged derived type, add hidden components to keep discriminant
8940         layout consistent, when a given discriminant of the derived type
8941         constraints several discriminants of the parent type.
8942
8943 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
8944             Sandra Loosemore  <sandra@codesourcery.com>
8945
8946         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
8947         build the call expression.
8948         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
8949         * utils.c (max_size) <tcc_exceptional>: Delete.
8950         <tcc_vl_exp>: New case.
8951         <tcc_expression>: Delete CALL_EXPR subcase.
8952         (build_global_cdtor): Use build_call_nary instead of build3.
8953         * utils2.c (build_call_1_expr): Likewise.
8954         (build_call_2_expr): Likewise.
8955         (build_call_0_expr): Likewise.
8956         (build_call_alloc_dealloc): Likewise.
8957
8958 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
8959
8960         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
8961         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
8962         and _Unwind_SWord with _sleb128_t.
8963
8964 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
8965
8966         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
8967         * decl.c: Include gt-ada-decl.h.
8968         (annotate_value_cache): New.
8969         (annotate_value): Use it instead of TREE_COMPLEXITY.
8970
8971 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
8972
8973         * misc.c, utils2.c: Fix comment typos.
8974
8975 2007-01-24  Roger Sayle  <roger@eyesopen.com>
8976
8977         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
8978         TREE_CONSTANT_OVERFLOW.
8979         (allocatable_size_p, annotate_value): Likewise.
8980         * trans.c (gnat_to_gnu): Likewise.
8981         * utils.c (unchecked_convert): Likewise.
8982         * utils2.c (build_simple_component_ref): Likewise.
8983
8984 2007-01-23  Richard Guenther  <rguenther@suse.de>
8985
8986         PR bootstrap/30541
8987         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
8988         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
8989         (gnatboot3): Likewise.
8990         (GNATBIND): Do not define.
8991         * Makefile.in (GNATBIND): Do not define.
8992
8993 2007-01-08  Richard Guenther  <rguenther@suse.de>
8994
8995         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
8996         * trans.c (gnat_to_gnu): Likewise.
8997
8998 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
8999
9000         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
9001         * adaint.c: Likewise.
9002
9003 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
9004
9005         Merge from gimple-tuples-branch:
9006         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
9007
9008         * ada-tree.h (lang_tree_node): Handle gimple tuples.
9009         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
9010         GIMPLE_MODIFY_STMT.
9011
9012 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
9013
9014         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
9015         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
9016         Fix typos.
9017
9018 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
9019
9020         PR ada/27936
9021         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
9022         if the initializer takes into account the padding.
9023
9024 2006-11-11  Richard Guenther  <rguenther@suse.de>
9025
9026         * trans.c (maybe_stabilize_reference): Remove handling of
9027         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
9028
9029 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
9030
9031         PR ada/29707
9032         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
9033         (To_Target_Priority): New function.
9034
9035 2006-10-31  Robert Dewar  <dewar@adacore.com>
9036
9037         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
9038         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
9039         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
9040         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
9041         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
9042         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
9043         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
9044         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
9045         a-szbzha.adb: Minor reformatting. Fix header.
9046
9047         * a-numaux-x86.adb: Add parentheses for use of unary minus
9048         * a-ngcefu.adb: Supply missing parentheses for unary minus
9049         * a-ngcoty.adb: Add parens for use of unary minus
9050         * a-ngelfu.adb: Add missing parens for unary minus
9051         * a-tifiio.adb: Add parentheses for uses of unary minus
9052
9053 2006-10-31  Robert Dewar  <dewar@adacore.com>
9054             Bob Duff  <duff@adacore.com>
9055             Ed Schonberg  <schonberg@adacore.com>
9056
9057         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
9058         with multiplying operator.
9059         (Expected_Type_Is_Any_Real): New function to determine from the Parent
9060         pointer whether the context expects "any real type".
9061         (Resolve_Arithmetic_Op): Do not give an error on calls to the
9062         universal_fixed "*" and "/" operators when they are used in a context
9063         that expects any real type. Also set the type of the node to
9064         Universal_Real in this case, because downstream processing requires it
9065         (mainly static expression evaluation).
9066         Reword some continuation messages
9067         Add some \\ sequences to continuation messages
9068         (Resolve_Call): Refine infinite recursion case. The test has been
9069         sharpened to eliminate some false positives.
9070         Check for Current_Task usage now includes entry barrier, and is now a
9071         warning, not an error.
9072         (Resolve): If the call is ambiguous, indicate whether an interpretation
9073         is an inherited operation.
9074         (Check_Aggr): When resolving aggregates, skip associations with a box,
9075         which are priori correct, and will be replaced by an actual default
9076         expression in the course of expansion.
9077         (Resolve_Type_Conversion): Add missing support for conversion from
9078         a class-wide interface to a tagged type. Minor code cleanup.
9079         (Valid_Tagged_Converion): Add support for abstact interface type
9080         conversions.
9081         (Resolve_Selected_Component): Call Generate_Reference here rather than
9082         during analysis, and use May_Be_Lvalue to distinguish read/write.
9083         (Valid_Array_Conversion): New procedure, abstracted from
9084         Valid_Conversion, to incorporate accessibility checks for arrays of
9085         anonymous access types.
9086         (Valid_Conversion): For a conversion to a numeric type occurring in an
9087         instance or inlined body, no need to check that the operand type is
9088         numeric, since this has been checked during analysis of the template.
9089         Remove legacy test for scope name Unchecked_Conversion.
9090
9091         * sem_res.ads: Minor reformatting
9092
9093         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
9094         (PE_Current_Task_In_Entry_Body): New exception code
9095         (SE_Restriction_Violation): Removed, not used
9096
9097         * a-except.ads:  Update comments.
9098
9099         * types.h, types.ads: Add definition for Validity_Check
9100         (PE_Current_Task_In_Entry_Body): New exception code
9101         (SE_Restriction_Violation): Removed, not used
9102
9103 2006-10-31  Thomas Quinot  <quinot@adacore.com>
9104
9105         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
9106         error status.
9107
9108 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
9109             Jose Ruiz  <ruiz@adacore.com>
9110
9111         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
9112         part of Ada.Calendar: all subprogram raise Unimplemented.
9113         (Split_W_Offset): Temp function body, raising Unimplemented
9114
9115         * a-calend.ads, a-calend-vms.ads: 
9116         Add imported variable Invalid_TZ_Offset used to designate targets unable
9117         to support time zones.
9118         (Unimplemented): Temporary function raised by the body of new
9119         subprograms below.
9120         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
9121         unit provides handling of leap seconds and is used by the new Ada 2005
9122         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
9123         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
9124         version returns an extra value which is the offset to UTC.
9125
9126         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
9127         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
9128         (Split_W_Offset): New function body.
9129         (Time_Of): When a date is close to UNIX epoch, compute the time for
9130         that date plus one day (that amount is later substracted after
9131         executing mktime) so there are no problems with time zone adjustments.
9132
9133         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
9134
9135         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
9136         a-catizo.ads, a-catizo.adb: New files.
9137
9138         * impunit.adb: Add new Ada 2005 entries
9139
9140         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
9141         Rename all occurences of "__gnat_localtime_r" to
9142         "__gnat_localtime_tzoff".
9143         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
9144         zone data and calculate the GMT offset.
9145         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
9146         Use the field "tm_gmtoff" to extract the GMT offset.
9147         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
9148         the external variable "timezone" to calculate the GMT offset.
9149
9150 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
9151             Jose Ruiz  <ruiz@adacore.com>
9152
9153         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb, 
9154         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads, 
9155         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
9156         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
9157         System.Any_Priority to a POSIX priority on the target.
9158
9159         * system-linux-ia64.ads: 
9160         Extend range of Priority types on Linux to use the whole range made
9161         available by the system.
9162
9163         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
9164         function maps from System.Any_Priority to a POSIX priority on the
9165         target.
9166         (PTHREAD_PRIO_PROTECT): Set real value.
9167         (PTHREAD_PRIO_INHERIT): Now a function.
9168         (SIGCPUFAIL): New signal.
9169         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
9170         are documented as reserved by the OS.
9171
9172         * system-aix.ads: Use the full range of priorities provided by the
9173         system on AIX.
9174
9175         * s-taprop-posix.adb: Call new function To_Target_Priority.
9176         (Set_Priority): Take into account Task_Dispatching_Policy and
9177         Priority_Specific_Dispatching pragmas when determining if Round Robin
9178         must be used for scheduling the task.
9179
9180         * system-linux-x86_64.ads, system-linux-x86.ads, 
9181         system-linux-ppc.ads: Extend range of Priority types on Linux to use
9182         the whole range made available by the system.
9183
9184         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb, 
9185         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb, 
9186         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
9187         when deallocating the TCB in order to avoid potential references to
9188         deallocated data.
9189         (Set_Priority): Take into account Task_Dispatching_Policy and
9190         Priority_Specific_Dispatching pragmas when determining if Round Robin
9191         or FIFO within priorities must be used for scheduling the task.
9192
9193         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
9194         the Thread field (to be used internally by the run-time system) and the
9195         kernel-level task id in the LWP field (to be used by the debugger).
9196         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
9197         instance, and propagate the current task options to the spawned task.
9198         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
9199         (Initialize): Set Round Robin dispatching when the corresponding pragma
9200         is in effect.
9201
9202 2006-10-31  Robert Dewar  <dewar@adacore.com>
9203
9204         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
9205         system-linux-hppa.ads, system-hpux-ia64.ads, 
9206         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads, 
9207         system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
9208         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
9209         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads, 
9210         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
9211         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
9212         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
9213         Default_Bit_Order) to kill constant condition warnings for references
9214         to this switch.
9215
9216 2006-10-31  Vincent Celier  <celier@adacore.com>
9217             Eric Botcazou  <ebotcazou@adacore.com>
9218
9219         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
9220         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
9221         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
9222         Ext_To, when building the library file name
9223
9224         * mlib-tgt-vxworks.adb: ditto.
9225         (Get_Target_Suffix): Add support for x86 targets.
9226
9227         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
9228
9229         * mlib-tgt-darwin.adb: 
9230         Use Append_To, instead of Ext_To, when building the library file name
9231         (Flat_Namespace): New global variable.
9232         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
9233         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
9234         (Link_Shared_Libgcc): Delete.
9235         (Build_Dynamic_Library): Adjust for above changes.
9236         Use Opt package.
9237         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
9238
9239 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
9240
9241         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
9242         (Initialize): Add type conversions required by above change.
9243
9244 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
9245
9246         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
9247         (getpid): New body for this function that uses the underlying taskIdSelf
9248         function for VxWorks 5 and VxWorks 6 in kernel mode.
9249         (unsigned_int): New type, modular to allow logical bit operations.
9250         (taskOptionsGet): New imported function.
9251
9252         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
9253         field to be compliant with the type used by the corresponding operating
9254         system primitive.
9255
9256 2006-10-31  Pascal Obry  <obry@adacore.com>
9257             Eric Botcazou  <ebotcazou@adacore.com>
9258             Vincent Celier  <celier@adacore.com>
9259
9260         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
9261         ASCII version of the registry API. This is needed as the GNAT runtime
9262         is now UNICODE by default.
9263         Include version.h.
9264         (get_gcc_version): Do not hardcode the return value.
9265         (__gnat_file_time_name): On Windows properly set the default returned
9266         value to -1 which corresponds to Invalid_Time.
9267         (__gnat_fopen): New routine. A simple wrapper on all plateforms
9268          except on Windows where it does conversion for unicode support.
9269         (__gnat_freopen): Idem.
9270         (__gnat_locate_exec_on_path): If environment variable PATH does not
9271         exist, return a NULL pointer
9272
9273         * adaint.h: (__gnat_fopen): Declare.
9274         (__gnat_freopen): Likewise.
9275
9276         * mingw32.h (_tfreopen): Define this macro here for older MingW
9277         version.
9278         Activate the unicode support on platforms using a MingW runtime
9279         version 3.9 or newer.
9280
9281         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
9282         This is needed for proper unicode support on Windows.
9283         (freopen): Idem.
9284
9285 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
9286             Nicolas Setton  <setton@adacore.com>
9287             Olivier Hainque  <hainque@adacore.com>
9288             Gary Dismukes  <dismukes@adacore.com>
9289
9290         * gigi.h: (tree_code_for_record_type): Declare.
9291         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
9292         (get_global_renaming_pointers): Rename to
9293         invalidate_global_renaming_pointers.
9294         (static_ctors): Delete.
9295         (static_dtors): Likewise.
9296         (gnat_write_global_declarations): Declare.
9297         (create_var_decl): Adjust descriptive comment to indicate that the
9298         subprogram may return a CONST_DECL node.
9299         (create_true_var_decl): Declare new function, similar to
9300         create_var_decl but forcing the creation of a VAR_DECL node.
9301         (get_global_renaming_pointers): Declare.
9302         (add_global_renaming_pointer): Likewise.
9303
9304         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
9305
9306         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
9307         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
9308         processing.
9309         (gnat_to_gnu_entity): Remove From_With_Type from computation for
9310         imported_p.
9311         <E_Access_Type>: Use the Non_Limited_View as the full view of the
9312         designated type if the pointer comes from a limited_with clause.  Make
9313         incomplete designated type if it is in the main unit and has a freeze
9314         node.
9315         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
9316         Underlying_Full_View similarly.  Return earlier if the full view already
9317         has an associated tree.
9318         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
9319         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
9320         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
9321         reference type built for objects with an address clause.
9322         Use create_true_var_decl with const_flag set for
9323         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
9324         TREE_READONLY set.
9325         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
9326         for Character and Wide_Character types. This info is read by the
9327         dwarf-2 writer, and is needed to be able to use the command "ptype
9328         character" in the debugger.
9329         (gnat_to_gnu_entity): When generating a type representing
9330         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
9331         so that debug writers can distinguish it from ordinary integers.
9332         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
9333         addition to TREE_READONLY to assert the constantness of variables for
9334         elaboration purposes.
9335         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
9336         parameters to call new Einfo function First_Formal_With_Extras.
9337         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
9338         protected type with its corresponding discriminant, to obtain a usable
9339         declaration
9340         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
9341         for a multiple elaboration of the "equivalent" type.
9342         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
9343         into record_global_renaming_pointer.
9344         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
9345         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
9346         <E_Array_Subtype>: Likewise.
9347         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
9348         incomplete subtypes and incomplete subtypes of incomplete types visible
9349         through a limited with clause.
9350         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
9351         the base index type for the maximum size of the array only if they are
9352         constant.
9353         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
9354         expression into a SAVE_EXPR if stabilization failed.
9355
9356         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
9357         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
9358         by lower level compilation passes.
9359         (gnat_genericize): New function, lowering a function body to GENERIC.
9360         Turn the type of RESULT_DECL into a real reference type if the decl
9361         has been marked DECL_BY_REFERENCE, and adjust references to the latter
9362         accordingly.
9363         (gnat_genericize_r): New function. Tree walking callback for
9364         gnat_genericize.
9365         (convert_from_reference, is_byref_result): New functions. Helpers for
9366         gnat_genericize_r.
9367         (create_type_decl): Call gnat_pushdecl before calling
9368         rest_of_decl_compilation, to make sure that field TYPE_NAME of
9369         type_decl is properly set before calling the debug information writers.
9370         (write_record_type_debug_info): The heuristics which compute the
9371         alignment of a field in a variant record might not be accurate. Add a
9372         safety test to make sure no alignment is set to a smaller value than
9373         the alignment of the field type.
9374         (make_dummy_type): Use the Non_Limited_View as the underlying type if
9375         the type comes from a limited_with clause. Do not loop on the full view.
9376         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
9377         (dummy_node_table): New global variable, moved from decl.c.
9378         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
9379         (save_gnu_tree): Use above macros.
9380         (get_gnu_tree): Likewise.
9381         (present_gnu_tree): Likewise.
9382         (init_dummy_type): New function, moved from decl.c. Use above macros.
9383         (make_dummy_type): Likewise.
9384         (tree_code_for_record_type): New function extracted from make_dummy_type
9385         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
9386         (static_ctors): Change it to a vector, make static.
9387         (static_dtors): Likewise.
9388         (end_subprog_body): Adjust for above change.
9389         (build_global_cdtor): Moved from trans.c.
9390         (gnat_write_global_declarations): Emit global constructor and
9391         destructor, and call cgraph_optimize before emitting debug info for
9392         global declarations.
9393         (global_decls): New global variable.
9394         (gnat_pushdecl): Store the global declarations in global_decls, for
9395         later use.
9396         (gnat_write_global_declarations): Emit debug information for global
9397          declarations.
9398         (create_var_decl_1): Former create_var_decl, with an extra argument to
9399          state whether the creation of a CONST_DECL is allowed.
9400         (create_var_decl): Behavior unchanged. Now a wrapper around
9401         create_var_decl_1 allowing CONST_DECL creation.
9402         (create_true_var_decl): New function, similar to create_var_decl but
9403         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
9404         (create_field_decl): Do not always mark the field as addressable
9405         if its type is an aggregate.
9406         (global_renaming_pointers): New static variable.
9407         (add_global_renaming_pointer): New function.
9408         (get_global_renaming_pointers): Likewise.
9409
9410         * misc.c (gnat_dwarf_name): New function.
9411         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
9412         (gnat_post_options): Add comment about structural alias analysis.
9413         (gnat_parse_file): Do not call cgraph_optimize here.
9414         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
9415
9416         * trans.c (process_freeze_entity): Don't abort if we already have a
9417         non dummy GCC tree for a Concurrent_Record_Type, as it might
9418         legitimately have been elaborated while processing the associated
9419         Concurrent_Type prior to this explicit freeze node.
9420         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
9421         exception handler volatile if it is of variable size.
9422         (process_type): Remove bypass for types coming from a limited_with
9423         clause.
9424         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
9425         actual, convert the corresponding gnu_actual to the real destination
9426         type when necessary.
9427         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
9428         originally TREE_READONLY but whose elaboration cannot be performed
9429         statically.
9430         Part of fix for F504-021.
9431         (tree_transform, subprogram cases): Change loops on formal parameters to
9432         call new Einfo function First_Formal_With_Extras.
9433         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
9434         stemming from type conversion for the lhs.
9435         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
9436         number of bits per unit for components of records.
9437         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
9438         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
9439         with At_End_Proc after the SJLJ EH cleanup.
9440         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
9441         compilation unit.
9442         (elaborate_all_entities): Do not retest type_annotate_only.
9443         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
9444         result type of an abstract subprogram, which may be an itype associated
9445         with an anonymous access result (related to AI-318-02).
9446         (build_global_cdtor): Move to utils.c.
9447         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
9448         this choice is not a null tree nor an integer constant.
9449         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
9450         on the body of elaboration routines instead of mark_unvisited.
9451         (add_stmt): Do not mark the tree.
9452         (add_decl_expr): Tweak comment.
9453         (mark_unvisited): Delete.
9454         (unshare_save_expr): New static function.
9455         (call_to_gnu): Issue an error when making a temporary around a
9456         procedure call because of non-addressable actual parameter if the
9457         type of the formal is by_reference.
9458         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
9459         after building the elaboration routine.
9460
9461 2006-10-31  Bob Duff  <duff@adacore.com>
9462
9463         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
9464         as finalization-started, so we can raise Program_Error on 'new'.
9465
9466         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
9467         collection has already started.
9468
9469         * s-finimp.ads (Collection_Finalization_Started): Added new special
9470         flag value for indicating that a collection's finalization has started.
9471
9472         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
9473         create a task whose master has already waited for dependent tasks.
9474
9475 2006-10-31  Robert Dewar  <dewar@adacore.com>
9476
9477         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
9478
9479         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads, 
9480         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads, 
9481         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads, 
9482         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads, 
9483         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads, 
9484         a-except-2005.ads: Add pragma Preelaborable_Warning
9485
9486 2006-10-31  Robert Dewar  <dewar@adacore.com>
9487             Jose Ruiz  <ruiz@adacore.com>
9488
9489         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
9490
9491         * ali.adb (Get_Name): Properly handle scanning of wide character names
9492         encoded with brackets notation.
9493         (Known_ALI_Lines): Add S lines to this list.
9494         (Scan_ALI): Acquire S (priority specific dispatching) lines.
9495         New flag Elaborate_All_Desirable in unit table
9496
9497         * ali.ads (Priority_Specific_Dispatching): Add this range of
9498         identifiers to be used for Priority_Specific_Dispatching table entries.
9499         (ALIs_Record): Add First_Specific_Dispatching and
9500         Last_Specific_Dispatching that point to the first and last entries
9501         respectively in the priority specific dispatching table for this unit.
9502         (Specific_Dispatching): Add this table for storing each S (priority
9503         specific dispatching) line encountered in the input ALI file.
9504         New flag Elaborate_All_Desirable in unit table
9505
9506         * bcheck.adb: (Check_Configuration_Consistency): Add call to
9507         Check_Consistent_Dispatching_Policy.
9508         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
9509         verifying that the use of Priority_Specific_Dispatching,
9510         Task_Dispatching_Policy, and Locking_Policy is consistent across the
9511         partition.
9512
9513         * bindgen.adb: (Public_Version_Warning): function removed.
9514         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
9515         required information from ALI files in order to initialize the table
9516         containing the specific dispatching policy.
9517         (Gen_Adainit_Ada): Generate the variables required for priority specific
9518         dispatching entries (__gl_priority_specific_dispatching and
9519         __gl_num_specific_dispatching).
9520         (Gen_Adainit_C): Generate the variables required for priority specific
9521         dispatching entries (__gl_priority_specific_dispatching and
9522         __gl_num_specific_dispatching).
9523         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
9524         pragma entries.
9525         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
9526         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
9527         (Tab_To): Removed.
9528         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
9529         a call to gnat_set_globals.
9530         Generate a string containing settings from
9531         Priority_Specific_Dispatching pragma entries.
9532         (Gen_Object_Files_Options): Do not include the runtime libraries when
9533         pragma No_Run_Time is specified.
9534
9535         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
9536         consistency with s-intman-posix.adb.
9537         (__gnat_error_handler, case FreeBSD): Account for the fact that the
9538         handler is installed with SA_SIGINFO.
9539         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
9540         FreeBSD ZCX support, copied from Linux version.
9541         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
9542         sigfillset, and sigemptyset so the routines defined by MaRTE.
9543         (__gl_priority_specific_dispatching): Add this variable that stores the
9544         string containing priority specific dispatching policies in the
9545         partition.
9546         (__gl_num_specific_dispatching): Add this variable that indicates the
9547         highest priority for which a priority specific dispatching pragma
9548         applies.
9549         (__gnat_get_specific_dispatching): Add this routine that returns the
9550         priority specific dispatching policy, as set by a
9551         Priority_Specific_Dispatching pragma appearing anywhere in the current
9552         partition. The input argument is the priority number, and the result
9553         is the upper case first character of the policy name.
9554         (__gnat_set_globals): Now a dummy function.
9555         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
9556         mechargs instead of sigargs, as the latter can be retrieved from the
9557         former and sigargs is not what we want on ia64.
9558         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
9559         mechargs argument.
9560         (__gnat_adjust_context_for_raise, ia64-vms): New function.
9561         (tasking_error): Remove unused symbol.
9562         (_abort_signal): Move this symbol to the IRIX specific part since this
9563         is the only target that uses this definition.
9564         (Check_Abort_Status): Move this symbol to the IRIX specific part since
9565         this is the only target that uses this definition.
9566         (Lock_Task): Remove unused symbol.
9567         (Unlock_Task): Remove unused symbol.
9568
9569         * lib-writ.adb (Write_ALI): Output new S lines for
9570         Priority_Specific_Dispatching pragmas.
9571         Implement new flag BD for elaborate body desirable
9572
9573         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
9574         (Specific_Dispatching): Add this table for storing the entries
9575         corresponding to Priority_Specific_Dispatching pragmas.
9576         Document new BD flag for elaborate body desirable
9577
9578         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
9579         of known pragmas.
9580
9581 2006-10-31  Javier Miranda  <miranda@adacore.com>
9582
9583         * a-tags.ads, a-tags.adb: 
9584         (Predefined_DT): New function that improves readability of the code.
9585         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
9586         Inherit_DT): Use the new function Predefined_DT to improve code
9587         readability.
9588         (Register_Interface_Tag): Update assertion.
9589         (Set_Interface_Table): Update assertion.
9590         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
9591         determining progenitor interfaces in Tags.
9592         (Inherit_CPP_DT): New subprogram.
9593
9594         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
9595         analysis of the thunk code.
9596         (Expand_Interface_Conversion): Handle run-time conversion of
9597         access to class wide types.
9598         (Expand_Dispatching_Call): When generating the profile for the
9599         subprogram itype for a dispatching operation, properly terminate the
9600         formal parameters chaind list (set the Next_Entity of the last formal
9601         to Empty).
9602         (Collect_All_Interfaces): Removed. This routine has been moved to
9603         sem_util and renamed as Collect_All_Abstract_Interfaces.
9604         (Set_All_DT_Position): Hidden entities associated with abstract
9605         interface primitives are not taken into account in the check for
9606         3.9.3(10); this check is done with the aliased entity.
9607         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
9608         interfacing with CPP by default.
9609         (Expand_Interface_Conversion): Add missing support for static conversion
9610         from an interface to a tagged type.
9611         (Collect_All_Interfaces): Add new out formal containing the list of
9612         abstract interface types to cleanup the subprogram Make_DT.
9613         (Make_DT): Update the code to generate the table of interfaces in case
9614         of abstract interface types.
9615         (Is_Predefined_Dispatching_Alias): New function that returns true if
9616         a primitive is not a predefined dispatching primitive but it is an
9617         alias of a predefined dispatching primitive.
9618         (Make_DT): If the ancestor of the type is a CPP_Class and we are
9619         compiling under full ABI compatibility mode we avoid the generation of
9620         calls to run-time services that fill the dispatch tables because under
9621         this mode we currently inherit the dispatch tables in the IP subprogram.
9622         (Write_DT): Emit an "is null" indication for a null procedure primitive.
9623         (Expand_Interface_Conversion): Use an address as the type of the formal
9624         of the internally built function that handles the case in which the
9625         target type is an access type.
9626
9627 2006-10-31  Robert Dewar  <dewar@adacore.com>
9628
9629         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
9630
9631 2006-10-31  Robert Dewar  <dewar@adacore.com>
9632
9633         * bindusg.ads, bindusg.adb:
9634         Change to package and rename procedure as Display, which
9635         now ensures that it only outputs usage information once.
9636
9637 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
9638
9639         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
9640         using RTPs.
9641
9642         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
9643         when using RTPs.
9644
9645 2006-10-31  Robert Dewar  <dewar@adacore.com>
9646             Ed Schonberg  <schonberg@adacore.com>
9647
9648         * treepr.adb: Use new subtype N_Membership_Test
9649
9650         * checks.ads, checks.adb: Add definition for Validity_Check
9651         (Range_Or_Validity_Checks_Suppressed): New function
9652         (Ensure_Valid): Test Validity_Check suppressed
9653         (Insert_Valid_Check): Test Validity_Check suppressed
9654         (Insert_Valid_Check): Preserve Do_Range_Check flag
9655         (Validity_Check_Range): New procedure
9656         (Expr_Known_Valid): Result of membership test is always valid
9657         (Selected_Range_Checks): Range checks cannot be applied to discriminants
9658         by themselves. Disabling those checks must also be done for task types,
9659         where discriminants may be used for the bounds of entry families.
9660         (Apply_Address_Clause_Check): Remove side-effects if address expression
9661         is non-static and is not the name of a declared constant.
9662         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
9663         Code cleanup and new error messages.
9664         (Enable_Range_Check): Test for some cases of suppressed checks
9665         (Generate_Index_Checks): Suppress index checks if index checks are
9666         suppressed for array object or array type.
9667         (Apply_Selected_Length_Checks): Give warning for compile-time detected
9668         length check failure, even if checks are off.
9669         (Ensure_Valid): Do not generate a check on an indexed component whose
9670         prefix is a packed boolean array.
9671         * checks.adb: (Alignment_Checks_Suppressed): New function
9672         (Apply_Address_Clause_Check): New procedure, this is a completely
9673         rewritten replacement for Apply_Alignment_Check
9674         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
9675         we request a discriminal value only in case of discriminants.
9676         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
9677         assignments where the target subtype is unconstrained and the target
9678         object is a parameter or dereference (other aliased cases are known
9679         to be unconstrained).
9680
9681 2006-10-31  Robert Dewar  <dewar@adacore.com>
9682
9683         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
9684         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
9685         vms_conv.adb: Fix bad table increment values (much too small)
9686
9687         * table.adb (Realloc): Make sure we get at least some new elements
9688         Defends against silly small values for table increment
9689
9690 2006-10-31  Robert Dewar  <dewar@adacore.com>
9691             Ed Schonberg  <schonberg@adacore.com>
9692             Bob Duff  <duff@adacore.com>
9693
9694         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
9695         entities. Move other fields around to make this possible
9696         (Is_Derived_Type): Add missing call to Is_Type.
9697         (Extra_Formals): New function for subprograms, entries, subprogram
9698         types.
9699         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
9700         (First_Formal_With_Extras): New function for subprogs, entries, subp
9701         types.
9702         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
9703         Add node information for E_Return_Statement.
9704         (Elaborate_Body_Desirable): New flag
9705         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
9706         to be Is_Inherently_Limited_Type, because return-by-reference has
9707         no meaning in Ada 2005.
9708         (E_Return_Statement): New entity kind.
9709         (Return_Applies_To): Field of E_Return_Statement.
9710         (Is_Return_Object): New flag in object entities.
9711         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
9712         (Must_Have_Preelab_Init): New flag
9713         (Known_To_Have_Preelab_Init): New flag
9714         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
9715         (Is_Visible_Formal): New flag on entities in formal packages.
9716         (Low_Bound_Known): New flag
9717         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
9718         Incomplete_Kind.
9719         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
9720         output when Id is an incomplete subtype.
9721
9722 2006-10-31  Robert Dewar  <dewar@adacore.com>
9723
9724         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
9725         Avoid abbreviation Creat
9726         (Finalize): List all sources in extended mail source if -gnatl
9727         switch is active.
9728         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
9729         (Finalize): Implement new -gnatl=xxx switch to output listing to file
9730         (Set_Specific_Warning_On): New procedure
9731         (Set_Specific_Warning_Off): New procedure
9732         Add implementation of new insertion \\
9733         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
9734         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
9735         types.
9736         (Error_Msg_Internal): Make sure that we set Last_Killed to
9737         True when a message from another package is suppressed.
9738         Implement insertion character ~ (insert string)
9739         (First_Node): Minor adjustments to get better placement.
9740
9741         * frontend.adb: 
9742         Implement new -gnatl=xxx switch to output listing to file
9743
9744         * gnat1drv.adb: 
9745         Implement new -gnatl=xxx switch to output listing to file
9746
9747         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
9748         (Commands_To_Stdout): New flag
9749         Implement new -gnatl=xxx switch to output listing to file
9750         New switch Dump_Source_Text
9751         (Warn_On_Deleted_Code): New warning flag for -gnatwt
9752         Define Error_Msg_Line_Length
9753         (Warn_On_Assumed_Low_Bound): New switch
9754
9755         * osint.ads, osint.adb
9756         (Normalize_Directory_Name): Fix bug.
9757         Implement new -gnatl=xxx switch to output listing to file
9758         (Concat): Removed, replaced by real concatenation
9759         Make use of concatenation now allowed in compiler
9760         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
9761         we find the 'lib' or 'bin' directory even when the tool has been
9762         invoked with a relative path.
9763         (Executable_Name): New function taking string parameters.
9764
9765         * osint-c.ads, osint-c.adb: 
9766         Implement new -gnatl=xxx switch to output listing to file
9767
9768         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
9769
9770         * switch-c.adb: 
9771         Implement new -gnatl=xxx switch to output listing to file
9772         Recognize new -gnatL switch
9773         (no longer keep in old warning about old style usage)
9774         Use concatenation to simplify code
9775         Recognize -gnatjnn switch
9776         (Scan_Front_End_Switches): Clean up handling of -gnatW
9777         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
9778
9779 2006-10-31  Robert Dewar  <dewar@adacore.com>
9780
9781         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
9782         (Set_Specific_Warning_Off): New procedure
9783         (Warning_Specifically_Suppressed): New function
9784         (Validate_Specific_Warnings): New procedure
9785         (Output_Msg_Text): Complete rewrite to support -gnatjnn
9786
9787         * err_vars.ads: Implement insertion character ~ (insert string)
9788
9789 2006-10-31  Bob Duff  <duff@adacore.com>
9790             Ed Schonberg  <schonberg@adacore.com>
9791
9792         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
9793         the parent part is a build-in-place function call, generate assignments.
9794         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
9795         are build-in-place function calls.
9796         (Replace_Self_Reference): New subsidiary of
9797         Make_OK_Assignment_Statement, to replace an access attribute that is a
9798         self-reference into an access to the appropriate component of the
9799         target object. Generalizes previous mechanism to handle self-references
9800         nested at any level.
9801         (Is_Self_Referential_Init): Remove, not needed.
9802         (Is_Self_Referential_Init): New predicate to simplify handling of self
9803         referential components in record aggregates.
9804         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
9805         check for presence of entity before checking for self-reference.
9806         (Has_Default_Init_Comps): Return True if a component association is a
9807         self-reference to the enclosing type, which can only come from a
9808         default initialization.
9809         (Make_OK_Assignment_Statement): If the expression is of the form
9810         Typ'Acc, where Acc is an access attribute, the expression comes from a
9811         default initialized self-referential component.
9812         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
9813         that has been derived from several abstract interfaces we must also
9814         initialize the tags of the secondary dispatch tables.
9815
9816 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
9817             Thomas Quinot  <quinot@adacore.com>
9818             Javier Miranda  <miranda@adacore.com>
9819             Robert Dewar  <dewar@adacore.com>
9820
9821         * exp_attr.adb: 
9822         (Expand_Access_To_Protected_Op): If the context indicates that an access
9823         to a local operation may be transfered outside of the object, create an
9824         access to the wrapper operation that must be used in an external call.
9825         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
9826         target, pass the Valid attribute applied to a floating-point prefix on
9827         to the back end without expansion.
9828         (Storage_Size): Use the new run-time function Storage_Size to retrieve
9829         the allocated storage when it is specified by a per-object expression.
9830         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
9831         Nothing to do here, the attribute has been rewritten during semantic
9832         analysis.
9833         (Expand_Attribute_Reference): Handle expansion of the new Priority
9834         attribute
9835         (Find_Fat_Info): Handle case of universal real
9836         (Expand_Access_To_Protected_Op): Fix use of access to protected
9837         subprogram from inside the body of a protected entry.
9838         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
9839         'Access and 'Unrestricted_Access, to transform the attribute reference
9840         into a fat pointer.
9841         (Is_Constrained_Aliased_View): New predicate to help determine whether a
9842         subcomponent's enclosing variable is aliased with a constrained subtype.
9843         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
9844         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
9845         an aliased prefix must be known to be constrained in order to use True
9846         for the attribute value, and now it's possible for some aliased views
9847         to be unconstrained.
9848
9849 2006-10-31  Robert Dewar  <dewar@adacore.com>
9850
9851         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
9852         (Expand_Entity_Reference): Correct error of not handling subprogram
9853         formals in current_value processing.
9854
9855 2006-10-31  Javier Miranda  <miranda@adacore.com>
9856             Robert Dewar  <dewar@adacore.com>
9857             Ed Schonberg  <schonberg@adacore.com>
9858             Gary Dismukes  <dismukes@adacore.com>
9859
9860         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
9861         register in the final list objects containing class-wide interfaces;
9862         otherwise we incorrectly register the tag of the interface in the final
9863         list.
9864         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
9865         generate the wrapper if the parent primitive is abstract. This is
9866         required to report the correct error message.
9867         (Expand_N_Subtype_Indication): Do validity checks on range
9868         (Clean_Task_Names): If an initialization procedure includes a call to
9869         initialize a task (sub)component, indicate that the procedure will use
9870         the secondary stack.
9871         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
9872         compatibility for interfacing with CPP by default.
9873         (Expand_N_Object_Declaration): Only build an Adjust call when the
9874         object's type is a nonlimited controlled type.
9875         * exp_ch3.adb: Add with and use of Exp_Ch6.
9876         (Expand_N_Object_Declaration): Check for object initialization that is a
9877         call to build-in-place function and apply Make_Build_In_Place_Call_In_
9878         Object_Declaration to the call.
9879         (Freeze_Type): When the designated type of an RACW was not frozen at the
9880         point where the RACW was declared, validate the primitive operations
9881         with respect to E.2.2(14) when it finally is frozen.
9882         (Build_Initialization_Call,Expand_Record_Controller): Rename
9883         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
9884         return-by-reference has no meaning in Ada 2005.
9885         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
9886         to register tag of the immediate ancestor interfaces in the
9887         run-time structure.
9888         (Init_Secondary_Tags): Moved to the specification to allow the
9889         initialization of extension aggregates with abstract interfaces.
9890         (Build_Master_Renaming): Make public, for use by function declarations
9891         whose return type is an anonymous access type.
9892         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
9893         Insert_List_Before_And_Analyze after the generation of the specs
9894         associated with null procedures.
9895         (Expand_Tagged_Root): Update documentation in its specification.
9896         (Init_Secondary_Tags): Update documentation.
9897         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
9898         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
9899         then generate code to inherit the contents of the dispatch table
9900         directly from the ancestor.
9901         (Expand_Record_Controller): Insert controller component after tags of
9902         implemented interfaces.
9903         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
9904         create null procedure overridings when null procedures are inherited
9905         from interfaces.
9906         (Make_Null_Procedure_Specs): New procedure to generate null procedure
9907         declarations for overriding null primitives inherited from interfaces.
9908         (Is_Null_Interface_Procedure): New function in
9909         Make_Null_Procedure_Specs.
9910         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
9911         immediate ancestor of a tagged type is an abstract interface type we
9912         must generate the specification of the predefined primitives associated
9913         with controlled types (because the dispatch table of the ancestor is
9914         null and hence these entries cannot be inherited). This is required to
9915         elaborate well the dispatch table.
9916
9917 2006-10-31  Javier Miranda  <miranda@adacore.com>
9918             Ed Schonberg  <schonberg@adacore.com>
9919             Bob Duff  <duff@adacore.com>
9920             Gary Dismukes  <dismukes@adacore.com>
9921             Robert Dewar  <dewar@adacore.com>
9922
9923         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
9924         conversion.
9925         (Expand_N_In): Do validity checks on range
9926         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
9927         (Expand_N_Allocator): For "new T", if the object is constrained by
9928         discriminant defaults, allocate the right amount of memory, rather than
9929         the maximum for type T.
9930         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
9931         when the allocator is initialized by a build-in-place call, since the
9932         allocator is already rewritten as a reference to the function result,
9933         and this prevents an unwanted duplication of the function call.
9934         Add with and use of Exp_Ch6.
9935         (Expand_Allocator_Expresssion): Check for an allocator whose expression
9936         is a call to build-in-place function and apply
9937         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
9938         untagged designated types).
9939         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
9940         optimization if source or target is biased.
9941         (Expand_N_Allocator): Add comments for case of an allocator within a
9942         function that returns an anonymous access type designating tasks.
9943         (Expand_N_Allocator): apply discriminant checks for access
9944         discriminants of anonymous access types (AI-402, AI-416)
9945
9946 2006-10-31  Bob Duff  <duff@adacore.com>
9947             Robert Dewar  <dewar@adacore.com>
9948             Gary Dismukes  <dismukes@adacore.com>
9949             Ed Schonberg  <schonberg@adacore.com>
9950
9951         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
9952
9953         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
9954         (Expand_N_Assignment_Statement): Call
9955         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
9956         build-in-place function call. Currently, this can happen only for
9957         assignments that come from aggregates.
9958         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
9959         in order to alleviate the upward compatibility introduced by AI-318.
9960         (Expand_N_Extended_Return_Statement): Add support for handling the
9961         return object as a build-in-place result.
9962         (Expand_Non_Function_Return): Implement simple return statements nested
9963         within an extended return.
9964         (Enable_New_Return_Processing): Turn on the new processing of return
9965         statements.
9966         (Expand_Non_Function_Return): For a return within an extended return,
9967         don't raise Program_Error, because Sem_Ch6 now gives a warning.
9968         (Expand_N_Extended_Return_Statement): Implement AI-318
9969         (Expand_Simple_Function_Return): Ditto.
9970         (Expand_N_If_Statement): Handle new -gnatwt warning
9971         (Expand_N_Case_Statement): Handle new -gnatwt warning
9972         (Expand_N_Assignment): Handle assignment to the Priority attribute of
9973         a protected object.
9974         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
9975         validity checking of assignments to elementary record components.
9976         (Expand_N_Return_Statement): return Class Wide types on the secondary
9977         stack independantly of their controlled status since with HIE runtimes,
9978         class wide types are not potentially controlled anymore.
9979
9980         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
9981         node kind.
9982
9983         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
9984         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
9985         it expects a block, procedure, or task. The return statement will get
9986         turned into a block, and Expand_Cleanup_Actions will happen then.
9987
9988 2006-10-31  Robert Dewar  <dewar@adacore.com>
9989             Ed Schonberg  <schonberg@adacore.com>
9990             Bob Duff  <duff@adacore.com>
9991             Gary Dismukes  <dismukes@adacore.com>
9992
9993         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
9994         capability.
9995         (Expand_Inlined_Call): Tagged types are by-reference types, and
9996         therefore should be replaced by a renaming declaration in the expanded
9997         body, as is done for limited types.
9998         (Expand_Call): If this is a call to a function with dispatching access
9999         result, propagate tag from context.
10000         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
10001         CPP by default.
10002         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
10003         build-in-place when the right-hand side of an assignment is a
10004         build-in-place function call.
10005         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
10006         of the explicit dereference of the allocator to the result subtype of
10007         the build-in-place function. This is needed to satisfy type checking
10008         in cases where the caller's return object is created by an allocator for
10009         a class-wide access type and the type named in the allocator is a
10010         specific type.
10011         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
10012         conversion of the reference to the declared object to the result subtype
10013         of the build-in-place function. This is needed to satisfy type checking
10014         in cases where the declared object has a class-wide type. Also, in the
10015         class-wide case, change the type of the object entity to the specific
10016         result subtype of the function, to avoid passing a class-wide object
10017         without explicit initialization to the back end.
10018         (Register_Interface_DT_Entry): Moved outside the body of
10019         Freeze_Subprogram because this routine is now public; it is called from
10020         Check_Dispatching_Overriding to handle late overriding of abstract
10021         interface primitives.
10022         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
10023         adding an implicit access actual on a call to a build-in-place function.
10024         (Expand_Actuals): Test for an actual parameter that is a call to a
10025         build-in-place function and apply
10026         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
10027         (Is_Build_In_Place_Function): New function to determine whether an
10028         entity is a function whose calls should be handled as build-in-place.
10029         (Is_Build_In_Place_Function_Call): New function to determine whether an
10030         expression is a function call that should handled as build-in-place.
10031         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
10032         calls to build-in-place functions as the initialization of an allocator.
10033         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
10034         handling calls to build-in-place functions in contexts that do not
10035         involve init of a separate object (for example, actuals of subprogram
10036         calls).
10037         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
10038         handling calls to build-in-place functions as the initialization of an
10039         object declaration.
10040         (Detect_Infinite_Recursion): Add explicit parameter Process to
10041         instantiation of Traverse_Body to avoid unreferenced warning.
10042         (Check_Overriding_Inherited_Interfaces): Removed.
10043         (Register_Interface_DT_Entry): Code cleanup.
10044         (Register_Predefined_DT_Entry): Code cleanup.
10045         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
10046         inlined statements if within a transient scope.
10047         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
10048         formal parameters with occurrences of actuals in inlined body, establish
10049         visibility on the proper view of the actual's subtype for the body's
10050         context.
10051         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
10052         compatibility mode and we have an imported CPP subprogram because
10053         for now we assume that imported CPP primitives correspond with
10054         objects whose constructor is in the CPP side (and therefore we
10055         don't need to generate code to register them in the dispatch table).
10056         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
10057         aligned selected component.
10058         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
10059         the actual of an in-mode parameter is a type conversion.
10060         (Expand_Actuals): If the call does not come from source and the actual
10061         is potentially misaligned, let gigi handle it rather than rejecting the
10062         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
10063         Class Wide types as returning by reference independantly of their
10064         controlled status since with HIE runtimes class wide types are not
10065         potentially controlled anymore.
10066
10067 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
10068
10069         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
10070         references that are private components of the protected object.
10071         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
10072         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
10073         instantiation to deal with warnings.
10074         (Initialize_Protection): If expression for priority is non-static, use
10075         System_Priority as its expected type, in case the expression has not
10076         been analyzed yet.
10077
10078 2006-10-31  Robert Dewar  <dewar@adacore.com>
10079
10080         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
10081         initialization of Homonym_Len.
10082         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
10083         names from fully qualified name. Fixes problem of duplicate
10084         external names differing only in the presence of such a block name.
10085
10086 2006-10-31  Thomas Quinot  <quinot@adacore.com>
10087             Pablo Oliveira  <oliveira@adacore.com>
10088
10089         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
10090         subprogram Ids, even if they are not yet assigned.
10091         (Build_Subprogram_Id): It is now this function that will take care of
10092         calling Assign_Subprogram_Ids if necessary.
10093         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
10094         should be done only once they are assigned.
10095         (Build_From_Any_Function, case of tagged types): Add missing call to
10096         Allocate_Buffer.
10097         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
10098         type for an RACW type.
10099         (Add_RACW_Features): When processing an RACW declaration for which the
10100         designated type is already frozen, enforce E.2.2(14) rules immediately.
10101         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
10102         special reordering of controlling formals.
10103
10104         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
10105         associated stub type for an RACW type.
10106
10107 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
10108
10109         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
10110         fixed-point operations in an integer context, i.e. as operands of a
10111         conversion to an integer type, indicate that result must be rounded.
10112
10113 2006-10-31  Robert Dewar  <dewar@adacore.com>
10114
10115         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
10116         cases, pass the encoding method, since it is now required by the run
10117         time.
10118
10119         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
10120         assumption that Str'First = 1.
10121         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
10122         it on to the Value_Wide_Wide_Character call.
10123         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
10124         properly handles a string of the form quote-encoded_wide_char-quote.
10125
10126         * s-wchcnv.adb: Minor reformatting
10127
10128 2006-10-31  Javier Miranda  <miranda@adacore.com>
10129
10130         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
10131         run-time membership test to ensure that the constructed object
10132         implements the target abstract interface.
10133
10134 2006-10-31  Robert Dewar  <dewar@adacore.com>
10135
10136         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
10137         Machine_Attribute pragma internally to implement the user pragma.
10138         Add processing for pragma Interface so that it is now completely
10139         equivalent to pragma Import.
10140
10141         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
10142         so that it can be applied to all entities, including record components
10143         and enumeration literals.
10144         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
10145         priority ranges are correct, verify compatibility against task
10146         dispatching and locking policies, and if everything is correct an entry
10147         is added to the table containing priority specific dispatching entries
10148         for this compilation unit.
10149         (Delay_Config_Pragma_Analyze): Delay processing
10150         Priority_Specific_Dispatching pragmas because when processing the
10151         pragma we need to access run-time data, such as the range of
10152         System.Any_Priority.
10153         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
10154         Allow pragma Unreferenced as a context item
10155         Add pragma Preelaborable_Initialization
10156         (Analyze_Pragma, case Interface): Interface is extended so that it is
10157         now syntactically and semantically equivalent to Import.
10158         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
10159         insertion characters.
10160         Add handling for Pragma_Wide_Character_Encoding
10161         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
10162         never supercedes a real restriction, and that a real restriction
10163         always supercedes a warning.
10164         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
10165         appropriate form.
10166
10167 2006-10-31  Bob Duff  <duff@adacore.com>
10168             Ed Schonberg  <schonberg@adacore.com>
10169             Robert Dewar  <dewar@adacore.com>
10170
10171         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
10172         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
10173         Is_Inherently_Limited_Type, because return-by-reference has no meaning
10174         in Ada 2005.
10175         (Find_Node_To_Be_Wrapped): Use new method of determining the result
10176         type of the function containing a return statement, because the
10177         Return_Type field was removed. We now use the Return_Applies_To field.
10178
10179         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
10180         (Build_Task_Image_Decl): If procedure is not called from an
10181         initialization procedure, indicate that function that builds task name
10182         uses the sec. stack. Otherwise the enclosing initialization procedure
10183         will carry the indication.
10184         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
10185         N_Object_Declaration instead.
10186         (Kill_Dead_Code): New interface to implement -gnatwt warning for
10187         conditional dead code killed, and change implementation accordingly.
10188         (Insert_Actions): Add N_Return_Object_Declaration case.
10189         Correct comment to mention N_Extension_Aggregate node.
10190         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
10191         attempts to save information for global variables which cannot be
10192         safely tracked.
10193         (Get_Current_Value_Condition): Handle conditions the other way round
10194         (constant on left). Also handle right operand of AND and AND THEN
10195         (Set_Current_Value_Condition): Corresponding changes
10196         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
10197         (Get_Current_Value_Condition): Handle simple boolean operands
10198         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
10199         (Get_Current_Value_Condition): If the variable reference is within an
10200         if-statement, does not appear in the list of then_statments, and does
10201         not come from source, treat it as being at unknown location.
10202         (Get_Current_Value_Condition): Enhance to allow while statements to be
10203         processed as well as if statements.
10204         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
10205         come from source.
10206         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
10207         of loop. This is safe now that we fixed Kill_Current_Values.
10208         (OK_To_Do_Constant_Replacement): Check whether current scope is
10209         Standard, before examining outer scopes.
10210
10211 2006-10-31  Vincent Celier  <celier@adacore.com>
10212
10213         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
10214         When True, apply VMS treatment to children of packages A, G, I and S.
10215         For F320-016
10216
10217         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
10218
10219 2006-10-31  Robert Dewar  <dewar@adacore.com>
10220             Ed Schonberg  <schonberg@adacore.com>
10221
10222         * freeze.adb: Add handling of Last_Assignment field
10223         (Warn_Overlay): Supply missing continuation marks in error msgs
10224         (Freeze_Entity): Add check for Preelaborable_Initialization
10225
10226         * g-comlin.adb: Add Warnings (Off) to prevent new warning
10227
10228         * g-expect.adb: Add Warnings (Off) to prevent new warning
10229
10230         * lib-xref.adb: Add handling of Last_Assignment field
10231         (Generate_Reference): Centralize handling of pragma Obsolescent here
10232         (Generate_Reference): Accept an implicit reference generated for a
10233         default in an instance.
10234         (Generate_Reference): Accept a reference for a node that is not in the
10235         main unit, if it is the generic body corresponding to an subprogram
10236         instantiation.
10237
10238         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
10239
10240         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
10241         -gnatwq/Q.
10242         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
10243         exception handler.
10244         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
10245         use clauses, to avoid messages on packages used to qualify, and also
10246         to avoid messages from obsolescent units.
10247         (Warn_On_Useless_Assignments): Don't generate messages for imported
10248         and exported variables.
10249         (Warn_On_Useless_Assignments): New procedure
10250         (Output_Obsolescent_Entity_Warnings): New procedure
10251         (Check_Code_Statement): New procedure
10252
10253         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
10254         Change name Is_Ada_2005 to Is_Ada_2005_Only
10255         (Last_Assignment): New field for useless assignment warning
10256
10257 2006-10-31  Olivier Hainque  <hainque@adacore.com>
10258
10259         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
10260         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
10261
10262 2006-10-31  Bob Duff  <duff@adacore.com>
10263             Robert Dewar  <dewar@adacore.com>
10264             Ed Schonberg  <schonberg@adacore.com>
10265
10266         * g-awk.adb (Default_Session, Current_Session): Compile this file in
10267         Ada 95 mode, because it violates the new rules for AI-318.
10268
10269         * g-awk.ads: Use overloaded subprograms in every case where we used to
10270         have a default of Current_Session. This makes the code closer to be
10271         correct for both Ada 95 and 2005.
10272
10273         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
10274         code, relying on the fact that the compiler generates a warning
10275         instead of an error in -gnatg mode.
10276
10277         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
10278         E_Return_Statement entity kind.
10279         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
10280
10281         * par.adb (P_Interface_Type_Definition): Addition of one formal to
10282         report an error if the reserved word abstract has been previously found.
10283         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
10284
10285         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
10286         parenthesized range attribute usage
10287         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
10288
10289         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
10290         in the syntax for extended_return_statement. This is not in the latest
10291         RM, but the ARG is expected to issue an AI allowing this.
10292         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
10293         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
10294         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
10295         P_Return_Statement): Parse the new syntax for extended_return_statement.
10296
10297         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
10298         Output_End_Missing): Add error-recovery code for the new
10299         extended_return_statement syntax; that is, the new E_Return entry on
10300         the scope stack.
10301
10302         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
10303         limited to nonlimited, because otherwise we violate the new Ada 2005
10304         rules about returning limited types in function Create_AST_Handler in
10305         s-asthan.adb.
10306
10307         * sem.adb (Analyze): Add cases for new node kinds
10308         N_Extended_Return_Statement and N_Return_Object_Declaration.
10309
10310         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
10311         type is in the same category as type of context before applying check,
10312         to prevent anomalies in instantiations.
10313         (Resolve_Aggregate): Remove test for limited components in aggregates.
10314         It's unnecessary in Ada 95, because if it has limited components, then
10315         it must be limited. It's wrong in Ada 2005, because limited aggregates
10316         are now allowed.
10317         (Resolve_Record_Aggregate): Move check for limited types later, because
10318         OK_For_Limited_Init requires its argument to have been resolved.
10319         (Get_Value): When copying the component default expression for a
10320         defaulted association in an aggregate, use the sloc of the aggregate
10321         and not that of the original expression, to prevent spurious
10322         elaboration errors, when the expression includes function calls.
10323         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
10324         were missing. We also didn't handle qualified expressions. Now also
10325         allow function calls. Use new common routine OK_For_Limited_Init.
10326         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
10327         with space can upper case letter).
10328
10329         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
10330         Has_Static_Discriminants flag
10331         (Record_Type_Declaration): Diagnose an attempt to declare an interface
10332         type with discriminants.
10333         (Process_Range_Expr_In_Decl): Do validity checks on range
10334         (Build_Discriminant_Constraints): Use updated form of
10335         Denotes_Discriminant.
10336         (Process_Subtype): If the subtype is a private subtype whose full view
10337         is a concurrent subtype, introduce an itype reference to prevent scope
10338         anomalies in gigi.
10339         (Build_Derived_Record_Type, Collect_Interface_Primitives,
10340         Record_Type_Declaration):  The functionality of the subprograms
10341         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
10342         is now performed by a single routine.
10343         (Build_Derived_Record_Type): If the type definition includes an explicit
10344         indication of limitedness, then the type must be marked as limited here
10345         to ensure that any access discriminants will not be treated as having
10346         a local anonymous access type.
10347         (Check_Abstract_Overriding): Issue a detailed error message when an
10348         abstract subprogram was not overridden due to incorrect mode of its
10349         first parameter.
10350         (Analyze_Private_Extension_Declaration): Add support for the analysis of
10351         synchronized private extension declarations. Verify that the ancestor is
10352         a limited or synchronized interface or in the generic case, the ancestor
10353         is a tagged limited type or synchronized interface and all progenitors
10354         are either limited or synchronized interfaces.
10355         Derived_Type_Declaration): Check for presence of private extension when
10356         dealing with synchronized formal derived types.
10357         Process_Full_View): Enchance the check done on the usage of "limited" by
10358         testing whether the private view is synchronized.
10359         Verify that a synchronized private view is completed by a protected or
10360         task type.
10361         (OK_For_Limited_Init_In_05): New function.
10362         (Analyze_Object_Declaration): Move check for limited types later,
10363         because OK_For_Limited_Init requires its argument to have been resolved.
10364         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
10365         in order to alleviate the upward compatibility introduced by AI-318.
10366         (Constrain_Corresponding_Record): If the constraint is for a component
10367         subtype, mark the itype as frozen, to avoid out-of-scope references to
10368         discriminants in the back-end.
10369         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
10370         this subprogram against wrong sources.
10371         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
10372         discriminant of limited type completed with a protected type, when the
10373         discriminant is used to constrain a private component of the type, and
10374         expansion is disabled.
10375         (Find_Type_Of_Object): Do not treat a return subtype that is an
10376         anonymous subtype as a local_anonymous_type, because its accessibility
10377         level is the return type of the enclosing function.
10378         (Check_Initialization): In -gnatg mode, turn the error "cannot
10379         initialize entities of limited type" into a warning.
10380         (OK_For_Limited_Init): Return true for generated nodes, since it
10381         sometimes violates the legality rules.
10382         (Make_Incomplete_Declaration): If the type for which an incomplete
10383         declaration is created happens to be the currently visible entity,
10384         preserve the homonym chain when removing it from visibility.
10385         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
10386         inherited subprograms.
10387         (Access_Definition): If this is an access to function that is the return
10388         type of an access_to_function definition, context is a type declaration
10389         and the scope of the anonymous type is the current one.
10390         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
10391         incomplete subtype to the set of private dependents of the original
10392         incomplete type.
10393         (Constrain_Discriminated_Type): Emit an error message whenever an
10394         incomplete subtype is being constrained.
10395         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
10396         corresponding subtype of the full view of the original incomplete type.
10397         (Check_Incomplete): Properly detect invalid usage of incomplete types
10398         and subtypes.
10399
10400 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
10401
10402         * g-catiio.ads, g-catiio.adb (Value): New function.
10403         Given an input String, try and parse a valid Time value.
10404
10405 2006-10-31  Vincent Celier  <celier@adacore.com>
10406
10407         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
10408         Integer_Address arithmetic, as in Set_Valid.
10409
10410 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
10411             Robert Dewar  <dewar@adacore.com>
10412
10413         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
10414         handling executable extension manually and duplicating code.
10415
10416         * make.adb: Implement new -S switch
10417         (Gnatmake): Use new function Osint.Executable_Name instead
10418         of handling executable extension manually.
10419
10420         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
10421         is specified, the executable name ends with this suffix.
10422         Take advantage of Osint.Executable_Name instead of duplicating code.
10423
10424         * switch-m.adb: Recognize new gnatmake -S switch
10425
10426         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
10427         variable.
10428         (Get_Target_Parameters): Set Executable_Extension_On_Target if
10429         available.
10430
10431         * makeusg.adb: Add line for gnatmake -S switch
10432
10433 2006-10-31  Vincent Celier  <celier@adacore.com>
10434
10435         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
10436         call it with -static-libgcc, as there are some platforms, such as
10437         Darwin, where one of these two switches is compulsory to link.
10438
10439 2006-10-31  Vincent Celier  <celier@adacore.com>
10440
10441         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
10442         instead of ADA_PROJECT_PATH, for the project path.
10443         (Gnatls): When displaying the project path directories, use host dir
10444         specs.
10445
10446         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
10447         names in the project path, as absolute paths may correspond to
10448         multi-valued VMS logical names.
10449
10450 2006-10-31  Vincent Celier  <celier@adacore.com>
10451
10452         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
10453         absolute path name.
10454         (Locate_Regular_File): Ditto
10455         (Change_Dir): Remove, no longer used
10456         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
10457         on Windows. Get it calling Get_Current_Dir.
10458         (OpenVMS): Remove imported boolean, no longer needed.
10459         (Normalize_Pathname)[VMS]: Do not resolve directory names.
10460         (Pid_To_Integer): New function to convert a Process_Id to  Integer
10461
10462 2006-10-31  Thomas Quinot  <quinot@adacore.com>
10463
10464         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
10465         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
10466         to No_Socket.
10467         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
10468         W_Sig_Socket.
10469
10470 2006-10-31  Robert Dewar  <dewar@adacore.com>
10471
10472         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
10473         initial letter o as a zero.
10474
10475 2006-10-31  Robert Dewar  <dewar@adacore.com>
10476
10477         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
10478
10479 2006-10-31  Robert Dewar  <dewar@adacore.com>
10480
10481         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
10482         variant records
10483         (Layout_Variant_Record): Retrieve the discriminants from the entity
10484         rather than from the type definition, because in the case of a full
10485         type for a private type we need to take the discriminants from the
10486         partial view.
10487         (Layout_Component_List): When applying the Max operator to variants with
10488         a nonstatic size, check whether either operand is static and scale that
10489         operand from bits to storage units before applying Max.
10490         (Layout_Type): In VMS, if a C-convention access type has no explicit
10491         size clause (and does not inherit one in the case of a derived type),
10492         then the size is reset to 32 from 64.
10493
10494 2006-10-31  Vincent Celier  <celier@adacore.com>
10495
10496         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
10497         its file has already been loaded, according to the unit being loaded,
10498         not to the current value of Multiple_Unit_Index.
10499
10500 2006-10-31  Thomas Quinot  <quinot@adacore.com>
10501             Eric Botcazou  <ebotcazou@adacore.com>
10502             Arnaud Charlet  <charlet@adacore.com>
10503
10504         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
10505         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
10506         possible.
10507         (a-except.o): Pass it to the compiler.
10508         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
10509         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
10510         a-calend-mingw.adb version.
10511
10512         * Makefile.rtl: Added s-dsaser.
10513         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
10514         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
10515         Ada.Dispatching.Round_Robin.
10516         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
10517
10518         * Make-lang.in: Remove all references to gt-ada-decl.h.
10519         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
10520         sources.
10521         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
10522         Update dependencies.
10523
10524         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
10525
10526 2006-10-31  Vincent Celier  <celier@adacore.com>
10527
10528         * mlib-utl.adb (Initialized): Remove, no longer used
10529         (Initialize): Remove, no longer used
10530         (Ar): If Ar_Exec is null, get the location of the archive builder and,
10531         if there is one, the archive indexer. Fail if the archive builder cannot
10532         be found.
10533         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
10534         be found.
10535
10536 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
10537
10538         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
10539         Process_Body_Clauses): If the context of a body includes a use clause
10540         for P.Q then a with_clause for P in the same body is not redundant,
10541         even if the spec also has a with_clause on P.
10542         Add missing continuation mark to error msg
10543         (Build_Limited_Views): A limited view of a type is tagged if its
10544         declaration includes a record extension.
10545         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
10546         node, even if the subunit has errors. This avoids malfunction by
10547         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
10548         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
10549         generation of obsolescent messages for with statements (cannot do
10550         this too early, or we cannot implement avoiding the messages in the
10551         case of obsolescent units withing obsolescent units).
10552         (Install_Siblings): If the with_clause is on a remote descendant of
10553         an ancestor of the current compilation unit, find whether there is
10554         a sibling child unit that is immediately visible.
10555         (Remove_Private_With_Clauses): New procedure, invoked after completing
10556         the analysis of the private part of a nested package, to remove from
10557         visibility the private with_clauses of the enclosing package
10558         declaration.
10559         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
10560         now centralized in Generate_Reference.
10561         (Install_Limited_Context_Clauses): Remove superfluous error
10562         message associated with unlimited view visible through use
10563         and renamings. In addition, at the point in which the error
10564         is reported, we add the backslash to the text of the error
10565         to ensure that it is reported as a single error message.
10566         Use new // insertion for some continuation messages
10567         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
10568         to create implicit with_clause for parent unit mentioned in original
10569         limited_with_clause.
10570         (Install_Limited_With_Unit): Set entity of parent identifiers if the
10571         unit is a child unit. For ASIS queries.
10572         (Analyze_Subunit): If the subunit appears within a child unit, make all
10573         ancestor child units directly visible again.
10574
10575 2006-10-31  Robert Dewar  <dewar@adacore.com>
10576
10577         * par-ch10.adb (P_Context_Clause): Minor error message fix
10578
10579 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
10580             Javier Miranda  <miranda@adacore.com>
10581
10582         * par-ch12.adb: Grammar update and cleanup.
10583         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
10584         support for synchronized derived type definitions.
10585         Add the new actual Abstract_Present to every call to
10586         P_Interface_Type_Definition.
10587         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
10588         a formal object declaration with an access definition or a subtype mark
10589         with a null exclusion.
10590         (P_Generic_Association): Handle association with box, and others_choice
10591         with box, to support Ada 2005 partially parametrized formal packages.
10592
10593 2006-10-31  Robert Dewar  <dewar@adacore.com>
10594             Javier Miranda  <miranda@adacore.com>
10595
10596         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
10597         (P_Type_Declaration): Remove barrier against the reserved word "limited"
10598         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
10599         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
10600         private extensions.
10601         (P_Type_Declaration): Add the new actual Abstract_Present to every call
10602         to P_Interface_Type_Definition.
10603         (P_Interface_Type_Definition): Addition of one formal to report an error
10604         if the reserved word abstract has been previously found.
10605         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
10606         object renaming declaration with an access definition or subtype mark
10607         with a possible null exclusion.
10608
10609         * par-ch9.adb: Minor error msg fix
10610
10611         * par-load.adb: Add missing continuation mark to error msg
10612
10613         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
10614
10615 2006-10-31  Vincent Celier  <celier@adacore.com>
10616
10617         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
10618         unknown attribute in unknown package or in package that does not need
10619         to be checked.
10620         (Parse_Package_Declaration): Do not issue warning for unknown package in
10621         quiet output.
10622
10623 2006-10-31  Vincent Celier  <celier@adacore.com>
10624
10625         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
10626         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
10627         Packages_To_Check.
10628
10629 2006-10-31  Vincent Celier  <celier@adacore.com>
10630
10631         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
10632         on VMS, change "__" to '.' before checking the name.
10633         (Record_Ada_Source): Always add the source file name in the list of
10634         of sources, even if it is not the first time, as it is for another
10635         source index.
10636         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
10637         dot, instead of replacing only the first '_'.
10638
10639         * prj-part.adb (Parse): Convert project file path to canonical form
10640
10641         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
10642         extended, the project id of the project extending it is recorded in its
10643         data, even when it has already been processed as an imported project.
10644
10645 2006-10-31  Robert Dewar  <dewar@adacore.com>
10646
10647         * repinfo.adb (List_Entities): Don't list entities from renaming
10648         declarations.
10649
10650 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
10651             Robert Dewar  <dewar@adacore.com>
10652
10653         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
10654         only a restriction warning is active for the given restriction. This is
10655         desirable because we do not want to modify code in the case where only
10656         a warning is set.
10657         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
10658         causes overriding of real restrictions.
10659         Take advantage of new No_Restrictions constant.
10660
10661         * raise.h: (__gnat_set_globals): Change profile.
10662
10663 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
10664
10665         * rtsfind.adb: Remove s-polint from comment as it exists no more.
10666
10667         * rtsfind.ads: 
10668         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
10669         Move all the entities in obsolete package System.PolyORB_Interface to
10670         System.Partition_Interface.
10671         (RE_Storage_Size): New function in System.Tasking.
10672         (RE_Get_Ceiling): New entity.
10673         (RE_Set_Ceiling): New entity.
10674         (RO_PE_Get_Ceiling): New entity.
10675         (RO_RE_Set_Ceiling): New entity.
10676         (Inherit_CPP_DT): New entity
10677
10678 2006-10-31  Robert Dewar  <dewar@adacore.com>
10679
10680         * scng.adb (Scan, case of numeric literal): Better msg for identifier
10681         starting with a digit.
10682
10683 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
10684             Thomas Quinot  <quinot@adacore.com>
10685             Javier Miranda  <miranda@adacore.com>
10686             Gary Dismukes  <dismukes@adacore.com>
10687
10688         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
10689         properly an attempt to apply Unchecked_Access to a protected operation.
10690         (OK_Self_Reference): New subprogram to check the legality of an access
10691         attribute whose prefix is the type of an enclosing aggregate.
10692         Generalizes previous mechanism to handle attribute references nested
10693         arbitrarily deep within the aggregate.
10694         (Analyze_Access_Attribute): An access attribute whose prefix is a type
10695         can appear in an aggregate if this is a default-initialized aggregate
10696         for a self-referential type.
10697         (Resolve_Attribute, case Access): Ditto.
10698         Add support for new implementation defined attribute Stub_Type.
10699         (Eval_Attribute, case Attribute_Stub_Type): New case.
10700         (Analyze_Attribute, case Attribute_Stub_Type): New case.
10701         (Stream_Attribute_Available): Implement using new subprogram from
10702         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
10703         Has_Specified_Stream_Attribute flag.
10704         Disallow Storage_Size and Storage_Pool for access to subprogram
10705         (Resolve_Attribute, case 'Access et al): Take into account anonymous
10706         access types of return subtypes in extended return statements. Remove
10707         accessibility checks on anonymous access types when Unchecked_Access is
10708         used.
10709         (Analyze_Attribute): Add support for the use of 'Class to convert
10710         a class-wide interface to a tagged type.
10711         Add support for the attribute Priority.
10712         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
10713         whether the designated type is discriminated with a constrained partial
10714         view and require static matching in that case.
10715         Add local variable Des_Btyp. The Designated_Type
10716         of an access to incomplete subtype is either its non-limited view if
10717         coming from a limited with or its etype if regular incomplete subtype.
10718
10719         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
10720         Fix predicate to identify and allow cases of (expander-generated)
10721         references to tag of designated object of a RACW.
10722         (Validate_Static_Object_Name): In Ada 2005, a formal object is
10723         non-static, and therefore cannot appear as a primary in a preelaborable
10724         package.
10725         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
10726         Has_Read_Write_Attributes.
10727         (Has_Read_Write_Attributes): Reimplement in termes of
10728         Has_Stream_Attribute_Definition.
10729         (Missing_Read_Write_Attributes): When checking component types in a
10730         record, unconditionally call Missing_Read_Write_Attributes recursively
10731         (remove guard checking for Is_Record_Type / Is_Access_Type).
10732
10733 2006-10-31  Robert Dewar  <dewar@adacore.com>
10734
10735         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
10736         useless assignments here and conditionalize it on absence of exception
10737         handlers.
10738         (Analyze_Exception_Handlers): Small code reorganization of error
10739         detection code, for new handling of formal packages.
10740
10741 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
10742             Hristian Kirtchev  <kirtchev@adacore.com>
10743
10744         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
10745         that has been constant-folded, preserve information of original tree,
10746         for ASIS uses.
10747         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
10748         generated private extension declaration if the formal derived type is
10749         synchronized. Carry synchronized present over to the generated private
10750         extension.
10751         (Validate_Derived_Type_Instance): Ensure that the actual of a
10752         synchronized formal derived type is a synchronized tagged type.
10753         (Instantiate_Formal_Package): When creating the instantiation used to
10754         validate the actual package of a formal declared without a box, check
10755         whether the formal itself depends on a prior actual.
10756         (Instantiate_Formal_Subprogram): Create new entities for the defining
10757         identifiers of the formals in the renaming declaration, for ASIS use.
10758         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
10759         a renaming declaration or a subtype declaration for an actual in an
10760         instance, capture location information of declaration in generic, for
10761         ASIS use.
10762         (Instantiate_Formal_Package): Add comments on needed additional tests.
10763         AI-317 (partial parametrization) is fully implemented.
10764         (Validate_Private_Type_Instance): Add check for actual which
10765         must have preelaborable initialization
10766         Use new // insertion for some continuation messages
10767         (Analyze_Formal_Object_Declaration): Change usage of Expression to
10768         Default_Expression. Add type retrieval when the declaration has an
10769         access definition. Update premature usage of incomplete type check.
10770         (Check_Access_Definition): New subsidiary routine. Check whether the
10771         current compilation version is Ada 05 and the supplied node has an
10772         access definition.
10773         (Instantiate object): Alphabetize local variables. Handle the creation
10774         of new renaming declarations with respect to the kind of definition
10775         used - either an access definition or a subtype mark. Guard against
10776         unnecessary error message in the context of anonymous access types after
10777         they have been resolved. Add check for required null exclusion in a
10778         formal object declaration.
10779         (Switch_View): A private subtype of a non-private type needs to be
10780         switched (the base type can have been switched without its private
10781         dependents because of the last branch of Check_Private_View.
10782         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
10783         value from BT.
10784         (Instantiate_Type): Emit an error message whenever a class-wide type of
10785         a tagged incomplete type is used as a generic actual.
10786         (Find_Actual_Type): Extend routine to handle a component type in a child
10787         unit that is imported from a formal package in a parent.
10788         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
10789         agree on constrainedness, rather than checking against ultimate ancestor
10790         (Instantiate_Subprogram_Body): Create a cross-reference link to the
10791         generic body, for navigation purposes.
10792
10793 2006-10-31  Robert Dewar  <dewar@adacore.com>
10794             Thomas Quinot  <quinot@adacore.com>
10795
10796         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
10797         type.
10798         (New_Stream_Subprogram): When processing an attribute definition clause
10799         for a stream-oriented subprogram, record an entity node occurring at
10800         the point of clause to use for checking the visibility of the clause,
10801         as defined by 8.3(23) as amended by AI-195.
10802         (New_Stream_Subprogram): New procedure, factoring behaviour from both
10803          New_Stream_Function and New_Stream_Procedure.
10804         (New_Stream_Function, New_Stream_Procedure): Removed.
10805         (Analyze_Attribute_Definition_Clause, case Address): Check new
10806         Alignment_Check check
10807
10808 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
10809             Javier Miranda  <miranda@adacore.com>
10810             Robert Dewar  <dewar@adacore.com>
10811
10812         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
10813         generate the same errors compiling under -gnatc.
10814         (Try_Object_Operation): If no candidate interpretation succeeds, but
10815         there is at least one primitive operation with the right name, report
10816         error in call rather than on a malformed selected component.
10817         (Analyze_Selected_Component): If the prefix is an incomplete type from
10818         a limited view, and the full view is available, use the full view to
10819         determine whether this is a prefixed call to a primitive operation.
10820         (Operator_Check): Verify that a candidate interpretation is a binary
10821         operation before checking the type of its second formal.
10822         (Analyze_Call): Add additional warnings for function call contexts not
10823         yet supported.
10824         (Analyze_Allocator): Move the check for "initialization not allowed for
10825         limited types" after analyzing the expression. This is necessary,
10826         because OK_For_Limited_Init looks at the structure of the expression.
10827         Before analysis, we don't necessarily know what sort of expression it
10828         is. For example, we don't know whether F(X) is a function call or an
10829         indexed component; the former is legal in Ada 2005; the latter is not.
10830         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
10831         were missing. We also didn't handle qualified expressions. Now also
10832         allow function calls. Use new common routine OK_For_Limited_Init.
10833         (Analyze_Type_Conversion): Do not perform some legality checks in an
10834         instance, because the error message will be redundant or spurious.
10835         (Analyze_Overloaded_Selected_Component): Do not do style check when
10836         setting an entity, since we do not know it is the right entity yet.
10837         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
10838         (Analyze_Overloaded_Selected_Component): Same change
10839         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
10840         since regular incomplete subtypes are transformed into corresponding
10841         subtypes of their full views.
10842         (Complete_Object_Operation): Treat name of transformed subprogram call
10843         as coming from source, for browsing purposes.
10844         (Try_Primitive_Operation): If formal is an access parameter, compare
10845         with base type of object to determine whether it is a primitive
10846         operation.
10847         (Operator_Check): If no interpretation of the operator matches, check
10848         whether a use clause on any candidate might make the operation legal.
10849         (Try_Class_Wide_Operation): Check whether the first parameter is an
10850         access type whose designated type is class-wide.
10851
10852 2006-10-31  Robert Dewar  <dewar@adacore.com>
10853             Ed Schonberg  <schonberg@adacore.com>
10854             Gary Dismukes  <dismukes@adacore.com>
10855
10856         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
10857         warn on infinite loops.
10858         Add \\ to some continuation messages
10859         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
10860         (Process_Bounds): If the bounds are integer literals that result from
10861         constant-folding, and they carry a user-defined type, preserve that type
10862         rather than treating this as an integer range.
10863         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
10864         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
10865         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
10866         left hand side of assignment.
10867         (Analyze_Assignment): Add suport to manage assigments to the attribute
10868         priority of a protected object.
10869         (Check_Possible_Current_Value_Condition): Allow fully qualified names
10870         not just identifiers.
10871         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
10872         or AND THEN for possible tracking.
10873         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
10874         case of while loops so we can track values in the loop body.
10875
10876 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
10877             Hristian Kirtchev  <kirtchev@adacore.com>
10878             Bob Duff  <duff@adacore.com>
10879
10880         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
10881         procedure cannot be a protected operation (it is a basic_declaration,
10882         not a subprogram_declaration).
10883         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
10884         Subp. Add logic for entry processing.
10885         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
10886         Determine whether an entry or subprogram of a protected or task type
10887         override an inherited primitive of an implemented interface.
10888         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
10889         Update the actual used in calls to Check_Overriding_Indicator.
10890         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
10891         generate the proper reference to the parent unit, for cross-reference.
10892         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
10893         Is_Formal.
10894         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
10895         (Add_Extra_Formal): Revise procedure to allow passing in associated
10896         entity, scope, and name suffix, and handle setting of the new
10897         Extra_Formals field.
10898         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
10899         pass new parameters. Add support for adding the new extra access formal
10900         for functions whose calls are treated as build-in-place.
10901         (Analyze_A_Return_Statement): Correct casing in error message.
10902         Move Pop_Scope to after Analyze_Function_Return, because an extended
10903         return statement really is a full-fledged scope. Otherwise, visibility
10904         doesn't work right. Correct use of "\" for continuation messages.
10905         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
10906         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
10907         the node doesn't get properly marked as analyzed.
10908         (Analyze_Subprogram_Body): If subprogram is a function that returns
10909         an anonymous access type that denotes a task, build a Master Entity
10910         for it.
10911         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
10912         proper usage of null exclusion in a result definition.
10913         (Process_Formals): Code cleanup and new error message.
10914         (Process_Formals): Detect incorrect application of null exclusion to
10915         non-access types.
10916         (Conforming_Types): Handle conformance between [sub]types and itypes
10917          generated for entities that have null exclusions applied to them.
10918         (Maybe_Primitive_Operation): Add an additional type retrieval when the
10919          base type is an access subtype. This case arrises with null exclusions.
10920         (New_Overloaded_Entity): Do not remove the overriden entity from the
10921         homonym chain if it corresponds with an abstract interface primitive.
10922         (Process_Formals): Replace membership test agains Incomplete_Kind with a
10923         call to the synthesized predicate Is_Incomplete_Type.
10924         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
10925         primitives.
10926         (Analyze_Subprogram_Declaration): Check that abstract interface
10927         primitives are abstract or null.
10928         (Analyze_Subprogram_Specification): Remove previous check for abstract
10929         interfaces because it was not complete.
10930         (Has_Interface_Formals): Removed.
10931
10932 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
10933             Javier Miranda  <miranda@adacore.com>
10934
10935         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
10936         of Analyze_Package_Body, to create Itype references for anonymous
10937         access types created in the package declaration, whose designated types
10938         may have only a limited view.
10939         (Analyze_Package_Specification): For the private part of a nested
10940         package, install private_with_clauses of enclosing compilation unit if
10941         we are in its visible part.
10942         (Declare_Inherited_Private_Subprograms): Complete barrier
10943         to ensure that the primitive operation has an alias to some parent
10944         primitive. This is now required because, after the changes done for the
10945         implementation of abstract interfaces, the contents of the list of
10946         primitives has entities whose alias attribute references entities of
10947         such list of primitives.
10948         (Analyze_Package_Specification): Simplify code that handles parent units
10949         of instances and formal packages.
10950         (Uninstall_Declarations): Check the convention consistency among
10951         primitive overriding operations of a tagged record type.
10952
10953 2006-10-31  Robert Dewar  <dewar@adacore.com>
10954             Hristian Kirtchev  <kirtchev@adacore.com>
10955             Javier Miranda  <miranda@adacore.com>
10956             Ed Schonberg  <schonberg@adacore.com>
10957
10958         * sem_ch8.adb: Minor error msg rewording
10959         (Undefined): When checking for misspellings, invert arguments (to get
10960         expected and found set right)
10961         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
10962         (Analyze_Generic_Renaming): Same fix
10963         (Use_One_Package): Do not take into account the internal entities of
10964         abstract interfaces during the analysis of entities that are marked
10965         as potentially use-visible.
10966         (Find_Type): Handle the case of an attribute reference for
10967         implementation defined attribute Stub_Type (simply let the analysis of
10968         the attribute reference rewrite it).
10969         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
10970         type that appears in a Use_Type clause.
10971         (Analyze_Object_Renaming): Add support for renaming of the Priority
10972         attribute.
10973         (Find_Type): In Ada 2005, a task type can be used within its own body,
10974         when it appears in an access definition.
10975         (Analyze_Object_Renaming): Remove warning on null_exclusion.
10976         (Analyze_Object_Renaming): Introduce checks for required null exclusion
10977          in a formal object declaration or in a subtype declaration.
10978         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
10979         (Check_Null_Exclusion): New local routine to
10980         Analyze_Subprogram_Renaming. Check whether the formals and return
10981         profile of a renamed subprogram have required null exclusions when
10982         their counterparts of the renaming already impose them.
10983         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
10984         Determine whether an entity is inside a generic scope.
10985         (In_Open_Scope): First pass of documentation update.
10986         (Find_Expanded_Name): Add support for shadow entities associated with
10987         limited withed packages. This is required to handle nested packages.
10988         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
10989         that makes a renaming of a limited withed package illegal.
10990
10991 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
10992             Ed Schonberg  <schonberg@adacore.com>
10993
10994         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
10995         Check_Overriding_Indicator.
10996         (Analyze_Task_Definition): Ditto.
10997         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
10998         (Check_Overriding_Indicator): To find overridden interface operation,
10999         examine only homonyms that have an explicit subprogram declaration, not
11000         inherited operations created by an unrelated type derivation.
11001         (Check_Overriding_Indicator): When checking for the presence of "null"
11002         in a procedure, ensure that the queried node is a procedure
11003         specification.
11004         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
11005         type when the formal is an access to variable.
11006         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
11007         (Analyze_Task_Type): Same addition
11008         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
11009         provide navigation capabilities for entries.
11010
11011 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
11012             Ed Schonberg  <schonberg@adacore.com>
11013             Javier Miranda  <miranda@adacore.com>
11014             Gary Dismukes  <dismukes@adacore.com>
11015
11016         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
11017         inherited from an interface ancestor by another interface in the
11018         context of an instance as 'late'.
11019         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
11020         of a call to a function that dispatches on access result.
11021         (Check_Dispatching_Operation): In case of late overriding of a primitive
11022         that covers abstract interface subprograms we register it in all the
11023         secondary dispatch tables associated with abstract interfaces.
11024         (Check_Dispatching_Call): Add check that a dispatching call is not made
11025         to a function with a controlling result of a limited type. This is a
11026         current implementation restriction.
11027         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
11028         (Check_Dispatching_Operation): Do no emit a warning if the controlling
11029         argument is an interface type that is a generic formal.
11030         (Is_Interface_Subprogram): Removed.
11031         (Check_Dispatching_Operation): If the subprogram is not a dispatching
11032         operation, check the formals to handle the case in which it is
11033         associated with an abstract interface type.
11034
11035 2006-10-31  Robert Dewar  <dewar@adacore.com>
11036             Ed Schonberg  <schonberg@adacore.com>
11037
11038         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
11039         Add new calls to this procedure during traversal
11040         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
11041         another unit if expansion is disabled.
11042
11043 2006-10-31  Robert Dewar  <dewar@adacore.com>
11044
11045         * sem_eval.adb (Compile_Time_Compare): Make use of information from
11046         Current_Value in the conditional case, to evaluate additional
11047         comparisons at compile time.
11048
11049 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
11050             Hristian Kirtchev  <kirtchev@adacore.com>
11051             Javier Miranda  <miranda@adacore.com>
11052
11053         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
11054         subprogram type to provide better diagnostics in case of ambiguity.
11055         (Covers): Handle coverage of formal and actual anonymous access types in
11056         the context of generic instantiation.
11057         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
11058         abstract interface types; this is required to handle concurrent types
11059         with discriminants and abstract interface types.
11060         (Covers): Include type coverage of both regular incomplete subtypes and
11061         incomplete subtypes of incomplete type visibles through a limited with
11062         clause.
11063
11064 2006-10-31  Robert Dewar  <dewar@adacore.com>
11065             Hristian Kirtchev  <kirtchev@adacore.com>
11066             Ed Schonberg  <schonberg@adacore.com>
11067
11068         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
11069         messages for entities in packages which are not used.
11070         (Collect_Synchronized_Interfaces): New procedure.
11071         (Overrides_Synchronized_Primitive): New function.
11072         (Denotes_Discriminant): Extend predicate to apply to task types.
11073         Add missing continuation marks in error msgs
11074         (Unqualify): New function for removing zero or more levels of
11075         qualification from an expression. There are numerous places where this
11076         ought to be used, but we currently only deal properly with zero or one
11077         level.
11078         (In_Instance); The analysis of the actuals in the instantiation of a
11079         child unit is not within an instantiation, even though the parent
11080         instance is on the scope stack.
11081         (Safe_To_Capture_Value): Exclude the case of variables that are
11082         renamings.
11083         (Check_Obsolescent): Removed
11084         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
11085         is an aliased view, even when rewritten as a reference to the target
11086         object in an assignment.
11087         (Get_Subprogram_Entity): New function
11088         (Known_To_Be_Assigned): New function
11089         (Type_Access_Level): Compute properly the access level of a return
11090         subtype that is an anonymous access type.
11091         (Explain_Limited_Type): Correct use of "\" for continuation messages.
11092         (Is_Transfer): The new extended_return_statement causes a transfer of
11093         control.
11094         (Has_Preelaborable_Initialization): New function
11095         (Has_Null_Exclusion): New function. Given a node N, determine whether it
11096         has a null exclusion depending on its Nkind.
11097         Change Is_Lvalue to May_Be_Lvalue
11098         (May_Be_Lvalue): Extensive additional code to deal with subprogram
11099         arguments (IN parameters are not Lvalues, IN OUT parameters are).
11100         (Safe_To_Capture_Value): Extend functionality so it can be used for
11101         the current value condition case.
11102         (Has_Compatible_Alignment): New function
11103         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
11104         objects to handle the Ada 2005 case, where aliasedness no longer implies
11105         that the object is constrained. In particular, for dereferenced names,
11106         the designated object must be assumed to be unconstrained.
11107         (Kill_Current_Values): Properly deal with the case where we encounter
11108         a loop in the scope chain.
11109         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
11110         a value.
11111         (Compile_Time_Constraint_Error): Improve error message in error case
11112
11113         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
11114         associated with entities of abstract interface primitives.
11115         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
11116
11117 2006-10-31  Robert Dewar  <dewar@adacore.com>
11118
11119         * s-osinte-tru64.adb: 
11120         Mark Asm statements Volatile to prevent warnings (seems a
11121         reasonable change anyway)
11122         Fixes new warnings
11123
11124         * s-mastop-irix.adb: Add Volatile to Asm statements
11125         Suppresses warning, and seems appropriate in any case
11126
11127         * s-osinte-vms.adb: Add Volatile to Asm statement
11128
11129         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
11130
11131         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
11132         returned.
11133         Add call to Check_Code_Statement
11134
11135 2006-10-31  Robert Dewar  <dewar@adacore.com>
11136             Ed Schonberg  <schonberg@adacore.com>
11137             Bob Duff  <duff@adacore.com>
11138
11139         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
11140         Synchronized_Present): Add Formal_Derived_Type_Definition and
11141         Private_Extension_Declaration to the list of assertions.
11142         (Is_Entry_Barrier_Function): New flag
11143         (Has_Self_Reference): New flag on aggregates, to indicate that they
11144         contain a reference to the enclosing type, inserted through a default
11145         initialization.
11146         (Next_Rep_Item): Move from Node4 to Node5.
11147         (Entity): Add this field for N_Attribute_Definition_Clause.
11148         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
11149         (N_Return_Object_Declaration): Remove this node kind. We now use
11150         N_Object_Declaration instead.
11151         (Actual_Designated_Subtype): Move to a different place to make room in
11152         N_Extended_Return_Statement.
11153         (Procedure_To_Call): Move to a different place to make room in
11154         N_Extended_Return_Statement.
11155         (Return_Type): Removed this field to make room in return statements
11156         (both kinds).
11157         (Return_Statement_Entity): New field in return statements, in part to
11158         replace Return_Type, and in part to support the fact that return
11159         statements are now pushed on the scope stack during semantic analysis.
11160         (Return_Object_Declarations): New field to support extended return
11161         statements.
11162         (N_Extended_Return_Statement): New node for extended_return_statement
11163         nonterminal.
11164         (N_Return_Object_Declaration): New node for part of
11165         extended_return_statement nonterminal. Needed because all the necessary
11166         fields won't fit in N_Extended_Return_Statement.
11167         Generic_associations now carry the Box_Present flag, to indicate a
11168         default for an actual in a partially parametrized formal package.
11169
11170         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
11171         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
11172         and for the new predefined dispatching policies: EDF_Across_Priorities,
11173         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
11174         Introduce new name Stub_Type for implementation defined attribute.
11175         Add pragma Preelaborable_Initialization
11176         Add entry for Priority attribute.
11177         Add Pragma_Wide_Character_Encoding
11178         (Get_Convention_Name): Given a convention id, this function returns the
11179         corresponding name id from the names table.
11180
11181 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
11182             Robert Dewar  <dewar@adacore.com>
11183             Bob Duff  <duff@adacore.com>
11184
11185         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
11186         print null exclusion twice in the case of an access definition,
11187         Implement new -gnatL switch
11188         Remove N_Return_Object_Declaration. We now use
11189         N_Object_Declaration instead. Implement the case for
11190         N_Extended_Return_Statement. Alphabetize the cases.
11191         Add cases for new nodes N_Extended_Return_Statement and
11192         N_Return_Object_Declaration. The code is not yet written.
11193         Update the output for N_Formal_Object_Declaration
11194         and N_Object_Renaming_Declaration.
11195         (Write_Itype): Account for the case of a modular integer subtype whose
11196         base type is private.
11197
11198 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
11199
11200         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
11201         Remove elaboration code, now done in the binder.
11202
11203         * s-rident.ads: Make this unit Preelaborate.
11204         (No_Restrictions): New constant used to clean up code and follow
11205         preelaborate constraints.
11206
11207         * s-stalib.adb: 
11208         Add System.Restrictions dependence, referenced directly from the
11209         binder generated file.
11210
11211 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
11212
11213         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
11214         True when AAMP extended floating-point is in use (48-bit). Change type
11215         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
11216         the two byte array types on AFloat. Change type of IV_Ilf overlay
11217         variable from Byte8 to ByteLF. Add appropriate initializations of
11218         floating-point overlays for AAMP cases.
11219
11220 2006-10-31  Javier Miranda  <miranda@adacore.com>
11221
11222         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
11223         (Get_Ceiling): New subprogram that returns
11224         the ceiling priority of the protected object.
11225         (Set_Ceiling): New subprogram that sets the new ceiling priority of
11226         the protected object.
11227
11228         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
11229
11230         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
11231
11232 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
11233
11234         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
11235         requeuing to the same protected object to give higher priority tasks
11236         the opportunity to execute.
11237
11238 2006-10-31  Robert Dewar  <dewar@adacore.com>
11239
11240         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
11241         add more precise check for the character sequence that follows '[' to
11242         avoid possible confusion in case if '[' is the last character of a
11243         string literals.
11244         (Scan_Wide): Always allow brackets encoding
11245
11246 2006-10-31  Olivier Hainque  <hainque@adacore.com>
11247
11248         * s-stchop.ads: make this unit preelaborate. This is desirable in
11249         general and made mandatory by the use of this unit by s-taprop which
11250         is itself preelaborate.
11251
11252         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
11253         Td_Events component.
11254
11255 2006-10-31  Vincent Celier  <celier@adacore.com>
11256
11257         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
11258         in file names.
11259
11260 2006-10-31  Vincent Celier  <celier@adacore.com>
11261
11262         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
11263
11264 2006-10-31  Vincent Celier  <celier@adacore.com>
11265
11266         * makegpr.adb (Check_Compilation_Needed): Take into account path names
11267         with spaces.
11268         (Check_Compilation_Needed): When checking a C or C++ source, do not
11269         resolve symbolic links.
11270         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
11271         When not in verbose mode and Ellipse is True, display "..." for the
11272         first argument with Display set to False.
11273         (Build_Global_Archive): Always set Display True for the first object
11274         file. Call Display_Command with Ellipse set to True.
11275
11276 2006-10-31  Matt Heaney  <heaney@adacore.com>
11277
11278         * a-crbtgo.ads: Commented each subprogram
11279
11280         * a-crbtgo.adb: Added reference to book from which algorithms were
11281         adapted.
11282
11283         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
11284         indicate which child.
11285         (Generic_Conditional_Insert): changed parameter name from "Success" to
11286         "Inserted".
11287         (Generic_Unconditional_Insert_With_Hint): improved algorithm
11288
11289         * a-coorse.adb (Replace_Element): changed parameter name in call to
11290         conditional insert operation.
11291
11292         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
11293
11294         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
11295         Generic_Iteration
11296
11297         * a-ciorse.adb (Replace_Element): changed parameter name in call to
11298         conditional insert operation.
11299
11300         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
11301         Generic_Iteration.
11302
11303         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
11304         instead of mode inout.
11305
11306         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
11307         draft
11308         (Generic_Read): preserve existing buckets array if possible
11309         (Generic_Write): don't send buckets array length anymore
11310
11311         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
11312         instead of mode inout.
11313
11314         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
11315         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
11316
11317         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
11318         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
11319         (Replace_Element): local operation is now an instantiation
11320
11321         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
11322         check current length.
11323         (Generic_Replace_Element): new operation
11324
11325 2006-10-31  Doug Rupp  <rupp@adacore.com>
11326
11327         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
11328         Call TBK$SYMBOLIZE without omitting parameters.
11329
11330 2006-10-31  Vincent Celier  <celier@adacore.com>
11331
11332         * symbols-processing-vms-ia64.adb,
11333         symbols-processing-vms-alpha.adb (Process): Do not include symbols
11334         that come from generic instantiations in bodies.
11335
11336 2006-10-31  Pat Rogers  <rogers@adacore.com>
11337
11338         * a-rttiev.ads, a-rttiev.adb: 
11339         This is a significant redesign primarily for the sake of automatic
11340         timer task termination but also to fix a design flaw.
11341         Therefore we are now using an RTS lock, instead of a protected
11342         object, to provide mutual exclusion to the queue of pending events
11343         and the type Timing_Event is no longer a protected type.
11344
11345 2006-10-31  Robert Dewar  <dewar@adacore.com>
11346             Cyrille Comar  <comar@adacore.com>
11347             Ben Brosgol  <brosgol@adacore.com>
11348
11349         * debug.adb:  Update flags documentation
11350
11351         * gnat_ugn.texi: Add documentation for new -gnatwq switch
11352         Clean up documentation for several other warning switches
11353         Clarify how task stack size can be specified with various
11354         versions of Windows.
11355         Add note that -gnatVo includes ranges including loops
11356         Add documentation for -gnatL switch
11357         Add note on elaboration warning for initializing variables
11358         Add documentation for new -gnatwt warning switch
11359         Document new form of pragma Warnings (On|Off, string)
11360         Add comment on use of pragma Warnings to control warnings
11361         Add documentation for -gnatjnn switch
11362         Modify section on interfacing with C for VMS 64-bit.
11363         Add doc for -gnatVe/E
11364         Add documentation of new warning flags -gnatww/-gnatwW
11365         Add warnings about address clause overlays to list of warnings
11366         (Exception Handling Control): Document that the option --RTS must be
11367         used consistently for gcc and gnatbind.
11368         Clarify that inlining is not always possible
11369         Update documentation on pragma Unchecked_Union.
11370
11371         * gnat_rm.texi: 
11372         Add documentation for new extended version of pragma Obsolescent
11373         Add documentation for implementation defined attribute 'Stub_Type.
11374         Add note on use of Volatile in asm statements
11375         Add documentation on use of pragma Unreferenced in context clause
11376         Document new form of pragma Warnings (On|Off, pattern)
11377         Document pragma Wide_Character_Encoding
11378         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
11379         enforced if code generation is active.
11380         Add section on pragma Suppress to document GNAT specific check
11381         Alignment_Check
11382         Clarify difference between No_Dispatching_Calls & No_Dispatch.
11383         Add documentation for pragma Restrictions (No_Elaboration_Code)
11384
11385         * gnat-style.texi: 
11386         Add comments on layout of subprogram local variables in the
11387         presence of nested subprograms.
11388
11389         * ug_words: Resync.
11390
11391         * elists.ads: Minor reformatting
11392         Node returns Node_Or_Entity_Id (doc change only)
11393
11394         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
11395
11396         * g-arrspl.ads (Create): Update comments.
11397
11398         * sem.ads: Add details on the handling of the scope stack.
11399
11400         * usage.adb: Update documentation.
11401
11402         * validsw.ads, validsw.adb: 
11403         Add definition of Validity_Check_Components and implement -gnatVe/E
11404
11405         * vms_data.ads: Add missing VMS qualifiers.
11406
11407         * s-addope.ads: Add documentation on overflow and divide by zero
11408
11409 2006-10-31  Robert Dewar  <dewar@adacore.com>
11410             Thomas Quinot  <quinot@adacore.com>
11411             Arnaud Charlet  <charlet@adacore.com>
11412
11413         * fmap.adb: Put routines in alpha order
11414
11415         * g-boumai.ads: Remove redundant 'in' keywords
11416
11417         * g-cgi.adb: Minor reformatting
11418
11419         * g-cgi.ads: Remove redundant 'in' keywords
11420
11421         * get_targ.adb: Put routines in alpha order
11422
11423         * prj-attr.ads: Minor reformatting
11424
11425         * s-atacco.ads: Minor reformatting
11426
11427         * scn.adb: Put routines in alpha order
11428
11429         * sinput-l.adb: Minor comment fix
11430
11431         * sinput-p.adb: Minor comment fix
11432
11433         * s-maccod.ads: Minor reformatting
11434
11435         * s-memory.adb: Minor reformatting
11436
11437         * s-htable.adb: Fix typo in comment.
11438
11439         * s-secsta.adb: Minor comment update.
11440
11441         * s-soflin.adb: Minor reformatting
11442
11443         * s-stoele.ads: 
11444         Add comment about odd qualification in Storage_Offset declaration
11445
11446         * s-strxdr.adb: 
11447         Remove unnecessary 'in' keywords for formal parameters.
11448
11449         * treeprs.adt: Minor reformatting
11450
11451         * urealp.adb: Put routines in alpha order
11452
11453         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
11454         taking string.
11455
11456         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
11457
11458         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
11459
11460         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
11461         workaround as on other platforms.
11462
11463         * g-eacodu-vms.adb: Remove redundant 'in' keywords
11464         * g-expect-vms.adb: Remove redundant 'in' keywords
11465
11466         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
11467         clear error message if the list-of-files file cannot be opened.
11468
11469         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
11470         equality operator is always visible.
11471
11472         * lang.opt: Woverlength-strings: New option.
11473
11474         * nmake.adt: 
11475         Update copyright, since nmake.ads and nmake.adb have changed.
11476
11477         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
11478         (Binder_Output_Time_Stamps_Set): removed.
11479         (Old_Binder_Output_Time_Stamp): idem.
11480         (New_Binder_Output_Time_Stamp): idem.
11481         (Recording_Time_From_Last_Bind): idem.
11482         (Recording_Time_From_Last_Bind): Make constant.
11483
11484         * output.ads, output.adb (Write_Str): Allow LF characters
11485         (Write_Spaces): New procedure
11486
11487         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
11488
11489         * inline.adb: Minor reformatting
11490
11491         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
11492
11493         * s-mastop-vms.adb: Remove redundant 'in' keywords
11494
11495         * s-osprim-vms.adb: Remove redundant 'in' keywords
11496
11497         * s-trafor-default.adb: Remove redundant 'in' keywords
11498
11499         * 9drpc.adb: Remove redundant 'in' keywords
11500
11501         * s-osinte-mingw.ads: Minor reformatting
11502
11503         * s-inmaop-posix.adb: Minor reformatting
11504
11505         * a-direio.ads: Remove quotes from Compile_Time_Warning message
11506
11507         * a-exexda.adb: Minor code reorganization
11508
11509         * a-filico.adb: Minor reformatting
11510
11511         * a-finali.adb: Minor reformatting
11512
11513         * a-nudira.ads: Remove quote from Compile_Time_Warning message
11514
11515         * a-numeri.ads: Minor reformatting
11516
11517         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
11518
11519         * exp_pakd.ads: Fix obsolete comment
11520
11521         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
11522         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
11523         Probably not a bug, but certainly neater and more efficient.
11524
11525         * a-tienio.adb: Minor reformatting
11526
11527         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
11528         Avoid assuming low bound of string is 1.
11529
11530         * gnatbind.adb: Change Bindusg to package and rename procedure as
11531         Display, which now ensures that it only outputs usage information once.
11532         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
11533
11534         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
11535         Table'First.
11536
11537         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
11538         warning.
11539         (Match): Add pragma Assert to ensure that Matches'First is zero
11540
11541         * g-regpat.ads (Match): Document that Matches lower bound must be zero
11542
11543         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
11544         documented preconditions (also kills warnings about bad indexes).
11545
11546         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
11547         is 1.
11548         (Build_Import_Library): Ditto;
11549
11550         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
11551
11552         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
11553
11554         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
11555         lower bound of choice table is 1.
11556
11557         * sem_case.ads (Analyze_Choices): Document that lower bound of
11558         Choice_Table is 1.
11559
11560         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
11561         string is 1.
11562
11563         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
11564         and add appropriate Assert pragma to suppress warnings.
11565
11566         * atree.h, atree.ads, atree.adb
11567         Change Elist24 to Elist25
11568         Add definitions of Field28 and Node28
11569         (Traverse_Field): Use new syntactic parent table in sinfo.
11570
11571         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
11572
11573         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
11574
11575         * exp_tss.adb: Put routines in alpha order
11576
11577         * fe.h: Remove redundant declarations.
11578
11579 2006-10-23 Rafael Avila de Espindola  <rafael.espindola@gmail.com>
11580
11581         * utils.c (builtin_function): Rename to gnat_builtin_function.
11582         Move common code to add_builtin_function.
11583         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
11584         gnat_builtin_function.
11585         * gigi.h (builtin_function): Rename to gnat_builtin_function.
11586         Change the signature.
11587
11588 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
11589
11590         * Makefile.in: Add TEXI2PDF definition.
11591         * Make-lang.in: Add "ada.pdf" target.
11592
11593 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
11594
11595         * decl.c, utils.c: Fix comment typos.
11596         * utils.c: Fix a typo.
11597
11598 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
11599
11600         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
11601         on "pure" Ada subprograms if SJLJ exceptions are used.
11602         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
11603         on the declaration node of JMPBUF_SAVE.
11604         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
11605         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
11606         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
11607
11608 2006-08-20  Laurent GUERBY  <laurent@guerby.net>
11609
11610         PR ada/28716
11611         g-socket.adb (Bind_Socket): Call Set_Address.
11612
11613 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
11614
11615         PR ada/15802
11616         * decl.c (same_discriminant_p): New static function.
11617         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
11618         subtype and we have discriminants, fix up the COMPONENT_REFs
11619         for the discriminants to make them reference the corresponding
11620         fields of the parent subtype after it has been built.
11621
11622 2006-09-15  Roger Sayle  <roger@eyesopen.com>
11623
11624         PR ada/18817
11625         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
11626         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
11627
11628 2006-09-13  Olivier Hainque  <hainque@adacore.com>
11629
11630         PR ada/29025
11631         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
11632         of a SAVE_EXPR, just make the operand addressable/not-readonly and
11633         let the common gimplifier code make and propagate a temporary copy.
11634         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
11635         out/in-out actuals and defer setting the addressable/readonly bits
11636         to the gimplifier.
11637
11638 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
11639
11640         PR ada/28591
11641         * decl.c (components_to_record): Defer emitting debug info for the
11642         record type associated with the variant until after we are sure to
11643         actually use it.
11644
11645 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
11646
11647         PR ada/21952
11648         * gigi.h (gnat_internal_attribute_table): Declare.
11649         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
11650         * utils.c (gnat_internal_attribute_table): New global variable.
11651         (builtin_function): Always call decl_attributes on the builtin.
11652         (handle_const_attribute): New static function.
11653         (handle_nothrow_attribute): Likewise.
11654
11655 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
11656
11657         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
11658
11659 2006-06-23  Olivier Hainque  <hainque@adacore.com>
11660
11661         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
11662         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
11663
11664 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
11665             Eric Botcazou  <ebotcazou@adacore.com>
11666
11667         PR ada/18692
11668         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
11669         check-gnat into check-acats.
11670
11671 2006-06-17  Karl Berry  <karl@gnu.org>
11672
11673         * gnat-style.texi (@dircategory): Use "Software development"
11674         instead of "Programming", following the Free Software Directory.
11675
11676 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11677
11678         PR ada/27944
11679         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
11680
11681 2006-06-06  Laurent GUERBY  <laurent@guerby.net>
11682
11683         PR ada/27769
11684         mlib-utl.adb: Use Program_Name.
11685
11686 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
11687
11688         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
11689         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
11690         trans.c, utils.c: Fix comment typos.  Follow spelling
11691         conventions.
11692         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
11693         conventions.
11694
11695 2006-05-19  Nicolas Setton  <setton@adacore.com>
11696
11697         * misc.c (gnat_dwarf_name): New function.
11698         (LANG_HOOKS_DWARF_NAME): Define to it.
11699
11700 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
11701
11702         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
11703         (ada/misc.o): Likewise.
11704         (ada/utils.o): Likewise.
11705
11706 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
11707
11708         * Makefile.in: Add Ada support for GNU/kFreeBSD.
11709         * s-osinte-kfreebsd-gnu.ads: New file.
11710
11711 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
11712
11713         * Make-lang.in: Rename docdir to gcc_docdir.
11714
11715 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
11716
11717         * gigi.h (get_ada_base_type): Delete.
11718         * utils2.c (get_ada_base_type): Likewise.
11719         * trans.c (convert_with_check): Operate in the real base type.
11720
11721 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11722
11723         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
11724
11725 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
11726
11727         * utils.c (create_var_decl): Use have_global_bss_p when deciding
11728         whether to make the decl common.
11729
11730 2006-02-20  Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
11731
11732         * Make-lang.in (Ada): Remove.
11733         (.PHONY): Remove Ada
11734
11735 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
11736
11737         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
11738         aggregate, check the interpretations of the other operand to find one
11739         that may be a boolean array.
11740
11741         (Analyze_Selected_Component): Fix flow-of-control typo in case where
11742         the prefix is a private extension.
11743
11744 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
11745
11746         PR ada/26315
11747         * utils2.c (find_common_type): If both input types are BLKmode and
11748         have the same constant size, keep using the first one.
11749
11750         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
11751
11752         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
11753
11754         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
11755
11756 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
11757
11758         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, 
11759         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
11760         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb, 
11761         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
11762         Abort_Defer/Undefer pairs to avoid the possibility of a task being
11763         aborted while owning a lock.
11764
11765 2006-02-17  Javier Miranda  <miranda@adacore.com>
11766             Robert Dewar  <dewar@adacore.com>
11767
11768         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
11769         through an access to class-wide interface we force the displacement of
11770         the pointer to the allocated object to reference the corresponding
11771         secondary dispatch table.
11772         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
11773         if Long_Shifts are supported on the target, even if 64 bit divides
11774         are not supported (configurable run time mode).
11775         (Expand_N_Type_Conversion): Do validity check if validity checks on
11776         operands are enabled.
11777         (Expand_N_Qualified_Expression): Do validity check if validity checks
11778         on operands are enabled.
11779
11780 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
11781
11782         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
11783         must be materialized when the renamed expression is an explicit
11784         dereference.
11785
11786 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
11787
11788         * freeze.adb (Statically_Discriminated_Components): Return false if
11789         the bounds of the type of the discriminant are not static expressions.
11790
11791         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
11792         the bounds of the discriminant type are not static.
11793
11794 2006-02-17  Robert Dewar  <dewar@adacore.com>
11795
11796         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
11797         then we close To if it is valid.
11798
11799 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
11800
11801         * init.c (facility_resignal_table): new array
11802         (__gnat_default_resignal_p): enhance default predicate to resignal if
11803         VMS condition has one of the predefined facility codes.
11804
11805 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
11806
11807         * Makefile.in: Use VMS64 specialized versions of several units in
11808         Interfaces.C hierarchy to be compatible with HP C default size choices.
11809         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
11810
11811 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
11812
11813         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
11814         instantiation, the corresponding entity is the related_instance of the
11815         wrapper package created for the instance.
11816
11817 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
11818
11819         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
11820         the current instance is nested within another instance in a child unit.
11821
11822 2006-02-17  Javier Miranda  <miranda@adacore.com>
11823             Ed Schonberg  <schonberg@adacore.com>
11824
11825         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
11826         type we cannot inherit the primitive operations; we inherit the
11827         Corresponding_Record_Type (which has the list of primitive operations).
11828         (Check_Anonymous_Access_Types): When creating anonymous access types for
11829         access components, use Rewrite in order to preserve the tree structure,
11830         for ASIS use.
11831         (Analyze_Object_Declaration): For limited types with access
11832         discriminants with defaults initialized by an aggregate, obtain
11833         subtype from aggregate as for other mutable types.
11834         (Derived_Type_Declaration): If the derived type is a limited interface,
11835         set the corresponding flag (Is_Limited_Record is not sufficient).
11836
11837 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
11838
11839         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
11840         to inline a function that returns an unconstrained type, the return
11841         expression must be the first variable declared in the body of the
11842         function.
11843
11844 2006-02-17  Javier Miranda  <miranda@adacore.com>
11845
11846         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
11847         abstract interface type, the static analysis is not enough to know if
11848         the interface is implemented or not by the source tagged type. Hence
11849         we must pass the work to the expander to generate the required code to
11850         evaluate the conversion at run-time.
11851         (Resolve_Equality_Op): Do not apply previous
11852         transformation if expansion is disasbled, to prevent anomalies when
11853         locating global references in a generic unit.
11854
11855 2006-02-17  Vincent Celier  <celier@adacore.com>
11856
11857         * snames.ads, snames.adb: New standard names for new project attributes:
11858         archive_builder, archive_indexer, compiler_pic_option,
11859         config_body_file_name, config_body_file_name_pattern,
11860         config_file_switches, config_file_unique, config_spec_file_name,
11861         config_spec_file_name_pattern, default_builder_switches,
11862         default_global_compiler_switches, default_language,
11863         dependency_file_kind, global_compiler_switches, include_path,
11864         include_path_file, language_kind, linker_executable_option,
11865         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
11866         roots, runtime_project.
11867
11868 2006-02-17  Matthew Heaney  <heaney@adacore.com>
11869
11870         * a-convec.ads, a-convec.adb: 
11871         (operator "&"): handle potential overflow for large index types
11872         (Insert): removed Contraint_Error when using large index types
11873         (Insert_Space): removed Constraint_Error for large index types
11874         (Length): moved constraint check from Length to Insert
11875
11876         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
11877         as not null access.
11878         Explicit raise statements now include an exception message.
11879         (operator "&"): handle potential overflow for large index types
11880         (Insert): removed Contraint_Error when using large index types
11881         (Insert_Space): removed Constraint_Error for large index types
11882         (Length): moved constraint check from Length to Insert
11883
11884 2006-02-17  Robert Dewar  <dewar@adacore.com>
11885
11886         * s-wchcnv.adb: Document handling of [ on output (we do not change
11887         this to ["5B"] and the new comments say why not.
11888
11889         * gnat_ugn.texi: 
11890         Add note for -gnatVo that this now includes the cases of type
11891         conversions and qualified expressions.
11892         Add comments on handling of brackets encoding for Text_IO
11893
11894 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
11895             Thomas Quinot  <quinot@adacore.com>
11896             Robert Dewar  <dewar@adacore.com>
11897             Javier Miranda  <miranda@adacore.com>
11898
11899         * expander.adb: Fix typo in comment
11900
11901         * exp_pakd.adb: Fix typo
11902         Minor comment reformatting.
11903
11904         * g-dyntab.adb: Minor reformatting
11905
11906         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
11907         aliased subprograms to look for the abstract interface subprogram.
11908
11909 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
11910
11911         * env.c (__gnat_setenv): Use size_t.
11912         (__gnat_unsetenv): Likewise.
11913         (__gnat_clearenv): Likewise.
11914
11915 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
11916
11917         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
11918
11919 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
11920
11921         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
11922         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
11923         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
11924         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
11925         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
11926         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
11927         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
11928         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
11929         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
11930         no longer used.
11931
11932 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
11933
11934         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
11935         protection against race conditions is not needed.
11936         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
11937         fallback handler.
11938         (Set_Specific_Handler): Add mutual exclusive access to the specific
11939         handler.
11940         (Specific_Handler): Add mutual exclusive access for retrieving the
11941         specific handler.
11942
11943         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
11944         back handler.
11945
11946         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
11947         Fall_Back_Handler and Specific_Handler.
11948
11949         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
11950         termination handlers.
11951         Set two different owerflow depending on the maximal stack size.
11952
11953         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
11954         protection against race conditions is not needed when executing the
11955         task termination handler.
11956
11957 2006-02-13  Robert Dewar  <dewar@adacore.com>
11958
11959         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
11960         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
11961         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
11962         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
11963         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
11964         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
11965         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
11966         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
11967         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
11968         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
11969         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
11970         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
11971         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
11972         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
11973         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
11974         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
11975         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
11976         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
11977         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
11978         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
11979         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
11980         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
11981         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
11982         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
11983         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
11984         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
11985         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
11986         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
11987         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
11988         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
11989         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
11990         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
11991         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
11992         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
11993         reformatting.
11994
11995 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
11996
11997         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
11998         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
11999         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
12000         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
12001         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
12002         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
12003         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
12004         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
12005         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
12006
12007 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
12008
12009         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads, 
12010         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads, 
12011         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads, 
12012         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads, 
12013         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads, 
12014         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
12015         replaced by anonymous access type.
12016         (pthread_sigmask): Now take an access sigset_t
12017
12018         * s-osinte-hpux.ads:  Ditto.
12019         (pthread_mutex_t, pthread_cond_t): Update definitions to support
12020         properly 32 and 64 bit ABIs.
12021
12022 2006-02-13  Pascal Obry  <obry@adacore.com>
12023
12024         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, 
12025         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb, 
12026         s-taprop-linux.adb, s-taprop-solaris.adb,
12027         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
12028         adjustement is already done when calling this routine.
12029
12030 2006-02-13  Pascal Obry  <obry@adacore.com>
12031
12032         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
12033         table to take advantage of the 16 priority levels available on Windows
12034         2000 and XP. On NT4 there are only 7 priority levels, this is properly
12035         supported by this new mapping.
12036
12037 2006-02-13  Nicolas Setton  <setton@adacore.com>
12038
12039         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
12040         (get_encoding): New subprogram. Extracts the encodings from an encoded
12041         Ada name.
12042
12043 2006-02-13  Pascal Obry  <obry@adacore.com>
12044             Nicolas Roche  <roche@adacore.com>
12045             Arnaud Charlet  <charlet@adacore.com>
12046
12047         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
12048         support.
12049         (__gnat_try_lock): Add unicode support by using a specific section on
12050         Windows.
12051         (__gnat_get_current_dir): Idem.
12052         (__gnat_open_read): Idem.
12053         (__gnat_open_rw): Idem.
12054         (__gnat_open_create): Idem.
12055         (__gnat_create_output_file): Idem.
12056         (__gnat_open_append): Idem.
12057         (__gnat_open_new): Idem.
12058         (__gnat_file_time_name): Idem.
12059         (__gnat_set_file_time_name): Idem.
12060         (__gnat_stat): Idem.
12061         (win32_no_block_spawn): Idem.
12062         (__gnat_locate_exec_on_path): Idem.
12063         (__gnat_opendir): New routine.
12064         (__gnat_closedir): Idem.
12065         (__gnat_readdir): Add new parameter length (pointer to int). Update
12066         implementation to use it and add specific Win32 code for Unicode
12067         support.
12068         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
12069         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
12070         (convert_addresses): Do not define this dummy routine on VMS.
12071
12072         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
12073         runtime Unicode support will be activated.
12074         (S2WS): String to Wide-String conversion. This version just copy a
12075         string in non Unicode version.
12076         (WS2S): Wide-String to String conversion. This version just copy a
12077         string in non Unicode version.
12078
12079         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
12080         (Open): Now import __gnat_opendir from adaint.c.
12081         (Read): Change the implementation to support unicode characters. It is
12082         not possible to use strlen() on Windows as this version supports only
12083         standard ASCII characters. So the length of the directory entry is now
12084         returned from the imported __gnat_readdir routine.
12085         Update copyright notice.
12086
12087         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
12088         (opendir): Moved to adaint.c.
12089
12090         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
12091         (Get_Directory): Fix wrong indexing.
12092         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
12093         __gnat_getenv from env.c
12094         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
12095         from env.c
12096
12097         * env.h, env.c: New file.
12098
12099         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
12100         adaint.c by __gnat_getenv from env.c
12101
12102         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
12103         adaint.c by __gnat_getenv from env.c
12104
12105         * Make-lang.in: Add env.o in the list of C object needed by gnat1
12106         and gnatbind.
12107         Update dependencies.
12108
12109 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12110             Olivier Hainque  <hainque@adacore.com>
12111             Eric Botcazou  <ebotcazou@adacore.com>
12112
12113         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
12114         
12115         * gigi.h (value_factor_p): Add prototype and description, now public.
12116
12117         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
12118         promotion for field with rep clause if the associated size was proven
12119         to be in error.
12120         Expand comments describing attempts to use a packable type.
12121         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
12122         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
12123         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
12124         necessary since these are not different types and pointers may
12125         actually designate any subtype in this hierarchy.
12126         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
12127         discriminants but put them into record only if not Unchecked_Union;
12128         pass flag to components_to_record showing Unchecked_Union.
12129         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
12130         components before variants; don't set TYPE_UNCHECKED_UNION_P.
12131         (components_to_record): New argument UNCHECKED_UNION.
12132         Remove special case code for Unchecked_Union and instead use main code
12133         with small changes.
12134
12135         PR ada/26096
12136         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
12137         variable with the expression being built, only its inner field.
12138
12139         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
12140         emit_sequence_entry_statements.
12141         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
12142         (establish_gnat_vms_condition_handler): Move before
12143         Subprogram_Body_to_gnu.
12144         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
12145         for a subprogram if it has a foreign convention or is exported.
12146         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
12147         substituted for a CONST_DECL.
12148         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
12149         Etype to assoc_to_constructor.
12150         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
12151         discriminants of Unchecked_Union.
12152         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
12153         don't need cluttering preprocessor directives.
12154         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
12155         condition handler as current in the compiled function.
12156         (body_with_handlers_p): New function. Tell whether a given sequence of
12157         statements node is attached to a package or subprogram body and involves
12158         exception handlers possibly nested within inner block statements.
12159         (emit_sequence_entry_statements): New function, to emit special
12160         statements on entry of sequences when necessary. Establish GNAT
12161         condition handler in the proper cases for VMS.
12162         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
12163         emit_sequence_entry_statements.
12164
12165         * utils2.c (find_common_type): If both input types are BLKmode and
12166         have a constant size, use the smaller one.
12167         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
12168         the same.
12169
12170         * utils.c (value_factor_p): Make public, to allow uses from other gigi
12171         units.
12172         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
12173         (convert, case UNION_TYPE): Remove special treatment for unchecked
12174         unions.
12175
12176         PR ada/18659
12177         (update_pointer_to): Update variants of pointer types to unconstrained
12178         arrays by attaching the list of fields of the main variant.
12179
12180 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
12181             Robert Dewar  <dewar@adacore.com>
12182
12183         * a-exexpr.adb, a-exexpr-gcc.adb
12184         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
12185         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
12186         Remove code unused for exception propagation for the compiler itself
12187         from a-except.adb and update to still share separate packages.
12188
12189         * a-except.ads, a-except.adb: Ditto.
12190         Add comments that this version is now used only by the compiler and
12191         other basic tools. The full version that includes the Ada 2005 stuff
12192         is in separate files a-except-2005.ads/adb. The reason is that we do
12193         not want to cause bootstrap problems with compilers not recognizing
12194         Wide_Wide_String.
12195         Add exception reason code PE_Implicit_Return
12196         Add new exception reason code (Null Exception_Id)
12197
12198         * a-except-2005.adb, a-except-2005.ads: New files.
12199
12200         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
12201
12202         * s-wchcon.adb: New file.
12203
12204         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
12205         (traceback.o deps): Likewise.
12206         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
12207         Activate build of GMEM instrumentation library on VMS targets.
12208         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
12209         Use a-except-2005.ads/adb for all run-time library builds unless
12210         specified otherwise.
12211         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
12212         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
12213         Use s-parame.adb on all native platforms.
12214         Use s-parame-vxworks.adb on all vxworks platforms.
12215         Add env.c env.h in LIBGNAT_SRCS
12216         Add env.o in LIBGNAT_OBJS
12217         (GNATMAKE_OBJS): Remove ctrl_c.o object.
12218         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
12219         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
12220         supports VxWorks 6 RTPs.
12221         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
12222         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
12223
12224         * types.h, types.ads (Terminate_Program): New exception
12225         Add comment on modifying multiple versions of a-except.adb when the
12226         table of exception reasons is modified.
12227         Add exception reason code PE_Implicit_Return
12228         Add new exception reason code (Null Exception_Id)
12229
12230         * clean.adb (Initialize): Get the target parameters before checking
12231         if target is OpenVMS. Move the OpenVMS specific code here from package
12232         body elaboration code.
12233
12234 2006-02-13  Thomas Quinot  <quinot@adacore.com>
12235             Vincent Celier  <celier@adacore.com>
12236             Robert Dewar  <dewar@adacore.com>
12237
12238         * ali-util.adb (Get_File_Checksum): Update to account for change in
12239         profile of Initialize_Scanner.
12240
12241         * gprep.adb (Gnatprep): Update to account for change in profile of
12242         Initialize_Scanner.
12243         (Process_One_File): Same.
12244
12245         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
12246         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
12247         that behaviour using the new Unit information recorded in the source
12248         files table, rather than going through all units every time.
12249         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
12250         (Get_Source_Unit): Same.
12251
12252         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
12253         change in profile of Initialize_Scanner.
12254         (Prepare_To_Preprocess): Same.
12255
12256         * lib.ads: Fix typo in comment (templace -> template).
12257
12258         * prj-part.adb (Parse_Single_Project): Update to account for change in
12259         profile of Initialize_Scanner.
12260
12261         * scn.adb (Initialize_Scanner): Account for change in profile of
12262         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
12263         Also record the association of the given Source_File_Index to the
12264         corresponding Unit_Number_Type.
12265
12266         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
12267         procedure.
12268         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
12269         Remove Unit formal for generic scanner: this formal
12270         is only relevant to Scn (the scanner instance used to parse Ada source
12271         files), not to other instances. Update comment accordingly.
12272         (Scan): Use new function Snames.Is_Keyword_Name.
12273
12274         * sinfo-cn.adb: Fix typo in comment.
12275
12276         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
12277         Unit.
12278
12279         * sinput.ads (Source_File_Record): New component Unit, used to capture
12280         the unit identifier (if any) associated to a source file.
12281
12282         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
12283         Unit in Source_File_Record.
12284
12285         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
12286         in profile of Initialize_Scanner.
12287
12288         * scans.adb (Initialize_Ada_Keywords): New procedure
12289
12290         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
12291         Ada keywords in the Namet table, without the need to call
12292         Initialize_Scanner.
12293
12294         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
12295         (Is_Keyword_Name): New function
12296
12297         * snames.ads: Add subtype Configuration_Pragma_Names
12298         Add pragma Ada_2005 (synonym for Ada_05)
12299         (Is_Keyword_Name): New function
12300
12301         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
12302
12303 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
12304
12305         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
12306         index.
12307
12308         * a-stwima.adb (To_Set): Add extra check when N = 0.
12309
12310         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
12311
12312 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
12313
12314         * s-parame-mingw.adb, s-parame-linux.adb,
12315         s-parame-solaris.adb: Removed, replaced by s-parame.adb
12316
12317         * s-parame-vxworks.ads: Fix typo.
12318
12319         * s-parame-vxworks.adb: New file.
12320
12321         * s-parame.adb: Version now used by all native platforms.
12322         (Default_Stack_Size): Use 2 megs for default stack size and use
12323         __gl_default_stack_size when available.
12324         (Minimum_Stack_Size): Use 12K.
12325
12326         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
12327         (Create_Task): Refine implementation taking advantage of the XP stack
12328         size support. On XP, we now create the thread using the flag
12329         STACK_SIZE_PARAM_IS_A_RESERVATION.
12330
12331         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
12332
12333         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
12334         XP and 0 on older Windows versions.
12335
12336         * interfac-vms.ads: Removed, no longer used.
12337
12338 2006-02-13  Matthew Heaney  <heaney@adacore.com>
12339
12340         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb, 
12341         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb, 
12342         a-cohase.adb: All explicit raise statements now include an exception
12343         message.
12344
12345         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
12346         (Update_Element_Preserving_Key): renamed op to just Update_Element.
12347         Explicit raise statements now include an exception message
12348
12349         * a-cihase.ads, a-cohase.ads: Removed comment.
12350
12351         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
12352         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
12353         a-szbzha.adb, a-szfzha.ads: New files.
12354
12355 2006-02-13  Matthew Heaney  <heaney@adacore.com>
12356
12357         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
12358         quicksort.
12359
12360 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
12361
12362         * lang.opt: Wvariadic-macros: New option.
12363         Wold-style-definition: Likewise.
12364         Wmissing-format-attribute: Likewise.
12365
12366         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
12367         -Wold-style-definition and -Wmissing-format-attribute.
12368
12369 2006-02-13  Robert Dewar  <dewar@adacore.com>
12370
12371         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
12372
12373         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
12374
12375 2006-02-13  Nicolas Roche  <roche@adacore.com>
12376
12377         * a-envvar.adb, a-envvar.ads: New files.
12378
12379 2006-02-13  Douglas Rupp  <rupp@adacore.com>
12380
12381         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
12382
12383         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
12384
12385 2006-02-13  Pat Rogers  <rogers@adacore.com>
12386
12387         * a-rttiev.adb, a-rttiev.ads: New files.
12388
12389 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
12390
12391         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
12392         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
12393
12394         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
12395
12396 2006-02-13  Robert Dewar  <dewar@adacore.com>
12397
12398         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb, 
12399         sem_case.adb: Minor code reorganization (not Present should be No)
12400
12401 2006-02-13  Geert Bosch  <bosch@adacore.com>
12402             Gary Dismukes  <dismukes@adacore.com>
12403
12404         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
12405         0, since the lower bound of the actual string may be greater than one.
12406
12407         PR ada/20753
12408         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
12409         layout is requested.
12410
12411 2006-02-13  Vincent Celier  <celier@adacore.com>
12412
12413         * back_end.adb (Scan_Compiler_Arguments): Check if
12414         Search_Directory_Present is True and, if it is, add the argument in
12415         the source search directory path.
12416
12417         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
12418         Search_Directory_Present to True.
12419
12420 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
12421
12422         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
12423         volatile, to tell the compiler to preserve this variable at any level
12424         of optimization.
12425         (Gen_Versions_Ada): Temporarily work around codegen bug.
12426
12427 2006-02-13  Vincent Celier  <celier@adacore.com>
12428
12429         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
12430         gcc to link with option -shared-libgcc.
12431         (Gnatlink): Remove duplicate switches -shared-libgcc
12432
12433 2006-02-13  Robert Dewar  <dewar@adacore.com>
12434
12435         * gnatvsn.ads (Current_Year): New constant, used to easily update
12436         copyright on all GNAT tools.
12437
12438         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
12439         copyright notice.
12440
12441 2006-02-13  Robert Dewar  <dewar@adacore.com>
12442
12443         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
12444         after hyphen (small aesthetic change useful for a range of numbers
12445         using ^-^.
12446         Suppress range checks for a couple of assignments which otherwise
12447         cause validity checks with validity checking turned on.
12448
12449         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
12450         Improvement in error message for object.
12451         (Rep_Item_Too_Late): Remove '!' in warning message.
12452
12453 2006-02-13  Robert Dewar  <dewar@adacore.com>
12454             Eric Botcazou  <ebotcazou@adacore.com>
12455
12456         * err_vars.ads: Suppress range checks for a couple of assignments
12457         which otherwise cause validity checks with validity checking turned on.
12458         Update comments.
12459
12460         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
12461         Make message unconditional if it is a warning.
12462         (Error_Msg_NEL): Always output warning messages.
12463         Suppress range checks for a couple of assignments which otherwise
12464         cause validity checks with validity checking turned on.
12465
12466         * errout.ads (Message Insertion Characters): Document that '!' is
12467         implied by '?' in error messages.
12468
12469         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
12470         (Gnat1drv): Use a goto to end of main subprogram instead of
12471         Exit_Program (E_Success) so that finalization can occur normally.
12472
12473 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
12474
12475         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
12476         wrapped around.
12477
12478 2006-02-13  Vincent Celier  <celier@adacore.com>
12479
12480         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
12481         Unchecked_Conversion functions.
12482         (Modification_Time): Use direct conversion of OS_Time to Calendar time
12483         when OpenVMS returns False.
12484
12485         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
12486         a-dirval.adb (OpenVMS): New Boolean function
12487
12488 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
12489             Thomas Quinot  <quinot@adacore.com>
12490
12491         * checks.adb (Build_Discriminant_Checks): If the expression being
12492         checks is an aggregate retrieve the values of its discriminants to
12493         generate the check, rather than creating a temporary and a reference
12494         to it.
12495         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
12496         (Install_Null_Excluding_Check): Ditto
12497         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
12498         not for the renamed object, so that the actual itype is attached in the
12499         proper context.
12500
12501 2006-02-13  Robert Dewar  <dewar@adacore.com>
12502             Vincent Celier  <celier@adacore.com>
12503
12504         * debug.adb: Eliminate numeric switches for binder/gnatmake
12505
12506         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
12507         switches for the compiler.
12508         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
12509         (Scan_Make_Switches): When failing with an illegal switch, output an
12510         error message with the full switch.
12511         Eliminate numeric switches for binder/gnatmake
12512
12513         * switch.ads, switch.adb (Bad_Switch): New procedure
12514
12515         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
12516         Remove 0-9 as debug flag character possibilities
12517         -d is now controlling the primary stack size when its value is a
12518         positive. Also add checks against invalid values, and support for kb,
12519         mb. Ditto for -D switch.
12520
12521 2006-02-13  Robert Dewar  <dewar@adacore.com>
12522             Serguei Rybin  <rybin@adacore.com>
12523
12524         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
12525         save/restore routines.
12526         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
12527         were not always properly handled previously.
12528         Since we are changing the tree format anyway, also get rid of the
12529         junk obsolete Immediate_Errors flag.
12530         (Tree_Read): Change the way of reading Tree_Version_String - now we
12531         read the version string from the tree even if its length is not the
12532         same as the length of the version string computed from Gnatvsn.
12533         (Search_Directory_Present): New Boolean flag for the compiler.
12534         Define Tree_Version_String as a dynamic string.
12535         (Default_Stack_Size): new variable, used to handle switch -d.
12536
12537         * par-prag.adb: 
12538         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
12539         only for main unit.
12540         Add pragma Ada_2005 (synonym for Ada_05)
12541         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
12542         were not always properly handled previously.
12543
12544         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
12545         explicit Ada_95 to Ada_2005.
12546
12547 2006-02-13  Javier Miranda  <miranda@adacore.com>
12548             Robert Dewar  <dewar@adacore.com>
12549             Ed Schonberg  <schonberg@adacore.com>
12550
12551         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
12552         against errors in the source program: a private types for which the
12553         corresponding full type declaration is missing and pragma CPP_Virtual
12554         is used.
12555         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
12556         (Is_Known_Null): New flag
12557         (Has_Pragma_Pure): New flag
12558         (No_Return): Present in all entities, set only for procedures
12559         (Is_Limited_Type): A type whose ancestor is an interface is limited if
12560         explicitly declared limited.
12561         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
12562         entities. Only used for component marked Is_Tag. If present it stores
12563         the Offset_To_Top function used to provide this value in tagged types
12564         whose ancestor has discriminants.
12565
12566         * exp_ch2.adb: Update status of new Is_Known_Null flag
12567
12568         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
12569
12570         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
12571         the categorization sense if Is_Pure was set by pragma Pure_Function.
12572
12573 2006-02-13  Quentin Ochem  <ochem@adacore.com>
12574             Olivier Hainque  <hainque@adacore.com>
12575
12576         * bindusg.adb: Updated documentation for -d and -D switches.
12577
12578         * raise.h (__gnat_set_globals): added new parameter for
12579         Default_Stack_Size.
12580
12581         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
12582         (__gnat_handle_vms_condition): Adjust context before raise.
12583         (__gnat_install_handler): Restore the global vector setup for GCC
12584         versions before 3.4, as the frame based circtuitry is not available
12585         in this case.
12586         (__gnat_set_globals): added a parameter default_stack_size
12587         (__gl_default_stack_size): new variable.
12588
12589 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
12590
12591         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
12592         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
12593         does not exist in the Ada RM.
12594         (Compatible_Int_Bounds): Determine whether two integer range bounds
12595         are of equal length and have the same start and end values.
12596         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
12597         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
12598         aggregate when it is part of an object declaration.
12599         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
12600         constrains discriminants of its parent, add explicitly the discriminant
12601         constraints of the ancestor by retrieving them from the
12602         stored_constraint of the parent.
12603
12604 2006-02-13  Robert Dewar  <dewar@adacore.com>
12605
12606         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
12607         attribute Mechanism_Code is applied to renamed subprogram, modify
12608         prefix to point to base subprogram.
12609         Max/Min attributes now violate Restriction No_Implicit_Conditionals
12610
12611         * sinfo.ads: Document that Mechanism_Code cannot be applied to
12612         renamed subprograms so that the front-end must replace the prefix
12613         appropriately.
12614
12615 2006-02-13  Javier Miranda  <miranda@adacore.com>
12616             Gary Dismukes  <dismukes@adacore.com>
12617
12618         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
12619         availability of RE_Interface_Tag.
12620         (Build_Initialization_Call): Fix wrong access to the discriminant value.
12621         (Freeze_Record_Type): Do not generate the tables associated with
12622         timed and conditional dispatching calls through synchronized
12623         interfaces if compiling under No_Dispatching_Calls restriction.
12624         When compiling for Ada 2005, for a nonabstract
12625         type with a null extension, call Make_Controlling_Function_Wrappers
12626         and insert the wrapper function declarations and bodies (the latter
12627         being appended as freeze actions).
12628         (Predefined_Primitive_Bodies): Do not generate the bodies of the
12629         predefined primitives associated with timed and conditional
12630         dispatching calls through synchronized interfaces if we are
12631         compiling under No_Dispatching_Calls.
12632         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
12633         service is available before generating a call.
12634         (Make_Controlling_Function_Wrappers): New procedure.
12635         (Expand_N_Full_Type_Declaration): Create a class-wide master for
12636         access-to-limited-interfaces because they can be used to reference
12637         tasks that implement such limited interface.
12638         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
12639         procedure spec and body of the Offset_To_Top function that is generated
12640         when the parent of a type with discriminants has secondary dispatch
12641         tables.
12642         (Init_Secondary_Tags): Handle the case in which the parent of the type
12643         containing secondary dispatch tables has discriminants to generate the
12644         correct arguments to call Set_Offset_To_Top.
12645         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
12646
12647         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
12648         Add Wide_[Wide_]Expanded_Name.
12649         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
12650         the same functionality of Get_Prim_Op_Address but applied to predefined
12651         primitive operations because the pointers to the predefined primitives
12652         are now saved in a separate table.
12653         (Parent_Size): Modified to get access to the separate table of primitive
12654         operations or the parent type.
12655         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
12656         functionality of Set_Prim_Op_Address but applied to predefined primitive
12657         operations.
12658         (Set_Signature): New subprogram used to store the signature of a DT.
12659         (Displace): If the Offset_To_Top value is not static then call the
12660         function generated by the expander to get such value; otherwise use
12661         the value stored in the table of interfaces.
12662         (Offset_To_Top): The type of the actual has been changed to Address to
12663         give the correct support to tagged types with discriminants. In this
12664         case this value is stored just immediately after the tag field.
12665         (Set_Offset_To_Top): Two new formals have been added to indicate if the
12666         offset_to_top value is static and hence pass this value to the run-time
12667         to store it in the table of interfaces, or else if this value is dynamic
12668         and then pass to the run-time the address of a function that is
12669         generated by the expander to provide this value for each object of the
12670         type.
12671
12672         * rtsfind.ads (Default_Prin_Op_Count): Removed.
12673         (Default_Prim_Op_Count): New entity
12674         (Get_Predefined_Prim_Op_Address): New entity
12675         (Set_Predefined_Prim_Op_Address): New entity
12676         (RE_Set_Signature): New entity
12677
12678 2006-02-13  Thomas Quinot  <quinot@adacore.com>
12679             Ed Schonberg  <schonberg@adacore.com>
12680
12681         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
12682         Make_Adjust_Call done for a newly-allocated object.
12683
12684         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
12685         in a subprogram are wrapped in a cleanup block, indicate that the
12686         subprogram contains an inner block with an exception handler.
12687         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
12688         Adjust call is for a newly-allocated object. In that case we must not
12689         assume that the finalization list chain pointers are correct (since they
12690         come from a bit-for-bit copy of the original object's pointers) so if
12691         the attach level would otherwise be zero (no change), we set it to 4
12692         instead to cause the pointers to be reset to null.
12693
12694         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
12695         reset chain pointers to null.
12696
12697 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
12698
12699         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
12700         string, and the context requires a loop for the assignment (e.g.
12701         because the left-hand side is packed), generate a unique name for the
12702         temporary that holds the string, to prevent spurious name clashes.
12703
12704 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
12705             Javier Miranda  <miranda@adacore.com>
12706             Robert Dewar  <dewar@adacore.com>
12707             Gary Dismukes  <dismukes@adacore.com>
12708
12709         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
12710         return unconstrained arrays.
12711         Update comments.
12712         (Expand_Call):  An indirect call through an access parameter of a
12713         protected operation is not a protected call.
12714         Add circuit to raise CE in Ada 2005 mode following call
12715         to Raise_Exception.
12716         (Register_DT_Entry): Do nothing if
12717         the run-time does not give support to abstract interfaces.
12718         (Freeze_Subprogram): In case of dispatching operations, do not generate
12719         code to register the operation in the dispatch table if the source
12720         is compiled with No_Dispatching_Calls.
12721         (Register_Predefined_DT_Entry): Generate code that calls the new
12722         run-time subprogram Set_Predefined_Prim_Op_Address instead of
12723         Set_Prim_Op_Address.
12724
12725         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
12726         on array assignments if the right-hand side is a function call that has
12727         been inlined. Check is performed on the assignment in the block.
12728         (Process_Bounds): If bounds and range are overloaded, apply preference
12729         rule for root operations to disambiguate, and diagnose true ambiguity.
12730         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
12731         a tag-indeterminate right-hand side even when Expander_Active is True.
12732         Needed to ensure that dispatching calls to T'Input are allowed and
12733         get the tag of the target class-wide object.
12734
12735         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
12736         an inherited primitive operation that already overrides several
12737         abstract interface primitives. For transitivity, the new entity must
12738         also override all the abstract interface primitives covered by the
12739         inherited overriden primitive.
12740         Emit warning if new entity differs from homograph in same scope only in
12741         that one has an access parameter and the other one has a parameter of
12742         a general access type with the same designated type, at the same
12743         position in the signature.
12744         (Make_Inequality_Operator): Use source locations of parameters and
12745         subtype marks from corresponding equality operator when creating the
12746         tree structure for the implicit declaration of "/=". This does not
12747         change anything in behaviour except that the decoration of the
12748         components of the subtree created for "/=" allows ASIS to get the
12749         string images of the corresponding identifiers.
12750         (Analyze_Return_Statement): Remove '!' in warning message.
12751         (Check_Statement_Sequence): Likewise.
12752         (Analyze_Subprogram_Body): For an access parameter whose designated type
12753         is an incomplete type imported through a limited_with clause, use the
12754         type of the corresponding formal in the body.
12755         (Check_Returns): Implicit return in No_Return procedure now raises
12756         Program_Error with a compile time warning, instead of beging illegal.
12757         (Has_Single_Return):  Function returning unconstrained type cannot be
12758         inlined if expression in unique return statement is not an identifier.
12759         (Build_Body_To_Inline): It is possible to inline a function call that
12760         returns an unconstrained type if all return statements in the function
12761         return the same local variable. Subsidiary procedure Has_Single_Return
12762         verifies that the body conforms to this restriction.
12763
12764         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
12765         same type, and  one of them is of an anonymous access type, convert
12766         the other operand to it, so that this is a valid binary operation for
12767         gigi.
12768         (Resolve_Type_Conversion): Handle subtypes of protected types and
12769         task types when accessing to the corresponding record type.
12770         (Resolve_Allocator): Add '\' in 2-line warning message.
12771         Remove '!' in warning message.
12772         (Resolve_Call): Add '\' in 2-line warning message.
12773         (Valid_Conversion): Likewise.
12774         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
12775         resulting type may be an access type with an implicit dereference.
12776         Obtain the proper component from the designated type.
12777         (Make_Call_Into_Operator): Handle properly a call to predefined equality
12778         given by an expanded name with prefix Standard, when the operands are
12779         of an anonymous access type.
12780         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
12781         Explicit_Dereference and Resolve_Selected_Component, to verify that the
12782         prefix of the expression is not of an incomplete type. Allows full
12783         diagnoses of all semantic errors.
12784         (Resolve_Actuals): If the actual is an allocator whose directly
12785         designated type is a class-wide interface we build an anonymous
12786         access type to use it as the type of the allocator. Later, when
12787         the subprogram call is expanded, if the interface has a secondary
12788         dispatch table the expander will add a type conversion to force
12789         the displacement of the pointer.
12790         (Resolve_Call): If a function that returns an unconstrained type is
12791         marked Inlined_Always and inlined, the call will be inlined and does
12792         not require the creation of a transient scope.
12793         (Check_Direct_Boolean_Op): Removed
12794         (Resolve_Comparison_Op): Remove call to above
12795         (Resolve_Equality_Op): Remove call to above
12796         (Resolve_Logical_Op): Inline above, since this is only call.
12797         (Valid_Conversion): Handle properly conversions between arrays of
12798         convertible anonymous access types.
12799
12800         PR ada/25885
12801         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
12802         the literal in an unchecked conversion, because GCC 4.x needs a static
12803         value for a string bound.
12804
12805 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
12806             Hristian Kirtchev  <kirtchev@adacore.com>
12807
12808         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
12809         components of the corresponding record, take into account component
12810         definitions that are access definitions.
12811         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
12812         procedure is not considered a dispatching call and will be expanded
12813         properly.
12814
12815 2006-02-13  Javier Miranda  <miranda@adacore.com>
12816
12817         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
12818         controlling argument of the dispatching call is an abstract interface
12819         class-wide type then we use it directly.
12820         Check No_Dispatching_Calls restriction.
12821         (Default_Prim_Op_Position): Remove the code that looks for the last
12822         entity in the list of aliased subprograms. This code was wrong in
12823         case of renamings.
12824         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
12825         when the source is compiled with the No_Dispatching_Calls restriction.
12826         (Init_Predefined_Interface_Primitives): No need to inherit primitives
12827         if we are compiling with restriction No_Dispatching_Calls.
12828         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
12829         subprograms if we are compiling under No_Dispatching_Calls restriction.
12830         (Make_DT): Generate a dispatch table with a single dummy entry if
12831         we are compiling with the No_Dispatching_Calls restriction. In
12832         addition, in this case we don't generate code that calls to the
12833         following run-time subprograms: Set_Type_Kind, Inherit_DT.
12834         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
12835         of this subprogram if compiling with the No_Dispatching_Calls
12836         restriction.
12837         (Expand_Type_Conversion): Instead of using the actual parameter,
12838         the argument passed as parameter to the conversion function was
12839         erroneously referenced by the expander.
12840         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
12841         Set_Predefined_Primitive_Op_Address and Set_Signature.
12842         (Expand_Dispatching_Call): Generate call to
12843         Get_Predefined_Prim_Op_Address for predefined primitives.
12844         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
12845         predefined primitives.
12846         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
12847         primitives we reserve one dummy entry to ensure that the tag does not
12848         point to some memory that is associated with some other object. In
12849         addition, remove all the old code that generated the assignments
12850         associated with the signature of the dispatch table and replace them
12851         by a call to the new subprogram Set_Signature.
12852         (Set_All_DT_Position): Change the algorithm because now we have a
12853         separate dispatch table associated with predefined primitive operations.
12854         (Expand_Interface_Conversion): In case of non-static offset_to_top
12855         add explicit dereference to get access to the object after the call
12856         to displace the pointer to the object.
12857         (Expand_Interface_Thunk): Modify the generation of the actual used
12858         in the calls to the run-time function Offset_To_Top to fulfil its
12859         new interface.
12860         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
12861
12862 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
12863
12864         * exp_dist.adb (Copy_Specification): For access parameters, copy
12865         Null_Exclusion flag, which will have been set for stream subprograms
12866         in Ada2005 mode.
12867
12868 2006-02-13  Pascal Obry  <obry@adacore.com>
12869
12870         * expect.c (__gnat_expect_portable_execvp): New implementation. The
12871         previous implementation was using the C runtime spawnve routine but
12872         the corresponding wait was using directly the Win32 API. This was
12873         causing some times a lock when waiting for an event using
12874         WaitForSingleObject in __gnat_waitpid. This new implementation uses
12875         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
12876         API fixes this problem.
12877
12878 2006-02-13  Robert Dewar  <dewar@adacore.com>
12879
12880         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
12881         call.
12882
12883 2006-02-13  Thomas Quinot  <quinot@adacore.com>
12884
12885         * exp_pakd.ads: Fix typos in comments.
12886
12887         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
12888         array reference that is an explicit dereference, mark the converted
12889         (packed) array reference as analyzed to prevent a forthcoming
12890         reanalysis from resetting its type to the original (non-packed) array
12891         type.
12892
12893 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
12894             Javier Miranda  <miranda@adacore.com>
12895             Eric Botcazou  <ebotcazou@adacore.com>
12896
12897         * exp_util.ads, exp_util.adb (Find_Prim_Op,
12898         Is_Predefined_Primitive_Operation): When
12899         searching for the predefined equality operator, verify that operands
12900         have the same type.
12901         (Is_Predefined_Dispatching_Operation): Remove the code that looks
12902         for the last entity in the list of aliased subprograms. This code
12903         was wrong in case of renamings.
12904         (Set_Renamed_Subprogram): New procedure
12905         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
12906         Exp_Type constant computed when entering this subprogram.
12907         (Known_Null): New function
12908         (OK_To_Do_Constant_Replacement): New function
12909         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
12910         (Side_Effect_Free): An attribute reference 'Input is not free of
12911         side effect, unlike other attributes that are functions. (from code
12912         reading).
12913         (Remove_Side_Effects): Expressions that involve packed arrays or records
12914         are copied at the point of reference, and therefore must be marked as
12915         renamings of objects.
12916         (Is_Predefined_Dispatching_Operation): Return false if the operation is
12917         not a dispatching operation.
12918
12919         PR ada/18819
12920         (Remove_Side_Effects): Lift enclosing type conversion nodes for
12921         elementary types in all cases.
12922
12923 2006-02-13  Javier Miranda  <miranda@adacore.com>
12924
12925         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
12926         task types when accessing to the corresponding record type.
12927         Remove '!' in warning message.
12928
12929 2006-02-13  Olivier Hainque  <hainque@adacore.com>
12930
12931         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
12932         to avoid useless and space inefficient overalignments on targets where
12933         Max_Alignment is larger than 16.
12934
12935 2006-02-13  Pascal Obry  <obry@adacore.com>
12936
12937         * g-catiio.adb (Sec_Number): New type used to compute the number of
12938         seconds since 1-1-1970.
12939         (Image) [Natural]: The parameter was an Integer, as we can't deal with
12940         negative numbers (years, months...) it is better to have a Natural here.
12941         Code clean-up.
12942         (Image) [Number]: Change parameter from Long_Integer to Number.
12943         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
12944         overflow for dates past year 2038.
12945
12946 2006-02-13  Matthew Heaney  <heaney@adacore.com>
12947
12948         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
12949         Constraint_Error.
12950
12951 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
12952
12953         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
12954         native platforms.
12955         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
12956         finalization can occur normally.
12957
12958 2006-02-13  Vincent Celier  <celier@adacore.com>
12959
12960         * gnatcmd.adb (Rules_Switches): New table
12961         (Add_To_Rules_Switches): New procedure
12962         (GNATCmd): For command CHECK, put all options following "-rules" in the
12963         Rules_Switches table. Append these -rules switches after the -cargs
12964         switches.
12965
12966 2006-02-13  Robert Dewar  <dewar@adacore.com>
12967
12968         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
12969         These two cases were generating incorrect output, and if this unit
12970         was built with checks on, generated a discriminant mismatch constraint
12971         error.
12972
12973 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
12974             Robert Dewar  <dewar@adacore.com>
12975
12976         * lib-xref.adb (Get_Type_Reference): For a private type whose full
12977         view is an array type, indicate the component type as well, for
12978         navigation purposes.
12979         (Generate_Reference): Don't consider array ref on LHS to be a case
12980         of violating pragma Unreferenced.
12981         Do not give Ada 2005 warning except on real reference.
12982
12983 2006-02-13  Vincent Celier  <celier@adacore.com>
12984
12985         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
12986         main source, add switch -mdebug-main=_ada_ so that the executable can
12987         be debugged by the standard VMS debugger.
12988         (Gnatmake): Set No_Main_Subprogram to True when there is no main
12989         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
12990         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
12991         of the last source, as the binding and linking phases are never
12992         performed.
12993         Set all executable obsolete when rebuilding a library.
12994
12995         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
12996         options.
12997
12998 2006-02-13  Javier Miranda  <miranda@adacore.com>
12999
13000         PR ada/23973
13001         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
13002         code to improve the error message reported when the program has
13003         declarations of abstract interface types and it is not compiled with
13004         the -gnat05 switch.
13005         (P_Access_Definition): Reorganize the code to improve the error
13006         message reported when the new Ada 2005 syntax for anonymous
13007         access types is used and the program is not compiled with the
13008         -gnat05 switch.
13009
13010 2006-02-13  Robert Dewar  <dewar@adacore.com>
13011
13012         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
13013         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
13014         (MODE_IN)
13015
13016 2006-02-13  Javier Miranda  <miranda@adacore.com>
13017
13018         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
13019         against source containing syntax errors.
13020
13021 2006-02-13  Vincent Celier  <celier@adacore.com>
13022
13023         * prj.adb (Reset): Initialize the first element of table Namings with
13024         the standard naming data.
13025
13026 2006-02-13  Vincent Celier  <celier@adacore.com>
13027
13028         * prj.ads (Error_Warning): New enumeration type
13029
13030         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
13031         unknown, use the location of the project to report the error.
13032         (When_No_Sources): New global variable
13033         (Report_No_Ada_Sources): New procedure
13034         (Check): New parameter When_No_Sources. Set value of global variable
13035         When_No_Sources,
13036         (Find_Sources): Call Report_No_Ada_Sources when appropriate
13037         (Get_Sources_From_File): Ditto
13038         (Warn_If_Not_Sources): Better warning messages indicating the unit name
13039         and the file name.
13040
13041         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
13042         Call Prj.Proc.Process with parameter When_No_Sources.
13043
13044         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
13045         Call Recursive_Check with parameter When_No_Sources.
13046         (Recursive_Check): New parameter When_No_Sources. Call itself and
13047         Prj.Nmsc.Check with parameter When_No_Sources.
13048         (Process): New parameter When_No_Sources. Call Check with parameter
13049         When_No_Sources.
13050         (Copy_Package_Declarations): New procedure to copy renamed parameters
13051         and setting the location of the declared attributes to the location
13052         of the renamed package.
13053         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
13054         packages.
13055
13056 2006-02-13  Vincent Celier  <celier@adacore.com>
13057
13058         * prj-makr.adb (Make): Preserve the comments from the original project
13059         file.
13060         When removing nodes (attributes Source_Dirs, Source_Files,
13061         Source_List_File and package Naming), save the comments and attach the
13062         saved comments to the newly created nodes.
13063         Do not add a with clause for the naming package if one already exists.
13064
13065 2006-02-13  Javier Miranda  <miranda@adacore.com>
13066             Gary Dismukes  <dismukes@adacore.com>
13067             Robert Dewar  <dewar@adacore.com>
13068
13069         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
13070
13071         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
13072         aliased entities to look for the overriden abstract interface
13073         subprogram.
13074         (Is_Interface_Subprogram): Complete documentation.
13075         (Check_Dispatching_Operation): Do not generate code to register the
13076         operation in the dispatch table if the source is compiled with
13077         restriction No_Dispatching_Calls.
13078         (Override_Dispatching_Operation): Check for illegal attempt to override
13079         No_Return procedure with procedure that is not No_Return
13080         (Check_Dispatching_Call): Suppress the check for an abstract operation
13081         when the original node of an actual is a tag-indeterminate attribute
13082         call, since the attribute, which must be 'Input, can never be abstract.
13083         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
13084         call to the Input attribute (even when rewritten).
13085         (Propagate_Tag): Augment comment to indicate the possibility of a call
13086         to an Input attribute.
13087
13088         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
13089         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
13090
13091         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
13092         No_Wide_Characters is no longer partition-wide
13093         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
13094         rather than GNAT
13095
13096 2006-02-13  Douglas Rupp  <rupp@adacore.com>
13097
13098         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
13099
13100 2006-02-13  Javier Miranda  <miranda@adacore.com>
13101
13102         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
13103         handles default-initialized components to keep separate the management
13104         of this feature but also avoid the unrequired resolution and
13105         expansion of components that do not have partially initialized
13106         values.
13107         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
13108         (Check_Bounds): Likewise.
13109         (Check_Length): Likewise.
13110
13111 2006-02-13  Javier Miranda  <miranda@adacore.com>
13112             Ed Schonberg  <schonberg@adacore.com>
13113
13114         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
13115         abstract interface type call analyze_and_resolve to expand the type
13116         conversion into the corresponding displacement of the
13117         reference to the base of the object.
13118         (Eval_Attribute, case Width): For systems where IEEE extended precision
13119         is supported, the maximum exponent occupies 4 decimal digits.
13120         (Accessibility_Message): Add '\' in 2-line warning message.
13121         (Resolve_Attribute): Likewise.
13122         (case Attribute_Access): Significantly revise checks
13123         for illegal access-to-subprogram Access attributes to properly enforce
13124         the rules of 3.10.2(32/2).
13125         Diagnose use of current instance with an illegal attribute.
13126
13127         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
13128         to a Node_Id.
13129         (Enclosing_Generic_Unit): New function to return a node's innermost
13130         enclosing generic declaration node.
13131         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
13132         (Type_Access_Level): The accessibility level of anonymous acccess types
13133         associated with discriminants is that of the current instance of the
13134         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
13135         (Compile_Time_Constraint_Error): Handle case of conditional expression.
13136         (Kill_Current_Values_For_Entity): New function
13137         (Enter_Name): Change formal type to Entity_Id
13138
13139 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
13140             Ed Schonberg  <schonberg@adacore.com>
13141             Gary Dismukes  <dismukes@adacore.com>
13142
13143         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
13144         Analyze_Compilation_Unit.
13145         Detect and warn on redundant with clauses detected in a package spec
13146         and/or body when -gnatwr is used.
13147         (Analyze_Context): Analyze config pragmas before other items
13148         (Install_Context_Items): Don't analyze config pragmas here
13149         (Install_Limited_Withed_Unit): Set limited entity of package in
13150         with_clause so that cross-reference information or warning messages on
13151         unused packages can be properly generated
13152         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
13153         has Error_Posted set. Prevent infinite loops in illegal programs.
13154         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
13155         to the point of the error test requiring the current unit to be private.
13156         This ensures that private with clauses are not exempted from the basic
13157         checking for being a descendant of the same library unit parent as a
13158         withed private descendant unit.
13159         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
13160         handle private with clauses properly, as well as to account for cases
13161         where the withed unit is a public descendant of a private ancestor
13162         (in which case the current unit must be a descendant of the private
13163         ancestor's parent). The spec comments were updated accordingly. Also,
13164         the old error message in this subprogram was replaced with error
13165         messages that mirror the errors tested and reported by
13166         Check_Private_Child_Unit.
13167         Parameter and variable names improved for readability.
13168         (Install_Limited_Context_Clauses): Remove test for a withed unit being
13169         private as the precondition for calling
13170         Check_Private_Limited_Withed_Unit since that subprogram has been
13171         revised to test public units as well as private units.
13172
13173 2006-02-13  Thomas Quinot  <quinot@adacore.com>
13174             Robert Dewar  <dewar@adacore.com>
13175             Ed Schonberg  <schonberg@adacore.com>
13176             Javier Miranda  <miranda@adacore.com>
13177
13178         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
13179         that Scope_Stack.First = 1.
13180         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
13181         were not always properly handled previously.
13182         (Formal_Entity): Complete rewrite, to handle properly some complex case
13183         with multiple levels of parametrization by formal packages.
13184         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
13185         to the corresponding derived type declaration for proper semantics.
13186
13187         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
13188         (Check_Component): Enforce restriction on components of
13189         unchecked_unions: a component in a variant cannot contain tasks or
13190         controlled types.
13191         (Unchecked_Union): Allow nested variants and multiple discriminants, to
13192         conform to AI-216.
13193         Add pragma Ada_2005 (synonym for Ada_05)
13194         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
13195         were not always properly handled previously.
13196         Document that pragma Propagate_Exceptions has no effect
13197         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
13198         (Set_Convention_From_Pragma): Check that if a convention is
13199         specified for a dispatching operation, then it must be
13200         consistent with the existing convention for the operation.
13201         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
13202         longer required to specify an vtable-ptr component in the record. For
13203         compatibility reasons we leave the support for the previous definition.
13204         (Analyze_Pragma, case No_Return): Allow multiple arguments
13205
13206         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
13207         non-overrideen inherited operation with a controlling result as
13208         illegal only its implicit declaration comes from the derived type
13209         declaration of its result's type.
13210         (Check_Possible_Deferred_Completion): Relocate the object definition
13211         node of the subtype indication of a deferred constant completion rather
13212         than directly analyzing it. The analysis of the generated subtype will
13213         correctly decorate the GNAT tree.
13214         (Record_Type_Declaration): Check whether this is a declaration for a
13215         limited derived record before analyzing components.
13216         (Analyze_Component_Declaration): Diagnose record types  not explicitly
13217         declared limited when a component has a limited type.
13218         (Build_Derived_Record_Type): Code reorganization to check if some of
13219         the inherited subprograms of a tagged type cover interface primitives.
13220         This check was missing in case of a full-type associated with a private
13221         type declaration.
13222         (Constant_Redeclaration): Check that the subtypes of the partial and the
13223         full view of a constrained deferred constant statically match.
13224         (Mentions_T): A reference to the current type in an anonymous access
13225         component declaration  must be an entity name.
13226         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
13227         class_wide type to refer to full type, not to the incomplete one.
13228         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
13229         available. Required to give support to the certified run-time.
13230         (Analyze_Component_Declaration): In case of anonymous access components
13231         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
13232         (Process_Discriminants): For an access discriminant, use the
13233         discriminant specification as the associated_node_for_itype, to
13234         simplify accessibility checks.
13235
13236 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
13237             Javier Miranda  <miranda@adacore.com>
13238
13239         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
13240         abstract interpretations on an operator, remove interpretations that
13241         yield Address or a type derived from it, if one of the operands is an
13242         integer literal.
13243         (Try_Object_Operation.Try_Primitive_Operation,
13244         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
13245         location when creating the new reference to a primitive or class-wide
13246         operation as a part of rewriting a subprogram call.
13247         (Try_Primitive_Operations): If context requires a function, collect all
13248         interpretations after the first match, because there may be primitive
13249         operations of the same type with the same profile and different return
13250         types. From code reading.
13251         (Try_Primitive_Operation): Use the node kind to choose the proper
13252         operation when a function and a procedure have the same parameter
13253         profile.
13254         (Complete_Object_Operation): If formal is an access parameter and prefix
13255         is an object, rewrite as an Access reference, to match signature of
13256         primitive operation.
13257         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
13258         by an expanded name with prefix Standard, when the operands are of an
13259         anonymous access type.
13260         (Remove_Abstract_Operations): If the operation is abstract because it is
13261         inherited by a user-defined type derived from Address, remove it as
13262         well from the set of candidate interpretations of an overloaded node.
13263         (Analyze_Membership_Op): Membership test not applicable to cpp-class
13264         types.
13265
13266 2006-02-13  Bob Duff  <duff@adacore.com>
13267
13268         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
13269         redundant use clauses.
13270         In particular, if the scope of two use clauses overlaps, but one is not
13271         entirely included in the other, we should not warn.  This can happen
13272         with nested packages.
13273         (Analyze_Subprogram_Renaming): Protect the compiler against previously
13274         reported errors. The bug was reported when the compiler was built
13275         with assertions enabled.
13276         (Find_Type): If the node is a 'Class reference and the prefix is a
13277         synchronized type without a corresponding record, return the type
13278         itself.
13279
13280 2006-02-13  Javier Miranda  <miranda@adacore.com>
13281
13282         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
13283         if this is the full-declaration associated with a private declaration
13284         that implement interfaces, then the private type declaration must be
13285         limited.
13286         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
13287         as aliased. The use of the 'access attribute is not available for such
13288         object (for this purpose the object should be explicitly marked as
13289         aliased, but being an anonymous type this is not possible).
13290
13291 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
13292             Robert Dewar  <dewar@adacore.com>
13293
13294         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
13295         compilation unit is an elaboration scope.
13296         (Add_Task_Proc): Add '\' in 2-line warning message.
13297         (Activate_All_Desirable): Deal with case of unit with'ed by parent
13298
13299 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
13300             Javier Miranda  <miranda@adacore.com>
13301
13302         * sem_type.adb (Write_Overloads): Improve display of candidate
13303         interpretations.
13304         (Add_One_Interp): Do not add to the list of interpretations aliased
13305         entities corresponding with an abstract interface type that is an
13306         immediate ancestor of a tagged type; otherwise we have a dummy
13307         conflict between this entity and the aliased entity.
13308         (Disambiguate): The predefined equality on universal_access is not
13309         usable if there is a user-defined equality with the proper signature,
13310         declared in the same declarative part as the designated type.
13311         (Find_Unique_Type): The universal_access equality operator defined under
13312         AI-230 does not cover pool specific access types.
13313         (Covers): If one of the types is a generic actual subtype, check whether
13314         it matches the partial view of the other type.
13315
13316 2006-02-13  Thomas Quinot  <quinot@adacore.com>
13317
13318         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
13319         line. This is necessary to allow In_Extended_Main_Unit to provide
13320         correct results for itypes while writing out expanded source.
13321         (Close_File): No need to update the source_index_table here since it's
13322         now done for each line.
13323
13324 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
13325             Robert Dewar  <dewar@adacore.com>
13326
13327         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
13328         preserve the source unit where the itype is declared, and prevent a
13329         backend abort.
13330         (Note_Implicit_Run_Time_Call): New procedure
13331         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
13332         E_Subprogram_Type)
13333
13334         * sprint.ads: Document use of $ for implicit run time routine call
13335
13336 2006-02-13  Quentin Ochem  <ochem@adacore.com>
13337
13338         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
13339         task name.
13340
13341 2006-02-13  Bob Duff  <duff@adacore.com>
13342
13343         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
13344         Scan_Unsigned, so we do not scan leading blanks and sign twice.
13345         Integer'Value("- 5") and Integer'Value("-+5") now correctly
13346         raise Constraint_Error.
13347
13348         * s-vallli.adb (Scan_Long_Long_Integer): Call
13349         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
13350         do not scan leading blanks and sign twice.
13351         Integer'Value("- 5") and Integer'Value("-+5") now correctly
13352         raise Constraint_Error.
13353
13354         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
13355         Scan_Long_Long_Unsigned): Split out most of the processing from
13356         Scan_Long_Long_Unsigned out into
13357         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
13358         This prevents scanning leading blanks and sign twice.
13359         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
13360         See RM-3.5(44).
13361
13362         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
13363         out most of the processing from Scan_Unsigned out into
13364         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
13365         This prevents scanning leading blanks and sign twice.
13366
13367         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
13368         use with Modular'Value attribute.
13369         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
13370         attribute.
13371
13372 2006-02-13  Robert Dewar  <dewar@adacore.com>
13373
13374         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
13375
13376 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
13377
13378         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
13379         (PPC VxWorks): Likewise.
13380         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
13381         (forced_callee): Make non-inlinable and non-pure.
13382         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
13383
13384 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
13385             Ben Brosgol  <brosgol@adacore.com>
13386             Robert Dewar  <dewar@adacore.com>
13387
13388         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
13389         support.
13390         Document that gnatbind -M option is for cross environments only.
13391         Added description of using gnatmem to trace gnat rtl allocs and deallocs
13392         Add note on use of $ to label implicit run time calls
13393         Add documentation for -gnatyI (check mode IN)
13394         Updated chapter on compatibility with HP Ada
13395         VMS-oriented edits.
13396         Ran spell and corrected errors
13397         Add documentation for gnatbind -d and rework documentation of -D
13398         at the same time.
13399         Add subprogram/data elimination section.
13400         Minor editing of annex A.
13401         Add section for gnatcheck.
13402         Add documentation for restriction No_Dispatching_Calls
13403         Add documentation for pragma Ada_2005
13404         Remove mention of obsolete pragma Propagate_Exceptions
13405         Document that pragma Unreferenced can appear after DO in ACCEPT
13406         Clarify Pure_Function for library level units
13407         Mention Max/Min in connection with No_Implicit_Conditionals
13408         No_Wide_Characters restriction is no longer partition-wide
13409         Add a nice example for Universal_Literal_String attribute
13410         Document that pragma No_Return can take multiple arguments
13411
13412         * ug_words: Added entry for gnatcheck
13413
13414         * g-ctrl_c.ads (Install_Handler): Enhance comments
13415
13416         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
13417
13418         * g-trasym.ads: Add documentation on how to do off line symbolic
13419         traceback computation.
13420
13421         * s-fatgen.adb: Add comments for Unaligned_Valid
13422
13423         * stand.ads: Fix typo in comment
13424
13425 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13426
13427         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
13428
13429 2006-02-06  Roger Sayle  <roger@eyesopen.com>
13430
13431         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
13432
13433 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13434
13435         PR target/25926
13436         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
13437         implementation that calls __main.
13438
13439 2006-01-25  Peter O'Gorman  <peter@pogma.com>
13440
13441         PR bootstrap/25859
13442         * Makefile.in (GCC_LINK): Remove quotes.
13443         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
13444         or $(GCC_LINK).
13445
13446         (powerpc-darwin): Pass -shared-libgcc when building shared library.
13447
13448 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13449
13450         PR ada/24533
13451         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
13452
13453 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13454
13455         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
13456
13457 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
13458
13459         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
13460         needed.
13461
13462 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
13463
13464         * Make-lang.in: Update dependencies
13465
13466 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
13467
13468         * Make-lang.in: Add rule for ada/exp_sel.o
13469
13470 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
13471
13472         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
13473
13474 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
13475
13476         * gnatvsn.ads (Library_Version): Bump to version 4.2
13477         (ASIS_Version_Number): Bumped.
13478
13479 2005-12-09  Doug Rupp  <rupp@adacore.com>
13480
13481         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
13482         Ada bind file prefix on VMS from b$ to b__.
13483         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
13484         __init.
13485
13486         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
13487         Targparm.OpenVMS_On_Target.
13488         (Object_Suffix): Initialize with target object suffix.
13489         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
13490
13491         * butil.adb: Change some Hostparm.OpenVMS checks to
13492         Targparm.OpenVMS_On_Target.
13493
13494         * clean.adb: Change some Hostparm.OpenVMS checks to
13495         Targparm.OpenVMS_On_Target.
13496         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
13497         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
13498         Ada bind file prefix on VMS from b$ to b__.
13499
13500         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
13501         --GCC so that Get_Target_Parameters can find system.ads.
13502         (Gnatlink): Call Get_Target_Parameters in mainline.
13503         Initialize standard packages for Targparm.
13504         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
13505         (Process_Args): Also Check for object files with target object
13506         extension.
13507         (Make_Binder_File_Names): Create with target object extension.
13508         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
13509         to b__.
13510
13511         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
13512         Targparm.OpenVMS_On_Target.
13513         ({declaration},Build_Library,Check_Library): Change Ada bind file
13514         prefix on VMS from b$ to b__.
13515
13516         * osint-b.adb: Change some Hostparm.OpenVMS checks to
13517         Targparm.OpenVMS_On_Target.
13518         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
13519         b__.
13520
13521         * targext.c: New file.
13522
13523         * Makefile.in: add support for vxworks653 builds
13524         (../../vxaddr2line): gnatlink with targext.o.
13525         (TOOLS_LIBS): Move targext.o to precede libgnat.
13526         (init.o, initialize.o): Minor clean up in dependencies.
13527         (GNATLINK_OBJS): Add targparm.o, snames.o
13528         Add rules fo building targext.o and linking it explicitly with all
13529         tools.
13530         Also add targext.o to gnatlib.
13531
13532         * Make-lang.in: Add rules for building targext.o and linking it in
13533         with gnat1 and gnatbind.
13534         Add entry for exp_sel.o.
13535
13536         * osint.adb Change some Hostparm.OpenVMS checks to
13537         Targparm.OpenVMS_On_Target.
13538         (Object_File_Name): Use target object suffix.
13539
13540         * osint.ads (Object_Suffix): Remove, no longer used.
13541         (Target_Object_Suffix): Initialize with target object suffix.
13542
13543         * rident.ads: Add special exception to license.
13544
13545         * targparm.adb (Get_Target_Parameters): Set the value of
13546         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
13547         value.
13548         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
13549         
13550         * targparm.ads: Add special exception to license.
13551
13552         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
13553         function.
13554         (Copy_File): Make sure from file is closed if error on to file
13555         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
13556
13557         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
13558         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
13559
13560         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
13561         target object suffix.
13562
13563 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
13564             Quentin Ochem  <ochem@adacore.com>
13565             Florian Villoing  <villoing@adacore.com>
13566
13567         * a-taster.ads, a-taster.adb: New files.
13568
13569         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
13570         link to the version that does nothing. This way the task termination
13571         routine is not executed twice for the environment task when finishing
13572         because of an unhandled exception.
13573
13574         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
13575         handler because of an unhandled exception.
13576
13577         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
13578         System.Tasking.Utilities instead of that in System.Tasking.Stages.
13579
13580         * s-finimp.adb (initialization code): Modify the soft link for the
13581         finalization of the global list instead of Adafinal.
13582
13583         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
13584         non-tasking version of the soft link for task termination. We do
13585         nothing since if we are using the non-tasking version it
13586         means that the task termination functionality is not used.
13587         (Null_Finalize_Global_List): Add this null version for the procedure
13588         in charge of finalizing the global list for controlled objects.
13589         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
13590         instead for handling run-time termination in a more flexible way.
13591         (Adafinal_NT): This new procedure will take care of finalizing the
13592         global list for controlled objects if needed, but no tasking
13593         finalization.
13594
13595         * s-tarest.adb (Task_Lock): Do not try to lock again the
13596         Global_Task_Lock if we already own it. Otherwise, we get blocked in
13597         some run-time operations.
13598         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
13599         until all nested locks have been released.
13600         (Task_Wrapper): Call the fall-back task termination handler. It
13601         applies to all tasks but the environment task.
13602         (Finalize_Global_Tasks): Add the call for the task termination
13603         procedure for the environment task.
13604         (Task_Wrapper): suppress warnings around declaration of
13605         Secondary_Stack_Address.
13606
13607         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
13608         moved to the Common_ATCB record.
13609         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
13610         Common_ATCB record.
13611         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
13612         Common_ATCB record.
13613
13614         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
13615         Fall_Back_Handler, and Specific_Handler.
13616
13617         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
13618         defined in Ada.Task_Termination, to avoid circular dependencies.
13619         (Termination_Handler): Redefine this type here, alredy defined in
13620         Ada.Task_Termination, for avoiding circular dependencies.
13621         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
13622         for storing task termination handlers. In addition,
13623         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
13624         Common_ATCB because it is used by both the regular and the restricted
13625         run times.
13626         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
13627         Common_ATCB because it is used by both the regular and the restricted
13628         run times.
13629         (Common_ATCB): Added a dynamic task analyzer field.
13630
13631         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
13632         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
13633         (Task_Wrapper): Call the task termination handler. It applies to all
13634         tasks but the environment task.
13635         (Finalize_Global_Tasks): Call the task termination procedure for the
13636         environment task. The call to Finalize_Global_List is now performed
13637         using the soft links mechanism.
13638         (Task_Wrapper): added dynamic stack analysis.
13639
13640         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
13641         potentially blocking operations has been moved from
13642         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
13643         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
13644         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
13645         this run-time check.
13646
13647         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
13648         of task termination procedure.
13649         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
13650         link for the task termination procedure.
13651
13652         * bindusg.adb: (Bindusg): Added documentation for -u option.
13653
13654         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
13655         (Get_Main_C): Add handling of dynamic stack analysis.
13656         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
13657
13658         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
13659         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
13660         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
13661
13662         * opt.ads: Added flags used by dynamic stack measurement.
13663         (Max_Line_Length): Remove (not used anymore)
13664
13665         * s-io.ads, s-io.adb (Standard_Error): new subprogram
13666         (Standart_Output): new subprogram
13667         (Set_Output): new subprogram
13668         (Put): now uses the value of Current_Out to know if the output has to be
13669         send to stderr or stdout.
13670         
13671         * s-stausa.ads: Complete implementation.
13672
13673         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
13674         
13675         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
13676         list of Ada 05 files.
13677         (GNAT Library Units): Add AltiVec files.
13678
13679         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
13680         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
13681         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
13682
13683 2005-12-09  Nicolas Setton  <setton@adacore.com>
13684
13685         * adaint.c (__gnat_locate_regular_file): Return immediately if
13686         file_name is empty.
13687
13688 2005-12-09  Javier Miranda  <miranda@adacore.com>
13689             Hristian Kirtchev  <kirtchev@adacore.com>
13690
13691         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
13692         to the specification because the frontend generates code that uses this
13693         subprogram.
13694         (Set_Interface_Table): Add missing assertion.
13695         Update documentation describing the run-time structure.
13696         (Displace): New subprogram that displaces the pointer to the object
13697         to reference one of its secondary dispatch tables.
13698         (IW_Membership): Modified to use the new table of interfaces.
13699         (Inherit_TSD): Modified to use the new table of interfaces.
13700         (Register_Interface_Tag): Use the additional formal to fill the
13701         contents of the new table of interfaces.
13702         (Set_Interface_Table): New subprogram that stores in the TSD the
13703         pointer to the table of interfaces.
13704         (Set_Offset_To_Top): Use the additional formal to save copy of
13705         the offset value in the table of interfaces.
13706         Update structure of GNAT Primary and Secondary dispatch table diagram.
13707         Add comment section on GNAT dispatch table prologue.
13708         (Offset_To_Signature): Update the constant value of the Signature field.
13709         (Dispatch_Table): Update comment on hidden fields in the prologue.
13710         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
13711         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
13712         the type of formal parameter T to Tag, introduce additional assertions.
13713         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
13714         conversion.
13715         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
13716
13717         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
13718         in all the calls to Expand_Interface_Thunk. Instead of referencing the
13719         record component containing the tag of the secondary dispatch table we
13720         have to use the Offset_To_Top run-time function to get this information;
13721         otherwise if the pointer to the base of the object has been displace
13722         we get a wrong value if we use the 'position attribute.
13723
13724         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
13725         all the calls to Expand_Interface_Thunk.
13726         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
13727         interfaces; hence the call to Set_Interface_Table was clearly wrong.
13728         (Collect_All_Interfaces): Modify the internal subprogram Collect to
13729         ensure that the interfaces implemented by the ancestors are placed
13730         at the header of the generated list.
13731         (Expand_Interface_Conversion): Handle the case in which the displacement
13732         associated with the interface conversion is not statically known. In
13733         this case we generate a call to the new run-time subprogram Displace.
13734         (Make_DT): Generate and fill the new table of interfaces.
13735         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
13736         Get_Tagged_Kind and Set_Tagged_Kind.
13737         (Tagged_Kind): New function that determines the tagged kind of a type
13738         with respect to limitedness and concurrency and returns a reference to
13739         RE_Tagged_Kind.
13740         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
13741         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
13742         primary dispatch table for a type.
13743         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
13744         secondary dispatch table respectively of a tagged type.
13745
13746         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
13747         (Expand_Interface_Conversion): New subprogram to indicate if the
13748         displacement of the type conversion is statically known.
13749         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
13750
13751         * rtsfind.ads (RE_Offset_To_Top): New entity
13752         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
13753         accessible to users.
13754         (Re_Displace): New entity
13755         (RE_Interface_Data): New entity
13756         (RE_Set_Interface_Data): New_Entity
13757         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
13758         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
13759         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
13760         RE_TK_Tagged, RE_TK_Task.
13761
13762         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
13763         Init_Secondary_Tags_Internal to allow its use with interface types and
13764         also to generate the code for the new additional actual required
13765         by Set_Offset_To_Top.
13766         (Build_Init_Statements): In case of components associated with abstract
13767         interface types there is no need to generate a call to its IP.
13768         (Freeze_Record_Type): Generate Select Specific Data tables only for
13769         concurrent types.
13770         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
13771         the bodies and specifications of the predefined primitive operations
13772         dealing with dispatching selects and abort, 'Callable, 'Terminated only
13773         for concurrent types.
13774
13775         * exp_sel.ads, exp_sel.adb: New files.
13776
13777         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
13778         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
13779         properly protected objects and attach handler in the case of the
13780         restricted profile.
13781         Move embeded package Select_Expansion_Utilities into a separate external
13782         package.
13783         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
13784         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
13785         (Build_K, Build_S_Assignment): New subprograms, part of the select
13786         expansion utilities.
13787         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
13788         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
13789         where the trigger is a dispatching procedure of a limited tagged type.
13790
13791 2005-12-09  Olivier Hainque  <hainque@adacore.com>
13792
13793         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
13794         pointer initialization values. Make a SAVE_EXPR instead. Add comments
13795         about the use and expansion of SAVE_EXPRs in the various possible
13796         renaming handling cases.
13797         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
13798         abusing DECL_FCONTEXT.
13799
13800 2005-12-09  Matthew Heaney  <heaney@adacore.com>
13801
13802         * a-convec.adb (Merge): Added assertions to check whether vector params
13803         are sorted.
13804
13805         * a-coinve.adb (Merge): Added assertions to check whether vector params
13806         are sorted.
13807
13808         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
13809         draft.
13810         (Cursor'Read): raises PE
13811
13812         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
13813         to its default value.
13814
13815         * a-cihama.adb: Manually check whether cursor's key and elem are
13816         non-null
13817
13818         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
13819         (Merge): Assert that target and source lists are in order
13820         (Swap): Declare non-const temporaries, to pass to Splice
13821
13822         * a-cdlili.ads: (Splice): Changed param name and param mode
13823
13824         * a-cdlili.adb: (Splice): Changed param name and param mode
13825         (Merge): Assert that target and source lists are in order
13826         (Swap): Declare non-const temporaries, to pass to Splice
13827
13828         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
13829         (Write): declare Stream param as not null
13830
13831         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
13832         an exception message.
13833
13834 2005-12-09  Thomas Quinot  <quinot@adacore.com>
13835             Robert Dewar  <dewar@adacore.com>
13836
13837         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
13838         which is the absolute maximum length we can support.
13839
13840         * frontend.adb: For the processing of configuration pragma files,
13841         remove references to Opt.Max_Line_Length, which is not checked anymore.
13842
13843         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
13844         length.
13845
13846         * scn.adb, scng.adb: 
13847         Always check line length against the absolute supported maximum,
13848         Hostparm.Max_Line_Length.
13849
13850         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
13851         value for the maximum line length is Max_Line_Length (not
13852         Column_Number'Last).
13853         Minor error msg update
13854         (Set_Style_Check_Options): New interface returning error msg
13855         Minor code reorganization (processing for 'M' was out of alpha order)
13856
13857         * switch-c.adb: New interface for Set_Style_Check_Options
13858
13859         * stylesw.ads (Set_Style_Check_Options): New interface returning error
13860         msg.
13861
13862 2005-12-09  Javier Miranda  <miranda@adacore.com>
13863
13864         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
13865         with IP subprogram were only supported if there were limited types.
13866
13867         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
13868         records with IP subprogram were only supported if there were limited
13869         types.
13870
13871 2005-12-09  Olivier Hainque  <hainque@adacore.com>
13872             Eric Botcazou  <ebotcazou@adacore.com>
13873
13874         * trans.c (tree_transform, emit_check): Adjust calls to
13875         build_call_raise, passing the now expected GNAT_NODE argument.
13876
13877         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
13878         source line information than what the current global locus indicates
13879         when appropriate.
13880
13881         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
13882         field has overflowed.
13883         (build_call_raise): Add a GNAT_NODE argument to convey better source
13884         line information than what the current global locus indicates when
13885         appropriate.
13886         (build_component_ref): Adjust call to build_call_raise.
13887
13888 2005-12-09  Pascal Obry  <obry@adacore.com>
13889
13890         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
13891         the iterator is quitting iteration on parent directory.
13892
13893 2005-12-09  Javier Miranda  <miranda@adacore.com>
13894
13895         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
13896         and the assignment to a class-wide object, before the assignment we
13897         generate a run-time check to ensure that the tag of the Target is
13898         covered by the tag of the source.
13899
13900 2005-12-09  Robert Dewar  <dewar@adacore.com>
13901
13902         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
13903         parameter in call to Image_Wide_Character.
13904
13905         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
13906         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
13907         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
13908         annoying FFFE/FFFF inconsistency.
13909
13910 2005-12-09  Robert Dewar  <dewar@adacore.com>
13911             Javier Miranda  <miranda@adacore.com>
13912             Ed Schonberg  <schonberg@adacore.com>
13913
13914         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
13915         of type conversion.
13916         (Find_Interface): New subprogram that given a tagged type and one of its
13917         component associated with the secondary table of an abstract interface
13918         type, return the entity associated with such abstract interface type.
13919         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
13920         base type to create anonymous subtype, because entity may be a locally
13921         declared subtype or generic actual.
13922         (Find_Interface): New subprogram that given a tagged type and one of its
13923         component associated with the secondary table of an abstract interface
13924         type, return the entity associated with such abstract interface type.
13925
13926         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
13927         conversion cannot be handled at compile time. In this case we pass this
13928         information to the expander to generate the appropriate code.
13929
13930 2005-12-09  Robert Dewar  <dewar@adacore.com>
13931             Ed Schonberg  <schonberg@adacore.com>
13932             Gary Dismukes  <dismukes@adacore.com>
13933             Javier Miranda  <miranda@adacore.com>
13934             Hristian Kirtchev  <kirtchev@adacore.com>
13935
13936         * einfo.adb (Itype_Printed): New flag
13937         (Is_Limited_Type): Derived types do not inherit limitedness from
13938         interface progenitors.
13939         (Is_Return_By_Reference_Type): Predicate does not apply to limited
13940         interfaces.
13941
13942         * einfo.ads (Itype_Printed): New flag
13943         Move Is_Wrapper_Package to proper section
13944         Add missing Inline for Is_Volatile
13945
13946         * output.ads, output.adb (Write_Erase_Char): New procedure
13947         (Save/Restore_Output_Buffer): New procedures
13948         (Save/Restore_Output_Buffer): New procedures
13949
13950         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
13951         Add missing support for anonymous access type
13952         (Write_Id): Insert calls to Write_Itype
13953         (Write_Itype): New procedure to output itypes
13954
13955         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
13956         use of "limited" in declaration.
13957
13958         * sinfo.ads, sinfo.adb: 
13959         Formal derived types can carry an explicit "limited" indication.
13960
13961         * sem_ch3.adb: Add with and use of Targparm.
13962         (Create_Component): If Frontend_Layout_On_Target is True and the
13963         copied component does not have a known static Esize, then reset
13964         the size and positional fields of the new component.
13965         (Analyze_Component_Declaration): A limited component is
13966         legal within a protected type that implements an interface.
13967         (Collect_Interfaces): Do not add to the list the interfaces that
13968         are implemented by the ancestors.
13969         (Derived_Type_Declaration): If the parent of the full-view is an
13970         interface perform a transformation of the tree to ensure that it has
13971         the same parent than the partial-view. This simplifies the job of the
13972         expander in order to generate the correct object layout, and it is
13973         needed because the list of interfaces of the full-view can be given in
13974         any order.
13975         (Process_Full_View): The parent of the full-view does not need to be
13976         a descendant of the parent of the partial view if both parents are
13977         interfaces.
13978         (Analyze_Private_Extension_Declaration): If declaration has an explicit
13979         "limited" the parent must be a limited type.
13980         (Build_Derived_Record_Type): A derived type that is explicitly limited
13981         must have limited ancestor and progenitors.
13982         (Build_Derived_Type): Ditto.
13983         (Process_Full_View): Verify that explicit uses of "limited" in partial
13984         and full declarations are consistent.
13985         (Find_Ancestor_Interface): Remove function.
13986         (Collect_Implemented_Interfaces): New procedure used to gather all
13987         implemented interfaces by a type.
13988         (Contain_Interface): New function used to check whether an interface is
13989         present in a list.
13990         (Find_Hidden_Interface): New function used to determine whether two
13991         lists of interfaces constitute a set equality. If not, the first
13992         differing interface is returned.
13993         (Process_Full_View): Improve the check for the "no hidden interface"
13994         rule as defined by AI-396.
13995
13996 2005-12-09  Robert Dewar  <dewar@adacore.com>
13997
13998         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
13999         types, not on record subtypes.
14000         (Freeze_Entity): Code cleanup. Add barrier to the loop
14001         that generates the references for primitive operations. This allows to
14002         remove an unnecessary exception handler.
14003         Code reformatting and comment clean ups.
14004
14005 2005-12-09  Vincent Celier  <celier@adacore.com>
14006
14007         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
14008         If GNAT CHECK is called with a project file, but with no
14009         source on the command line, call gnatcheck with all the compilable
14010         sources of the project.
14011         Take into account the new command Check, for gnatcheck. Treat as for
14012         other ASIS tools: take into account project, specific package Check and
14013         Compiler switches.
14014         For ASIS tools, add the switches in package Compiler for
14015         the invocation of the compiler.
14016
14017         * prj-attr.adb: Add package Check and its attributes
14018
14019         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
14020
14021         * vms_conv.adb (Initialize): Change Params of command Check to
14022         unlimited files.
14023         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
14024         Add data for new command Check
14025
14026         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
14027         ELIM.
14028         Add qualifiers for Check command options
14029         (Command_Type): New command Check
14030
14031 2005-12-09  Thomas Quinot  <quinot@adacore.com>
14032
14033         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
14034         command line switch overruns the output buffer.
14035
14036 2005-12-09  Robert Dewar  <dewar@adacore.com>
14037
14038         * sem_prag.adb: Processing for new pragma Complete_Representation
14039         (Analyze_Pragma, case Debug): Implement two argument form.
14040
14041         * par-prag.adb: Entry for new pragma Complete_Representation
14042         (Prag, case Debug): Recognize two argument form of pragma Debug
14043         New interface for Set_Style_Check_Options.
14044
14045         * sem_ch13.adb: Implement new pragma Complete_Representation.
14046
14047         * snames.adb, snames.ads, snames.h: Entry for new pragma
14048         Complete_Representation.
14049
14050 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
14051
14052         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
14053         available user-specified stream attributes on limited parameters to
14054         also test the type directly rather than only its underlying type (for
14055         Ada 95) and, in the case of Ada 2005, to check that the user-specified
14056         attributes are visible at the point of the subprogram declaration.
14057         For Ada 2005, the error message is modified to indicate that the
14058         type's stream attributes must be visible (again, only for -gnat05).
14059
14060 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
14061
14062         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
14063         anonymous access types.
14064
14065         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
14066         matching of anonymous access types and anonymous access to subprogram
14067         types. 'R'M 4.9.1 (2/2).
14068
14069 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
14070
14071         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
14072         rule prematurely when operands are universal, remaining ambiguities
14073         will be removed during resolution.
14074         Code cleanup.
14075
14076         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
14077         that are Ada 2005 functions.
14078         (Has_Abstract_Interpretation): Subsidiary to
14079         Remove_Conversions, to remove ambiguities caused by abstract operations
14080         on numeric types when operands are universal.
14081
14082 2005-12-09  Robert Dewar  <dewar@adacore.com>
14083
14084         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
14085         for case where spec is categorized.
14086
14087 2005-12-09  Javier Miranda  <miranda@adacore.com>
14088
14089         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
14090         types use the corresponding record type. This was not needed before
14091         the implementation of Ada 2005 synchronized types because
14092         concurrent types were never tagged types in Ada 95.
14093
14094 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
14095
14096         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
14097         first subtype of the type of the expression to verify that it is a
14098         legal Time type.
14099
14100 2005-12-09  Robert Dewar  <dewar@adacore.com>
14101
14102         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
14103         decoded names.
14104
14105 2005-12-09  Quentin Ochem  <ochem@adacore.com>
14106             Robert Dewar  <dewar@adacore.com>
14107             Ed Falis  <falis@adacore.com>
14108             Florian Villoing  <villoing@adacore.com>
14109             Thomas Quinot  <quinot@adacore.com>
14110             Arnaud Charlet  <charlet@adacore.com>
14111
14112         * gnat_ugn.texi: Created section "Stack Related Tools"
14113         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
14114         "Stack Related Tools"
14115         Added subsection "Static Stack Usage Analysis"
14116         Added subsection "Dynamic Stack Usage Analysis"
14117         Include documentation of itypes in sprint listing (-gnatG)
14118         Documented gnatbind -D switch (default sec stack size for fixed sec
14119         stacks).
14120         Added Interrupt_State and Persistent_BSS to list of configuration
14121         pragmas.
14122         Add missing doc for maximum value of nnn in -gnatyMnnn
14123
14124         * gnat_rm.texi: Document the AltiVec binding.
14125         Add documentation for pragma Complete_Representation
14126         Shortened an overly long line (> 79 chars)
14127         Clarify documentation of unchecked conversion in implementation
14128         defined cases.
14129         Document two argument form of pragma Debug
14130
14131         * types.ads (Column_Number): Update documentation.
14132
14133         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
14134         library level Finalize_Storage_Only objects (these are not attached to
14135         any finalization list).
14136
14137         * system-mingw.ads: (Underlying_Priorities): Update comment.
14138
14139 2005-12-09  Robert Dewar  <dewar@adacore.com>
14140
14141         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
14142         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
14143         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
14144         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
14145         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
14146         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
14147         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
14148         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
14149         reformatting.
14150
14151 2005-12-09  Robert Dewar  <dewar@adacore.com>
14152
14153         * s-vaflop-vms-alpha.adb: (Ne_F): New function
14154         (Ne_G): New function
14155
14156         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
14157         for tag assignment.
14158         (Rewrite_Comparison): Handle case where operation is not a comparison
14159         and ignore, and also handle type conversion case.
14160
14161 2005-12-09  Thomas Quinot  <quinot@adacore.com>
14162
14163         * exp_aggr.ads: Fix typo in comment.
14164         ???-mark Convert_Aggr_In_Assignment as needing documentation.
14165
14166 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
14167
14168         * layout.adb: Replace various uses of byte by storage unit throughout.
14169         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
14170         static size, convert to storage units before returning, to conform to
14171         spec.
14172
14173 2005-12-09  Matthew Gingell  <gingell@adacore.com>
14174
14175         * g-exctra.ads: Fix typo in comment.
14176
14177 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14178
14179         * utils.c: Minor reformatting.
14180
14181 2005-12-09  Robert Dewar  <dewar@adacore.com>
14182
14183         * g-soccon.ads: 
14184         Further comment fixes to make the status of the default file clear
14185
14186         * s-bitops.adb: Clarify comment for Bits_Array
14187
14188 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14189
14190         * Make-lang.in (ada.install-normal): Remove.
14191
14192 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14193
14194         * Make-lang.in: Remove all dependencies on s-gtype.
14195
14196 2005-12-05  Richard Guenther  <rguenther@suse.de>
14197
14198         * utils.c (convert): Use fold_convert where appropriate.
14199
14200 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
14201
14202         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
14203         a period is meant.
14204
14205 2005-12-02  Richard Guenther  <rguenther@suse.de>
14206
14207         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
14208
14209 2005-12-01  Roger Sayle  <roger@eyesopen.com>
14210
14211         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
14212         nodes.
14213
14214 2005-11-23  Laurent GUERBY  <laurent@guerby.net>
14215
14216         * mlib-prj.adb (Build_Library): Initialize Delete.
14217
14218 2005-11-21  Joel Sherrill <joel.sherrill@oarcorp.com>
14219
14220         * socket.c: Add extern int h_errno for rtems since networking header
14221         files are not available at this point in a tool bootstrap. Newlib
14222         only has basic C library header files.
14223
14224 2005-11-19  Richard Guenther  <rguenther@suse.de>
14225         Roger Sayle  <roger@eyesopen.com>
14226
14227         PR ada/23717
14228         * misc.c (internal_error_function): Don't use vsprintf to format
14229         the error message text, instead use pp_format_text and the new
14230         pretty printer APIs.  This allows handling of %qs, %w, etc.
14231
14232 2005-11-18  Laurent GUERBY  <laurent@guerby.net>
14233
14234         PR ada/24857
14235         * Makefile.in: Use s-auxdec-empty for RTEMS.
14236
14237 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14238
14239         PR ada/22333
14240         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
14241         a temporary if taking the address of something that is neither
14242         reference, declaration, or constant, since the gimplifier
14243         can't handle that case.
14244
14245 2005-11-17  Laurent GUERBY  <laurent@guerby.net>
14246
14247         PR ada/24857
14248         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
14249
14250 2005-11-16  Richard Guenther  <rguenther@suse.de>
14251
14252         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
14253
14254 2005-11-16  Joel Sherrill <joel.sherrill@oarcorp.com>
14255
14256         PR ada/24855
14257         * raise-gcc.c: Add missing stdarg.h include.
14258  
14259 2005-11-16  Richard Guenther  <rguenther@suse.de>
14260
14261         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
14262         (ada/misc.o): Likewise.
14263
14264 2005-11-14  Thomas Quinot  <quinot@adacore.com>
14265
14266         * g-soccon.ads: Minor reformatting. Update comments.
14267
14268         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
14269         gain visibility on the declaration of struct timeval.
14270
14271         * g-soccon-freebsd.ads,
14272         g-soccon-darwin.ads,
14273         g-soccon-tru64.ads,
14274         g-soccon-aix.ads,
14275         g-soccon-irix.ads,
14276         g-soccon-hpux.ads,
14277         g-soccon-solaris.ads,
14278         g-soccon-vms.ads,
14279         g-soccon-mingw.ads,
14280         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
14281
14282         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
14283         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
14284         g-soccon-linux-x86.ads: New files.
14285
14286         * g-socthi-mingw.adb: 
14287         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
14288
14289         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
14290         (time_t, suseconds_t): New types constructed to match the tv_sec
14291         and tv_usec fields of C struct timeval.
14292         (Timeval): Construct structure in terms of the new types.
14293         (Host_Errno): New function (imported from socket.c), returns last hosts
14294         database error.
14295
14296         * g-socthi-vxworks.adb:  Add error handling circuitry.
14297
14298         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
14299         components of struct timeval.
14300         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
14301         (Check_Selector): In error conditions, clear internal socket sets to
14302         avoid a memory leak.
14303         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
14304         Send_Timeout, Receive_Timeout.
14305
14306         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
14307         the tv_sec and tv_usec fields of C struct timeval.
14308         (Timeval): Construct structure in terms of the new types.
14309         (Host_Errno): New function (imported from socket.c), returns last hosts
14310         database error.
14311
14312         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
14313         hosts database last error code.
14314
14315         * gen-soccon.c: Complete value expansion should not be performed on
14316         TARGET, as it has the form of a math expression, and some components
14317         may be platform-defined macros.
14318         For VxWorks, generate the OK and ERROR values.
14319         New constants giving the sizes of the components of C struct timeval.
14320
14321 2005-11-14  Robert Dewar  <dewar@adacore.com>
14322             Ed Schonberg  <schonberg@adacore.com>
14323
14324         PR ada/18434
14325         * types.ads: Include All_Checks in Suppress_Array
14326
14327         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
14328         not(a=b), since we no longer do this rewriting, and hence it is not
14329         needed.
14330         (Elaboration_Checks_Suppressed): Add special casing to
14331         deal with different cases of static and dynamic elaboration checks (all
14332         checks does not count in the first case, but does in the second).
14333         (Expr_Known_Valid): Do not assume that the result of any arbitrary
14334         function call is valid, since this is not the case.
14335         (Ensure_Valid): Do not apply validity check to a real literal
14336         in a universal or fixed context
14337
14338         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
14339         elementary types using the operator in standard. It is cleaner not to
14340         modify the programmers intent, especially in the case of floating-point.
14341         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
14342         it did not matter because we always rewrote a/=b to not(a=b).
14343         (Expand_Allocator_Expression): For an allocator expression whose nominal
14344         subtype is an unconstrained packed type, convert the expression to its
14345         actual constrained subtype.
14346         Implement warning for <= or >= where < or > not possible
14347         Fix to Vax_Float tests (too early in many routines, causing premature
14348         Vax_Float expansions.
14349
14350         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
14351         to be used with packages and generic packages as well as with
14352         subprograms.
14353         (Suppress): Set All_Checks, but not Elaboration_Check, for case
14354         of pragma Suppress (All_Checks)
14355         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
14356         a string literal for precise control over warnings.
14357         Avoid raise of pragma in case of unrecognized pragma and just return
14358         instead.
14359
14360         * sem_prag.ads: Minor reformatting
14361
14362         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
14363         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
14364         Switch. Do not handle any exception.
14365         Include -gnatwx as part of -gnatg (warn on redundant parens)
14366         Allow optional = after -gnatm
14367         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
14368         longer sets Elaboration_Checks.
14369         Code to set warning mode moved to Sem_Warn
14370         so that it can be shared by pragma processing.
14371
14372         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
14373         statement.
14374
14375         * s-taprop-solaris.adb: 
14376         Change some <= to =, to avoid new warning
14377
14378         * a-exexda.adb, prj-proc.adb: 
14379         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
14380         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
14381
14382 2005-11-14  Robert Dewar  <dewar@adacore.com>
14383
14384         * exp_vfpt.adb: Handle /= case
14385         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
14386         so that we do not get duplicate scaling for fixed point conversions.
14387
14388         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
14389
14390 2005-11-14  Matthew Gingell  <gingell@adacore.com>
14391
14392         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
14393         Increase default priority on Lynx from 15 to 17, and meet the Ada
14394         requirement that Default_Priority be ((Priority'First +
14395         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
14396
14397 2005-11-14  Vincent Celier  <celier@adacore.com>
14398
14399         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
14400         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
14401         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
14402         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
14403         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
14404         mlib-tgt-lynxos.adb (DLL_Prefix): New function
14405
14406 2005-11-14  Doug Rupp  <rupp@adacore.com>
14407
14408         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
14409         private part.
14410
14411 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
14412
14413         * s-traces-default.adb, s-trafor-default.ads,
14414         s-tratas-default.adb: Fix compilation errors.
14415
14416 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
14417
14418         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
14419         raising the exception so the memory used is freed.
14420
14421 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
14422
14423         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
14424         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
14425         (convert_address): Update comments and list of platforms using this.
14426
14427         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
14428         no longer used.
14429
14430 2005-11-14  Pascal Obry  <obry@adacore.com>
14431             Vincent Celier  <celier@adacore.com>
14432
14433         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
14434         GNAT.Command_Line.
14435
14436         * memroot.adb: Remove redundant with/use clause on
14437         System.Storage_Elements.
14438
14439 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
14440
14441         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
14442         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
14443         related code to a-exexpr.adb
14444         (Save_Occurrence_And_Private): Move GCC EH related code to
14445         a-exexpr-gcc.adb
14446         (Raise_Current_Excep): Add new variable Id with pragma
14447         volatile, to ensure that the variable lives on stack.
14448
14449         * a-exexpr-gcc.adb, raise-gcc.c: New file.
14450
14451         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
14452         from a-except.adb.
14453         Move GCC EH related code to a-exexpr-gcc.adb
14454
14455         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
14456         64-bit Solaris
14457         Split the Linux version of g-soccon into separate variants for 32 and 64
14458         bit platforms.
14459         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
14460         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
14461         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
14462         of host variable $(RANLIB_FLAGS).
14463         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
14464         Code clean up: remove unused/obsolete targets.
14465         (EH_MECHANISM): New variable introduced to differenciate between the
14466         two EH mechanisms statically.
14467         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
14468         (LIBGNAT_OBJS): Add raise-gcc.o
14469         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
14470         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
14471         supports VxWorks 6 RTPs.
14472         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
14473         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
14474
14475         * raise.c: Move all GCC EH-related routines to raise-gcc.c
14476
14477 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
14478
14479         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
14480         deferral level, when abort is not allowed, to a later stage (the
14481         Task_Wrapper).
14482         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
14483         it will not get changed by the generated code. It was previously done
14484         in Create_Task.
14485
14486 2005-11-14  Thomas Quinot  <quinot@adacore.com>
14487             Olivier Hainque  <hainque@adacore.com>
14488             Eric Botcazou  <ebotcazou@adacore.com>
14489
14490         * decl.c:
14491         Factor common code to build a storage type for an unconstrained object
14492         from a fat or thin pointer type and a constrained object type.
14493         (annotate_value): Handle BIT_AND_EXPR.
14494         (annotate_rep): Don't restrict the back annotation of inherited
14495         components to the type_annotate_only case.
14496         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
14497         we are not defining the type.
14498         <E_Record_Type>: Likewise.
14499         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
14500         to get advantage of the new maybe_stabilize_reference interface, to
14501         ensure that what we reference is indeed stabilized instead of relying
14502         on assumptions on what the stabilizer does.
14503         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
14504         type imported through a limited_with clause, use its non-limited view.
14505         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
14506         differentiation.
14507         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
14508         of #if sections + explicit comparisons of convention identifiers.
14509         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
14510         before early-returning for certain types when code generation is
14511         disabled.
14512         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
14513         nullification of gnu_expr we do for objects with address clause and
14514         that we are not defining.
14515         (elaborate_expression_1): Do not create constants when creating
14516         variables needed by the debug info: the dwarf2 writer considers that
14517         CONST_DECLs is used only to represent enumeration constants, and emits
14518         nothing for them.
14519         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
14520         object with an address clause into an indirect reference, drop the
14521         initializing expression.
14522         Include "expr.h".
14523         (STACK_CHECK_BUILTIN): Delete.
14524         (STACK_CHECK_PROBE_INTERVAL): Likewise.
14525         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
14526         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
14527         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
14528         corresponding to the renamed object as ignored for debugging purposes.
14529
14530         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
14531         related): For a prefix that is a dereference of a fat or thin pointer,
14532         if there is an actual subtype provided by the front-end, use that
14533         subtype to build an actual type with bounds template.
14534         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
14535         is provided by the front-end, use that subtype to compute the size of
14536         the deallocated object.
14537         (gnat_to_gnu): When adding a statement into an elaboration procedure,
14538         check for a potential violation of a No_Elaboration_Code restriction.
14539         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
14540         with extra arguments to control whether to recurse through non-values
14541         and to let the caller know if the stabilization has succeeded.
14542         (gnat_stabilize_reference): Now a simple wrapper around
14543         maybe_stabilize, for common uses without restriction on lvalues and
14544         without need to check for the success indication.
14545         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
14546         pass false instead of 0 as the FORCE argument which is a bool.
14547         (Identifier_to_gnu): Remove checks ensuring that an renamed object
14548         attached to a renaming pointer has been properly stabilized, as no such
14549         object is attached otherwise.
14550         (call_to_gnu): Invoke create_var_decl to create the temporary when the
14551         function uses the "target pointer" return mechanism.
14552         Reinstate conversion of the actual to the type of the formal
14553         parameter before any other specific treatment based on the passing
14554         mechanism. This turns out to be necessary in order for PLACEHOLDER
14555         substitution to work properly when the latter type is unconstrained.
14556
14557         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
14558         common pattern.
14559         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
14560         with extra arguments to control whether to recurse through non-values
14561         and to let the caller know if the stabilization has succeeded.
14562
14563         * utils2.c (gnat_build_constructor): Only sort the fields for possible
14564         static output of record constructor if all the components are constant.
14565         (gnat_build_constructor): For a record type, sort the list of field
14566         initializers in increasing bit position order.
14567         Factor common code to build a storage type for an unconstrained object
14568         from a fat or thin pointer type and a constrained object type.
14569         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
14570         types variants, and process special cases of VIEW_CONVERT expressions
14571         as their NOP_EXPR counterpart to ensure we get to the
14572         CORRESPONDING_VARs associated with CONST_DECls.
14573         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
14574         on the right-hand side.
14575
14576         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
14577         a common pattern.
14578         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
14579         are converting back to its original type.
14580         (convert) <JM input>: Fallthrough regular conversion code instead of
14581         extracting the object if converting to a type variant.
14582         (create_var_decl): When a variable has an initializer requiring code
14583         generation and we are at the top level, check for a potential violation
14584         of a No_Elaboration_Code restriction.
14585         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
14586         SIZE and SIZE_UNIT which we need for later back-annotations.
14587         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
14588         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
14589         is an unchecked union.
14590         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
14591         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
14592         main variant, just replace the VIEW_CONVERT_EXPR.
14593         <UNION_TYPE>: Revert 2005-03-02 change.
14594
14595         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
14596
14597         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
14598
14599 2005-11-14  Matthew Heaney  <heaney@adacore.com>
14600
14601         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
14602         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
14603         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
14604         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
14605         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
14606         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
14607         Compiles against the spec for ordered maps described in sections
14608         A.18.6 of the most recent (August 2005) AI-302 draft.
14609
14610 2005-11-14  Olivier Hainque  <hainque@adacore.com>
14611
14612         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
14613         to ensure bias adjustments take place when need be and to prevent
14614         occurrences of intermediate overflows.
14615
14616 2005-11-14  Matthew Gingell  <gingell@adacore.com>
14617             Olivier Hainque  <hainque@adacore.com>
14618
14619         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
14620         ia64 HP-UX.
14621
14622         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
14623         tracebacks on ia64 HP-UX and provide explanatory comment.
14624         Enable backtraces on ia64 GNU/Linux.
14625         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
14626         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
14627
14628 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
14629             Javier Miranda  <miranda@adacore.com>
14630
14631         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
14632         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
14633         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
14634         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
14635
14636         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
14637         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
14638         assertions).
14639
14640         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
14641         subprogram that generates the external name associated with a
14642         secondary dispatch table.
14643         (Get_Secondary_DT_External_Name): New subprogram that generates the
14644         external name associated with a secondary dispatch table.
14645
14646 2005-11-14  Emmanuel Briot  <briot@adacore.com>
14647
14648         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
14649         line in the ALI file to include both an instantiation reference, and a
14650         returned value.
14651
14652 2005-11-14  Vincent Celier  <celier@adacore.com>
14653
14654         * clean.adb (Check_Project): Look for Ada code in extending project,
14655         even if Ada is not specified as a language.
14656         Use new function DLL_Prefix for DLL_Name
14657         (Clean_Interface_Copy_Directory): New procedure
14658         (Clean_Library_Directory): New procedure
14659         (Clean_Directory): Remove procedure, no longer used
14660         (Clean_Project): Do not delete any file in an externally built project
14661
14662         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
14663         directory of an extending project, even when there are no Ada source
14664         present.
14665         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
14666         (Set_Ada_Paths.Add.Recursive_Add): Ditto
14667
14668         * mlib-prj.adb (Check_Library): For all library projects, get the
14669         library file timestamp.
14670         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
14671         (Build_Library): Use new function DLL_Prefix for the DLL_Name
14672         (Clean): Remove procedure, no longer used
14673         (Ultimate_Extension_Of): New function
14674         (Build_Library): When cleaning the library directory, only remove an
14675         existing library file and any ALI file of a source of the project.
14676         When cleaning the interface copy directory, remove any source that
14677         could be a source of the project.
14678
14679         * prj.ads, prj.adb (Project_Empty): Add values of new components
14680         Library_TS and All_Imported_Projects.
14681         (Project_Empty): Add values for new components of Project_Data:
14682         Library_ALI_Dir and Display_Library_ALI_Dir
14683
14684         * prj-attr.adb: New project level attribute name Library_ALI_Dir
14685
14686         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
14687         attribute Library_ALI_Dir.
14688         (Check_Library_Attributes): The library directory cannot be the same as
14689         any source directory of the project tree.
14690         (Check_Stand_Alone_Library): The interface copy directory cannot be
14691         the same as any source directory of the project tree.
14692
14693         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
14694         all temporary files.
14695
14696 2005-11-14  Robert Dewar  <dewar@adacore.com>
14697             Ed Schonberg  <schonberg@adacore.com>
14698
14699         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
14700         (Check_Elab_Call): A call within a protected body is never an
14701         elaboration call, and does not require checking.
14702         (Same_Elaboration_Scope): Take into account protected types for both
14703         entities.
14704         (Activate_Elaborate_All_Desirable): New procedure
14705
14706         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
14707         desirable
14708
14709         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
14710         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
14711
14712         * lib-writ.ads, lib-writ.adb: 
14713         Implement new AD/ED for Elaborate_All/Elaborate desirable
14714         Use new Elaborate_All_Desirable flag in N_With_Clause node
14715
14716         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
14717         N_Free_Statement nodes.
14718         Define new class N_Subprogram_Instantiation
14719         Add Elaborate_Desirable flag to N_With_Clause node
14720         Add N_Delay_Statement (covering two kinds of delay)
14721
14722         * debug.adb: Introduce d.f flag for compiler
14723         Add -da switch for binder
14724
14725 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
14726             Cyrille Comar  <comar@adacore.com>
14727
14728         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
14729         for task component, in the case of a limited aggregate. The enclosed
14730         object declaration will create it earlier. Otherwise, in the case of a
14731         nested aggregate, the object may appear in the wrong scope.
14732         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
14733         (Gen_Assign): If the component being assigned is an array type and the
14734         expression is itself an aggregate, wrap the assignment in a block to
14735         force finalization actions on the temporary created for each row of the
14736         enclosing object.
14737         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
14738         structures are initialized after all discriminants are set so that
14739         they can be accessed even when their offset is dynamic.
14740
14741 2005-11-14  Robert Dewar  <dewar@adacore.com>
14742             Hristian Kirtchev  <kirtchev@adacore.com>
14743
14744         * sem_attr.adb: Implement Machine_Rounding attribute
14745         (Analyze_Access_Attribute): The access attribute may appear within an
14746         aggregate that has been expanded into a loop.
14747         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
14748         'Terminated whenever the prefix is of a task interface class-wide type.
14749         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
14750         the prefix is of a task interface class-wide type.
14751
14752         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
14753         to avoid warnings.
14754
14755         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
14756         Remove pragma Inline for [Unaligned_]Valid.
14757         Add comments that Valid routines do not work for Vax_Float
14758
14759         * exp_attr.adb: Implement Machine_Rounding attribute
14760
14761         * snames.h: Add entry for Machine_Rounding attribute
14762
14763 2005-11-14  Javier Miranda  <miranda@adacore.com>
14764             Robert Dewar  <dewar@adacore.com>
14765             Hristian Kirtchev  <kirtchev@adacore.com>
14766
14767         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
14768         and related): For a prefix that is an explicit dereference of an
14769         access to unconstrained packed array type, annotate the dereference
14770         with an actual subtype so GIGI can make a correct size computation.
14771         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
14772         'Unrestricted_Access, if the designated type is an interface we
14773         add a type conversion to force the displacement of the pointer
14774         to the secondary dispatch table.
14775         Use Universal_Real instead of Long_Long_Float when we need a high
14776         precision float type for the generated code (prevents gratuitous
14777         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
14778         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
14779         'Terminated for task interface class-wide objects. Generate a call to
14780         the predefined dispatching routine used to retrieve the _task_id from
14781         a task corresponding record.
14782         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
14783
14784         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
14785         (Check_Dispatching_Operation): Protect the frontend againts
14786         previously detected errors.
14787
14788         * Makefile.rtl: Add new instantiations of system.fat_gen
14789
14790         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
14791         Change name of instantiated package for better consistency
14792         with newly added system.fat_gen instantiations.
14793
14794         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
14795         s-fvagfl.ads: New files.
14796
14797 2005-11-14  Cyrille Comar  <comar@adacore.com>
14798             Thomas Quinot  <quinot@adacore.com>
14799
14800         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
14801         assignment of a value of a tagged type that has been rewritten to a
14802         block statement, it is known by construction that no checks are
14803         necessary for the statements within the block: analyze it with checks
14804         suppressed.
14805         (Expand_N_If_Statement): When killing a dead then-branch in an
14806         if-statement that has elsif_parts, recompute the Current_Value node
14807         for any entity whose value is known from the condition of the first
14808         elsif_part.
14809         (Expand_N_Return_Statement): When returning a mutable record, convert
14810         the return value into its actual subtype in order to help the backend
14811         to return the actual size instead of the maximum. This is another
14812         aftermath of not returning mutable records on the sec-stack anymore.
14813
14814         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
14815         handling of error msg for suspicious reverse range iteration.
14816         (Check_Possible_Current_Value_Condition): Move declaration from body to
14817         spec, to allow this subprogram to be called from exp_ch5.
14818
14819 2005-11-14  Thomas Quinot  <quinot@adacore.com>
14820
14821         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
14822         generate a set of nested array aggregates instead of a single flat
14823         aggregate for multi-dimensional arrays.
14824
14825 2005-11-14  Pascal Obry  <obry@adacore.com>
14826
14827         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
14828         by spawnve is a process handle, no need to convert. Add a parameter
14829         close to control wether the process handle must be closed.
14830         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
14831         a process handle, not need to convert.
14832         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
14833
14834         * g-expect.adb: (Kill): Document the new close parameter.
14835         (Close): Do not release the process handle in the kill there as
14836         waitpid() is using it.
14837         (Send_Signal): Release the process handle.
14838
14839 2005-11-14  Robert Dewar  <dewar@adacore.com>
14840
14841         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
14842         need a high precision float type for the generated code (prevents
14843         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
14844         used).
14845
14846         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
14847         need a high precision float type for the generated code (prevents
14848         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
14849         used).
14850         (Expand_Width_Attribute): In configurable run-time, the attribute is not
14851         allowed on non-static enumeration subtypes. Force a load error to emit
14852         the correct diagnostic.
14853
14854 2005-11-14  Thomas Quinot  <quinot@adacore.com>
14855             Robert Dewar  <dewar@adacore.com>
14856             Ed Schonberg  <schonberg@adacore.com>
14857
14858         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
14859         subtype to compute the size of the designated object at run-time,
14860         create such a subtype and store it in the Actual_Designated_Subtype
14861         attribute of the N_Free_Statement.
14862         Generate itype for classwide designated object in both cases of
14863         user-specified storage pool: specific and class-wide, not only in the
14864         specific case.
14865         Raise CE when trying to set a not null access type object to null.
14866         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
14867         an explicit loop, because freeze nodes make its position variable.
14868
14869         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
14870         null object.
14871
14872 2005-11-14  Javier Miranda  <miranda@adacore.com>
14873
14874         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
14875         Build_Stream_Procedure): Add the null-excluding attribute to the first
14876         formal.
14877         This has no semantic meaning under Ada95 mode but it is a
14878         requirement under Ada05 mode.
14879
14880         * par-ch3.adb (P_Access_Definition): Addition of warning message if
14881         the null exclusion is used under Ada95 mode
14882         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
14883         (P_Access_Definition): Remove assertion that forbids the use of
14884         the null-exclusion feature in Ada95.
14885
14886 2005-11-14  Robert Dewar  <dewar@adacore.com>
14887
14888         * impunit.adb: Exclude container helper units not intended for use by
14889         users.
14890
14891 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
14892
14893         * freeze.adb (Freeze_Entity): For an access formal that is an access
14894         to subprogram, freeze the anonymous subprogram type at the same time,
14895         to prevent later freezing in the wrong scope, such as the enclosing
14896         subprogram body.
14897         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
14898         subprogram whenever available.
14899
14900 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
14901
14902         PR ada/23732
14903         * gnatvsn.ads (Library_Version): Bump to 4.1
14904
14905 2005-11-14  Robert Dewar  <dewar@adacore.com>
14906
14907         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
14908         Storage_Offset to avoid wrap around causing invalid results.
14909
14910 2005-11-14  Pascal Obry  <obry@adacore.com>
14911
14912         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
14913         cross-compiler.
14914         (Scan_Bind_Arg): Fail with an error message if -M option is used
14915         on a native compiler.
14916
14917 2005-11-14  Robert Dewar  <dewar@adacore.com>
14918             Vincent Celier  <celier@adacore.com>
14919
14920         * gprep.adb: Implement -C switch to scan comments
14921
14922         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
14923
14924         * scans.ads: Comment updates (including new use of Tok_Comment in
14925         preprocessing)
14926
14927         * opt.ads: Add documentation for flags that are used by gprmake,
14928         currently and in the next version of gprmake.
14929         (Verbosity_Level): New variable
14930         Add Replace_In_Comments switch
14931
14932         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
14933         and -vm.
14934         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
14935
14936 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
14937
14938         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
14939         message, friendlier.
14940
14941 2005-11-14  Robert Dewar  <dewar@adacore.com>
14942
14943         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
14944
14945 2005-11-14  Doug Rupp  <rupp@adacore.com>
14946
14947         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
14948
14949 2005-11-14  Robert Dewar  <dewar@adacore.com>
14950
14951         * interfac.ads: Change declarations of IEEE float types so that we no
14952         longer need a separate version of this package for VMS.
14953
14954 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
14955
14956         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
14957         internal entity created for the declaration of a child subprogram body
14958         with no spec as coming from source, to generate proper cross-reference
14959         information.
14960
14961 2005-11-14  Vincent Celier  <celier@adacore.com>
14962
14963         * make.adb (Compile_Sources): Change verbose message to minimum
14964         verbosity level High for "is in an Ada library", "is a read-only
14965         library" and "is an internal library",
14966         (Create_Binder_Mapping_File): Path name of ALI file for library project
14967         must include the library directory, not the object directory.
14968         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
14969         for new switches -vl, -vm and -vh.
14970         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
14971         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
14972         (Compile_Sources): Do not attempt to compile if an ALI file is missing
14973         in a project that is externally built.
14974         (Compute_All_Imported_Projects): New procedure
14975         (Gnatmake): Check if importing libraries should be regenerated because
14976         at least an imported library is more recent.
14977         (Initialize): For each project compute the list of the projects it
14978         imports directly or indirectly.
14979         (Add_Library_Search_Dir): New procedure, used in place of
14980         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
14981         put in the search paths.
14982         (Add_Source_Search_Dir): New procedure, used in place of
14983         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
14984         put in the search paths.
14985         (Mark_Directory): Resolve the absolute path the directory before marking
14986         it.
14987
14988         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
14989         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
14990         Switch. Do not handle any exception.
14991         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
14992         so that the switch is recognized as valid.
14993         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
14994
14995 2005-11-14  GNAT Script  <nobody@adacore.com>
14996
14997         * Make-lang.in: Makefile automatically updated
14998
14999 2005-11-14  Pascal Obry  <obry@adacore.com>
15000
15001         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
15002         used.
15003         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
15004         In both cases the last argument was dropped.
15005
15006 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
15007
15008         * namet.h: (Column_Numbe): New type.
15009         (Get_Column_Number): Define to sinput__get_column_number.
15010         (Instantiation): Define to sinput__instantiation.
15011         (Get_Column_Number): Declare.
15012         (Instantiation): Likewise.
15013
15014 2005-11-14  Robert Dewar  <dewar@adacore.com>
15015
15016         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
15017         syntax, which could cause compiler hangs.
15018
15019 2005-11-14  Vincent Celier  <celier@adacore.com>
15020
15021         * prj-ext.adb: Take into account new environment variable
15022         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
15023         are defined.
15024         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
15025         normalize its path name, making it absolute and resolving symbolic
15026         links, and replace the original if resolved path is different.
15027
15028 2005-11-14  Vincent Celier  <celier@adacore.com>
15029
15030         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
15031         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
15032
15033 2005-11-14  Emmanuel Briot  <briot@adacore.com>
15034
15035         * prj-pp.adb (Print): Do not output the with statement if the
15036         associated name is empty, which happens for virtual extending projects.
15037         (Print): Preserve the "extends all" attribute when printing the project.
15038
15039         * prj-tree.ads (String_Value_Of): Add comment about returned value for
15040         a virtual extending project.
15041
15042 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
15043
15044         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
15045         rhs of an assignment even if the type is unconstrained, when the
15046         context is non-expanding.
15047         In an inlined body, if the context type is private,
15048         resolve with its full view, which must be a composite type.
15049
15050 2005-11-14  Robert Dewar  <dewar@adacore.com>
15051             Ed Schonberg  <schonberg@adacore.com>
15052
15053         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
15054         Do not give obsolescent warning on with of subprogram (since we
15055         diagnose calls)
15056         (Analyze_With_Clause): Add test for obsolescent package
15057         (Install_Context_Clauses): If the unit is the body of a child unit, do
15058         not install twice the private declarations of the parents, to prevent
15059         circular lists of Use_Clauses in a parent.
15060         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
15061         compiling body of child unit.
15062         Use new class N_Subprogram_Instantiation
15063         (Expand_With_Clause): If this is a private with_clause for a child unit,
15064         appearing in the context of a package declaration, then the implicit
15065         with_clauses generated for parent units are private as well.
15066         (License_Check): Do not generate message if with'ed unit is internal
15067
15068 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
15069             Ed Schonberg  <schonberg@adacore.com>
15070             Thomas Quinot  <quinot@adacore.com>
15071
15072         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
15073         names are internal, because they will not have a corresponding partner
15074         in the actual package.
15075         (Analyze_Formal_Package): Move the setting of the formal package spec's
15076         Generic_Parent field so that it occurs prior to analyzing the package,
15077         to allow proper operation of Install_Parent_Private_Declarations.
15078         (Analyze_Package_Instantiation): Set the instantiated package entity's
15079         Package_Instantiation field.
15080         (Get_Package_Instantiation_Node): Move declaration to package spec.
15081         Retrieve the N_Package_Instantiation node when the Package_Instantiation
15082         field is present.
15083         (Check_Generic_Child_Unit): Within an inlined call, the only possible
15084         instantiation is Unchecked_Conversion, for which no parents are needed.
15085         (Inline_Instance_Body): Deinstall and record the use_clauses for all
15086         parent scopes of a scope being removed prior to inlining an instance
15087         body.
15088         (Analyze_Package_Instantiation): Do not perform front-end inlining when
15089         the current context is itself an instance within a non-instance child
15090         unit, to prevent scope stack errors.
15091         (Save_References): If the node is an aggregate that is an actual in a
15092         call, rewrite as a qualified expression to preserve some type
15093         information, to resolve possible ambiguities in the instance.
15094         (Instance_Parent_Unit): New global variable to record the ultimate
15095         parent unit associated with a generic child unit instance (associated
15096         with the existing Parent_Unit_Visible flag).
15097         (type Instance_Env): New component Instance_Parent_Unit for stacking
15098         parents recorded in the global Instance_Parent_Unit.
15099         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
15100         stack.
15101         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
15102         it's not a top-level unit, and only do this if Instance_Parent_Unit is
15103         not already set. Replace test of Is_Child_Unit with test of parent's
15104         scope against package Standard. Add comments and a ??? comment.
15105         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
15106         on a child instance parent to test that the parent equals
15107         Instance_Parent rather than simply checking that the unit is not a
15108         child unit.
15109         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
15110         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
15111         a formal interface are ancestors of the corresponding actual.
15112         (Validate_Formal_Interface_Type): Additional legality checks.
15113         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
15114         interface types with ancestors.
15115         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
15116         to diagnose attempts to use generic within its own declaration.
15117
15118 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
15119             Javier Miranda  <miranda@adacore.com>
15120
15121         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
15122         discriminant.
15123         (Build_Private_Derived_Type): The entity of the created full view of the
15124         derived type does not come from source. If after installing the private
15125         declarations of the parent scope the parent is still private, use its
15126         full view to construct the full declaration of the derived type.
15127         (Build_Derived_Record_Type): Relax the condition that controls the
15128         execution of the check that verifies that the partial view and
15129         the full view agree in the set of implemented interfaces. In
15130         addition, this test now only takes into account the progenitors.
15131         (Derive_Interface_Subprograms): No need to derive subprograms
15132         of ancestors that are interfaces.
15133         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
15134         associated code.
15135         Change name Is_Package to Is_Package_Or_Generic_Package
15136         (Complete_Subprograms_Derivation): Handle the case in which the full
15137         view is a transitive derivation of the ancestor of the partial view.
15138         (Process_Full_View): Rename local subprogram Find_Interface_In_
15139         Descendant to Find_Ancestor_Interface to leave the code more clear.
15140         Remove wrong code that avoids the generation of an error message
15141         when the immediate ancestor of the partial view is an interface.
15142         In addition some minor reorganization of the code has been done to
15143         leave it more clear.
15144         (Analyze_Type_Declaration): If type has previous incomplete tagged
15145         partial view, inherit properly its primitive operations.
15146         (Collect_Interfaces): Make public, for analysis of formal
15147         interfaces.
15148         (Analyze_Interface_Declaration): New procedure for use for regular and
15149         formal interface declarations.
15150         (Build_Derived_Record_Type): Add support for private types to the code
15151         that checks if a tagged type implements abstract interfaces.
15152         (Check_Aliased_Component_Type): The test applies in the spec of an
15153         instance as well.
15154         (Access_Type_Declaration): Clean up declaration of malformed type
15155         declared as an access to its own classwide type, to prevent cascaded
15156         crash.
15157         (Collect_Interfaces): For private extensions and for derived task types
15158         and derived protected types, the parent may be an interface that must
15159         be included in the interface list.
15160         (Access_Definition): If the designated type is an interface that may
15161         contain tasks, create Master_Id for it before analyzing the expression
15162         of the declaration, which may be an allocator.
15163         (Record_Type_Declaration): Set properly the interface kind, for use
15164         in allocators, the creation of master id's for task interfaces, etc.
15165
15166 2005-11-14  Javier Miranda  <miranda@adacore.com>
15167             Ed Schonberg  <schonberg@adacore.com>
15168
15169         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
15170         omitted in case of stream attribute subprograms.
15171         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
15172         appear immediately after a subprogram body, when there is no previous
15173         subprogram declaration.
15174         Change name Is_Package to Is_Package_Or_Generic_Package
15175         (Process_Formals): A non null qualifier on a non null named access
15176         type is not an error, and is a warning only if Redundant_Constructs
15177         are flagged.
15178
15179 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
15180             Ed Schonberg  <schonberg@adacore.com>
15181
15182         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
15183         nested within Analyze_Package_Specification to install the private
15184         declarations and use clauses within each of the parent units of a
15185         package instance of a generic child package.
15186         (Analyze_Package_Specification): When entering a private part of a
15187         package associated with a generic instance or formal package, the
15188         private declarations of the parent must be installed (by calling new
15189         procedure Install_Parent_Private_Declarations).
15190         Change name Is_Package to Is_Package_Or_Generic_Package
15191         (Preserve_Full_Attributes): For a synchronized type, the corresponding
15192         record is absent in a generic context, which does not indicate a
15193         compiler error.
15194
15195 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
15196
15197         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
15198         not try to rewrite a renamed stream attribute, because the operations
15199         on the type may not have been generated.
15200         Handle properly a renaming_as_body generated for a stream operation
15201         whose default is abstract because the object type itself is abstract.
15202         (Find_Type): If the type is incomplete and appears as the prefix of a
15203         'Class reference, it is tagged, and its list of primitive operations
15204         must be initialized properly.
15205         (Chain_Use_Clauses): When chaining the use clauses that appear in the
15206         private declaration of a parent unit, prior to compiling the private
15207         part of a child unit, find on the scope stack the proper parent entity
15208         on which to link the use clause.
15209         (Note_Redundant_Use): Emit a warning when a redundant use clause is
15210         detected.
15211         (Analyze_Object_Renaming): An attribute reference is not a legal object
15212         if it is not a function call.
15213
15214 2005-11-14  Robert Dewar  <dewar@adacore.com>
15215             Ed Schonberg  <schonberg@adacore.com>
15216
15217         * sem_eval.adb: Implement d.f flag
15218         (Subtype_Statically_Match): A generic actual type has unknown
15219         discriminants when the corresponding actual has a similar partial view.
15220         If the routine is called to validate the signature of an inherited
15221         operation in a child instance, the generic actual matches the full view,
15222
15223 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
15224             Ed Schonberg  <schonberg@adacore.com>
15225             Robert Dewar  <dewar@adacore.com>
15226             Thomas Quinot  <quinot@adacore.com>
15227
15228         * sem_res.adb (Resolve_Call): Provide a better error message whenever
15229         a procedure call is used as a select statement trigger and is not an
15230         entry renaming or a primitive of a limited interface.
15231         (Valid_Conversion): If the operand has a single interpretation do not
15232         remove address operations.
15233         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
15234         statement to inhibit warning.
15235         (Resolve_Unary_Op): Do not produce a warning when
15236         processing an expression of the form -(A mod B)
15237         Use Universal_Real instead of Long_Long_Float when we need a high
15238         precision float type for the generated code (prevents gratuitous
15239         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
15240         (Resolve_Concatenation_Arg): Improve error message when argument is an
15241         ambiguous call to a function that returns an array.
15242         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
15243         there is an implicit operator in the given scope if we are within an
15244         instance: legality check has been performed on the generic.
15245         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
15246         after resolving operand, to avoid false warnings on overloaded calls.
15247
15248 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
15249             Javier Miranda  <miranda@adacore.com>
15250
15251         PR ada/15604
15252         * sem_type.adb (Covers): In an inlined body, a composite type matches
15253         a private type whose full view is a composite type.
15254         (Interface_Present_In_Ancestor): Protect the frontend against
15255         previously detected errors to ensure that its compilation
15256         with assertions enabled gives the same output that its
15257         compilation without assertions.
15258         (Interface_Present_In_Ancestor): Add support for private types.
15259         Change name In_Actual to In_Generic_Actual (clean up)
15260         (Disambiguate): New predicate In_Actual, to recognize expressions that
15261         appear in the renaming declaration generated for generic actuals, and
15262         which must be resolved in the outer context.
15263
15264 2005-11-14  Robert Dewar  <dewar@adacore.com>
15265             Thomas Quinot  <quinot@adacore.com>
15266             Hristian Kirtchev  <kirtchev@adacore.com>
15267             Ed Schonberg  <schonberg@adacore.com>
15268
15269         * sem_util.ads, sem_util.adb: Change name Is_Package to
15270         Is_Package_Or_Generic_Package.
15271         (Check_Obsolescent): New procedure.
15272         (Set_Is_Public): Remove obsolete junk test.
15273         (Set_Public_Status): Do not set Is_Public on an object whose declaration
15274         occurs within a handled_sequence_of_statemets.
15275         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
15276         for a parameterless procedure.
15277         (Enter_Name): Recognize renaming declarations created for private
15278         component of a protected type within protected operations, so that
15279         the source name of the component can be used in the debugger.
15280
15281 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
15282             Robert Dewar  <dewar@adacore.com>
15283
15284         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
15285         of a generic subprogram are not visible outside the body.
15286         (Set_Warning_Switch): New procedure (code to set warning mode moved
15287         here from Switch.C so that it can be shared by pragma processing.
15288         (Check_References): Special case warning for non-modified non-imported
15289         volatile objects.
15290         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
15291         form with a string literal argument
15292
15293 2005-11-14  Javier Miranda  <miranda@adacore.com>
15294
15295         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
15296         anonymous access.
15297         (Write): Addition of "not null" to the anonymous access.
15298         (Read): Addition of "not null" to the anonymous access.
15299         (Write): Addition of "not null" to the anonymous access.
15300
15301         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
15302         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
15303         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
15304         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
15305         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
15306         "not null" to the anonymous access.
15307
15308 2005-11-14  Robert Dewar  <dewar@adacore.com>
15309
15310         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
15311         offset values
15312
15313 2005-11-14  Vincent Celier  <celier@adacore.com>
15314
15315         * switch.adb (Bad_Switch): New procedure
15316         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
15317         message when in error.
15318
15319         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
15320         Too_Many_Output_Files): Remove declarations, no longer used.
15321         (Scan_Nat): New parameter Switch
15322         (Scan_Pos): Ditto
15323         (Bad_Switch): New procedure
15324
15325         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
15326         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
15327         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
15328         to Osint.Fail. Do not handle any exception.
15329
15330 2005-11-14  Vincent Celier  <celier@adacore.com>
15331
15332         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
15333         designates a non existent directory.
15334
15335 2005-11-14  Robert Dewar  <dewar@adacore.com>
15336
15337         * xgnatugn.adb: Replace invalid membership test by 'Valid
15338
15339 2005-11-14  Vincent Celier  <celier@adacore.com>
15340
15341         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
15342         there is no object directory.
15343
15344 2005-11-14  Robert Dewar  <dewar@adacore.com>
15345
15346         * usage.adb: Minor adjustment to output format, use nn instead of nnn
15347         (so that -gnateInnn does not run into next column)
15348
15349 2005-11-14  Ed Falis  <falis@adacore.com>
15350
15351         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
15352         "constrained"
15353
15354 2005-11-14  Cyrille Comar  <comar@adacore.com>
15355
15356         * s-chepoo.ads: Add comments on Dereference.
15357         Remove unnecessary inherited abstract primitives.
15358         Cosmetic cleanup.
15359
15360 2005-11-14  Robert Dewar  <dewar@adacore.com>
15361
15362         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
15363         node parameter, not needed, since it is available as Declaration_Node.
15364
15365 2005-11-14  Geert Bosch  <bosch@adacore.com>
15366
15367         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
15368         grammatically correct.
15369
15370 2005-11-14  Vincent Celier  <celier@adacore.com>
15371
15372         * s-fileio.ads: Correct spelling error in comment
15373
15374 2005-11-14  Cyrille Comar  <comar@adacore.com>
15375             Robert Dewar  <dewar@adacore.com>
15376             Vincent Celier  <celier@adacore.com>
15377             Ben Brosgol  <brosgol@adacore.com>
15378             Jose Ruiz  <ruiz@adacore.com>
15379             Pascal Obry  <obry@adacore.com>
15380
15381         * gnat_ugn.texi: 
15382         Document that -fstack-check is needed for strict compliance with the
15383         Ada 95 Reference Manual.
15384         Correct reference to VAX systems to meet HP guidelines
15385         Add documentation for new gnatmake switches -vl, -vm and -vh
15386         Replace DEC Ada by HP Ada
15387         Replace DIGITAL by HP
15388         Remove empty section on tools in compatibility section
15389         Clarify the Windows convention semantics.
15390         Document the Win32 calling convention.
15391         The Stdcall, Win32 and DLL convention are synonyms.
15392         Add a note in -gnatR description about zero size record components
15393         Note on new >= and <= warnings for -gnatwc
15394         Document that equal sign after -gnatm is optional.
15395         Note that strip is working fine on DLL built with a Library
15396         Project. The restriction apply only to DLL built with gnatdll.
15397         Update section about the way to debug a DLL.
15398         Update information about the DLL convention.
15399         Document -C switch for gnatprep
15400         Document new attribute Library_ALI_Dir
15401         Update elaboration doc to include implicit Elaborate pragmas now
15402         generated for subprogram instantiations.
15403         Document limitation on executable names that include spaces for --GCC,
15404         --GNATBIND, and --GNATLINK switches.
15405         Document that -w causes -gnatws to be added at start of gcc switches
15406
15407         * gnat_rm.texi: Document that -mieee is needed for generating infinite
15408         and NaN values in case of overflow on machines that are not fully
15409         compliant with the IEEE floating-point standard.
15410         Create a section describing the set of compiler options needed for
15411         strict compliance with the Ada 95 Reference Manual.
15412         Add documentation for pragma Obsolescent applied to a package
15413         Clarify potential issues of mixed language programs related to the
15414         I/O buffering enabling in the elaboration of the GNAT runtime.
15415         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
15416         This documentation only patch adds extra documentsion for pragma
15417         Restrictions (No_Elaboration_Code), explaining why it is not possible
15418         to document this restriction in terms of allowed source constructs.
15419         Document string literal form of pragma Warnings
15420         Document new attribute Library_ALI_Dir
15421         Add documentation on stable attributes in project files that was missing
15422
15423         * gnat-style.texi: Indicate that paragraphs within a single comment
15424         should be separated by empty comment lines
15425
15426         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
15427         /05 respectively)
15428
15429         * bindusg.adb: Minor cleanup, put -m before -M for consistency
15430
15431 2005-11-14  Robert Dewar  <dewar@adacore.com>
15432
15433         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
15434         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
15435         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
15436         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
15437         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
15438         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
15439         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
15440         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
15441         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
15442         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
15443         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
15444         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
15445         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
15446         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
15447         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
15448         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
15449         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
15450         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
15451         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
15452         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
15453         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
15454         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
15455         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
15456         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
15457         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
15458         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
15459         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
15460         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
15461         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
15462         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
15463         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
15464         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
15465         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
15466         system-interix.ads, system-solaris-sparc.ads,
15467         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
15468         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
15469         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
15470         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
15471         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
15472         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
15473         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
15474         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
15475         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
15476         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
15477         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
15478         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
15479         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
15480         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
15481         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
15482         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
15483         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
15484         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
15485         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
15486         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
15487         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
15488         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
15489         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
15490         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
15491         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
15492         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
15493         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
15494         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
15495         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
15496         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
15497         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
15498         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
15499         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
15500         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
15501         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
15502         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
15503         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
15504         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
15505         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
15506         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
15507         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
15508         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
15509         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
15510         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
15511         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
15512         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
15513         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
15514         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
15515         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
15516         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
15517         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
15518         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
15519         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
15520         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
15521         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
15522         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
15523         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
15524         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
15525         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
15526         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
15527         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
15528         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
15529         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
15530         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
15531         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
15532         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
15533         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
15534         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
15535         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
15536         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
15537         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
15538         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
15539         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
15540         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
15541         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
15542         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
15543         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
15544         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
15545         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
15546         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
15547         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
15548         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
15549         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
15550         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
15551         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
15552         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
15553         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
15554         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
15555         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
15556         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
15557         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
15558         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
15559         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
15560         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
15561         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
15562         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
15563         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
15564         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
15565         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
15566         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
15567         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
15568         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
15569         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
15570         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
15571         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
15572         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
15573         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
15574         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
15575         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
15576         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
15577         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
15578         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
15579         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
15580         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
15581         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
15582         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
15583         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
15584         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
15585         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
15586         a-numaux-darwin.ads, a-numaux-darwin.adb,
15587         a-swuwha.ads, a-stunha.ads: Minor reformatting
15588
15589 2005-11-14  Robert Dewar  <dewar@adacore.com>
15590
15591         PR ada/18434
15592         * osint-m.adb: Add pragma Elaborate_All for Osint
15593
15594 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
15595
15596         PR ada/23995
15597         * trans.c (call_to_gnu): Restore statement lost in translation.
15598
15599 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
15600
15601         * init.c: Use the Linux-specific section for the IA-64/Linux target.
15602         (__gnat_adjust_context_for_raise): Add conditional code so that the
15603         IA-64 is also supported.
15604
15605 2005-11-03  James E Wilson  <wilson@specifix.com>
15606
15607         PR ada/23427
15608         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
15609         TREE_OVERFLOW check.
15610
15611 2005-09-21  Olivier Hainque  <hainque@adacore.com>
15612
15613         PR ada/22418
15614         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
15615         as we create them to store a size in bits.
15616
15617 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
15618
15619         PR ada/21937
15620         PR ada/22328
15621         PR ada/22381
15622         PR ada/22383
15623         PR ada/22419
15624         PR ada/22420
15625         * utils2.c (build_return_expr): New helper function.
15626         * gigi.h (build_return_expr): Declare it.
15627         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
15628         of manually building the RETURN_EXPR tree.
15629         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
15630         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
15631         build_binary_op for the "target pointer" case.  Use build_return_expr
15632         instead of manually building the RETURN_EXPR tree.
15633
15634 2005-09-16  Laurent GUERBY  <laurent@guerby.net>
15635
15636         PR ada/23788
15637         * s-tpinop.ads: Make this unit Preelaborate.
15638
15639 2005-09-16  Andreas Jaeger  <aj@suse.de>
15640
15641         * socket.c: Add string.h for memcpy.
15642
15643 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
15644
15645         * dec-io.ads, dec-io.adb: Removed, no longer used.
15646
15647 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
15648
15649         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
15650
15651         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
15652         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
15653         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
15654         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
15655         dependent units are Preelaborate.
15656         (Initialize): Call Interrupt_Managemeent.Initialize and
15657         OS_Primitives.Initialize to ensure proper initialization of this unit.
15658         Remove use of System.Soft_Links
15659         Make this unit Preelaborate.
15660
15661         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
15662         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
15663         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
15664         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
15665         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
15666         s-tratas.ads, s-tasinf.ads: Minor reformatting.
15667         Add pragma Preelaborate, since these packages are suitable for this
15668         categorization.
15669         Update comments.
15670
15671         * s-traent-vms.ads, s-intman-dummy.adb,
15672         s-taprop-dummy.adb: Make this unit Preelaborate.
15673
15674         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
15675         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
15676         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
15677         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
15678         s-intman-solaris.adb, s-intman-irix-athread.adb,
15679         s-intman-irix.adb: Mark this unit Preelaborate.
15680         (Initialize): New procedure.
15681         Update comments.
15682
15683         * s-taspri-linux.ads: Removed.
15684
15685         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
15686         as done by other implementations (e.g. posix).
15687
15688         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
15689         responsible for deferring abort.
15690         Mark this unit Preelaborate.
15691
15692         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
15693         proper initialization of the tasking run-time.
15694
15695         * s-tasdeb.ads: Mark this unit Preelaborate.
15696         (Known_Tasks): Add explicit default value to avoid elaboration code.
15697
15698         * s-inmaop-vms.adb (Elaboration code): Add call to
15699         Interrupt_Management.Initialize since the elaboration code depends on
15700         proper initialization of this package.
15701
15702         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
15703         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
15704         s-osprim-posix.adb: Make this unit Preelaborate.
15705
15706         * a-calend.adb: Add call to OS_Primitives.Initialize
15707
15708         * a-elchha.adb: Update use of Except.Id.Full_Name.
15709         Minor reformatting.
15710         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
15711
15712         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
15713         Move with clauses outside Warnings Off now that dependent units are
15714         Preelaborate.
15715         Use raise xxx with "..."; Ada 2005 form.
15716
15717         * a-taside.ads, a-taside.adb:
15718         Remove some dependencies, to make it easier to make this unit truly
15719         Preelaborate.
15720         Rewrite some code to be conformant with Preelaborate rules.
15721
15722         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
15723         marked Preelaborate in the future.
15724
15725         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
15726         these units Preelaborate.
15727
15728         * s-exctab.adb: Update use of Except.Id.Full_Name.
15729
15730         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
15731         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
15732         Set_Exc_Stack_Addr): Removed, no longer used.
15733         Remove reference to *Machine_State_Addr*, no longer needed.
15734
15735         * s-stalib.ads: Mark this unit as Preelaborate[_05].
15736         (Exception_Data): Full_Name is now a System.Address so that this unit
15737         can be made Preelaborate.
15738         Clean up/simplify code thanks to Full_Name being a System.Address.
15739         Remove obsolete pragma Suppress (All_Checks), no longer needed.
15740
15741         * s-taskin.ads, s-taskin.adb:
15742         Move with clauses outside Warnings Off now that dependent units are
15743         Preelaborate.
15744         Make this unit Preelaborate.
15745         (Initialize): New proceduure, replace elaboration code and makes the
15746         set up of the tasking run-time cleaner.
15747         (Detect_Blocking): Now a function instead of a deferred boolean, to
15748         obey Preelaborate rules.
15749
15750         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
15751         soft links, no longer used.
15752
15753         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
15754         packages are suitable for this categorization.
15755
15756         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
15757         since we compile run-time sources in Ada 2005 mode.
15758         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
15759         avoid having s-taprop*.adb depend on s-soflin and to avoid code
15760         duplication.
15761         Remove reference to *Machine_State_Addr*, no longer needed.
15762
15763 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
15764
15765         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
15766         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
15767         Remove reference to System.Exceptions.
15768
15769         * s-mastop-x86.adb: Removed, no longer used.
15770
15771         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
15772
15773         * a-excach.adb: Minor reformatting.
15774
15775         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
15776         instead fix new warnings that were hidden by this change.
15777         (AAA, ZZZ): Removed, replaced by...
15778         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
15779         are used instead of constants, to help make Ada.Exception truly
15780         preelaborate.
15781         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
15782         Raise_Storage_Error): File is now a System.Address, to simplify code.
15783         (Elab code): Removed, no longer used.
15784         (Null_Occurrence): Remove Warnings Off and make this construct
15785         preelaborate.
15786         Remove code related to front-end zero cost exception handling, since
15787         it is no longer used.
15788         Remove -gnatL/-gnatZ switches.
15789
15790         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
15791         Update use of Except.Msg.
15792
15793         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
15794         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
15795         to front-end zero cost exception handling, since it is no longer used.
15796         Remove -gnatL/-gnatZ switches.
15797
15798         * lib-writ.ads: Minor reformatting
15799         Remove doc of UX
15800
15801         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
15802
15803         * Make-lang.in: Remove references to s-except.ads
15804
15805         * s-except.ads: Removed, no longer used.
15806
15807         * s-mastop.ads, s-mastop.adb:
15808         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
15809         Remove reference to System.Exceptions.
15810
15811         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
15812         switch-b.adb: Remove code related to front-end zero cost exception
15813         handling, since it is no longer used.
15814         Remove -gnatL/-gnatZ switches.
15815
15816 2005-09-01  Robert Dewar  <dewar@adacore.com>
15817             Gary Dismukes  <dismukes@adacore.com>
15818             Javier Miranda  <miranda@adacore.com>
15819
15820         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
15821         type by valid test and generate warning.
15822         (Tagged_Membership): Generate call to the run-time
15823         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
15824         Change formal name Subtype_Mark to Result_Definition in several calls to
15825         Make_Function_Specification.
15826         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
15827         check for proper accessibility of the operand of a class-wide allocator.
15828         The check can be left out if checks are suppressed or if the expression
15829         has a specific tagged type whose level is known to be safe.
15830
15831         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
15832         generates the run-time check associated with null-excluding entities.
15833         (Expand_N_Return_Statement): Add tests to determine if the accessibility
15834         check on the level of the return expression of a class-wide function
15835         can be elided. The check usually isn't needed if the expression has a
15836         specific type (unless it's a conversion or a formal parameter). Also
15837         add a test for whether accessibility checks are suppressed. Augment
15838         the comments to describe the conditions for performing the check.
15839
15840 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
15841             Javier Miranda  <miranda@adacore.com>
15842             Gary Dismukes  <dismukes@adacore.com>
15843             Ed Schonberg  <schonberg@adacore.com>
15844
15845         * a-tags.adb (IW_Membership): Give support to
15846         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
15847         subprogram has been extended to look for the tag in the ancestors tag
15848         table.
15849         Update the structure of the GNAT Dispatch Table to reflect the
15850         additional two tables used in dispatching selects.
15851         Introduce appropriate array types and record components in
15852         Type_Specific_Data to reflect the two tables.
15853         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
15854         the TSD of a tag, indexed by position.
15855         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
15856         operation kind in the TSD of a tag, indexed by position.
15857
15858         * a-tags.ads: Introduce an enumeration type to capture different
15859         primitive operation kinds. Define a constant reflecting the number of
15860         predefined primitive operations.
15861         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
15862         of an entry wrapper.
15863         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
15864         callable entity of a primitive operation.
15865
15866         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
15867         primitive operations used in dispatching selects for limited
15868         interfaces, limited tagged, task and protected types what implement a
15869         limited interface.
15870         (Freeze_Type): Generate the bodies of the primitive operations used in
15871         dispatching selects for limited tagged, task and protected types that
15872         implement a limited interface. Generate statements to populate the two
15873         auxiliary tables used for dispatching in select statements.
15874         (Freeze_Record_Type): Add call to initialize the dispatch table entries
15875         associated with predefined interface primitive operations.
15876         (Build_Dcheck_Function): Change Set_Subtype_Mark to
15877         Set_Result_Definition.
15878         (Build_Variant_Record_Equality): Change Subtype_Mark to
15879         Result_Definition.
15880         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
15881         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
15882         (Build_Assignment): Simplify the code that adds the run-time-check.
15883         (Expand_N_Object_Declaration): Code cleanup.
15884
15885         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
15886         entries when there is a protected type that implements a limited
15887         interface.
15888
15889         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
15890         common routines used in expansion of dispatching selects.
15891         (Add_Private_Declarations): Select the appropriate protection type when
15892         there is a protected type that implements a limited interface.
15893         (Build_Parameter_Block): Generate a wrapped parameter block.
15894         (Build_Protected_Subprogram_Body): Select the appropriate type for
15895         locking entries when there is a protected type that implements a
15896         limited interface.
15897         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
15898         classified as entry wrappers.
15899         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
15900         asynchronous selects.
15901         (Expand_N_Conditional_Entry_Call): Add support for expansion of
15902         dispatching conditional selects.
15903         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
15904         protection when there is a protected type that implements limited
15905         interfaces.
15906         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
15907         timed selects.
15908         (Extract_Dispatching_Call): Extract the entity of the name of a
15909         dispatching call, the object parameter, actual parameters and
15910         corresponding formals.
15911         (Make_Initialize_Protection): Correct logic of protection initialization
15912         when there is a protected type that implements a limited interface.
15913         (Parameter_Block_Pack): Populate a wrapped parameter block with the
15914         values of actual parameters.
15915         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
15916         block and assign them to the original actual parameters.
15917
15918         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
15919         (Build_Protected_Sub_Specification): Change the type and name of the
15920         last formal to account for the increased variety of protection modes.
15921
15922         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
15923         entities. Used to save the value of the Is_Hidden attribute when the
15924         limited-view is installed.
15925         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
15926         the attribute of procedures classified as entry wrappers.
15927         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
15928         entity of a primitive wrapper.
15929         (Write_Entity_Flags): Output the name and value of the
15930         Is_Primitive_Wrapper attribute.
15931         (Write_Field27_Name): Output the name and entity of the field Wrapped_
15932         Entity.
15933         (Underlying_Type): If we have an incomplete entity that comes from
15934         the limited view then we return the Underlying_Type of its non-limited
15935         view if it is already available.
15936         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
15937         including operators.
15938         (Write_Field26_Name): Add entry for Overridden_Operation
15939         (Overridden_Operation): New attribute of functions and procedures.
15940
15941         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
15942         predefined position in the dispatch table for the primitive operations
15943         used in dispatching selects.
15944         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
15945         predefined primitive operations and replace it with
15946         Default_Prim_Op_Count.
15947         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
15948         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
15949         the names of the generated primitive operations used in dispatching
15950         selects.
15951         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
15952         case of abstract interface types. They will be inherit by the objects
15953         implementing the interface.
15954         (Make_DT): There is no need to inherit the dispatch table of the
15955         ancestor interface for the elaboration of abstract interface types.
15956         The dispatch table will be inherited by the object implementing the
15957         interface.
15958         (Copy_Secondary_DTs): Add documentation.
15959         (Validate_Position): Improve this static check in case of
15960         aliased subprograms because aliased subprograms must have
15961         the same position.
15962         (Init_Predefined_Interface_Primitives): New subprogram that initializes
15963         the entries associated with predefined primitives of all the secondary
15964         dispatch tables.
15965         (Build_Anonymous_Access_Type): Removed.
15966         (Expand_Interface_Actuals): With the previous cleanup there is no need
15967         to build an anonymous access type. This allows further cleanup in the
15968         code generated by the expander.
15969         (Expand_Interface_Conversion): If the actual is an access type then
15970         build an internal function to handle the displacement. If the actual
15971         is null this function returns null because no displacement is
15972         required; otherwise performs a type conversion that will be
15973         expanded in the code that returns the value of the displaced actual.
15974         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
15975         conversions that have no effect in the generated code because no
15976         displacement is required. Code cleanup; use local variables to
15977         avoid repeated calls to the subprogram directly_designated_type().
15978
15979         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
15980         Classify the primitive operations used in dispatching selects as
15981         predefined.
15982         (Implements_Limited_Interface): Determine whether some type either
15983         directly implements a limited interface or extends a type that
15984         implements a limited interface.
15985         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
15986         (Expand_Subtype_From_Expr): Do not build actual subtype if the
15987         expression is limited.
15988         (Find_Interface_Tag): Add code to handle class-wide types and
15989         entities from the limited-view.
15990
15991         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
15992         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
15993         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
15994         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
15995         Set_Prim_Op_Kind.
15996
15997         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
15998         of procedure name or prefix that appears as a trigger in a triggering
15999         alternative.
16000
16001         * uintp.ads: Introduce constants Uint_11 and Uint_13.
16002
16003 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
16004
16005         * s-tataat.adb, a-tasatt.adb:
16006         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
16007
16008         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
16009         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
16010         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
16011         longer used.
16012
16013 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
16014             Jose Ruiz  <ruiz@adacore.com>
16015
16016         * s-taprop-vxworks.adb:
16017         Move with clauses outside Warnings Off now that dependent units are
16018         Preelaborate.
16019         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
16020         initialization of this unit.
16021         (Specific): Add new procedures Initialize and Delete so that this
16022         package can be used for VxWorks 5.x and 6.x
16023         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
16024         differences between VxWorks 5.x and 6.x
16025         Minor reformatting.
16026         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
16027         caller.
16028         Use only Preelaborate-compatible constructs.
16029
16030         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
16031         Primitives.Operations.
16032         (Delete, Initialize): New procedures.
16033
16034         * s-osinte-vxworks.adb: Body used to handle differences between
16035         VxWorks 5.x and 6.x
16036         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
16037
16038         * s-osinte-vxworks.ads: Minor reformatting.
16039         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
16040         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
16041         and 6.
16042         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
16043         between Vxworks 5 and 6.
16044         (taskLock, taskUnlock): Removeed, no longer used.
16045
16046         * adaint.c: The wait.h header is not located in the sys directory on
16047         VxWorks when using RTPs.
16048         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
16049         using RTPs.
16050         (__gnat_dup): dup is available on Vxworks when using RTPs.
16051         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
16052
16053         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
16054
16055         * expect.c: The wait.h header is not located in the sys directory on
16056         VxWorks when using RTPs.
16057
16058 2005-09-01  Thomas Quinot  <quinot@adacore.com>
16059
16060         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
16061
16062         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
16063
16064         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
16065         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
16066         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
16067         g-soccon-freebsd.ads: Add new constants:
16068          IP_MULTICAST_IF
16069          SO_RCVTIMEO/SO_SNDTIMEO
16070          IOV_MAX
16071
16072         * gen-soccon.c:
16073         Move all target-specific file inclusions and macro definitions to
16074         gsocket.h, in order to ensure that any C code in socket.c will see a
16075         set of constants that is consistent with the contents of g-soccon.ads.
16076
16077         * gsocket.h: Code imported from gen-soccon.c:
16078         Move all target-specific file inclusions and macro definitions to
16079         gsocket.h, in order to ensure that any C code in socket.c will see a set
16080         of constants that is consistent with the contents of g-soccon.ads.
16081         This change also makes gen-soccon self-contained (removing dependencies
16082         upon GCC internal headers).
16083
16084         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
16085         iovecs at a time.
16086         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
16087
16088         * socket.c: Minor reformatting.
16089
16090 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
16091             Thomas Quinot  <quinot@adacore.com>
16092
16093         * fname-sf.adb, mlib-tgt.ads,
16094         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
16095         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
16096         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
16097         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
16098         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
16099         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
16100         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
16101         makegpr.adb: Remove redundant use_clauses.
16102
16103 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
16104
16105         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
16106         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
16107         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
16108         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
16109         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
16110         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
16111         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
16112         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
16113         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
16114         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
16115         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
16116         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
16117         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
16118         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
16119         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
16120         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
16121         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
16122         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
16123         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
16124         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
16125         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
16126         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
16127         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
16128         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
16129         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
16130         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
16131         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
16132         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
16133         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
16134         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
16135         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
16136         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
16137         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
16138         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
16139         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
16140         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
16141         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
16142         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
16143         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
16144         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
16145         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
16146         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
16147         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
16148         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
16149         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
16150         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
16151         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
16152         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
16153         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
16154         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
16155         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
16156         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
16157         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
16158         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
16159         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
16160         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
16161         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
16162         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
16163         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
16164         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
16165         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
16166         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
16167         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
16168         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
16169         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
16170         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
16171         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
16172         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
16173         and always use the no parameter form for consistency.
16174
16175         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
16176
16177 2005-09-01  Robert Dewar  <dewar@adacore.com>
16178
16179         * binde.adb: Minor reformatting
16180         (Find_Elab_Order): Output warning if -p used with static elab order
16181
16182 2005-09-01  Robert Dewar  <dewar@adacore.com>
16183
16184         * checks.adb (Check_Needed): New procedure, deals with removing checks
16185         based on analysis of short-circuited forms. Also generates warnings for
16186         improper use of non-short-circuited forms.
16187         Code clean ups.
16188
16189 2005-09-01  Robert Dewar  <dewar@adacore.com>
16190
16191         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
16192         with 'Valid tests.
16193
16194 2005-09-01  Robert Dewar  <dewar@adacore.com>
16195
16196         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
16197         spec.
16198         Implement new insertion char < (conditional warning)
16199         * errutil.adb, erroutc.adb: Implement new insertion char <
16200         (conditional warning).
16201         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
16202         (Error_Msg_Warn): New variable for < insertion char.
16203         * prj-nmsc.adb: Implement new errout insertion char < (conditional
16204         warning).
16205         (Check_For_Source): Change value of Source_Id only after the current
16206         source has been dealt with.
16207
16208 2005-09-01  Robert Dewar  <dewar@adacore.com>
16209             Doug Rupp  <rupp@adacore.com>
16210
16211         * exp_attr.adb: Handle vax fpt for 'Valid attribute
16212         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
16213         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
16214         (Valid_D, Valid_F, Valid_G): New functions
16215
16216 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
16217             Hristian Kirtchev  <kirtchev@adacore.com>
16218             Javier Miranda  <miranda@adacore.com>
16219
16220         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
16221         from object notation, the original node is unanalyzed and carries no
16222         semantic information, so that accessiblity checks must be performed on
16223         the type of the actual itself.
16224         (Expand_N_Subprogram_Declaration): Change last actual parameter for
16225         compatibility with Build_Protected_Sub_Specification.
16226         (Check_Overriding_Inherited_Interfaces): Add suport to handle
16227         overloaded primitives.
16228         (Register_Interface_DT_Entry): Use the new name of the formal
16229         the the calls to Expand_Interface_Thunk
16230
16231         * exp_dbug.ads: Augment comments on encoding of protected types to
16232         include the generation of dispatching subprograms when the type
16233         implements at least one interface.
16234
16235         * lib.ads: Extend information in Load_Stack to include whether a given
16236         load comes from a Limited_With_Clause.
16237
16238         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
16239         whether a potential circularity is harmless, because it includes units
16240         loaded through a limited_with clause. Extends previous treatment which
16241         did not handle properly arbitrary combinations of limited and
16242         non-limited clauses.
16243
16244 2005-09-01  Nicolas Setton  <setton@adacore.com>
16245
16246         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
16247         to be encoded as typ___XBLU_lowerbound__upperbound instead of
16248         typ___XB_lowerbound__upperbound.
16249
16250 2005-09-01  Thomas Quinot  <quinot@adacore.com>
16251
16252         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
16253         dummy access formal for RACW/RAS TypeCode TSS.
16254         (Build_TypeCode_Call): Do not generate dummy null access actual for
16255         calls to the TypeCode TSS.
16256
16257 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
16258
16259         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
16260         fully qualified name, to distinguish instances with the same local name.
16261
16262         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
16263         fully qualified.
16264
16265 2005-09-01  Robert Dewar  <dewar@adacore.com>
16266
16267         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
16268         packed arrays.
16269
16270 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
16271
16272         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
16273         (Free): New deallocation procedure for filter elements
16274         (Close): Deallocate any existing filter for the concerned connection
16275
16276 2005-09-01  Laurent Pautet  <pautet@adacore.com>
16277
16278         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
16279         position set is provided, we compute one in order to reduce the maximum
16280         length of the keys.  This computation first selects a character
16281         position between 1 and the minimum length of the keys in order to
16282         avoid reducing one of the keys to an empty string.
16283         (Initialize, Compute): When the ratio V to K is too low, the algorithm
16284         does not converge. The initialization procedure now comes with a
16285         maximum number of iterations such that when exceeded, an exception is
16286         raised in Compute. The user can initialize this ratio to another value
16287         and try again
16288         Reformating and updated headers.
16289
16290 2005-09-01  Javier Miranda  <miranda@adacore.com>
16291
16292         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
16293         that given an entity T creates and returns an Itype that duplicates the
16294         contents of T. The returned Itype has the null-exclusion
16295         attribute set to True, and its Etype attribute references T
16296         to keep the association between the two entities.
16297         Update copyright notice
16298
16299         * sem_aggr.adb (Check_Can_Never_Be_Null,
16300         Aggregate_Constraint_Checks, Resolve_Aggregate,
16301         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
16302
16303         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
16304
16305 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
16306             Robert Dewar  <dewar@adacore.com>
16307             Hristian Kirtchev  <kirtchev@adacore.com>
16308
16309         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
16310         Result_Definition.
16311
16312         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
16313         function specs.
16314         Call Set_Result_Definition instead of Set_Subtype_Mark.
16315         (P_Subprogram_Specification): Add parsing of anonymous access result
16316         plus null exclusions. Call Set_Result_Definition instead of
16317         Set_Subtype_Mark.
16318
16319         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
16320         (P_Access_Type_Definition): Add parsing for an anonymous access result
16321         subtype, plus parsing for null exclusions. Call Set_Result_Definition
16322         instead of Set_Subtype_Mark.
16323
16324         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
16325         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
16326         (Result_Definition): New function for N_Function_Specifications.
16327         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
16328         N_Function_Specification.
16329         (Set_Null_Exclusion_Present): Allow this flag for
16330         N_Function_Specification.
16331         (Set_Result_Definition): New procedure for N_Function_Specifications.
16332         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
16333         and N_Function_Specification.
16334
16335         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
16336         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
16337         Add support for LIMITED NEW for Ada 2005 AI-419
16338         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
16339         syntax for anonymous access results.
16340         Replace Subtype_Mark field by Result_Definition in
16341         N_Function_Specification and N_Access_Definition specs.
16342         Add Null_Exclusion_Present to spec of N_Function_Specification.
16343         (Result_Definition): New function for N_Function_Specification and
16344         N_Access_Function_Definition.
16345         (Set_Result_Definition): New procedure for N_Function_Specification and
16346         N_Access_Function_Definition.
16347
16348         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
16349         Result_Definition for cases of N_Access_Function_Definition and
16350         N_Function_Specification.
16351         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
16352
16353 2005-09-01  Vincent Celier  <celier@adacore.com>
16354
16355         * lib-writ.adb: Update Copyright notice
16356         (Write_With_Lines): On platforms where file names are case-insensitive,
16357         record the file names in lower case.
16358         (Write_ALI): For D lines, on platforms where file names are
16359         case-insensitive, record the file names in lower case.
16360
16361 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
16362             Emmanuel Briot  <briot@adacore.com>
16363
16364         * lib-xref.adb (Output_Overridden_Op): Display information on
16365         overridden operation.
16366
16367         * lib-xref.ads: Add documentation on overridden operations.
16368
16369         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
16370         information.
16371
16372         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
16373         overriding entity information.
16374
16375 2005-09-01  Vincent Celier  <celier@adacore.com>
16376
16377         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
16378         including those that are inherited.
16379
16380 2005-09-01  Robert Dewar  <dewar@adacore.com>
16381
16382         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
16383
16384         * par-prag.adb: Implement new pragma Debug_Policy
16385
16386         * sem_prag.adb Implement new pragma Debug_Policy
16387         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
16388         Component_Size attribute specification. Give warning for ignored pragma
16389         Pack.
16390
16391         * snames.h, snames.ads, snames.adb: Introduce entries in
16392         Preset_Names for Name_Disp_Asynchronous_Select,
16393         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
16394         Name_Disp_Timed_Select.
16395         New pragma Debug_Policy
16396
16397         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
16398         explicitly.
16399         Switch -gnata also sets Debug_Pragmas_Enabled
16400
16401         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
16402         handle an explicit -gnata when compiling predefined files.
16403
16404 2005-09-01  Vincent Celier  <celier@adacore.com>
16405
16406         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
16407         directories of projects that have no Ada sources.
16408
16409 2005-09-01  Robert Dewar  <dewar@adacore.com>
16410
16411         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
16412         (makes a difference for wide characters)
16413
16414         * widechar.adb, widechar.ads:
16415         Add Wide_Char_Byte_Count feature to count chars vs bytes
16416
16417 2005-09-01  Thomas Quinot  <quinot@adacore.com>
16418             Ed Schonberg  <schonberg@adacore.com>
16419             Robert Dewar  <dewar@adacore.com>
16420
16421         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
16422         'Address attribute reference with an overloaded prefix, use the
16423         location of the prefix (not the location of the attribute reference) as
16424         the error location.
16425         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
16426         a function renaming thereof, is a valid prefix for 'Size (where it is
16427         intepreted as a function call).
16428         (Statically_Denotes_Entity): New predicate to determine whether the
16429         prefix of an array attribute can be considered static.
16430
16431         PR ada/9087
16432         (Eval_Attr): Fix failure to evaluate Component_Size for
16433         unconstrained arrays (resulted in wrong value in packed case, since
16434         back end cannot handle this case)
16435
16436 2005-09-01  Robert Dewar  <dewar@adacore.com>
16437
16438         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
16439         error msgs for most common cases.
16440         Use new errout insertion char < (conditional warning)
16441
16442 2005-09-01  Javier Miranda  <miranda@adacore.com>
16443             Ed Schonberg  <schonberg@adacore.com>
16444
16445         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
16446         become local to the whole package.
16447         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
16448         the package was already analyzed the new algorithm "replaces" the
16449         real entities by the shadow ones. This is required to ensure that
16450         the order of these entities in the homonym chains does not change;
16451         otherwise we can have undefined references at linking time because
16452         in case of conflicts the external name of the entities will have
16453         a suffix that depends on the order of the entities in the chain.
16454         (Remove_Limited_With_Clause): Complementary code that completes the
16455         new algorithm and replaces the shadow entities by the real ones.
16456         (Install_Limited_Withed_Unit): When unchaining entities before the
16457         installation of the shadow entities, only regular entities of the
16458         public part must be taken into account. This is required to
16459         keep this routine in synch with the work done by Remove_Limited_
16460         With_Clause
16461         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
16462         even if unit is analyzed, because the analysis of the unit is
16463         idempotent in any case, and the limited view of the unit may have to
16464         be installed for proper visibility.
16465         (Expand_Limited_With_Clause): Even if the unit in the implicit
16466         with_clause has been analyzed already, a limited view of the package
16467         must be built for the current context, if it does not exist yet.
16468
16469 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
16470             Javier Miranda  <miranda@adacore.com>
16471             Gary Dismukes  <dismukes@adacore.com>
16472
16473         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
16474         defining entity for the instance body, make a new defining identifier
16475         rather than copying the entity of the spec, to prevent accidental
16476         sharing of the entity list.
16477         (Check_Private_View): When exchanging views of private types, build the
16478         list of exchanged views as a stack, to ensure that on exit the exchanges
16479         are undone in the proper order.
16480         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
16481         Restore the compilation environment in case of instantiation_error.
16482         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
16483         for an anonymous access result.
16484         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
16485         (Formal_Entity): Handle properly the case of a formal package that
16486         denotes a generic package renaming.
16487
16488 2005-09-01  Thomas Quinot  <quinot@adacore.com>
16489
16490         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
16491         clause if the array aggregate is surrounded by parentheses.
16492
16493 2005-09-01  Cyrille Comar  <comar@adacore.com>
16494             Gary Dismukes  <dismukes@adacore.com>
16495             Ed Schonberg  <schonberg@adacore.com>
16496             Javier Miranda  <miranda@adacore.com>
16497
16498         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
16499         underlying type
16500         to check if a type is Constrained in cases related to code generation
16501         (rather than semantic checking) since otherwise we do not generate
16502         similar code for mutable private types depending if their
16503         discriminants are visible or not.
16504         (Check_Abstract_Overriding): Do not complain about failure to override
16505         the primitive operations used in dispatching selects since they will
16506         always be overriden at the freeze point of the type.
16507         (Access_Definition): Separate out handling for resetting the scope
16508         of an anonymous access function result type. Retrieve the scope
16509         of the associated function rather than using Current_Scope, which
16510         does not have a consistent value (depends on whether we're in the
16511         middle of analyzing formal parameters). Add ??? comment about
16512         finding a cleaner way to handle the special cases of scope setting.
16513         (Process_Incomplete_Dependents): A protected operation is never a
16514         dispatching operation (only its wrapper may be).
16515         (Build_Derived_Record_Type): In case of tagged private types that
16516         implement interfaces add derivation of predefined primitive
16517         operations.
16518         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
16519         by two parameters that are used in case of derivation from abstract
16520         interface types: No_Predefined_Prims is used to avoid the derivation
16521         of predefined primitives from the interface, and Predefined
16522         Prims_Only is used to complete the derivation predefined primitives
16523         in case of private tagged types implementing interfaces.
16524         Fix typo in comments
16525         (Find_Interface_In_Descendant): Protect the frontend against
16526         wrong code with large circularity chains.
16527         (Is_Private_Overriding): Add support for entities overriding interface
16528         subprograms. The test failed because Entities associated with overriden
16529         interface subprograms are always marked as hidden (and used to build
16530         the secondary dispatch table); in this case the overriden entity is
16531         available through the field abstract_interface_alias (cf. override_
16532         dispatching_operation)
16533         (Access_Definition): Set the scope of the type to Current_Scope for the
16534         case of a function with an anonymous access result type.
16535         (Access_Subprogram_Declaration): Handle creation of the type entity for
16536         an access-to-function type with an anonymous access result.
16537         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
16538         in handling for N_Access_Function_Definition.
16539         (Analyze_Subtype_Declaration): Modify the text of error message.
16540         (Derived_Type_Declaration): Modify the text of error message.
16541         (Process_Subtype): Modify the text of error message plus cleanup
16542         of one redundant error message.
16543         (Analyze_Component_Declaration): Code cleanup.
16544         (Analyze_Object_Declaration): Code cleanup.
16545         (Analyze_Subtype_Declaration): Propagate the null-exclusion
16546         attribute in case of access types. Code cleanup.
16547         (Array_Type_Declaration): Code cleanup.
16548         (Process_Discriminants): Create the new null-excluding itype
16549         if required. Code cleanup.
16550         (Process_Subtype): Create the new null-excluding itype if
16551         required. Code cleanup.
16552         (Build_Derived_Record_Type): Code cleanup to avoid calling
16553         twice the subprogram derive_subprograms in case of private
16554         types that implement interfaces. In this particular case the
16555         subprogram Complete_Subprograms_Derivation already does the
16556         job associated with the second call.
16557
16558         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
16559         conversion to the full view when generating an operation for a
16560         discriminant whose type may currently be private.
16561
16562 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
16563             Javier Miranda  <miranda@adacore.com>
16564
16565         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
16566         V (Obj.F), the rewriting does not involve the indexed component, but
16567         only the selected component itself.
16568         Do not apply the transformation if the analyzed node is an actual of a
16569         call to another subprogram.
16570         (Complete_Object_Operation): Retain the entity of the
16571         dispatching operation in the selector of the rewritten node. The
16572         entity will be used in the expansion of dispatching selects.
16573         (Analyze_One_Call): Improve location of the error message associated
16574         with interface.
16575         (Analyze_Selected_Component): No need to resolve prefix when it is a
16576         function call, resolution is done when parent node is resolved, as
16577         usual.
16578         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
16579         when attempting to resolve a call transformed from its object notation.
16580         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
16581         of the argument list for each interpretation of the operation.
16582         (Try_Object_Operation): The designated type of an access parameter may
16583         be an incomplete type obtained through a limited_with clause, in which
16584         case the primitive operations of the type are retrieved from its full
16585         view.
16586         (Analyze_Call): If this is an indirect call, and the return type of the
16587         access_to_subprogram is incomplete, use its full view if available.
16588
16589 2005-09-01  Javier Miranda  <miranda@adacore.com>
16590             Gary Dismukes  <dismukes@adacore.com>
16591
16592         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
16593         access types the null-exclusion and access-to-constant attributes must
16594         also match.
16595         (Analyze_Return_Statement): When the result type is an anonymous access
16596         type, apply a conversion of the return expression to the access type
16597         to ensure that appropriate accessibility checks are performed.
16598         (Analyze_Return_Type): For the case of an anonymous access result type,
16599         generate the Itype and set Is_Local_Anonymous_Access on the type.
16600         Add ??? placeholder for check to disallow returning a limited object
16601         in Ada 2005 unless it's an aggregate or a result of a function call.
16602         Change calls from Subtype_Mark to Result_Definition.
16603         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
16604         Result_Definition in call to Make_Function_Specification.
16605         (Build_Body_To_Inline): Change Set_Subtype_Mark to
16606         Set_Result_Definition.
16607         (Make_Inequality_Operator): Change formal Subtype_Mark to
16608         Result_Definition in call to Make_Function_Specification.
16609         (Process_Formals): Create the new null-excluding itype if required.
16610         (New_Overloaded_Entity): For an entity overriding an interface primitive
16611         check if the entity also covers other abstract subprograms in the same
16612         scope. This is required to handle the general case, that is, overriding
16613         other interface primitives and overriding abstract subprograms inherited
16614         from some abstract ancestor type.
16615         (New_Overloaded_Entity): For an overriding entity that comes from
16616         source, note the operation that it overrides.
16617         (Check_Conformance, Type_Conformant): Addition of one new formal
16618         to skip controlling formals in the analysis. This is used to
16619         handle overloading of abstract interfaces.
16620         (Base_Types_Match): Add missing case for types imported from
16621         limited-with clauses
16622         (New_Overloaded_Entity): Add barrier to protect the use of
16623         the "alias" attribute.
16624
16625 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
16626
16627         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
16628         verify that the procedure and the entry are mode conformant.
16629         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
16630         as a different operator, which is often a cut-and-paste error.
16631
16632 2005-09-01  Javier Miranda  <miranda@adacore.com>
16633             Ed Schonberg  <schonberg@adacore.com>
16634
16635         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
16636         used in controlling parameters exclude null because it is necessary to
16637         read the tag to dispatch, and null has no tag.
16638         (Override_Dispatching_Operation): If the previous operation is inherited
16639         from an interface, it becomes hidden  and does not participate in later
16640         name resolution.
16641
16642 2005-09-01  Javier Miranda  <miranda@adacore.com>
16643             Ed Schonberg  <schonberg@adacore.com>
16644             Gary Dismukes  <dismukes@adacore.com>
16645
16646         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
16647         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
16648         the expander will generate the corresponding run-time check to evaluate
16649         the expression.
16650         (Resolve_Call): Check for legal type of procedure name or prefix that
16651         appears as a trigger in a triggering alternative.
16652         (Valid_Conversion): If expression is ambiguous and the context involves
16653         an extension of System, remove System.Address interpretations.
16654         (Resolve_Qualified_Expression): Reject the case of a specific-type
16655         qualification applied to a class-wide argument. Enhance comment
16656         to explain checking of Original_Node.
16657         (Resolve_Type_Conversion): The location of the error message was not
16658         general enough to handle the general case and hence it has been removed.
16659         In addition, this patch improves the text of the message.
16660         (Resolve_Type_Conversion): Add missing support for access to interface
16661         types.
16662         (Resolve_Type_Conversion): If the target is a class-wide interface type,
16663         do not expand if the expression is the actual in a call, because proper
16664         expansion will take place when the call itself is expanded.
16665         (Resolve_Allocator): If the context is an unchecked conversion, the
16666         allocator inherits its storage pool, if any, from the target type of
16667         the conversion.
16668
16669 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
16670             Javier Miranda  <miranda@adacore.com>
16671
16672         * sem_type.adb (Add_One_Interp): If a candidate operation is an
16673         inherited interface operation that has an implementation, use the
16674         implementation to avoid spurious ambiguities.
16675         (Interface_Present_In_Ancestor): In case of concurrent types we can't
16676         use the Corresponding_Record_Typ attribute to look for the interface
16677         because it is set by the expander (and hence it is not always
16678         available). For this reason we traverse the list of interfaces
16679         (available in the parent of the concurrent type).
16680         (Interface_Present_In_Ancestor): Handle entities from the limited view
16681
16682 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
16683
16684         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
16685         from the list of required components.
16686         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
16687         primitive procedure of a limited interface with a controlling first
16688         parameter.
16689         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
16690         of an entry.
16691         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
16692         capture if it is generated in the second operand of a short-circuit
16693         operation.
16694         Do not capture values for variables with address clauses.
16695         (Is_Object_Reference): Treat a function call as an object reference only
16696         if its type is not Standard_Void_Type.
16697
16698 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
16699
16700         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
16701         to a variable that is statically known to be constant.
16702
16703 2005-09-01  Geert Bosch  <bosch@adacore.com>
16704             Robert Dewar  <dewar@adacore.com>
16705
16706         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
16707         (VAXGF_Safe_First): Idem.
16708
16709 2005-09-01  Robert Dewar  <dewar@adacore.com>
16710             Arnaud Charlet  <charlet@adacore.com>
16711
16712         * g-dirope.ads: Minor reformatting
16713         Document that bounds of result of Base_Name match the input index
16714         positions.
16715         Add documentation on environment variable syntax for Expand_Path
16716
16717         * gnat_ugn.texi: Update documentation to include mention of -m switches
16718         Document new treatment of wide characters in max line length
16719         style check.
16720         Remove -gnatL/-gnatZ switches, no longer used.
16721         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
16722         of -gnata switch.
16723
16724         * gnat_rm.texi: Add doc for two argument form of pragma
16725         Float_Representation.
16726         Add documentation for pragma No_Strict_Aliasing
16727         Add note that explicit component clause overrides pragma Pack.
16728         Add documentation of pragma Debug_Policy
16729
16730 2005-09-01  Matthew Heaney  <heaney@adacore.com>
16731
16732         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
16733         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
16734         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
16735         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
16736         draft (Draft 13, August 2005) of Ada Amendment 1.
16737
16738 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
16739
16740         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
16741         Note that the platform-specific version of g-soccon.ads for VMS is now
16742         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
16743         really is a package spec).
16744         Replace s-taspri-linux.ads by s-taspri-posix.ads
16745         Remove references to s-mastop-x86.adb
16746
16747         * system-vxworks-xscale.ads: Removed, no longer used.
16748         * s-vxwork-xscale.ads: Removed, no longer used.
16749
16750 2005-09-01  Robert Dewar  <dewar@adacore.com>
16751
16752         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
16753         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
16754         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
16755         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
16756         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
16757         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
16758         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
16759         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
16760         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
16761         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
16762         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
16763         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
16764         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
16765         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
16766         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
16767         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
16768         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
16769         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
16770         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
16771         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
16772         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
16773
16774 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
16775
16776         PR ada/23187
16777         * adaint.c
16778         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
16779
16780 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
16781             Doug Rupp  <rupp@adacore.com>
16782
16783         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
16784         when needed.
16785         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
16786         this code in the GNAT run-time.
16787
16788         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
16789
16790         PR ada/21053
16791         * init.c (__gnat_error_handler [many]): Mark "msg" as const
16792         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
16793
16794         (__gnat_inside_elab_final_code): Moved here from
16795         Standard_Library and only defined for the compiler.
16796         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
16797         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
16798         using RTPs because directly vectored Interrupt routines are not
16799         supported on this configuration.
16800         (getpid): Do not redefine this function on VxWorks when using RTPs
16801         because this primitive is well supported by the RTP libraries.
16802         (copy_msg): Correct the code that checks for buffer overflow.
16803         Discovered during code reading.
16804
16805 2005-08-29  Olivier Hainque  <hainque@adacore.com>
16806
16807         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
16808         a library level mutable variable with an initializer, tell
16809         build_allocator to ignore the initializer's size. It may not be large
16810         enough for all the values that might be assigned to the variable later
16811         on.
16812
16813 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
16814             Eric Botcazou  <ebotcazou@adacore.com>
16815
16816         * trans.c: Protect < in error msg with quote
16817         Replace GCC_ZCX by Back_End_Exceptions.
16818         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
16819         has been sufficiently aligned in the record.
16820
16821 2005-08-15  James E. Wilson  <wilson@specifix.com>
16822
16823         * system-linux-alpha.ads: Change ia64 to alpha.
16824
16825 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
16826
16827         * decl.c, utils.c: Fix comment typos.
16828
16829 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
16830
16831         * decl.c, init.c, initialize.c: Fix comment typos.
16832
16833 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
16834
16835         Make CONSTRUCTOR use VEC to store initializers.
16836         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
16837         CONSTRUCTOR_ELTS.
16838         * trans.c (extract_values): Likewise.
16839         * utils.c (convert, remove_conversions): Likewise.
16840         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
16841         gnat_build_constructor): Likewise.
16842
16843 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
16844
16845         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
16846         DECL_SECTION_NAME.
16847         (compare_field_bitpos): Likewise.
16848
16849 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
16850
16851         * utils.c (create_var_decl): Only set DECL_COMMON on
16852         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
16853         VAR_OR_FUNCTION_DECL_P.
16854
16855 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
16856
16857         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
16858         removed.
16859
16860 2005-07-07  Pascal Obry  <obry@adacore.com>
16861
16862         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
16863         returned type on Windows.
16864
16865         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
16866         routine.
16867
16868         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
16869         exception in this case.
16870         Simplify the code as "Image (Image'Range)" = "Image".
16871
16872 2005-07-07  Vincent Celier  <celier@adacore.com>
16873
16874         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
16875         the destructor/constructor attributes for <lib>final/<lib>init.
16876
16877         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
16878
16879 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
16880
16881         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
16882         type if the parameter is not passed by copy but reference by default.
16883
16884 2005-07-07  Javier Miranda  <miranda@adacore.com>
16885
16886         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
16887         Reimplementation of the support for abstract interface types in order
16888         to leave the code more clear and easy to maintain.
16889
16890         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
16891         abstract interface types in order to leave the code clearer and easier
16892         to maintain.
16893
16894         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
16895         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
16896         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
16897         appropriate entry of the secondary dispatch table.
16898         (Make_DT): Add code to inherit the secondary dispatch tables of
16899         the ancestors.
16900
16901         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
16902         implementing both functionalities by means of a common routine, each
16903         routine has its own code.
16904
16905 2005-07-07  Javier Miranda  <miranda@adacore.com>
16906
16907         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
16908
16909         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
16910         types:
16911         --
16912           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
16913         --
16914
16915         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
16916         use of tag incomplete types.
16917
16918         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
16919         give support to tagged incomplete types.
16920
16921         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
16922         expression is a discriminant reference and its type is private, as can
16923         happen within a stream operation for a mutable record, use the full
16924         view of the type to resolve the case alternatives.
16925         (Analyze_Assignment): Check wrong dereference of incomplete types.
16926
16927         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
16928         types.
16929
16930         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
16931         incomplete types.
16932
16933         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
16934         N_Incomplete_Type_Declaration nodes.
16935
16936         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
16937         Tag_Present to give support to tagged incomplete types:
16938         --
16939           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
16940         --
16941
16942 2005-07-07  Olivier Hainque  <hainque@adacore.com>
16943
16944         PR ada/22301
16945         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
16946         definitions for the Unwind wrappers in the compiler case.
16947
16948 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
16949             Javier Miranda  <miranda@adacore.com>
16950
16951         * par-load.adb (Load): If a child unit is loaded through a limited_with
16952         clause, each parent must be loaded as a limited unit as well.
16953
16954         * sem_ch10.adb (Previous_Withed_Unit): Better name for
16955         Check_Withed_Unit. Return true if there is a previous with_clause for
16956         this unit, whether limited or not.
16957         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
16958         the current unit.
16959         (Is_Visible_Through_Renamings): New local subprogram of install_limited
16960         _withed_unit that checks if some package installed through normal with
16961         clauses has a renaming declaration of package whose limited-view is
16962         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
16963         of the current Draft document for Ada 2005.
16964         (Analyze_Context): Complete the list of compilation units that
16965         are allowed to contain limited-with clauses. It also contains
16966         checks that were previously done by Install_Limited_Context_Clauses.
16967         This makes the code more clear and easy to maintain.
16968         (Expand_Limited_With_Clause) It is now a local subprogram of
16969         Install_Limited_Context_Clauses, and contains the code that adds
16970         the implicit limited-with clauses for parents of child units.
16971         This functionality was prevously done by Analyze_Context.
16972
16973         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
16974         incomplete type.
16975
16976         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
16977         been erroneously named in a limited-with clause of its own context.
16978         In this case the error has been previously notified by Analyze_Context.
16979
16980 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
16981
16982         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
16983         generic package that contains local declarations with the same name.
16984         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
16985
16986 2005-07-07  Bernard Banner  <banner@adacore.com>
16987
16988         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
16989         ia64 platform only on platforms that you the GCC unwind library
16990         rather than the system unwind library.
16991
16992 2005-07-07  Thomas Quinot  <quinot@adacore.com>
16993
16994         * expect.c: Minor reformatting
16995
16996 2005-07-07  Sergey Rybin  <rybin@adacore.com>
16997
16998         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
16999         --no-separate-is
17000
17001         * gnat_ugn.texi: Add description for new gnatpp option
17002         (--no-separate-is)
17003
17004 2005-07-04  Thomas Quinot  <quinot@adacore.com>
17005
17006         * g-expect-vms.adb, g-expect.ads, g-expect.adb
17007         (Get_Command_Output): New subprogram to launch a process and get its
17008         standard output as a string.
17009
17010 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
17011             Olivier Hainque  <hainque@adacore.com>
17012
17013         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
17014         fetch a code-range descriptor associated with the machine state. On
17015         failure set the machine state's PC to 0; on success, pass the
17016         descriptor to exc_virtual_unwind.
17017
17018         * init.c (Tru64 section): New function __gnat_set_code_loc.
17019
17020 2005-07-04  Vincent Celier  <celier@adacore.com>
17021
17022         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
17023         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
17024         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
17025         Remove all auto-initialization code, as this is now done through the
17026         constructor mechanism.
17027
17028         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
17029         __gnat_sals_init_using_constructors): New functions.
17030
17031         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
17032         Linker_Constructor and Linker_Destructor when switch -a is used.
17033
17034         * bindusg.adb: Add line for new switch -a
17035
17036         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
17037         (Gnatbind): When switch -a is used, check if it is allowed
17038
17039         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
17040
17041 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
17042
17043         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
17044         This prevents us from hitting a limitation during the debug info
17045         generation when using stabs.
17046         (Prims_Ptr): Likewise.
17047
17048 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
17049             Ed Schonberg  <schonberg@adacore.com>
17050             Javier Miranda  <miranda@adacore.com>
17051
17052         * checks.adb (Null_Exclusion_Static_Checks): In the case of
17053         N_Object_Declaration, only perform the checks if the Object_Definition
17054         is not an Access_Definition.
17055
17056         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
17057         where the parent of an the access definition is an N_Object_Declaration
17058         when determining the Associated_Node_For_Itype and scope of an
17059         anonymous access-to-subprogram type.
17060
17061         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
17062         Corresponding_Spec on the body created for a null procedure. Add ???
17063         comment. Remove New_Copy_Tree call on body argument to
17064         Set_Body_To_Inline.
17065
17066         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
17067         discriminants, use the type of the actual as well, because the
17068         discriminants may be read by the called subprogram.
17069
17070         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
17071         access type we do not need to handle non-limited views.
17072         (Build_Derived_Record_Type): Additional check to check that in case of
17073         private types, interfaces are only allowed in private extensions.
17074
17075 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
17076
17077         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
17078         <Pragma_Linker_Destructor>: Likewise.
17079
17080         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
17081         Pragma_Linker_Destructor.
17082
17083         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
17084         ATTR_LINK_DESTRUCTOR.
17085         (static_ctors, static_dtors): New variables.
17086
17087         * misc.c (gnat_expand_body): Output current function as constructor
17088         and destructor if requested.
17089
17090         * par-prag.adb: Add processing for pragma Linker_Constructor and
17091         Linker_Destructor.
17092
17093         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
17094         extracted from Check_Interrupt_Or_Attach_Handler.
17095         (Check_Interrupt_Or_Attach_Handler): Invoke it.
17096         Implement pragma Linker_Constructor and Linker_Destructor with the
17097         help of Find_Unique_Parameterless_Procedure.
17098         Replace Name_Alias with Name_Target for pragma Linker_Alias.
17099
17100         * snames.h, snames.ads, snames.adb:
17101         Add Name_Linker_Constructor and Name_Linker_Destructor.
17102         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
17103         * snames.adb: Remove Name_Alias.
17104
17105         * trans.c: Include cgraph.h.
17106         (build_global_cdtor): New function.
17107         (Compilation_Unit_to_gnu): Build global constructor and destructor if
17108         needed.
17109         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
17110         of objects too.
17111         (addressable_p) <COMPONENT_REF>: Unconditionally test
17112         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
17113
17114         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
17115         variable if it is external.
17116
17117         (static_ctors, static_dtors): New global variables.
17118         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
17119         <ATTR_LINK_DESTRUCTOR>: Likewise.
17120         (end_subprog_body): Chain function as constructor and destructor
17121         if requested.
17122
17123         * exp_util.adb (Force_Evaluation): Unconditionally invoke
17124         Remove_Side_Effects with Variable_Ref set to true.
17125         (Remove_Side_Effects): Handle scalar types first. Use a renaming
17126         for non-scalar types even if Variable_Ref is true and for class-wide
17127         expressions.
17128
17129 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
17130
17131         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
17132         to prevent spurious warnings.
17133
17134 2005-07-04  Thomas Quinot  <quinot@adacore.com>
17135
17136         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
17137         Itypes. Itypes are really unexpected there.
17138         (Build_TypeCode_Function): Generalise special processing for Itypes to
17139         handle the case of numeric implicit base types as well as enumerated
17140         ones.
17141
17142 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
17143
17144         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
17145         controlled, indicate the expected type of the dereference that is
17146         created for the call to Deep_Finalize, to prevent spurious errors when
17147         the designated type is private and completed with a derivation from
17148         another private type.
17149
17150 2005-07-04  Vincent Celier  <celier@adacore.com>
17151
17152         * make.adb (Change_To_Object_Directory): When unable to change the
17153         current dir to the object directory, output the full path of the
17154         directory.
17155
17156 2005-07-04  Matthew Gingell  <gingell@adacore.com>
17157
17158         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
17159
17160         * indepsw-linux.adb: Replace by...
17161
17162         * indepsw-gnu.adb: ...this new file
17163
17164 2005-07-04  Vincent Celier  <celier@adacore.com>
17165
17166         * mlib-prj.adb (Auto_Initialize): New constant String
17167         (SALs_Use_Constructors): New Boolean function
17168         (Build_Library): Call gnatbind with Auto_Initialize switch when
17169         SALs_Use_Constructors returns True.
17170
17171         * mlib-tgt.ads: Minor reformatting
17172
17173         * mlib-utl.ads: Minor reformatting
17174
17175         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
17176
17177 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
17178
17179         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
17180         single protected declarations can have an interface list.
17181         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
17182         with seriously malformed entry declarations, and lead to compilation
17183         abandoned messages.
17184
17185 2005-07-04  Javier Miranda  <miranda@adacore.com>
17186
17187         * par-load.adb: Load the context items in two rounds.
17188
17189 2005-07-04  Robert Dewar  <dewar@adacore.com>
17190
17191         * scng.adb: Do not consider Mod used as an attribute to be a keyword
17192
17193 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
17194             Javier Miranda  <miranda@adacore.com>
17195
17196         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
17197         type extension needs a limited view.
17198         Remove previous restriction on private types available through the
17199         limited-view (only tagged private types were previously allowed).
17200         (Install_Withed_Unit): In the code that implements the
17201         legality rule given in AI-377, exclude a child unit with the name
17202         Standard, because it is a homonym of the Standard environment package.
17203
17204 2005-07-04  Thomas Quinot  <quinot@adacore.com>
17205
17206         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
17207         overloaded function call, carry interpretations from the original tree
17208         to the copy.
17209
17210 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
17211
17212         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
17213         types check whether some designated type is a limited view, and use
17214         the non-limited view if available.
17215
17216 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
17217
17218         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
17219         constraint of full view of a private view T1 if present, when T2 is a
17220         discriminated full view.
17221
17222 2005-07-04  Thomas Quinot  <quinot@adacore.com>
17223
17224         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
17225         actual that is a view conversion of a bit packed array reference.
17226
17227 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
17228
17229         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
17230         present before checking whether an interface type covers a synchronized
17231         type.
17232
17233 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
17234
17235         * sem_util.adb (Is_Object_Reference): An indexed or selected component
17236         whose prefix is an implicit dereference is an object reference. Removes
17237         spurious errors when compiling with -gnatc.
17238
17239 2005-07-04  Robert Dewar  <dewar@adacore.com>
17240
17241         PR ada/22039
17242         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
17243
17244 2005-07-04  Matthew Gingell  <gingell@adacore.com>
17245
17246         * tracebak.c: Enable tracebacks on ia64 platforms
17247
17248 2005-07-04  Vincent Celier  <celier@adacore.com>
17249
17250         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
17251         the GNAT BIND command, as gnatbind accepts multiples ALI files with
17252         the -L or -n switches.
17253
17254 2005-07-04  Vincent Celier  <celier@adacore.com>
17255
17256         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
17257         correctly computed and the main project data is not modified while
17258         doing so.
17259         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
17260         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
17261         c++linker as this does not work on some platforms.
17262
17263 2005-07-04  Matthew Heaney  <heaney@adacore.com>
17264
17265         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
17266         was changed.
17267         * a-coinve.adb: Perform constraint checks explicitly.
17268
17269 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17270             Thomas Quinot  <quinot@adacore.com>
17271
17272         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
17273         new target gen-soccon.
17274
17275 2005-07-04  Robert Dewar  <dewar@adacore.com>
17276
17277         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
17278
17279 2005-07-04  Thomas Quinot  <quinot@adacore.com>
17280
17281         * g-socket.ads (Check_Selector): Minor rewording of comment.
17282
17283 2005-07-04  Vincent Celier  <celier@adacore.com>
17284
17285         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
17286
17287 2005-07-04  Thomas Quinot  <quinot@adacore.com>
17288
17289         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
17290
17291 2005-07-04  Sergey Rybin  <rybin@adacore.com>
17292
17293         * gnat_ugn.texi: Add description of --eol gnatpp option
17294
17295 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
17296             Thomas Quinot  <quinot@adacore.com>
17297
17298         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
17299         if the user wants all calls of a subprogram to be flagged,
17300         independently of whether they are made from within the same unit or
17301         another unit.
17302         Mention restriction for pragma Linker_Alias on some platforms.
17303         Document pragma Linker_Constructor and Linker_Destructor.
17304         Rewrite documentation of Weak_External, Linker_Section and
17305         Linker_Alias pragmas.
17306
17307 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
17308
17309         * s-stausa.ads, s-stausa.adb: New files.
17310
17311 2005-06-30  Kelley Cook
17312
17313         * all files:  Update FSF address in copyright headers.
17314         * gen-soccon.co (main): Output new FSF address in generated files.
17315
17316 2005-06-28  Paul Brook  <paul@codesourcery.com>
17317
17318         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
17319
17320 2005-06-14  Olivier Hainque  <hainque@adacore.com>
17321             Eric Botcazou  <ebotcazou@adacore.com>
17322
17323         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
17324         exc_unwind, now that we are generating proper .debug_frame output for
17325         that target.
17326
17327         * tracebak.c: Remove the mips-irix section, as we are now using the
17328         s-mastop based unwinder again.
17329         Under SPARC/Solaris, take into account the stack bias to compute the
17330         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
17331         ABI.
17332
17333 2005-06-14  Doug Rupp  <rupp@adacore.com>
17334
17335         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
17336
17337         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
17338
17339 2005-06-14  Pascal Obry  <obry@adacore.com>
17340
17341         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
17342         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
17343         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
17344         package name).
17345
17346         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
17347         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
17348         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
17349         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
17350         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
17351         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
17352         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
17353         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
17354         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
17355         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
17356         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
17357         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
17358         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
17359         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
17360         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
17361         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
17362         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
17363         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
17364         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
17365         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
17366         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
17367         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
17368         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
17369         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
17370         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
17371         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
17372         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
17373         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
17374         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
17375         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
17376         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
17377         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
17378         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
17379         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
17380         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
17381         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
17382         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
17383         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
17384         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
17385         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
17386         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
17387         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
17388         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
17389         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
17390         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
17391         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
17392         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
17393         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
17394         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
17395         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
17396         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
17397         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
17398         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
17399         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
17400         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
17401         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
17402         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
17403         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
17404         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
17405         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
17406         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
17407         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
17408         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
17409         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
17410         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
17411         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
17412         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
17413         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
17414         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
17415         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
17416         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
17417         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
17418         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
17419         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
17420         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
17421         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
17422         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
17423         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
17424         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
17425         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
17426         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
17427         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
17428         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
17429         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
17430         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
17431         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
17432         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
17433         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
17434         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
17435         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
17436         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
17437         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
17438         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
17439         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
17440         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
17441         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
17442         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
17443         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
17444         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
17445         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
17446         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
17447         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
17448         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
17449         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
17450         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
17451         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
17452         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
17453         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
17454         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
17455         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
17456         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
17457         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
17458         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
17459         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
17460         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
17461         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
17462         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
17463         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
17464         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
17465         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
17466         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
17467         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
17468         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
17469         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
17470         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
17471         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
17472         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
17473         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
17474         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
17475         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
17476         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
17477         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
17478         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
17479
17480 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
17481             Arnaud Charlet  <charlet@adacore.com>
17482
17483         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
17484         longer protected objects. They have been replaced by lower-level
17485         suspension objects made up by a mutex and a condition variable (or
17486         their equivalent given a particular OS) plus some internal data to
17487         reflect the state of the suspension object.
17488         (Initialize, Finalize): Add this initialization procedure for
17489         Suspension_Object, which is a controlled type.
17490         (Finalize): Add the finalization procedure for Suspension_Object,
17491         which is a controlled type.
17492
17493         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
17494         Ada.Synchronous_Task_Control because there is no longer a need for a
17495         VxWorks specific version of this package. Target dependencies
17496         has been moved to System.Task_Primitives.Operations.
17497
17498         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
17499         longer needed.
17500         (InitializeCriticalSection, EnterCriticalSection,
17501         LeaveCriticalSection, DeleteCriticalSection): Replace the type
17502         pCriticalSection by an anonymous access type so that we avoid problems
17503         of accessibility to local objects.
17504
17505         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
17506         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
17507         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
17508         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
17509         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
17510         set the environment task mask here.
17511         (Current_State): Add this function that returns the state of the
17512         suspension object.
17513         (Set_False): Add this procedure that sets the state of the suspension
17514         object to False.
17515         (Set_True): Add this procedure that sets the state of the suspension
17516         object to True, releasing the task that was suspended, if any.
17517         (Suspend_Until_True): Add this procedure that blocks the calling task
17518         until the state of the object is True. Program_Error is raised if
17519         another task is already waiting on that suspension object.
17520         (Initialize): Add this procedure for initializing the suspension
17521         object. It initializes the mutex and the condition variable which are
17522         used for synchronization and queuing, and it sets the internal state
17523         to False.
17524         (Finalize): Add this procedure for finalizing the suspension object,
17525         destroying the mutex and the condition variable.
17526
17527         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
17528         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
17529         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
17530         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
17531         which provides a low-level abstraction (using operating system
17532         primitives) for Ada.Synchronous_Task_Control.
17533         This object is made up by a mutex (for ensuring mutual exclusion), a
17534         condition variable (for queuing threads until the condition is
17535         signaled), a Boolean (State) indicating whether the object is open,
17536         and a Boolean (Waiting) reflecting whether there is a task already
17537         suspended on this object.
17538
17539         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
17540         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
17541         s-intman-vms.ads, s-intman-mingw.adb,
17542         (Initialize_Interrupts): Removed, no longer used.
17543
17544         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
17545         (Setup_Interrupt_Mask): New procedure.
17546
17547         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
17548
17549         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
17550
17551         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
17552         this is no longer done in the body of s-taprop
17553         (Server_Task): Explicitely test for Pending_Action in case
17554         System.Parameters.No_Abort is True.
17555
17556         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
17557         is no longer done in the body of s-taprop
17558
17559 2005-06-14  Robert Dewar  <dewar@adacore.com>
17560
17561         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
17562         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
17563         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
17564         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
17565         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
17566         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
17567         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
17568         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
17569         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
17570         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
17571         system-linux-hppa.ads, system-vms_64.ads,
17572         system-vxworks-alpha.ads: Minor comment update for
17573         AI-362 (unit is Pure).
17574
17575         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
17576         Add pragma Pure_05 for AI-362
17577         Make remaining conversion functions obsolescent in Ada 95
17578
17579         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
17580         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
17581         Add entries for a-wichun and a-zchuni
17582         Add a-widcha a-zchara for AI-395
17583         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
17584
17585         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
17586         Add entries for a-wichun.o and a-zchuni.o
17587         Entries for a-widcha.o and a-zchara.o
17588         Add entry for a-chacon.o
17589
17590         * a-ztenau.adb: Add with of Ada.Characters.Conversions
17591
17592         * a-chacon.ads, a-chacon.adb: New files.
17593
17594         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
17595         categorization violations.
17596
17597         * a-strmap.ads: Add pragma Pure_05 for AI-362
17598         * a-strmap.ads: Add note on implicit categorization for AI-362
17599
17600         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
17601
17602         * par-prag.adb: Dummy entry for pragma Persistent_BSS
17603         Set Ada_Version_Explicit, for implementation of AI-362
17604         Add processing for pragma Pure_05 and Preelaborate_05
17605         Add entry for Assertion_Policy pragma
17606
17607         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
17608         when needed for proper processing of categorization stuff
17609
17610         * sem_cat.adb:
17611         For several cases, make errors in preealborate units warnings,
17612         instead of errors, if GNAT_Mode is set. For AI-362.
17613
17614         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
17615         preelaborate unit is now warning if in GNAT mode
17616
17617         * s-stoele.ads: Document AI-362 for pragma preelaborate
17618
17619 2005-06-14  Doug Rupp  <rupp@adacore.com>
17620
17621         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
17622         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
17623         Default_Exception_Msg_Max_Length: new parameter.
17624
17625         * a-except.ads: (Exception_Msg_Max_Length): Set to
17626         System.Parameters.Default_Exception_Msg_Max_Length
17627         Add pragma Preelaborate_05 for AI-362
17628         Add warnings off to allow categorization violations for AI-362
17629
17630 2005-06-14  Vincent Celier  <celier@adacore.com>
17631
17632         * gnatsym.adb: Adapt to modification of package Symbols: procedure
17633         Process is now in package Processing.
17634
17635         * symbols.ads, symbols.adb:
17636         (Processing): New package, containing procedure Process
17637
17638         * symbols-vms-alpha.adb:
17639         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
17640
17641         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
17642         symbols-processing-vms-ia64.adb: New files.
17643
17644 2005-06-14  Pascal Obry  <obry@adacore.com>
17645
17646         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
17647         implementation. This new version generates the proper DllMain routine
17648         to initialize the SAL. The DllMain is generated in Ada and compiled
17649         before being added as option to the library build command.
17650
17651 2005-06-14  Doug Rupp  <rupp@adacore.com>
17652             Pascal Obry  <obry@adacore.com>
17653
17654         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
17655         call to decc$translate_vms.
17656         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
17657         need to remove those quotes before catenating the filename.
17658         (__gnat_locate_exec_on_path): improvements to the Win32 section:
17659         * avoid allocating the memory twice for better efficiency;
17660         * allocate 32K buffer for environment expansion as suggested by MSDN;
17661         * prepend ".;" to the path so that current directory is searched too.
17662
17663 2005-06-14  Robert Dewar  <dewar@adacore.com>
17664
17665         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
17666         instead of raising CE (AI-241)
17667         Add warnings off to allow categorization violations for AI-362
17668
17669 2005-06-14  Robert Dewar  <dewar@adacore.com>
17670
17671         * ali-util.adb, gnatbind.adb: Remove references to
17672         Force_RM_Elaboration_Order.
17673
17674         * switch-b.adb: Remove recognition of -f switch
17675
17676 2005-06-14  Pascal Obry  <obry@adacore.com>
17677
17678         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
17679         implementation which is slightly more efficient.
17680
17681 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
17682             Javier Miranda  <miranda@adacore.com>
17683             Ed Schonberg  <schonberg@adacore.com>
17684             Hristian Kirtchev  <kirtchev@adacore.com>
17685
17686         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
17687         allocator's designated type is a class-wide type, and compiling for
17688         Ada 2005, emit a run-time check that the accessibility level of the
17689         type given in the allocator's expression is not deeper than the level
17690         of the allocator's access type.
17691
17692         (Tagged_Membership): Modified to gives support to abstract interface
17693         types.
17694
17695         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
17696         Access_Level.
17697         (Descendant_Tag): New predefined function
17698         (Is_Descendant_At_Same_Level): New predefined function
17699         (Get_Access_Level): New private function
17700         (Set_Access_Level): New private procedure
17701         (IW_Membership): New function. Given the tag of an object and the tag
17702         associated with an interface, evaluate if the object implements the
17703         interface.
17704         (Register_Interface_Tag): New procedure used to initialize the table of
17705         interfaces used by the IW_Membership function.
17706         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
17707         of the dispatch table.
17708         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
17709         table of interfaces of the parent.
17710         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
17711         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
17712         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
17713         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
17714         Ada 2005 semantics for the new predefined function.
17715
17716         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
17717         call to Descendant_Tag rather than Internal_Tag.
17718         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
17719         the accessibility level of the attribute's Item parameter is not deeper
17720         than the level of the attribute's prefix type. Tag_Error is raised if
17721         the check fails. The check is only emitted for Ada_05.
17722         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
17723         requested stream attribute, use it.
17724         (Expand_N_Attribute_Reference): If the designated type is an interface
17725         then rewrite the referenced object as a conversion to force the
17726         displacement of the pointer to the secondary dispatch table.
17727         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
17728         is a dereference of an object with a constrained partial view.
17729
17730         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
17731         type is a class-wide type, emit a run-time check that the accessibility
17732         level of the returned object is not deeper than the level of the
17733         function's master (only when compiling for Ada 2005).
17734
17735         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
17736         Action_Nb_Arg): Add entries for new Get_Access_Level and
17737         Set_Access_Level routines in these tables.
17738         (Make_DT): Generate a call to set the accessibility level of the
17739         tagged type in its TSD.
17740         (Make_DT): Code cleanup. The functionality of generating all the
17741         secondary dispatch tables has been moved to freeze_record_type.
17742         (Make_Abstract_Interface_DT): Minor code cleanup.
17743         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
17744         this subprogram implements a new algorithm that provides the
17745         same functionality and it is more clear in case of primitives
17746         associated with abstract interfaces.
17747         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
17748         clean up, the functionality of this subprogram is now provided
17749         by Set_All_DT_Position.
17750         (Write_DT): New subprogram: a debugging procedure designed to be called
17751         within gdb to display the dispatch tables associated with a tagged
17752         type.
17753         (Collect_All_Interfaces): New subprogram that collects the whole list
17754         of interfaces that are directly or indirectly implemented by a tagged
17755         type.
17756         (Default_Prim_Op_Position): New subprogram that returns the fixed
17757         position in the dispatch table of the default primitive operations.
17758         (Expand_Interface_Actuals): New subprogram to generate code that
17759         displaces all the actuals corresponding to class-wide interfaces to
17760         reference the interface tag of the actual object.
17761         (Expand_Interface_Conversion): New subprogram. Reference the base of
17762         the object to give access to the interface tag associated with the
17763         secondary dispatch table.
17764         (Expand_Interface_Thunk): New subprogram that generates the code of the
17765         thunk. This is required for compatibility with the C+ ABI.
17766         (Make_Abstract_Interface_DT): New subprogram that generate the
17767         declarations for the secondary dispatch tables associated with an
17768         abstract interface.
17769         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
17770         attribute for each primitive operation covering interface subprograms
17771         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
17772         These subprograms were upgraded to give support to abstract interfaces
17773
17774         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
17775         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
17776         RE_Set_Access_Level.
17777         (RE_Unit_Table): Add entries for new Ada.Tags operations.
17778         Add support to call the followig new run-time subprograms:
17779         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
17780
17781         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
17782         match its full declaration when both have an access definition with
17783         statically matching designated subtypes.
17784         (Analyze_Component_Declaration): Delete commented out code that was
17785         incorrectly setting the scope of an anonymous access component's type.
17786         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
17787         an access discriminant when the containing type is nonlimited.
17788         (Make_Incomplete_Type_Declaration): Create an incomplete type
17789         declaration for a record type that includes self-referential access
17790         components.
17791         (Check_Anonymous_Access_Types): Before full analysis of a record type
17792         declaration, create anonymous access types for each self-referential
17793         access component.
17794         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
17795         an access component in this context is a Local_Anonymous_Access, for
17796         proper accessibility checks.
17797         (Access_Definition): Set properly the scope of the anonymous access type
17798         created for a stand-alone access object.
17799         (Find_Type_Of_Object): An object declaration may be given with an access
17800         definition.
17801         (Complete_Subprograms_Derivation): New subprogram used to complete
17802         type derivation of private tagged types implementing interfaces.
17803         In this case some interface primitives may have been overriden
17804         with the partial-view and, instead of re-calculating them, they
17805         are included in the list of primitive operations of the full-view.
17806         (Build_Derived_Record_Type): Modified to give support to private
17807         types implemening interfaces.
17808         (Access_Definition): Reject ALL on anonymous access types.
17809         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
17810         type derivation to occur at a deeper accessibility level than the
17811         parent type.
17812         For the case of derivation within a generic body however, disallow the
17813         derivation if the derived type has an ancestor that is a formal type
17814         declared in the formal part of an enclosing generic.
17815         (Analyze_Object_Declaration): For protected objects, remove the check
17816         that they cannot contain interrupt handlers if not declared at library
17817         level.
17818         (Add_Interface_Tag_Components): New subprogram to add the tag components
17819         corresponding to all the abstract interface types implemented by a
17820         record type or a derived record type.
17821         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
17822         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
17823         Process_Full_View, Record_Type_Declaration): Modified to give
17824         support to abstract interface types
17825         (Collect_Interfaces): New subprogram that collects the list of
17826         interfaces that are not already implemented by the ancestors
17827         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
17828         when partial view has no discriminants and full view has defaults.
17829         (Constrain_Access): Reject a constraint on a general access type
17830         if the discriminants of the designated type have defaults.
17831         (Access_Subprogram_Declaration): Associate the Itype node with the inner
17832         full-type declaration or subprogram spec. This is required to handle
17833         nested anonymous declarations.
17834         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
17835         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
17836         Process_Full_View, Record_Type_Declaration): Modified to give
17837         support to abstract interface types
17838         (Derive_Subprograms): Addition of a new formal to indicate if
17839         we are in the case of an abstact-interface derivation
17840         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
17841         to the specification because it is requied to analyze all the
17842         identifiers found in a list of interfaces
17843
17844         * debug.adb: Complete documentation of flag "-gnatdZ"
17845
17846         * exp_ch3.adb: Implement config version of persistent_bss pragma
17847         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
17848         testing for TSS presence to properly enforce visibility rules.
17849         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
17850         Make_Abstract_Interfaces_DT to generate the secondary tables
17851         associated with abstract interfaces.
17852         (Build_Init_Procedure): Modified to initialize all the tags
17853         corresponding.
17854         (Component_Needs_Simple_Initialization): Similar to other tags,
17855         interface tags do not need initialization.
17856         (Freeze_Record_Type): Modified to give support to abstract interface
17857         types.
17858         (Expand_N_Object_Declaration): Do not generate an initialization for
17859         a scalar temporary marked as internal.
17860
17861         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
17862         in-out parameter that is a component in an initialization procedure,
17863         whose constraint might depend on discriminants, and that may be
17864         misaligned because of packing or representation clauses.
17865         (Is_Legal_Copy): New predicate to determine whether a possibly
17866         misaligned in-out actual can actually be passed by copy/return. This
17867         is an error in case the type is by_reference, and a warning if this is
17868         the consequence of a DEC import pragma on the subprogram.
17869         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
17870         interface types
17871         (Expand_Inlined_Call): Mark temporary generated for the return value as
17872         internal, so that no useless scalar normalization is generated for it.
17873         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
17874         null procedure can always be inlined.
17875         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
17876         procedure, generate an explicit empty body for it.
17877
17878         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
17879         Given a type implementing an interface, returns the corresponding
17880         access_disp_table value.
17881         (Find_Interface_Tag): New subprogram. Given a type implementing an
17882         interface, returns the record component containing the tag of the
17883         interface.
17884         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
17885         previous ones that return the corresponding tag and access_disp_table
17886         entities.
17887         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
17888         is a predefined primitive operation.
17889         (Expand_Subtype_From_Expr): If the expression is a selected component
17890         within an initialization procedure, compute its actual subtype, because
17891         the component may depend on the discriminants of the enclosing record.
17892
17893         * i-cpp.ads, i-cpp.adb:
17894         This package has been left available for compatibility with previous
17895         versions of the frontend. As part of the new layout this is now a
17896         dummy package that uses declarations available at a-tags.ads
17897
17898         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
17899         "constant access" and "aliased [constant] access" when not compiling
17900         with -gnat05.
17901         Suppress Ada 2005 keyword warning if -gnatwY used
17902         (P_Identifier_Declarations): Add support for object declarations with
17903         access definitions.
17904         (Private_Extension_Declaration): Complete the documentation
17905         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
17906         attribute in case of private extension declaration
17907         (P_Type_Declaration): Mark as "abstract" the type declarations
17908         corresponding with protected, synchronized and task interfaces
17909         (P_Declarative_Items): "not" and "overriding" are overriding indicators
17910         for a subprogram or instance declaration.
17911
17912         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
17913         instantiation that is a dispatching operation has controlling access
17914         parameters that are null excluding.
17915         Save and restore Ada_Version_Explicit, for implementation of AI-362
17916         (Validate_Derived_Type_Instance): Add check for abstract interface
17917         types.
17918         (Analyze_Formal_Package): Establish Instantiation source for the copy of
17919         the generic that is created to represent the formal package.
17920         (Analyze_Package_Instantiation): Instantiate body immediately if the
17921         package is a predefined unit that contains inlined subprograms, and
17922         we are compiling for a Configurable_Run_Time.
17923         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
17924         If the program has a null default, generate an empty body for it.
17925
17926         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
17927         error message condition, null procedures are correctly detected now.
17928         (New_Overloaded_Entity): Bypass trivial overriding indicator check
17929         for subprograms in the context of protected types. Instead, the
17930         indicator is examined in Sem_Ch9 while analysing the subprogram
17931         declaration.
17932         (Check_Overriding_Indicator): Check consistency of overriding indicator
17933         on subprogram stubs as well.
17934         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
17935         the library level.
17936         (Analize_Subprogram_Specification): When analyzing a subprogram in which
17937         the type of the first formal is a concurrent type, replace this type
17938         by the corresponding record type.
17939         (Analyze_Subprogram_Body): Undo the previous work.
17940         (Analyze_Procedure_Call): If the call has the form Object.Op, the
17941         analysis of the prefix ends up analyzing the call itself, after which
17942         we are done.
17943         (Has_Interface_Formals): New subprogram subsidiary to analyze
17944         subprogram_specification that returns true if some non
17945         class-wide interface subprogram is found
17946         (New_Overloaded_Entity): Modified to give support to abstract
17947         interface types
17948         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
17949         access to subprograms must be recursive.
17950         (Is_Unchecked_Conversion): Improve the test that recognizes
17951         instantiations of Unchecked_Conversion, and allows them in bodies that
17952         are to be inlined by the front-end. When the body comes from an
17953         instantiation, a reference to Unchecked_Conversion will be an
17954         Expanded_Name, even though the body has not been analyzed yet.
17955         Replace Is_Overriding and Not_Overriding in subprogram_indication with
17956         Must_Override and Must_Not_Override, to better express intent of AI.
17957         (Analyze_Subprogram_Body): If an overriding indicator is given, check
17958         that it is consistent with the overrinding status of the subprogram
17959         at this point.
17960         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
17961         always inlined.
17962         If the subprogram is a null procedure, indicate that it does not need
17963         a completion.
17964
17965         * sem_disp.adb (Check_Controlling_Type): Give support to entities
17966         available through limited-with clauses.
17967         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
17968         allowed as the last primitive of a tagged type if it has no previous
17969         spec.
17970         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
17971         to give support to abstract interface types
17972
17973         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
17974         in the case where the target type is an anonymous access type of an
17975         object or component (that is, when Is_Local_Anonymous_Access is true).
17976         Prevent the special checks for conversions of access discriminants in
17977         the case where the discriminant belongs to a nonlimited type, since
17978         such discriminants have their accessibility level defined in the same
17979         way as a normal component of an anonymous access type.
17980         (Resolve_Allocator): When an allocator's designated type is a class-wide
17981         type, check that the accessibility level of type given in the
17982         allocator's expression or subtype indication is not statically deeper
17983         than the level of the allocator's access type.
17984         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
17985         name in a discriminant constraint of a record component.
17986         (Resolve_Explicit_Dereference): Do not check whether the type is
17987         incomplete when the dereference is a use of an access discriminant in
17988         an initialization procedure.
17989         (Resolve_Type_Conversion): Handle conversions to abstract interface
17990         types.
17991         (Valid_Tagged_Conversion): The conversion of a tagged type to an
17992         abstract interface type is always valid.
17993         (Valid_Conversion): Modified to give support to abstract interface types
17994         (Resolve_Actuals): Enable full error reporting on view conversions
17995         between unrelated by_reference array types.
17996         The rule for view conversions of arrays with aliased components is
17997         weakened in Ada 2005.
17998         Call to obsolescent subprogram is now considered to be a violation of
17999         pragma Restrictions (No_Obsolescent_Features).
18000         (Check_Direct_Boolean_Operator): If the boolean operation has been
18001         constant-folded, there is nothing to check.
18002         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
18003         check on possible violation of restriction No_Direct_Boolean_Operators
18004         until after expansion of operands, to prevent spurious errors when
18005         operation is constant-folded.
18006
18007         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
18008         Has_Compatible_Type): Modified to give support to abstract interface
18009         types.
18010         (Interface_Present_In_Ancestor): New function to theck if some ancestor
18011         of a given type implements a given interface
18012
18013         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
18014         prefix is a parameterless function that returns an access_to_procedure.
18015         (Transform_Object_Operation): Handle properly function calls of the
18016         form Obj.Op (X), which prior to analysis appear as indexed components.
18017         (Analyze_One_Call): Complete the error notification to help new Ada
18018         2005 users.
18019         (Analyze_Allocator): For an allocator without an initial value, where
18020         the designated type has a constrained partial view, a discriminant
18021         constraint is illegal.
18022
18023 2005-06-14  Robert Dewar  <dewar@adacore.com>
18024
18025         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
18026         do with treatment of Set_Col when positioned at end of line character.
18027
18028 2005-06-14  Robert Dewar  <dewar@adacore.com>
18029
18030         * atree.adb: (Elist*): Protect against uninitialized field
18031
18032 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
18033
18034         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
18035         for an attribute reference that returns an access type.
18036         (Apply_Discriminant_Check): No need for check if (designated) type has
18037         constrained partial view.
18038
18039         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
18040         both bound checks, rather than a conjunction.
18041         (Insert_Valid_Check): If the expression is an actual that is an indexed
18042         component of a bit-packed array, force expansion of the packed element
18043         reference, because it is specifically inhibited elsewhere.
18044
18045 2005-06-14  Vincent Celier  <celier@adacore.com>
18046
18047         * clean.adb (Clean_Project): Correctly delete executable specified as
18048         absolute path names.
18049
18050         * make.adb (Gnatmake): Allow relative executable path names with
18051         directory information even when project files are used.
18052         (Change_To_Object_Directory): Fail gracefully when unable to change
18053         current working directory to object directory of a project.
18054         (Gnatmake): Remove exception handler that could no longer be exercized
18055         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
18056         may be deallocated by Normalize_Arguments.
18057         (Collect_Arguments): Eliminate empty arguments
18058
18059         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
18060         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
18061         (Check_Project): Return False when Project is No_Project. Return True
18062         when All_Projects is True.
18063         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
18064         All_Projects to True.
18065         Minor reformatting
18066
18067 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
18068             Javier Miranda  <miranda@adacore.com>
18069             Thomas Quinot  <quinot@adacore.com>
18070             Robert Dewar  <dewar@adacore.com>
18071             Hristian Kirtchev  <kirtchev@adacore.com>
18072             Gary Dismukes  <dismukes@adacore.com>
18073
18074         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
18075         anonymous access types, to indicate that the accessibility level of
18076         the type is determined by that of the enclosing declaration.
18077         (Has_Persistent_BSS): New flag
18078         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
18079         of this attribute with functions.
18080         (Is_Primitive_Wrapper): Remove the barrier.
18081         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
18082         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
18083         New subprograms.
18084         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
18085         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
18086         New subprograms.
18087         (Is_Pure_Unit_Access_Type): New flag
18088         (Abstract_Interfaces): Complete the assertion to cover all usages.
18089         (Set_Is_Interface): Complete the assertion to cover all usages.
18090         (Is_Primitive_Wrapper): New attribute.
18091         (Is_Obsolescent): Now applies to all entities (though it is only set
18092         for subprograms currently)
18093         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
18094         which solves various problems concerning access subtypes.
18095         (Has_Persistent_BSS): New flag
18096         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
18097         Remove these subprograms because this attribute is currently
18098         not used.
18099         New entity flags:
18100         Has_Specified_Stream_Input (Flag190)
18101         Has_Specified_Stream_Output (Flag191)
18102         Has_Specified_Stream_Read (Flag192)
18103         Has_Specified_Stream_Write (Flag193)
18104         Present in all type and subtype entities. Set for a given view if the
18105         corresponding stream-oriented attribute has been defined by an
18106         attribute definition clause. When such a clause occurs, a TSS is set
18107         on the underlying full view; the flags are used to track visibility of
18108         the attribute definition clause for partial or incomplete views.
18109         (Is_Pure_Unit_Access_Type): New flag
18110         Clarify use of Is_Internal.
18111         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
18112         internally generated to wrap the invocation of tasks and protected
18113         types that implement interfaces.
18114         (Implementation_Base_Type): Documentation correction
18115         (Is_Obsolescent): Now applies to all entities (though it is only set
18116         for subprograms currently)
18117         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
18118         which solves various problems concerning access subtypes.
18119
18120         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
18121         for examined parameters. Identify unequal parameter list lengths as
18122         non-conformant parameters.
18123         (Overriding_Possible): Do not check for "All" qualifier in declaration
18124         of controlling access parameter, following prescription of AI-404.
18125         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
18126         that build the procedure body that wraps an entry invocation
18127         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
18128         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
18129         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
18130         give support to abstract interface types
18131
18132         * freeze.adb (Freeze_Entity): Issue error message if
18133         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
18134         type has no storage pool (Ada 2005) AI-366.
18135         Also modified to give support to abstract interface types
18136         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
18137         Inline_Always pragma.
18138
18139         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
18140         now begin an entry declaration.
18141         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
18142         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
18143         a subprogram declaration preceded by an overriding indicator.
18144         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
18145         declarations or subprogram declarations preceded by reserved words
18146         "not" or "overriding".
18147         (P_Entry_Declaration): Update comment. Parse and check overriding
18148         indicator, set semantic flags of entry declarations.
18149         (P_Task): New error message in case of private applied
18150         to a task type declaration.
18151         (P_Protected): New error message in case of private applied
18152         to a task type declaration.
18153
18154         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
18155         in which the full view of a type implementing an interface is a
18156         concurrent type.
18157         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
18158         Declare_Inherited_Private_Subprograms): If an explicit operation
18159         overrides an operation that is inherited in the private part, mark the
18160         explicit one as overriding, to enable overriding indicator checks.
18161         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
18162         full view to partial view, to simplify handling in back-end.
18163
18164         * sprint.adb: Print interface lists where needed: derived types,
18165         protected types, task types.
18166         output "is null" for null procedures. Part of implementation of
18167
18168         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
18169         relaxation of rules for access types in pure, shared passive partitions.
18170
18171         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
18172         first read discriminants into temporary objects, performing checks on
18173         the read values, then possibly performing discriminant checks on the
18174         actual (if it is constrained), and only finally reading the components
18175         into a constrained temporary object.
18176         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
18177         case of reading discriminants of a mutable record type to recognize
18178         the new form of the code generated by
18179         Build_Mutable_Record_Read_Procedure.
18180
18181         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
18182         of a simple call to Make_TSS_Name.
18183         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
18184         buffer, in order for Is_TSS to work correctly on local TSS names.
18185
18186         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
18187         Is_Local_Anonymous_Access to check legaliy of attributes in the
18188         context of  access components and stand-alone access objects.
18189         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
18190         treated as available for a limited private type if there is an
18191         attribute_definition_clause that applies to its full view, but not in
18192         other cases where the attribute is available for the full view
18193         (specifically, the sole fact that the full view is non-limited does not
18194         make the attribute available for the partial view).
18195         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
18196         non-overloaded intrinsic subprogram.
18197         (Check_Stream_Attribute): Reject an attribute reference for an
18198         unavailable stream attribute even if the prefix is not a limited type
18199         (case of a 'Input attribute reference for an abstract, non-classwide
18200         type)
18201         (Stream_Attribute_Available): New function to determine whether a stream
18202         attribute is available at a place.
18203         (Check_Attribute): Use Stream_Attribute_Available instead of just
18204         testing for TSS presence on the implementation base type.
18205         (Analyze_Attribute): Modified to give support to task interfaces.
18206         (Analyze_Access_Attribute): Add error check for use of an Access (or
18207         Unrestricted_Access) attribute with a subprogram marked as
18208         Inline_Always.
18209         (Analyze_Attribute, case Attribute_Address): Add error check for use of
18210         an Address attribute with a subprogram marked as Inline_Always.
18211         Update Eval_Attribute to handle new value of Width from AI-395
18212
18213         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
18214         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
18215         Factor common code across the stream-oriented attribute circcuits into
18216         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
18217         processing is functionally identical to the previous duplicated one,
18218         except that an expression that denotes an abstract subprogram will now
18219         be rejected, as mandated by AI-195 item 5.
18220
18221         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
18222         Is_Local_Anonymous_Access to apply accessibility checks to access
18223         components and stand-alone access objects.
18224         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
18225         elsewhere.
18226         (Is_Potentially_Persistent_Type): New function
18227         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
18228         a heap-object whose type has a constrained partial view, the object is
18229         unconstrained and the component may depend on a discriminant, making its
18230         renaming illegal.
18231
18232         * sinfo.ads, sinfo.adb
18233         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
18234         (Must_Override): Flag applicable to N_Entry_Declaration.
18235         Indicate that interface_list can appear in single task and single
18236         protected declarations.
18237         Replace Is_Overriding and Not_Overriding with Must_Override and
18238         Must_Not_Override, to better express intent of AI.
18239         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
18240         of an overriding indicator in a subprogram or instance.
18241         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
18242         Add the overriding indicator [[not] overriding] construct to the
18243         following grammar productions:
18244          ENTRY_DECLARATION
18245          GENERIC_INSTANTIATION
18246          SUBPROGRAM_SPECIFICATION
18247
18248         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
18249         can start with an overriding indicator.
18250
18251         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
18252         flags accordingly on subrogram specifications or instances.
18253
18254         * sem_ch8.adb:
18255         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
18256         overriding_indicator, if present, is consistent with status of spec.
18257         Improve error message for null-excluding checks on controlling access
18258         parameters.
18259         (Check_In_Previous_With_Clause): Protect the frontend against
18260         previously reported critical errors in the context clauses.
18261         Save and restore Ada_Version_Explicit, for implementation of AI-362
18262         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
18263         operation verify that controlling formals of the renamed entity that
18264         are access parameters are explicitly non-null.
18265         (Find_Expanded_Name): Improve error message when prefix is an illegal
18266         reference to a private child unit.
18267
18268         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
18269         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
18270         Rewrite to correspond to new wide character names in AI-395
18271
18272         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
18273         default procedures.
18274
18275 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
18276             Robert Dewar  <dewar@adacore.com>
18277
18278         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
18279         code, not on the bodies of predefined operations, to cut down on
18280         spurious noise.
18281
18282 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
18283
18284         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
18285         be expanded in place. The size computation does not require a
18286         subtraction, which would raise an exception on a compiler built with
18287         assertions when the upper bound is Integer'first.
18288         (Flatten): For an array of composite components, take into account the
18289         size of the components to determine whether it is safe to expand the
18290         array into a purely positional representation.
18291
18292 2005-06-14  Thomas Quinot  <quinot@adacore.com>
18293
18294         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
18295         denoting a formal parameter into account.
18296
18297 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
18298
18299         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
18300         the entry_call alternative of a conditional entry call, wrap the
18301         conditional entry call itself.
18302
18303 2005-06-14  Nicolas Setton  <setton@adacore.com>
18304             Ed Schonberg  <schonberg@adacore.com>
18305
18306         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
18307         the "simple_choice" member in a variant record, in accordance with the
18308         description in the package spec: the information output for a constant
18309         should be "S number", not "SS number".
18310         (Get_Encoded_Name): Return at once if not generating code. Avoids name
18311         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
18312
18313 2005-06-14  Thomas Quinot  <quinot@adacore.com>
18314
18315         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
18316         RACW without any primitives, do not generate the if statement for
18317         dispatching by name in the PolyORB/DSA case, as it would be malformed
18318         (it would have an Elsif_Parts list that is not No_List, but with a
18319         length of 0).
18320
18321 2005-06-14  Robert Dewar  <dewar@adacore.com>
18322
18323         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
18324
18325 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
18326
18327         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
18328         can determine whether pragma Suppress_Exception_Locations is in effect.
18329
18330         * utils2.c (build_call_raise): Do not pass the file name to the
18331         exception handler if pragma Suppress_Exception_Locations is in effect.
18332         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
18333
18334 2005-06-14  Emmanuel Briot  <briot@adacore.com>
18335
18336         * g-debpoo.adb (Deallocate, Dereference): Improve output.
18337
18338 2005-06-14  Nicolas Roche  <roche@adacore.com>
18339
18340         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
18341         to ""
18342         (Next_Level): Fix minor bug in handling of ../dir case
18343         (Read): Add dir separator to Directory name so that "" is understood as
18344          "/"
18345
18346 2005-06-14  Pascal Obry  <obry@adacore.com>
18347
18348         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
18349         releasing the items.
18350
18351 2005-06-14  Vincent Celier  <celier@adacore.com>
18352             Cyrille Comar  <comar@adacore.com>
18353
18354         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
18355         with output file descriptor and with output file name.
18356         (Dup, Dup2): Now global procedures as they are used by two subprograms
18357         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
18358
18359 2005-06-14  Thomas Quinot  <quinot@adacore.com>
18360
18361         PR ada/6717
18362         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
18363         broadcast address.
18364         (Create_Selector): Bind listening socket used to create the signalling
18365         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
18366         Set listen backlog to 1 to ensure that we detect socket theft by a
18367         failure of our own connect(2) call.
18368         (Check_Selector): Improve documentation of the selector mechanism.
18369         (Broadcast_Inet_Addr): New constant.
18370
18371 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
18372
18373         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
18374         type which turns out to be an incomplete and incorrect fix.
18375         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
18376         of the type is declared in a record (for determination of insertion
18377         type).
18378         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
18379         a private type and ensure that the primary entity is used for the type
18380         of the newly created function's V formal by taking the Etype of the
18381         view.
18382
18383 2005-06-14  Javier Miranda  <miranda@adacore.com>
18384             Jose Ruiz  <ruiz@adacore.com>
18385             Robert Dewar  <dewar@adacore.com>
18386             Ed Schonberg  <schonberg@adacore.com>
18387
18388         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
18389         that indicates if we are parsing a compilation unit found in a
18390         limited-with clause.
18391         It is use to avoid the circularity check.
18392
18393         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
18394         we are parsing a compilation unit found in a limited-with clause. This
18395         is use to avoid the circularity check.
18396
18397         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
18398         unit as a consequence of parsing a limited-with clause. This is used
18399         to avoid the circularity check.
18400
18401         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
18402         (Analyze_Context): Limited-with clauses are now allowed
18403         in more compilation units.
18404         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
18405         againts previously reported critical errors in context clauses
18406         (Install_Limited_Withed_Unit): Code cleanup plus static detection
18407         of two further errors: renamed subprograms and renamed packages
18408         are not allowed in limited with clauses.
18409         (Install_Siblings): Do not install private_with_clauses on the package
18410         declaration for a non-private child unit.
18411         (Re_Install_Parents): When a parent of the subunit is reinstalled,
18412         reset visibility of child units properly.
18413         (Install_Withed_Unit): When a child unit appears in a with_clause of its
18414         parent, it is immediately visible.
18415
18416 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
18417             Emmanuel Briot  <briot@adacore.com>
18418
18419         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
18420         declared within an inlined body as referenced, to prevent spurious
18421         warnings.
18422         (Output_One_Ref): If an entity renames an array component, indicate in
18423         the ALI file that this aliases (renames) the array. Capture as well
18424         function renamings that rename predefined operations.
18425         Add information about generic parent for package and subprogram
18426         instances.
18427         (Get_Type_Reference): For a subtype that is the renaming of an actual in
18428         an instantiation, use the first_subtype to ensure that we don't generate
18429         cross-reference information for internal types.
18430         For objects and parameters of a generic private type, retain the '*'
18431         indicator to distinguish such an entity from its type.
18432
18433         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
18434         to store information about instantiated entities.
18435
18436         * ali.adb (Scan_ALI): Add support for parsing the reference to the
18437         generic parent
18438
18439         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
18440         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
18441         information.
18442
18443 2005-06-10  Doug Rupp  <rupp@adacore.com>
18444             Arnaud Charlet  <charlet@adacore.com>
18445             Olivier Hainque  <hainque@adacore.com>
18446             Jose Ruiz  <ruiz@adacore.com>
18447
18448         * Make-lang.in: Add initialize.o when needed.
18449         Remove obsolete references to RT_FLAGS.
18450         Add missing dependencies for sdefault.o
18451
18452         * initialize.c: New file.
18453
18454         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
18455         [VMS] cond_signal_table: Fix problem in declaration.
18456         [VMS] __gnat_error_handler: rewrite.
18457         Move all __gnat_initialize() routines to initialize.c
18458         Specialize the former "hpux" section to "hppa hpux", as this is what the
18459         section really is here for and we now have other hpux ports that need
18460         different contents.
18461         (__gnat_adjust_context_for_raise) i386-linux: First version of this
18462         function for this target. Adjust PC by one in the machine context. This
18463         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
18464         it is more reliable to do that in the signal handler itself.
18465         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
18466         flags, so that the handler is passed the context structure to adjust
18467         prior to the raise.
18468         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
18469         SA_SIGINFO sigaction should look like. Call
18470         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
18471         Machine_State_Operations stuff.
18472         Add conditional code so that the x86_64 is also supported.
18473
18474 2005-06-14  Pascal Obry  <obry@adacore.com>
18475
18476         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
18477         the library name.
18478
18479 2005-06-14  Robert Dewar  <dewar@adacore.com>
18480
18481         * opt.ads, opt.adb: New flags for persistent_bss mode
18482         Add Ada_Version_Explicit, for implementation of AI-362
18483         Add Assertions_Enabled_Config and associated handling
18484         Needed since setting can be changed with Assertion_Policy pragma
18485         Add new flag Warn_On_Ada_2005_Compatibility
18486
18487         * switch-c.adb: Recognize -gnatwy/Y
18488         Set Ada_Version_Explicit, for implementation of AI-362
18489         The -gnatg switch now includes -gnatyu
18490
18491         * usage.adb: Add -gnatwy/Y
18492         Remove wrong asterisk on -gnatwX line
18493         Add line for -gnatyu switch
18494
18495 2005-06-14  Vincent Celier  <celier@adacore.com>
18496
18497         * osint.adb (Add_Default_Search_Dirs): Put source and object
18498         directories of project files before directories coming from
18499         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
18500
18501 2005-06-14  Robert Dewar  <dewar@adacore.com>
18502
18503         PR ada/15613
18504         * par-ch2.adb (Scan_Pragma_Argument): New procedure
18505         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
18506
18507 2005-06-14  Vincent Celier  <celier@adacore.com>
18508
18509         * prep.adb (Preprocess): Ignore error when scanning the first token of
18510         a line.
18511
18512 2005-06-14  Vincent Celier  <celier@adacore.com>
18513
18514         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
18515         (Check_Stand_Alone_Library): If the specified reference symbol file does
18516         not exist, only issue a warning when the symbol policy is not
18517         Controlled. And, when symbol policy is Compliant, set the symbol
18518         policy to Autonomous.
18519
18520 2005-06-14  Vincent Celier  <celier@adacore.com>
18521
18522         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
18523         when the project file in a with clause is not the last one, that is the
18524         project file name is followed by a comma.
18525         * prj-pp.adb: (First_With_In_List): New Boolean global variable
18526         (Print): Issue list of project files separated by commas in with clauses
18527         according to the values returned by Is_Not_Last_In_List.
18528         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
18529         (Set_Is_Not_Last_In_List): New procedure
18530
18531 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
18532
18533         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
18534
18535 2005-06-14  Robert Dewar  <dewar@adacore.com>
18536
18537         * scng.adb: Add call to new Check_EOF routine
18538         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
18539         Add some comments regarding wide character handling
18540
18541         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
18542
18543         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
18544
18545         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
18546         characters are now considered graphic characters and hence yield false
18547         in this call.
18548
18549         * nmake.adt: Modify header so that xnmake does not generate output
18550         files with multiple blank lines.
18551
18552         * treeprs.adt: Remove a blank line so that output from xtreeprs does
18553         not have an extra blank line
18554
18555 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
18556
18557         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
18558         expression when the component type is an anonymous access type to
18559         ensure that appropriate accessibility checks are done.
18560
18561         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
18562         expression of an assignment when the target object is of an anonymous
18563         access type. This ensures that required accessibility checks are done.
18564         (One_Bound): Move the check for type Universal_Integer to
18565         Process_Bounds.
18566         (Process_Bounds): Check whether the type of the preanalyzed range is
18567         Universal_Integer, and in that case set Typ to Integer_Type prior
18568         to setting the type of the original range and the calls to One_Bound.
18569
18570 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
18571
18572         * sem_case.adb (Expand_Others_Choice): Improve warning.
18573
18574 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
18575
18576         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
18577         constraint of full view if present, when other type is discriminated.
18578         (Eval_Relational_Op): Recognize tests of pointer values against Null,
18579         when the pointer is known to be non-null, and emit appropriate warning.
18580
18581 2005-06-14  Robert Dewar  <dewar@adacore.com>
18582             Ed Schonberg  <schonberg@adacore.com>
18583
18584         PR ada/10671
18585         * sem_prag.adb: Implement pragma Persistent_BSS
18586         Remove obsolete pragma Persistent_Data, Persistent_Object
18587         Set Ada_Version_Explicit, for implementation of AI-362
18588         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
18589         Add processing for pragma Pure_05 and Preelaborate_05
18590         Add processing for Assertion_Policy pragma
18591         Add pragma identifiers for Assert
18592         (Analyze_Pragma, case Assert): Check number of arguments
18593         (Process_Inline): Additional guard against an illegal program, where the
18594         argument of the pragma is undefined, and warnings on redundant
18595         constructs are enabled.
18596         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
18597         Ada_05 to this pragma, specifying that the pragma is only active in
18598         Ada_05 mode.
18599         (Check_Arg_Order): New procedure
18600         Add appropriate calls to this procedure throughout
18601         Also throughout, check entity name before doing any other checks
18602
18603         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
18604         Remove obsolete pragma Persistent_Data, Persistent_Object
18605         Add entries for pragma Pure_05 and Preelaborate_05
18606         Add entries for Assertion_Policy pragma and associated names
18607         Add some names for pragma argument processing
18608
18609         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
18610
18611 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
18612
18613         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
18614         appears within a negation (either from source or as a rewriting of
18615         inequality) adjust text of warning accordingly.
18616
18617 2005-06-14  Thomas Quinot  <quinot@adacore.com>
18618
18619         * s-strxdr.adb: Follow AI95-00132
18620
18621 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
18622
18623         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
18624
18625 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
18626             Jose Ruiz  <ruiz@adacore.com>
18627
18628         * s-tposen.adb, s-tpobop.adb
18629         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
18630         the exception id.
18631         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
18632         there is no violation of the Max_Entry_Queue_Length restriction (if it
18633         has been set); Program_Error is raised otherwise.
18634         (Requeue_Call): Before requeuing the task on the target entry queue we
18635         check that there is no violation of the Max_Entry_Queue_Length
18636         restriction (if it has been set); Program_Error is raised otherwise.
18637
18638 2005-06-14  Robert Dewar  <dewar@adacore.com>
18639
18640         * styleg.adb: Fix several remaining problems in -gnatyu switch
18641         Blank line count not reset at start
18642         Scanning outside source buffer in some cases
18643         Confusing message for blanks at end of file
18644         Non-empty blank lines not recognized
18645
18646         * nmake.adt: Modify header so that xnmake does not generate output
18647         files with multiple blank lines.
18648
18649         * treeprs.adt: Remove a blank line so that output from xtreeprs does
18650         not have an extra blank line
18651
18652 2005-06-14  Sergey Rybin  <rybin@adacore.com>
18653
18654         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
18655
18656 2005-06-14  Doug Rupp  <rupp@adacore.com>
18657             Vincent Celier  <celier@adacore.com>
18658
18659         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
18660         Update copyright.
18661
18662         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
18663         Remove "Library" command.
18664         Change keyword for style check -gnatyd from NOCRLF to
18665         DOS_LINE_ENDINGS.
18666         Remove useless second style check keyword NONE
18667         Remove help documentation for inexistent style check keyword
18668         RM_COLUMN_LAYOUT.
18669         Add help documentation for style check keywords DOS_LINE_ENDINGS,
18670         UNNECESSARY_BLANK_LINES and XTRA_PARENS
18671         Add UNNECESSARY_BLANK_LINES for -gnatyu
18672         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
18673
18674         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
18675
18676 2005-06-14  Vincent Celier  <celier@adacore.com>
18677
18678         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
18679         gprmake was invoked with -d.
18680         (Compile_Sources): If -d was used, output the "completed ..." message
18681         for each compilation.
18682         (Scan_Arg): Recognize new switch -d
18683         When -c and at least one main is specified, set
18684         Unique_Compile to True to guarantee that no other sources will be
18685         compiled.
18686
18687 2005-06-14  Matthew Heaney  <heaney@adacore.com>
18688
18689         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
18690         * a-swuwha.ads, a-swuwha.adb: New files
18691
18692         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
18693         * a-szuzha.ads, a-szuzha.adb: New files.
18694
18695         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
18696         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
18697         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
18698         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
18699         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
18700         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
18701         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
18702         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
18703         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
18704         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
18705         Ada 2005 RM.
18706
18707 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
18708             Olivier Hainque  <hainque@adacore.com>
18709             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18710             Pascal Obry  <obry@adacore.com>
18711
18712         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
18713
18714         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
18715         making a temporary around a procedure call because of non-addressable
18716         actual parameter.
18717         (process_freeze_entity): If entity is a private type, capture size
18718         information that may have been computed for the full view.
18719         (tree_transform, case N_Allocator): If have initializing expression,
18720         check type for Has_Constrained_Partial_View and pass that to
18721         build_allocator.
18722         (tree_transform, case N_Return_Statement): Pass extra arg to
18723         build_allocator.
18724
18725         * decl.c (annotate_value): Remove early return if -gnatR is not
18726         specified.
18727         (gnat_to_gnu_field): Don't make a packable type for a component clause
18728         if the position is byte aligned, the field is aliased, and the clause
18729         size isn't a multiple of the packable alignment. It serves no useful
18730         purpose packing-wise and would be rejected later on.
18731         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
18732
18733         PR ada/20515
18734         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
18735         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
18736         instead.
18737         (create_concat_name): Idem.
18738
18739 2005-06-10  Robert Dewar  <dewar@adacore.com>
18740             Eric Botcazou  <ebotcazou@adacore.com>
18741             Ben Brosgol  <brosgol@adacore.com>
18742             Cyrille Comar  <comar@adacore.com>
18743             Sergey Rybin  <rybin@adacore.com>
18744             Pascal Obry  <obry@adacore.com>
18745
18746         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
18747         Document second argument (Ada_05) of pragma Obsolescent
18748         Add note that call to subprogram marked with pragma Obsolescent
18749         is now considered to be a violation of program Restrictions
18750         (No_Obsolescent_Features).
18751         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
18752         that only machine-dependent attributes are supported.
18753
18754         * gnat_ugn.texi:
18755         Commented out menu lines and empty section for gnatclean examples
18756         Document -gnatwy/Y
18757         Fix some over long lines
18758         Clarify and enhance documentation of ADA_PROJECT_PATH.
18759         Rework section 2.11.2(3) about linking with a non-GNU compiler.
18760         Mention new switch -fcallgraph-info.
18761         Mention new switch -fstack-usage.
18762         For gnatpp, replace '-notab' with '-N' and add this option to Index
18763         Corrected VMS example.
18764         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
18765         Minor reformatting
18766         Add documentation for -gnatyu switch (unnecessary blank lines)
18767         Document new switch -U for GNAT PRETTY and GNAT METRIC
18768         Add note about Stdcall being handled as C convention on non Windows OS.
18769         Remove some junk typo in description of gnatbind -S switch
18770         Remove reference to Extensions_Allowed pragma
18771         Document the new order of the directories to be searched (source and
18772         object directories of project files before directories in ADA_*_PATH
18773         environment variables.
18774
18775         * g-trasym.ads: Document that IRIX is supported
18776
18777 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
18778
18779         * Makefile.in: Add initialize.o when needed.
18780         Adapt to new VMS package body Symbols and subunits
18781         No specialized version of a-sytaco is needed for VxWorks.
18782
18783         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
18784         * a-zchara.ads, a-widcha.ads: New files.
18785
18786         * system-hpux-ia64.ads: New file.
18787
18788         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
18789         is imported from the VxWorks kernel.
18790
18791 2005-06-14  Robert Dewar  <dewar@adacore.com>
18792
18793         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
18794         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
18795         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
18796         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
18797         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
18798         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
18799         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
18800         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
18801         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
18802         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
18803         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
18804         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
18805
18806 2005-06-14  Thomas Quinot  <quinot@adacore.com>
18807
18808         * xeinfo.adb: Fix typo in comment
18809
18810 2005-06-14  Javier Miranda  <miranda@adacore.com>
18811
18812         * repinfo.ads: Fix typo in comment
18813
18814 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
18815
18816         * s-finimp.adb (Parent_Tag): Delete this imported function (function
18817         Parent_Tag is now in the visible part of Ada.Tags).
18818         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
18819         using imported function.
18820
18821 2005-06-14  Bernard Banner  <banner@adacore.com>
18822
18823         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
18824         also apply for handling support for VxSim 653.
18825
18826 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
18827
18828         * xsnames.adb: Add automatic generation of snames.h.
18829
18830 2005-06-14  Thomas Quinot  <quinot@adacore.com>
18831
18832         * gen-soccon.c: Add IP_MULTICAST_IF constant
18833         Minor reformatting and adjustments to prevent warnings.
18834
18835 2005-06-14  Pascal Obry  <obry@adacore.com>
18836
18837         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
18838
18839 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
18840
18841         * trans.c (gnat_gimplify_expr): Call
18842         recompute_tree_invarant_for_addr_expr when we change
18843         the operand of the ADDR_EXPR.
18844
18845 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18846
18847         * misc.c: Don't include errors.h.
18848
18849 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18850
18851         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
18852
18853 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
18854
18855         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
18856         comment typos.
18857         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
18858
18859 2005-05-16  Nathanael Nerode <neroden@gcc.gnu.org>
18860
18861         PR ada/20270
18862         * Makefile.in: Make TGT_LIB behave correctly.
18863
18864 2005-04-23  DJ Delorie  <dj@redhat.com>
18865
18866         * misc.c: Adjust warning() callers.
18867
18868 2005-04-16  Laurent GUERBY  <laurent@guerby.net>
18869
18870         PR ada/18847
18871         * a-nudira.adb (Value): Check for valid string.
18872         * a-nuflra.adb (Value): Likewise.
18873
18874 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
18875
18876         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
18877
18878 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
18879
18880         * adaint.c, init.c, tracebak.c: Fix comment typos.
18881         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
18882
18883 2005-04-07  Laurent GUERBY  <laurent@guerby.net>
18884             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18885
18886         * Makefile.in: Add make ifeq define for hppa linux tasking support.
18887         * system-hpux.ads: Define Signed_Zeros to be True.
18888         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
18889
18890 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
18891
18892         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
18893         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
18894         typos.
18895
18896 2005-03-30  Tom Tromey  <tromey@redhat.com>
18897
18898         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
18899
18900 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
18901
18902         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
18903
18904 2005-03-29  Robert Dewar  <dewar@adacore.com>
18905
18906         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
18907         fixed-point expression has value that is not a multiple of the Small
18908         value.
18909
18910         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
18911
18912         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
18913         nanoseconds.
18914
18915         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
18916
18917 2005-03-29  Vincent Celier  <celier@adacore.com>
18918
18919         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
18920         (Build_Dynamic_Library.Version_String): Return the empty string when
18921         Lib_Version is empty or when the symbol policy is not Autonomous.
18922
18923         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
18924         a symbol is not in the reference symbol file, increase the Major ID
18925         and set the Minor ID to 0.
18926         Use gsmatch=lequal instead of gsmatch=equal
18927
18928 2005-03-29  Doug Rupp  <rupp@adacore.com>
18929
18930         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
18931         name and translate.
18932
18933 2005-03-29  Javier Miranda  <miranda@adacore.com>
18934
18935         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
18936         (Inherit_DT): The first formal has been redefined as a Tag.
18937         This allows us the removal of the subprogram Get_TSD.
18938         (TSD): Replace the call to Get_TSD by the actual code.
18939
18940         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
18941         (Make_DT): Upgrade the call to Inherit_TSD according to the
18942         new interface: the first formal is now a Tag.
18943
18944         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
18945         redefined as a Tag.
18946         This change allows us to remove the subprogram Get_TSD.
18947         (CPP_Get_TSD): Subprogram removed.
18948         (TSD): Replace the call to CPP_Get_TSD by the actual code.
18949
18950         * rtsfind.ads: Remove support to call the run-time
18951         subprogram Get_TSD
18952
18953 2005-03-29  Robert Dewar  <dewar@adacore.com>
18954
18955         * errutil.adb, errout.adb:
18956         Minor comment updates on Line_Terminator references
18957
18958         * par-ch10.adb: Add ??? comment about line terminator
18959
18960         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
18961         (check dos line terminator).
18962         (Check_Line_Max_Length): New procedure, split off from the existing
18963         Check_Line_Terminator routine. Separating this out allows -gnatyf to
18964         be properly recognized.
18965
18966         * styleg.adb: Add ??? comment for line terminator reference
18967
18968         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
18969         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
18970
18971         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
18972         (check dos line terminator).
18973         (Check_Line_Max_Length): New procedure, split off from the existing
18974         Check_Line_Terminator routine. Separating this out allows -gnatyf to
18975         be properly recognized.
18976
18977         * stylesw.ads, stylesw.adb:
18978         Add handling for new -gnatyd switch (check dos line terminator)
18979
18980         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
18981         Recognize -gnatwb/-gnatwB switches
18982         Include Warn_On_Bad_Fixed_Value for -gnatg
18983
18984         * usage.adb:
18985         Add line for new -gnatyd switch (check dos line terminator)
18986
18987         * usage.adb: Add lines for -gnatwb/-gnatwB
18988
18989         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
18990
18991         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
18992
18993         * gnat_ugn.texi: Fix overlong lines
18994         Document new -gnatyd switch
18995         Document new -gnatwb/-gnatwB switches
18996
18997 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
18998
18999         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
19000         order to retrieve the component list of the type, before examining
19001         individual components.
19002
19003         * sem_type.adb (Covers): Types are compatible if one is the base type
19004         of the other, even though their base types might differ when private
19005         views are involved.
19006
19007 2005-03-29  Thomas Quinot  <quinot@adacore.com>
19008
19009         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
19010         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
19011         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
19012         analyzed if expansion is disabled (which could otherwise cause spurious
19013         error messages if expansion has been disabled due to previous
19014         (unrelated) errors).
19015
19016         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
19017         is disabled, the entity denoted by the argument is the access type
19018         itself, not an underlying record type, so there is no need to go back
19019         to the Corresponding_Remote_Type.
19020
19021 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
19022             Robert Dewar  <dewar@adacore.com>
19023
19024         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
19025         expand a call to an instance of
19026         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
19027         Constructor actual of the instance. A class-wide membership
19028         check is also generated, to ensure that the tag passed to the instance
19029         denotes a type in the class.
19030         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
19031         of Name_Generic_Dispatching_Constructor.
19032
19033         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
19034         05 unit for AI-260-02).
19035
19036         * a-tgdico.ads: New file.
19037
19038         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
19039         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
19040
19041         * snames.ads, snames.adb (Preset_Names): Add entry for
19042         Generic_Dispatching_Constructor.
19043
19044         PR ada/20300
19045         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
19046         character type cases.
19047         (Analyze_Subprogram_Renaming): Add special handling for
19048         the case of renaming of stream attributes when the renaming denotes a
19049         generic formal subprogram association for an abstract formal subprogram.
19050         Check that the attribute is a primitive stream attribute (and not
19051         a class-wide stream attribute) and then rewrite the attribute name
19052         as the name of the appropriate compiler-generated stream primitive.
19053
19054 2005-03-29  Robert Dewar  <dewar@adacore.com>
19055
19056         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
19057         recursive calls.
19058         (Is_Possibly_Unaligned_Object): Correct typo that
19059         resulted in inaccurate result for unaligned scalars within records.
19060
19061 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
19062
19063         * freeze.adb (Freeze_Record_Type): If the type of the component is an
19064         itype whose parent is controlled and not yet frozen, do not create a
19065         freeze node for the itype if expansion is disabled.
19066
19067 2005-03-29  Vincent Celier  <celier@adacore.com>
19068
19069         * make.adb (Gnatmake): Don't fail if the main project file is declared
19070         as having no Ada sources. Do not display message "no sources to
19071         compile" in quiet output.
19072
19073 2005-03-29  Doug Rupp  <rupp@adacore.com>
19074
19075         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
19076         extra tools.
19077
19078 2005-03-29  Robert Dewar  <dewar@adacore.com>
19079
19080         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
19081         child.
19082
19083 2005-03-29  Robert Dewar  <dewar@adacore.com>
19084
19085         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
19086         missing TYPE Improve the error message generated when compiling a
19087         limited interface in Ada83 or Ada95 mode.
19088
19089 2005-03-29  Robert Dewar  <dewar@adacore.com>
19090
19091         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
19092         rather than proceed ahead using a junk attribute name.
19093
19094 2005-03-29  Vincent Celier  <celier@adacore.com>
19095
19096         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
19097
19098         * prj-part.adb (Parse_Single_Project): Set the location of a project
19099         on its defining identifier, rather than on the reserved word "project".
19100
19101         * prj-proc.adb (Expression): Adapt to the fact that default of external
19102         references may be string expressions, not always literal strings.
19103         (Recursive_Process): Set Display_Name equal to Name
19104         when Location is No_Location, that is when there is no actual file.
19105         Get the Display_Name of the project from the source, when it is not a
19106         virtual project.
19107         (Process): Use the Display_Name in error messages
19108
19109         * prj-strt.adb (External_Reference): Allow default to be string
19110         expressions, not only literal strings.
19111
19112 2005-03-29  Vincent Celier  <celier@adacore.com>
19113
19114         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
19115         file and the reference symbol file to be the same file.
19116
19117 2005-03-29  Thomas Quinot  <quinot@adacore.com>
19118
19119         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
19120         forbid conversion of a local access-to-subprogram type to a remote one.
19121
19122         * sem_util.adb (Wrong_Type): For a record type that is the expanded
19123         equivalent type for a remote access-to-subprogram type, go back to the
19124         original RAS entity when displaying an error message, so the casing is
19125         the original source casing.
19126
19127 2005-03-29  Robert Dewar  <dewar@adacore.com>
19128
19129         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
19130         on param update.
19131
19132 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
19133
19134         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
19135         subtype if code is being pre-analyzed, to prevent un-expanded
19136         references to protected formals, among others.
19137         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
19138         interpretation that can be a call, include the result of the call as a
19139         possible interpretation of the dereference.
19140
19141         * sem_ch5.adb (Process_Bounds): Determine type of range by
19142         pre-analyzing a copy of the original range, and then analyze the range
19143         with the expected type.
19144
19145         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
19146         with an overloaded prefix where not all interpretations yield an
19147         access to subprogram, do not rewrite node as a call.
19148         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
19149         the node as a call once the context identifies the interpretation of
19150         the prefix whose call yields the context type.
19151         (Valid_Conversion): For the case of a conversion between
19152         local access-to-subprogram types, check subtype conformance using
19153         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
19154         detailed error message.
19155
19156 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
19157
19158         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
19159         indicator, indicate that the formal can never be null.
19160         (Process_Formals): If a formal has a non_null indicator, insert the
19161         resulting subtype immediately before the enclosing subprogram decl,
19162         and not at the beginning of the corresponding declarative part, to
19163         prevent access before elaboration (Ada2005).
19164
19165 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19166
19167         PR ada/19956
19168         * utils.c (finish_record_type): Use variable_size when setting sizes.
19169
19170 2005-03-29  Robert Dewar  <dewar@adacore.com>
19171
19172         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
19173         guarantee Unix style line terminators for the output files, even when
19174         running on windows.
19175
19176 2005-03-29  Robert Dewar  <dewar@adacore.com>
19177
19178         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
19179         buffer if an exception is raised.
19180
19181 2005-03-29  Ed Falis  <falis@adacore.com>
19182
19183         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
19184         VxWorks 653 1.4
19185
19186 2005-03-29  Robert Dewar  <dewar@adacore.com>
19187
19188         * sem_util.ads: Minor reformatting
19189         * gnat_rm.texi: Minor editing.
19190
19191 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
19192
19193         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
19194         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
19195
19196 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
19197
19198         * adaint.c (__gnat_portable_spawn): Adjust cast.
19199
19200 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
19201
19202         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
19203
19204 2005-03-17  Pascal Obry  <obry@adacore.com>
19205
19206         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
19207         used.
19208
19209         * expect.c (__gnat_waitpid): Moved here from adaint.c.
19210         Reimplement under Win32 using Win32 API.
19211
19212         (__gnat_kill) [Win32]: Properly close the process handle before leaving
19213         this routine.
19214
19215 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
19216
19217         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
19218         (DECL_RENAMED_OBJECT): New accessor macro.
19219         (SET_DECL_RENAMED_OBJECT): New setter macro.
19220
19221         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
19222         object in all cases.  Attach the renamed object to the VAR_DECL.
19223         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
19224         field is not prescribed.
19225
19226         * misc.c (gnat_handle_option): Handle -gnatO separately.
19227         (gnat_print_decl) <VAR_DECL>: New case.
19228         Print the DECL_RENAMED_OBJECT node.
19229
19230         * lang.opt:  Declare separate -gnatO option.
19231
19232         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
19233         pointer, replace it with the renamed object.
19234         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
19235         pointer type if the source is not a fat pointer type whose underlying
19236         array has the same non-zero alias set as that of the destination array.
19237
19238 2005-03-17  Javier Miranda  <miranda@adacore.com>
19239
19240         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
19241         (Get_Inheritance_Depth): Removed.
19242         (Set_Inheritance_Depth): Removed.
19243
19244         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
19245         subprogram Get_Expanded_Name because it is not referenced by the
19246         frontend.
19247
19248         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
19249         (CPP_Get_Inheritance_Depth): Removed.
19250         (CPP_Set_Inheritance_Depth): Removed.
19251
19252         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
19253
19254 2005-03-17  Robert Dewar  <dewar@adacore.com>
19255
19256         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
19257         3, since we now expect GCC 3 to do all the work.
19258
19259 2005-03-17  Javier Miranda  <miranda@adacore.com>
19260
19261         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
19262         of one barrier to avoid wrong usage of this attribute.
19263
19264         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
19265         First_Private_Entity.
19266
19267         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
19268         the subprogram against wrong usage.
19269         Adapt the code to traverse the entities in the
19270         scope of a record_type because in addition to its usage regarding
19271         packages, this subprogram is also called by Expand_N_Freeze_Entity
19272         to install the visible declarations of the enclosing scope of a
19273         record_type_with_private to establish the proper visibility before
19274         freezing the entity and related subprograms.
19275
19276 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
19277
19278         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
19279         entry formals.
19280
19281 2005-03-17  Thomas Quinot  <quinot@adacore.com>
19282
19283         * exp_ch3.adb (Check_Attr): New subprogram.
19284         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
19285         into a new Check_Attr subprogram, in order to provide a more
19286         explanatory error message (including the name of the missing attribute).
19287         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
19288         subprogram determines whether a default implementation exists for a
19289         given stream attribute.
19290         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
19291         Determine whether to generate a default implementation for each stream
19292         attribute separately, as this depends on the specific attribute.
19293
19294         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
19295         limited extension where a stream attribute is missing for a limited
19296         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
19297         generate a bogus reference to the missing attribute to prevent
19298         cascaded errors. Instead, generate a null statement.
19299
19300         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
19301         available for a limited type if it has been specified for an ancestor
19302         of the type.
19303
19304 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
19305
19306         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
19307         entity is an operator.
19308
19309 2005-03-17  Thomas Quinot  <quinot@adacore.com>
19310
19311         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
19312         spec, to make this predicate available to other units.
19313
19314         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
19315         reimplementing it.
19316
19317         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
19318         when no distribution runtime library is available.
19319
19320         * sem_res.adb, sem_dist.adb: Disable expansion of remote
19321         access-to-subprogram types when no distribution runtime library is
19322         available.
19323         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
19324         predicate available to other units.
19325
19326         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
19327         spec, to make this predicate available to other units.
19328
19329 2005-03-17  Vincent Celier  <celier@adacore.com>
19330
19331         * make.adb (Insert_Project_Sources): Make sure the Q is always
19332         initialized.
19333
19334         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
19335         the default for the tree, not the global default naming.
19336
19337         * prj-proc.adb (Recursive_Process): No need to put the default naming
19338         in the project data, it's already there.
19339
19340 2005-03-17  Doug Rupp  <rupp@adacore.com>
19341
19342         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
19343
19344         * 5xcrtl.ads: Renamed to...
19345         * s-crtl-vms64.ads: ...this new file
19346
19347 2005-03-17  Robert Dewar  <dewar@adacore.com>
19348
19349         PR ada/19519
19350         * namet.adb (Copy_One_Character): Set proper wide character encoding
19351         for upper half character if we have upper half encoding.
19352
19353 2005-03-17  Robert Dewar  <dewar@adacore.com>
19354
19355         * par.adb (Par): Improved msg for attempt to recompile predefined unit
19356
19357 2005-03-17  Thomas Quinot  <quinot@adacore.com>
19358
19359         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
19360         tagged limited type, the TSS is a newly built renaming declaration:
19361         insert it using Set_TSS, not Copy_TSS.
19362
19363 2005-03-17  Javier Miranda  <miranda@adacore.com>
19364
19365         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
19366         Try_Object_Operation): Analyze the object that is accessible
19367         through the prefix of the subprogram call before we apply
19368         the transformation of the object-operation notation.
19369
19370 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
19371
19372         * s-taprob.adb (Initialize_Protection): Initialize the protected
19373         object's owner to Null_Task.
19374         (Lock): If pragma Detect_Blocking is in effect and the caller of this
19375         procedure is already the protected object's owner then Program_Error
19376         is raised. In addition the protected object's owner is updated.
19377         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
19378         of this procedure is already the protected object's owner then
19379         Program_Error is raised.
19380         In addition the protected object's owner is updated.
19381         (Unlock): Remove the ownership of the protected object.
19382
19383         * s-taprob.ads (Protection): Add the field Owner, used to store the
19384         protected object's owner.
19385         This component is needed for detecting one type of potentially blocking
19386         operations (external calls on a protected subprogram with the same
19387         target object as that of the protected action). Document the rest of
19388         the components.
19389
19390         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
19391         Initialize the protected object's owner to Null_Task.
19392         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
19393         caller of this procedure is already the protected object's owner then
19394         Program_Error is raised.
19395         Do not raise Program_Error when this procedure is called from a
19396         protected action.
19397         (Unlock_Entries): Remove the ownership of the protected object.
19398         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
19399         of this procedure is already the protected object's owner then
19400         Program_Error is raised.
19401         Do not raise Program_Error when this procedure is called from
19402         a protected action.
19403
19404         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
19405         used to store the protected object's owner.
19406
19407         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
19408         effect and this procedure (a potentially blocking operation) is called
19409         from whithin a protected action, Program_Error is raised.
19410         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
19411         and this procedure (a potentially blocking operation) is called from
19412         whithin a protected action, Program_Error is raised.
19413
19414 2005-03-17  Vincent Celier  <celier@adacore.com>
19415             Nicolas Setton  <setton@adacore.com>
19416
19417         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
19418         switch, not supported by the linker on Darwin. Add '_' before
19419         <library>init, as this character is added unconditionally by the
19420         compiler.
19421         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
19422         correct one ".dylib". This fixes detection of the archive files when
19423         building library projects.
19424
19425 2005-03-17  Vincent Celier  <celier@adacore.com>
19426
19427         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
19428         -gnat83, -gnat95 and -gnat05.
19429
19430 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
19431
19432         * gnat_ugn.texi: Document gnatmem restriction
19433
19434 2005-03-17  Thomas Quinot  <quinot@adacore.com>
19435
19436         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
19437         cleanup
19438
19439 2005-03-17  Robert Dewar  <dewar@adacore.com>
19440
19441         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
19442         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
19443         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
19444
19445         * casing.adb: Comment improvements
19446
19447 2005-03-17  Pascal Obry  <obry@adacore.com>
19448
19449         * g-expect.adb: Minor reformatting.
19450
19451 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
19452
19453         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
19454         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
19455         to dependencies.
19456
19457 2005-03-15  Vincent Celier  <celier@adacore.com>
19458
19459         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
19460         Add new parameter In_Tree to specify the project tree: needed
19461         by the project manager. Adapt to changes in project manager
19462         using new parameter In_Tree.
19463
19464 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
19465
19466         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
19467         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
19468         ada/bldtools to avoid make -jN failures.
19469
19470 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
19471
19472         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
19473         to NULL_TREE on entry.
19474
19475 2005-03-15  Robert Dewar  <dewar@adacore.com>
19476
19477         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
19478         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
19479         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
19480         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
19481         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
19482         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
19483         system-interix.ads, system-solaris-sparc.ads,
19484         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
19485         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
19486         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
19487         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
19488         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
19489         Compiler_System_Version to be False.
19490
19491         * opt.ads: Add new flag Opt.Address_Is_Private
19492
19493         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
19494         Add new parameter Compiler_System_Version to avoid checking for
19495         completeness of parameters when compiler is compiling itself.
19496         Allows old versions of GNAT to be compiled with new compiler.
19497
19498 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
19499
19500         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
19501         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
19502         calling thread.
19503         (Stack_Base_Available): New flag.
19504         (Get_Page_Size): New overloaded functions imported from C.
19505         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
19506         PROT_ON, PROT_OFF): New constants.
19507         (mprotect): New function imported from C.
19508         (pthread_teb_t): New record type.
19509
19510         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
19511         (Create_Task): Account for the Yellow Zone and the guard page.
19512
19513 2005-03-15  Vincent Celier  <celier@adacore.com>
19514
19515         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
19516         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
19517         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
19518         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
19519         Library_File_Name_For): Add new parameter In_Tree
19520         to specify the project tree: needed by the project manager.
19521         Adapt to changes in project manager using new parameter In_Tree.
19522         Remove local imports, use functions in System.CRTL.
19523
19524         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
19525         to use the project manager.
19526
19527         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
19528         In_Tree to designate the project tree. Adapt to changes in the project
19529         manager, using In_Tree.
19530
19531         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
19532         Copy_Interface_Sources): Add new parameter In_Tree to specify the
19533         project tree: needed by the project manager.
19534         (Build_Library): Check that Arg'Length >= 6 before checking if it
19535         contains "--RTS=...".
19536
19537         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
19538         Library_File_Name_For): Add new parameter In_Tree to specify the
19539         project tree: needed by the project manager.
19540
19541         * prj.ads, prj.adb: Major modifications to allow several project trees
19542         in memory at the same time.
19543         Change tables to dynamic tables and hash tables to dynamic hash
19544         tables. Move tables and hash tables from Prj.Com (in the visible part)
19545         and Prj.Env (in the private part). Move some constants from the visible
19546         part to the private part. Make other constants deferred.
19547         (Project_Empty): Make it a variable, not a function
19548         (Empty_Project): Add parameter Tree. Returns the data with the default
19549         naming data of the project tree Tree.
19550         (Initialize): After updating Std_Naming_Data, copy its value to the
19551         component Naming of Project Empty.
19552         (Register_Default_Naming_Scheme): Use and update the default naming
19553         component of the project tree, instead of the global variable
19554         Std_Naming_Data.
19555         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
19556         Tree is not defaulted, return the default naming data of the Tree.
19557         (Initial_Buffer_Size): Constant moved from private part
19558         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
19559         variables initialized in procedure Initialize.
19560         (Add_To_Buffer): Add two in out parameters to replace global variables
19561         Buffer and Buffer_Last.
19562         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
19563         functions.
19564         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
19565         hash tables.
19566         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
19567         for the project tree.
19568         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
19569         constant at the beginning of the package spec, so that they cane be used
19570         in subprograms before their full declarations.
19571         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
19572         (Empty_Project): Add parameter of type Project_Node_Ref
19573         (Private_Project_Tree_Data): Add component Default_Naming of type
19574         Naming_Data.
19575         (Buffer, Buffer_Last): remove global variables
19576         (Add_To_Buffer): Add two in out parameters to replace global variables
19577         Buffer and Buffer_Last.
19578         (Current_Packages_To_Check): Remove global variable
19579         (Empty_Name): Move to private part
19580         (No-Symbols): Make it a constant
19581         (Private_Project_Tree_Data): New type for the private part of the
19582         project tree data.
19583         (Project_Tree_Data): New type for the data of a project tree
19584         (Project_Tree_Ref): New type to designate a project tree
19585         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
19586         for the project tree.
19587
19588         * prj-attr.ads: Add with Table; needed, as package Prj no longer
19589         imports package Table.
19590
19591         * prj-com.adb: Remove empty, no longer needed body
19592
19593         * prj-com.ads: Move most of the content of this package to package Prj.
19594
19595         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
19596         designate the project node tree and Packages_To_Check to replace
19597         global variable Current_Packages_To_Check.
19598         Add new parameters In_Tree and Packages_To_Check to local subprograms,
19599         when needed. Adapt to changes in project manager with project node tree
19600         In_Tree.
19601
19602         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
19603         project tree to most subprograms. Move tables and hash tables to
19604         private part of package Prj.
19605         Adapt to changes in project manager using project tree In_Tree.
19606
19607         * prj-makr.adb (Tree): New constant to designate the project node tree
19608         Adapt to change in project manager using project node tree Tree
19609
19610         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
19611         display the Library_Src_Dir and the Library_Dir.
19612         Add new parameter In_Tree to designate the project node tree to most
19613         subprograms. Adapt to changes in the project manager, using project tree
19614         In_Tree.
19615         (Check_Naming_Scheme): Do not alter the casing on platforms where
19616         the casing of file names is not significant.
19617         (Check): Add new parameter In_Tree to designate the
19618
19619         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
19620         designate the project tree.
19621         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
19622
19623         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
19624         to replace those that were in the private part of package Prj.
19625         Add new parameter In__Tree to designate the project node tree to most
19626         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
19627         (Post_Parse_Context_Clause): When specifying the project node of a with
19628         clause, indicate that it is a limited with only if there is "limited"
19629         in the with clause, not necessarily when In_Limited is True.
19630         (Parse): Add new parameter In_Tree to designate the project node tree
19631
19632         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
19633         designate the project node tree. Adapt to change in Prj.Tree with
19634         project node tree In_Tree.
19635
19636         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
19637         tree In_Tree in the call to function Empty_Process to give its initial
19638         value to the project data Processed_Data.
19639         Add new parameters In_Tree to designate the project tree and
19640         From_Project_Node_Tree to designate the project node tree to several
19641         subprograms. Adapt to change in project manager with project tree
19642         In_Tree and project node tree From_Project_Node_Tree.
19643
19644         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
19645         to replace those that were in the private part of package Prj.
19646         Add new parameter In_Tree to designate the project node tree to most
19647         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
19648
19649         * prj-tree.ads, prj-tree.adb: Add new parameter of type
19650         Project_Node_Tree_Ref to most subprograms.
19651         Use this new parameter to store project nodes in the designated project
19652         node tree.
19653         (Project_Node_Tree_Ref): New type to designate a project node tree
19654         (Tree_Private_Part): Change table to dynamic table and hash tables to
19655         dynamic hash tables.
19656
19657         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
19658         the project tree to most subprograms. Adapt to changes in project
19659         manager using project tree In_Tree.
19660
19661         * makegpr.adb (Project_Tree): New constant needed to use project
19662         manager.
19663
19664 2005-03-15  Olivier Hainque  <hainque@adacore.com>
19665
19666         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
19667         for sigactions with SA_SIGINFO set. Call
19668         __gnat_adjust_context_for_raise before raising, to perform the
19669         potentially required adjustments to the machine context for the GCC
19670         unwinder.
19671
19672         * raise.h (__gnat_adjust_context_for_raise): New prototype.
19673
19674         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
19675         Adjust PC by one in the provided machine context.
19676         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
19677         so that the handler is passed the context structure to adjust prior to
19678         the raise.
19679         (__gnat_error_handler) HPUX: Adjust the signature to match what an
19680         SA_SIGINFO sigaction should look like. Call
19681         __gnat_adjust_context_for_raise before actually raising.
19682         (__gnat_adjust_context_for_raise): Default noop to help PC
19683         adjustments before raise from signal handlers.
19684         (__gnat_error_handler): Indirectly call a predicate function to
19685         determine if a condition should be resignaled or not.
19686         (__gnat_set_resignal_predicate): User interface to modify the predicate.
19687         (__gnat_default_resignal_p): Default GNAT predicate.
19688
19689 2005-03-15  Doug Rupp  <rupp@adacore.com>
19690
19691         * adaint.c: Prefix #include of VMS system header files with vms/
19692         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
19693         Do not define a dummy function "convert_addresses" under Darwin,
19694         not needed.
19695
19696         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
19697         with vms/
19698
19699 2005-03-15  Nicolas Setton  <setton@adacore.com>
19700
19701         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
19702         PPC/AIX.
19703
19704 2005-03-15  Robert Dewar  <dewar@adacore.com>
19705
19706         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
19707         AI-386.
19708
19709         * a-retide.ads: Minor comment changes
19710
19711 2005-03-15  Robert Dewar  <dewar@adacore.com>
19712
19713         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
19714         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
19715         Realloc_For_Chunk to private part of package.
19716         New subprograms for AI-301
19717
19718         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
19719         Get_Line procedure.
19720         Avoid unnecessary use of Get/Set_Wide_String
19721
19722 2005-03-15  Robert Dewar  <dewar@adacore.com>
19723
19724         PR ada/13470
19725         * a-stunau.ads, a-stunau.adb:
19726         Change interface to allow efficient (and correct) implementation
19727         The previous changes to allow extra space in unbounded strings had
19728         left this interface a bit broken.
19729
19730         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
19731
19732         * g-spipat.ads, g-spipat.adb: New interface for Get_String
19733         Minor reformatting (function specs)
19734
19735         * g-spitbo.adb: New interface for Get_String
19736
19737         * g-spitbo.ads: Minor reformatting
19738
19739         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
19740
19741         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
19742
19743 2005-03-15  Javier Miranda  <miranda@adacore.com>
19744             Robert Dewar  <dewar@adacore.com>
19745             Thomas Quinot  <quinot@adacore.com>
19746             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19747
19748         * atree.ads, atree.adb: Add support for Elist24 field
19749
19750         * atree.h: Fix wrong definition of Field27
19751         Add support for Elist16 field
19752         Add support for Elist24 field
19753
19754         * einfo.ads, einfo.adb (Abstract_Interfaces,
19755         Set_Abstract_Interfaces): New subprograms.
19756         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
19757         subprograms.
19758         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
19759         entities rather than a single node.
19760         (Is_Interface, Set_Is_Interface): New subprogram
19761         (First_Tag_Component): New syntesized attribute
19762         (Next_Tag_Component): New synthesized attribute
19763         (Write_Entity_Flags): Upgraded to write Is_Interface
19764         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
19765         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
19766         (Task_Body_Procedure): New subprogram to read this attribute.
19767         (Set_Task_Body_Procedure): New subprogram to set this attribute.
19768         (Has_Controlled_Component): Now applies to all entities.
19769         This is only a documentation change, since it always worked to apply
19770         this to other than composite types (yielding false), but now this is
19771         official.
19772         Update documentation on Must_Be_Byte_Aligned for new spec
19773
19774         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
19775         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
19776         uses of the Access_Disp_Table attribute to reference the first dispatch
19777         table associated with a tagged type. As
19778         part of the implementation of abstract interface types,
19779         Access_Disp_Table has been redefined to contain a list of dispatch
19780         tables (rather than a single dispatch table).
19781         Similarly, upgrade all the references to Tag_Component by the
19782         new attribute First_Tag_Component.
19783         (Find_Inherited_TSS): Moved to exp_tss.
19784         Clean up test in Expand_N_Object_Declaration for cases
19785         where we need to do a separate assignment of the initial value.
19786         (Expand_N_Object_Declaration): If the expression in the
19787         declaration of a tagged type is an aggregate, no need to generate an
19788         additional tag assignment.
19789         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
19790         is to be deleted.
19791         Bit packed array ops are only called if operands are known to be
19792         aligned.
19793         (Component_Equality): When returning an N_Raise_Program_Error statement,
19794         ensure that its Etype is set to Empty to avoid confusing GIGI (which
19795         expects that only expressions have a bona fide type).
19796         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
19797         determine the amount of data to be copied.
19798
19799         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
19800         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
19801             INTERFACE_TYPE_DEFINITION ::=
19802               [limited | task | protected | synchronized] interface
19803                 [AND interface_list]
19804
19805         * par-ch3.adb (P_Type_Declaration): Modified to give support to
19806         interfaces.
19807         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
19808         interfaces.
19809         (P_Interface_Type_Definition): New subprogram that parses the new
19810         syntax rule of Ada 2005 interfaces
19811         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
19812         messages by the correct RENAMES (quotes removed).
19813
19814         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
19815         attribute First_Tag_Component.
19816
19817         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
19818         (Interface_List, Set_Interface_List): New subprograms.
19819         (Interface_Present, Set_Interface_Present): New subprograms.
19820         (Limited_Present, Set_Limited_Present): Available also in derived
19821         type definition nodes.
19822         (Protected_Present, Set_Protected_Present): Available also in
19823         record type definition and
19824         derived type definition nodes.
19825         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
19826         (Task_Present, Set_Task_Present): New subprogram.
19827         (Task_Body_Procedure): Removed.
19828         (Set_Task_Body_Procedure): Removed.
19829         These subprogram have been removed because the attribute
19830         Task_Body_Procedure has been moved to the corresponding task type
19831         or task subtype entity to leave a field free to store the list
19832         of interfaces implemented by a task (for AI-345)
19833         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
19834         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
19835         expression flag Do_Range_Check
19836         (Exception_Junk): Change to Flag7 to accomodate above change
19837         (Box_Present, Default_Name, Specification, Set_Box_Present,
19838         Set_Default_Name, Set_Specification): Expand the expression
19839         "X in N_Formal_Subprogram_Declaration" into the corresponding
19840         two comparisons. Required to use the csinfo tool.
19841
19842         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
19843         "with string" given.
19844
19845         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
19846         expression given.
19847
19848         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
19849         in 2005 mode
19850
19851         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
19852         attribute Task_Body_Procedure rather than the old semantic field that
19853         was available in the task_type_declaration node.
19854
19855         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
19856         interface type definitions.
19857         (P_Formal_Derived_Type_Definition): Modified to handle the list of
19858         interfaces.
19859
19860         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
19861         task type declaration.
19862         (P_Protected): Modified to handle the list of interfaces in a
19863         protected type declaration.
19864
19865 2005-03-15  Doug Rupp  <rupp@adacore.com>
19866             Vincent Celier  <celier@adacore.com>
19867
19868         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
19869         (Gen_Output_File_C): Likewise.
19870         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
19871
19872 2005-03-15  Thomas Quinot  <quinot@adacore.com>
19873
19874         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
19875         is an N_Raise_Constraint_Error node, create a new copy of it without
19876         going through a call to Duplicate_Subexpr.
19877
19878 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
19879             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19880             Nicolas Setton  <setton@adacore.com>
19881             Ed Schonberg  <schonberg@adacore.com>
19882
19883         PR ada/19900
19884         PR ada/19408
19885         PR ada/19140
19886         PR ada/20255
19887         * decl.c (gnat_to_gnu_field): Reject aliased components with a
19888         representation clause that prescribes a size not equal to the rounded
19889         size of their types.
19890         (gnat_to_gnu_entity, case E_Component): Always look at
19891         Original_Record_Component if Present and not the entity.
19892         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
19893         of tagged extension types by not making field for components that are
19894         inside the parent.
19895         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
19896         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
19897         expression to the type of the object when the object is constant.
19898         Reverse defer_debug_incomplete_list before traversing it, so that trees
19899         are processed in the order at which they were added to the list. This
19900         order is important when using the stabs debug format.
19901         If we are deferring the output of debug information, also defer this
19902         output for a function return type.
19903         When adding fields to a record, prevent emitting debug information
19904         for incomplete records, emit the information only when the record is
19905         complete.
19906         (components_to_record): New parameter defer_debug.
19907         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
19908         (gnat_to_gnu_field_decl): New function.
19909         (substitution_list, annotate_rep): Call it.
19910         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
19911         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
19912         No longer update discriminants to not be a COMPONENT_REF.
19913         (copy_alias_set): Strip padding from input type; also handle
19914         unconstrained arrays properly.
19915
19916         * gigi.h (write_record_type_debug_info): New function.
19917         Convert to use ANSI-style prototypes. Remove unused
19918         declarations for emit_stack_check, elab_all_gnat and
19919         set_second_error_entity.
19920         (gnat_to_gnu_field_decl): New decl.
19921
19922         * utils.c (write_record_type_debug_info): New function.
19923         (finish_record_type): Delegate generation of debug information to
19924         write_record_type_debug_info.
19925         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
19926         (update_pointer_to): Fix pasto.
19927         (convert) <UNION_TYPE>: Accept slight type variations when
19928         converting to an unchecked union type.
19929
19930         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
19931         replace the N_Freeze_Entity with a null statement.
19932
19933         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
19934         within a constrained subcomponent of an enclosing record, place the
19935         freeze nodes in the scope stack entry for the enclosing record.
19936         (Undelay_Type): New Subprogram.
19937         (Set_Small_Size): Pass T, the type to modify; all callers changed.
19938         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
19939         within records; allow them to have freeze nodes if their base types
19940         aren't frozen yet.
19941
19942         * exp_util.adb (Remove_Side_Effects): Properly test for
19943         Expansion_Delayed and handle case when it's inside an
19944         N_Qualified_Expression.
19945
19946         * sem_ch3.adb (Derived_Type_Declaration): New predicate
19947         Comes_From_Generic, to recognize accurately that the parent type in a
19948         derived type declaration can be traced back to a formal type, because
19949         it is one or is derived from one, or because its completion is derived
19950         from one.
19951         (Constrain_Component_Type): If component comes from source and has no
19952         explicit constraint, no need to constrain in in a subtype of the
19953         enclosing record.
19954         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
19955         Minor change to propagate Is_Ada_2005 flag
19956
19957         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
19958         Expansion_Delayed is False.
19959         (assoc_to_constructor): Ignore fields that have a
19960         Corresponding_Discriminant.
19961         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
19962         function returns "by target", dereference the target pointer using the
19963         type of the actual return value.
19964         <all>: Be prepared for a null gnu_result.
19965         (processed_inline_subprograms): Check flag_really_no_inline
19966         instead of flag_no_inline.
19967         (set_second_error_entity): Remove unused function.
19968         (gnat_to_gnu, case N_Selected_Component): Call
19969         gnat_to_gnu_field_decl.
19970         (assoc_to_constructor): Likewise.
19971
19972 2005-03-15  Robert Dewar  <dewar@adacore.com>
19973             Ed Schonberg  <schonberg@adacore.com>
19974             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19975
19976         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
19977         Must_Be_Byte_Aligned for cases where we do not need to use a
19978         System.Pack_nn unit.
19979
19980         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
19981         as procedures.
19982         Needed now that we do some processing for IN parameters as well. This
19983         may well fix some unrelated errors.
19984         (Expand_Call): Handle case of unaligned objects (in particular those
19985         that come from packed arrays).
19986         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
19987         renamed entity is an inherited operation, re-expand the call using the
19988         original operation, which is the one to call.
19989         Detect attempt to inline parameterless recursive subprogram.
19990         (Represented_As_Scalar): Fix to work properly with private types
19991         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
19992         accurate estimate. Yields True in far fewer cases than before,
19993         improving the quality of code that depends on this test.
19994
19995         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
19996         over both visible and private declarations to remove them from tree,
19997         and mark subprograms declared in package as eliminated, to prevent
19998         spurious use in subsequent compilation of generic units in the context.
19999
20000         * exp_util.ads: Minor cleanup in variable names
20001
20002         * sem_eval.ads, sem_eval.adb: Minor reformatting
20003         (Compile_Time_Known_Bounds): New function
20004
20005 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
20006
20007         * exp_ch7.adb (Convert_View): Use base types of underlying types when
20008         determining whether an unchecked conversion is needed for the argument
20009         of an initialization call.
20010
20011 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
20012
20013         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
20014         that appears in the instantiation rather than the internal subtype
20015         generated in the wrapper package, to avoid anomalies in gigi when the
20016         target is derived from a private type whose full view is an access type.
20017
20018 2005-03-15  Robert Dewar  <dewar@adacore.com>
20019
20020         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
20021         not needed.
20022         Add documentation to replace the use of this flag
20023         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
20024         the x86_64.
20025
20026 2005-03-15  Thomas Quinot  <quinot@adacore.com>
20027
20028         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
20029         here from exp_attr so it can be shared between exp_attr and exp_dist.
20030         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
20031         all TSS names, not a subset thereof, and the previous name introduced
20032         an unnecessarily confusion that a distinction might exist between
20033         "OK" TSS names and some "not OK" TSS names.
20034
20035 2005-03-15  Doug Rupp  <rupp@adacore.com>
20036
20037         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
20038         Command_Name.
20039
20040 2005-03-15  Pascal Obry  <obry@adacore.com>
20041             Eric Botcazou  <ebotcazou@adacore.com>
20042
20043         PR ada/20226
20044         PR ada/20344
20045         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
20046         when IN_RTS. This is to work around a bootstrap path problem.
20047
20048         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
20049         table and pass it to __gnat_install_SEH_handler().
20050         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
20051
20052         * lang.opt: Fix specification of -fRTS=.
20053
20054 2005-03-15  Doug Rupp  <rupp@adacore.com>
20055             Bernard Banner  <banner@adacore.com>
20056             Vincent Celier  <celier@adacore.com>
20057             Arnaud Charlet  <charlet@adacore.com>
20058
20059         PR ada/6852
20060         This change works fine when gnatlib is built from the gcc directory,
20061         but does not work when using the libada Makefile, since GCC_FOR_TARGET
20062         is not passed to ada/Makefile.in, so more work is needed by a
20063         Makefile/configure expert.
20064
20065         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
20066         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
20067         Setup gnatlink switch -M for x86_64 linux, as it is already setup
20068         for Linux x86.
20069         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
20070         Run ranlib on libgccprefix.a
20071         Define PREFIX_OBJS for Darwin, to build libgccprefix.
20072         (ADA_INCLUDE_SRCS): Split Ada packages.
20073
20074 2005-03-15  Robert Dewar  <dewar@adacore.com>
20075
20076         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
20077
20078         * impunit.adb: Add GNAT.UTF_32
20079
20080         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
20081
20082         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
20083         now uses GNAT.UTF_32).
20084
20085         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
20086         capabilities for categorizing characters using Unicode categories
20087
20088 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
20089
20090         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
20091         instantiation that has been rewritten as a package body, retrieve spec
20092         to generate proper name for implicit_with_clause.
20093         (Install_Parents): Recognize a parent that is an instantiation but has
20094         been rewritten as a package declaration during analysis.
20095
20096 2005-03-15  Javier Miranda  <miranda@adacore.com>
20097             Ed Schonberg  <schonberg@adacore.com>
20098
20099         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
20100         parameter reported some error we immediately return. This improves the
20101         behaviour of the frontend in case of errors.
20102         (Install_Parent, Remove_Parent): Introduce new flag
20103         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
20104         ancestor of a generic child unit, when the child is being instantiated.
20105         (Inline_Instance_Body): If we are compiling the private
20106         part or the body of a child unit, restore the proper visibility of the
20107         parents after compiling the instance body.
20108
20109 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
20110             Javier Miranda  <miranda@adacore.com>
20111
20112         PR ada/15608
20113         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
20114         of a private type, in which case it is underlying_type that denotes
20115         the proper task. Also modified to use the new entity attribute
20116         that is directly available in the task type and task subtype entities
20117         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
20118         arrays when other dimensions than the first are constrained by
20119         discriminants of an enclosing record.
20120         (Insert_Explicit_Dereference): If the prefix is an indexed component or
20121         a combination of indexed and selected components, find ultimate entity
20122         and generate the appropriate reference for it, to suppress spurious
20123         warnings.
20124         (Note_Possible_Modification): If an entity name has no entity, return.
20125         (Is_Variable): A function call never denotes a variable.
20126         (Requires_Transient_Scope): For record types, recurse only on
20127         components, not on internal subtypes that may have been generated for
20128         constrained components.
20129
20130 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
20131
20132         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
20133         Eliminated as candidates for resolution. Both efficient, and avoids
20134         anomalies with operators declared in deleted code.
20135         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
20136         expansion is disabled (as when compiling a generic) to prevent spurious
20137         warnings on prefixes of selected components.
20138
20139 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
20140
20141         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
20142         attached to a list before checking whether it appears in the private
20143         declarations of the current package.
20144         (Make_Inequality_Operator): Insert declaration in proper declarative
20145         list rather than just setting the Parent field, so that
20146         Is_Private_Declaration can handle it properly.
20147
20148 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
20149
20150         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
20151         a renaming a body, check that the renamed subprogram in not intrinsic.
20152         (Find_Direct_Name): If several use_visible entities hide
20153         each other, and the context is a predefined file compiled through
20154         rtsfind, keep only the entity that comes from a predefined file.
20155
20156 2005-03-15  Geert Bosch  <bosch@adacore.com>
20157
20158         * s-fatgen.adb (Valid): Extend special exceptions to account for long
20159         long float padding to also cover AMD64 and IA64.
20160
20161 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
20162
20163         * s-imgwch.adb: Add with and use of Interfaces.
20164         (Img_Wide_Character): Change type of Val to Unsigned_16.
20165         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
20166
20167 2005-03-15  Matthew Gingell  <gingell@adacore.com>
20168
20169         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
20170
20171 2005-03-15  Robert Dewar  <dewar@adacore.com>
20172
20173         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
20174
20175         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
20176
20177         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
20178
20179 2005-03-15  Robert Dewar  <dewar@adacore.com>
20180
20181         * s-bitops.adb, s-bitops.ads,
20182         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
20183         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
20184         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
20185         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
20186         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
20187         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
20188         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
20189         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
20190         reformatting.
20191
20192 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
20193
20194         * utils2.c (build_binary_op): Fix typo.
20195
20196 2005-03-15  Doug Rupp  <rupp@adacore.com>
20197
20198         * s-crtl.ads (popen,pclose): New imports.
20199
20200 2005-03-15  Cyrille Comar  <comar@adacore.com>
20201
20202         * comperr.adb (Compiler_Abort): remove references to obsolete
20203         procedures in the bug boxes for various GNAT builds.
20204
20205 2005-03-15  Vincent Celier  <celier@adacore.com>
20206
20207         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
20208
20209 2005-03-15  Geert Bosch  <bosch@adacore.com>
20210             Arnaud Charlet  <charlet@adacore.com>
20211             Robert Dewar  <dewar@adacore.com>
20212             Cyrille Comar  <comar@adacore.com>
20213             Sergey Rybin  <rybin@adacore.com>
20214
20215         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
20216         too specific and long-winded to be appropriate for the GNAT User's
20217         Guide.
20218         Warn about use of GCC switches not documented in the GNAT User's Guide,
20219         as these may cause generated code to not conform to Ada semantics.
20220         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
20221         Add documentation for -gnat95 and -gnat05 switches
20222         Remove paragraph documenting obsolete way to refer to third party
20223         libraries.
20224         Add a few references to Ada_05 that were missing.
20225         Update documentation on -gnatZ/-gnatL.
20226         Document limitation when using -m64 under Solaris.
20227         Change the "Name Casing" subsection of the pretty-printer section
20228         according to the changes in the dictionary processing.
20229
20230         * gnat_rm.texi: Document the Ada_05 pragma.
20231         Section on record representation clauses describes the new more
20232         relaxed rules about placement of large packed bit array components.
20233         Add documentation of GNAT.UTF_32
20234
20235 2005-03-12  Daniel Berlin <dberlin@dberlin.org>
20236
20237         * misc.c (gnat_post_options): Turn off structural
20238         aliasing for now.
20239
20240 2005-03-08  Laurent Guerby <laurent@guerby.net>
20241
20242         * system-linux-sparc.ads: Fix typo in previous commit.
20243
20244 2005-03-07  James A. Morrison <phython@gcc.gnu.org>
20245             Laurent Guerby <laurent@guerby.net>
20246
20247         PR ada/20035
20248         * system-linux-sparc.ads: New.
20249         * Makefile.in: Add sparc linux entry.
20250
20251 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
20252
20253         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
20254         parameters as unused.
20255
20256 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
20257         Partial merge from libada-gnattools-branch:
20258
20259         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
20260         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
20261         into code in gnattools/Makefile.in.  Remove direct dependencies on
20262         stamp-tools by tools clauses.
20263         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
20264         * config-lang.in: Add gnattools to $lang_dirs.
20265
20266 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
20267
20268         PR ada/19942
20269         * utils.c (gnat_type_for_mode): Return null instead of ICE because
20270         we asked for an unknown mode.
20271
20272 2005-02-12  Richard Henderson  <rth@redhat.com>
20273
20274         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
20275         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
20276
20277 2005-02-10  Andreas Jaeger  <aj@suse.de>
20278
20279         * init.c (__gnat_initialize): Mark parameter as unused.
20280
20281 2005-02-09  Doug Rupp  <rupp@adacore.com>
20282
20283         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
20284         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
20285
20286 2005-02-09  Doug Rupp  <rupp@adacore.com>
20287
20288         * gnatchop.adb (dup, dup2),
20289         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
20290
20291         * gnatlbr.adb (mkdir),
20292         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
20293
20294         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
20295
20296 2005-02-09  Doug Rupp  <rupp@adacore.com>
20297
20298         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
20299
20300 2005-02-09  Robert Dewar  <dewar@adacore.com>
20301             Thomas Quinot  <quinot@adacore.com>
20302             Javier Miranda  <miranda@adacore.com>
20303             Pascal Obry  <obry@adacore.com>
20304             Ed Schonberg  <schonberg@adacore.com>
20305             Doug Rupp  <rupp@adacore.com>
20306             Gary Dismukes  <dismukes@adacore.com>
20307             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20308
20309         * g-zstspl.ads: New file.
20310
20311         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
20312
20313         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
20314         Ada 95 mode
20315         Add definition of Wide_Wide_Space for AI-285
20316
20317         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
20318         interface (to support Ada 95 and Ada 2005 units).
20319         Add Unbounded_IO files
20320         Add entries for Wide_Wide packages for AI-285
20321         Add list of containers packages to Ada 2005 unit list
20322
20323         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
20324         support new Unbounded_IO package cleanly.
20325
20326         * g-utf_32.ads, g-utf_32.adb: New files.
20327
20328         * Makefile.rtl: Add entry for g-utf_32
20329         Add new files for Unbounded_IO
20330         Adjust make file for new AI-285 wide wide packages
20331         Add AI-302 containers to the run time.
20332
20333         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
20334         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
20335         subprograms for AI-301.
20336
20337         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
20338
20339         * a-stunau.ads: Minor comment correction
20340
20341         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
20342         etc.
20343         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
20344         (Check_RPC): Update to match changes in expanded code.
20345         Clean up unused entity.
20346
20347         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
20348         was not taken into account.
20349         This includes proper initialization with Normalize_Scalars.
20350         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
20351         normalize scalars cases (particularly the latter) to do a better job
20352         of finding invalid representations.
20353
20354         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
20355
20356         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
20357         used
20358
20359         * exp_dist.adb: Add support for wide wide character type
20360         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
20361         private part, generate stub bodies at the end of the private part,
20362         not the visible part.
20363         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
20364         PolyORB support.
20365         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
20366         generic wrapper to execute final processing after completing the
20367         expansion of the RPC receiver for an RACW.
20368
20369         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
20370         packages and attributes.
20371         (Preset_Names): Addition of the new reserved words of Ada 2005,
20372         that is interface, overriding and synchronized.
20373         (Get_Pragma_Id): Give support to the use of the new reserved word
20374         "interface" as a pragma name.
20375         (Is_Pragma_Name): Give support to the use of the new reserved word
20376         "interface" as a pragma name.
20377         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
20378         attribute implementation.
20379
20380         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
20381         checks to entities that are output parameters of Asm operations.
20382         Handle the Stream_Size attribute.
20383         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
20384
20385         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
20386
20387         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
20388         for second parameter being 0.0.
20389         Add support for wide wide character type.
20390         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
20391
20392         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
20393         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
20394         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
20395         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
20396         for wide wide character cases.
20397
20398         * cstand.adb: Create entities for Wide_Wide_Character and
20399         Wide_Wide_String.
20400
20401         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
20402         accordance with AI-258.
20403         Add new declarations for 16/32 bit C character types (Part of AI285)
20404
20405         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
20406         (Obsolescent_Warning): New field
20407         (Rep_Clause): New local subprogram used to share code. Returns the rep
20408         clause for which the name is given in parameter.
20409         (Has_Stream_Size_Clause): New routine.
20410         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
20411         (Address_Clause): Implementation is now using Rep_Clause.
20412         (Alignment_Clause): Idem.
20413         (Size_Clause): Idem.
20414
20415         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
20416         entity in non-Ada 2005 mode and generate warning.
20417
20418         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
20419         (Prag): Code cleanup. Remove old gnat pragma "overriding"
20420
20421         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
20422         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
20423         on the named unit if the pragma is not in the current compilation unit,
20424         so that elaboration calls in the current unit can set up an elaboration
20425         dependency on the named unit, as needed.
20426         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
20427         subprogram as well as for subprograms declared within a package.
20428         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
20429         pragma overriding.
20430
20431         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
20432         to z) to avoid some instances of duplication for Wide_Wide packages.
20433
20434         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
20435         characters.
20436
20437         * scn.adb: Char_Literal_Value field is now a Uint
20438
20439         * scng.adb: Significant rewrite to handle new Ada 2005 features
20440         allowing wide and wide wide characters in program text, e.g. for
20441         identifiers, as described in AI-285.
20442         (Set_Reserved): New procedure, makes setting up keywords cleaner.
20443         (Initialize_Scanner): Register the new reserved words of Ada 2005.
20444         (Scan): Give support to the new reserved words.
20445
20446         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
20447         warning notifying that interface, overriding, and synchronized are
20448         new reserved words.
20449         (P_Pragma): Allow the use of the new reserved word "interface" as
20450         a pragma name.
20451
20452         * gnatls.adb, gnatbind.adb,
20453         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
20454         identifiers named "interface" to "SAL_Interface".
20455
20456         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
20457         (Structured Exception handling).
20458         (Gen_Main_C): Idem.
20459
20460         * bindgen.adb:
20461         (Gen_Main_Ada): Set the default exit code if specified.
20462         (Gen_Main_C): Likewise.
20463         Part of *DC20-006.
20464         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
20465         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
20466
20467         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
20468         new -Xnnn switch.
20469
20470         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
20471         has a collision with the new Ada 2005 "interface" reserved word.
20472
20473         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
20474         generate a warning notifying that interface, overriding, and
20475         synchronized are new reserved words.
20476
20477         * scans.ads (Token_Type): Addition of the tokens corresponding to the
20478         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
20479         and Tok_Synchronized.
20480
20481         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
20482         "dispatching" rather than "primitive" operations, since dispatching
20483         calls are now allowed to abstract formal subprograms (which are not
20484         primitive).
20485         Char_Literal_Value field is now a Uint
20486         (Resolve_Slice): If the prefix is an access to an unconstrained array,
20487         compute the actual subtype of the designated object to impose the proper
20488         index constraints.
20489         (Resolve_Selected_Component): Do not insert an access check if the
20490         prefix is an access type: such a node is expanded into an explicit
20491         dereference, on which the access check is performed anyway. Removes
20492         expensive duplicate checks.
20493         (Resolve_Call): Use new flag Is_Obsolescent and field
20494         Obsolescent_Warning so that pragma Obsolescent works on library
20495         subprograms.
20496         Add support for wide wide character type
20497         (Resolve_Allocator): Replace the error message on wrong null-exclusion
20498         value by a warning message.
20499         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
20500         as fixed-point, and one of the operands is non-static and universal, it
20501         can only be an illegal exponentiation operation, in which case there is
20502         no real value to retrieve.
20503
20504         * exp_strm.adb: Add support for wide wide character type
20505         (Build_Elementary_Input_Call): Compute the size of the stream element by
20506         querying the rep chain to find the Stream_Attribute attribute value.
20507         (Build_Elementary_Write_Call): Ditto.
20508
20509         * sem_aggr.adb: Char_Literal_Value field is now a Uint
20510         Add support for wide wide character type
20511         Replace the error messages on wrong null-exclusion value by warnings
20512         as described in Ada 2005.
20513         (Resolve_Extension_Aggregate): Document the fact that the error
20514         message on class-wide expressions in extensions aggregates.
20515
20516         * sem_case.adb: Add support for wide wide character type
20517
20518         * sem_ch13.adb: Add support for wide wide character type
20519         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
20520
20521         * sem_ch3.adb: Add support for wide wide character type
20522         (Process_Subtype): If constraint is illegal for the type, set Ekind of
20523         now-useless Itype, to prevent cascaded errors on a compiler built
20524         without -gnatp.
20525
20526         * sem_ch8.adb: Add with and use of Sem_Disp.
20527         (Analyze_Subprogram_Renaming): Replace unclean uses of
20528         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
20529         of Corresponding_Spec to Empty).
20530         (Attribute_Renaming): Replace use of Corresponding_Spec with
20531         Corresponding_ Formal_Spec and simplify condition.
20532         (Use_One_Package): Check that scope of homonym of identifier is defined,
20533         before checking whether it is a wrapper package.
20534         Add support for wide wide character type
20535
20536         * sem_eval.adb: Add support for wide wide character type.
20537         (Eval_Arithmetic_Op): Check for compile time known signed integer
20538         overflow in the non-static case.
20539         (Subtypes_Statically_Match): A formal scalar type and its base type do
20540         not statically match.
20541
20542         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
20543         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
20544         subtype).
20545         (Unit_Declaration_Node): Ditto.
20546         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
20547         has a packed array type, the prefix has been rewritten into a type
20548         conversion. Determine variable-ness from the converted expression.
20549         Handle wide wide character cases.
20550
20551         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
20552
20553         * stringt.ads, stringt.adb: Handle full UTF-32 range.
20554         Remove ["0A"] from comment, since it can look like a line terminator.
20555         Currently we don't permit this, but this is under discussion by the
20556         ARG, and it is easy enough to use a different example.
20557
20558         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
20559         handling UTF-32 encoding for wide wide character.
20560         Implement new brackets coding ["hhhhhhhh"]
20561         Add UTF-8 encodings for full UTF-32 range
20562
20563         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
20564
20565         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
20566         bit range Add full UTF-32 support.
20567         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
20568         notify that constraint error will be raised at run-time
20569         because a null value is assigned to a null-excluding object.
20570         Remove some obsolete declarations and make Char_Code
20571         unsigned.
20572
20573         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
20574         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
20575         Rcheck subprograms.
20576
20577         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
20578         wrong null-exclusion value by a warning message.
20579         (Enable_Range_Check): Do range check if the prefix is an
20580         explicit dereference whose designated object is an unconstrained array.
20581         Current algorithm for removing duplicate checks is over-eager in this
20582         case.
20583
20584         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
20585         null-exclusion value by a warning message
20586
20587         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
20588         completely. Add support for Uint2 field
20589
20590         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
20591         exp_prag.adb: Char_Literal_Value field is now a Uint.
20592
20593         * exp_util.adb (Insert_Actions): Replace
20594         N_Formal_Subprogram_Declaration by
20595         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
20596         Char_Literal_Value field is now a Uint.
20597
20598         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
20599         defined for subprogram renaming declarations. When set, the field
20600         indicates the defining entity of a corresponding formal subprogram
20601         when the renaming corresponds to a formal subprogram association in an
20602         instantiation.
20603         (Set_Corresponding_Formal_Spec): New procedure to return
20604         Corresponding_Formal_Spec field.
20605         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
20606         (which is now a subtype).
20607         Char_Literal_Value field is now a Uint
20608
20609         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
20610         pointer to the base of the dispatch table.
20611         Minor changes to comments.
20612         (Controlling_Type): New function for determining the tagged type
20613         associated with a tagged primitive subprogram.
20614         (Expand_Dispatching_Call): Add support for a controlling actual that is
20615         directly a value of type Ada.Tag rather than a tagged object.
20616
20617         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
20618         describing the new layout.
20619         (Dispatch_Table): The expander computes the actual array size, allocates
20620         the Dispatch_Table record accordingly, and generates code that displaces
20621         the base of the record after the Typeinfo_Ptr component. The access to
20622         these components is done by means of local functions.
20623         (Offset_To_Top): New function.
20624         (Typeinfo_Ptr): New function.
20625         (Get_TSD): Modified to access the new position of the TSD.
20626         (Set_TSD): Modified to save the TSD in its new position.
20627
20628         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
20629         case of formal abstract subprograms. Add check and message for -gnat05.
20630         Update comments.
20631
20632         * sem_ch12.adb: Add with and use for Sem_Disp.
20633         (Analyze_Associations): Minor change from "=" to "in" for use of
20634         N_Formal_Subtype_Declaration (which is now a subtype).
20635         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
20636         N_Formal_Subtype_Declaration (which is now a subtype).
20637         (Analyze_Formal_Subprogram): Add handling for
20638         N_Formal_Abstract_Subprogram, marking the formal as abstract and
20639         dispatching, setting the controlling status of the formal parameters
20640         and result, and issuing an error if there is no controlling type for
20641         the formal subprogram.
20642         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
20643         which is an unclean use of that field, we set the new field
20644         Corresponding_Formal_Spec to make the formal subprogram available to
20645         processing in Analyze_Subprogram_Declaration.
20646         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
20647         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
20648         Constrained, so that it is is does not statically match its anonymous
20649         base type.
20650
20651         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
20652         abstract formal subprograms in error check for functions returning
20653         abstract types. Set scope of new designator for
20654         a parameterless subprogram, so that it is available when checking the
20655         body for nested subprograms, before full analysis of said body.
20656         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
20657         subprogram only if inner one comes from source.
20658         (Analyze_Function_Call): If the call is given in object notation, the
20659         analysis of the name rewrites the node and analyzes it with the proper
20660         argument list. After analyzing the name, if the call has been rewritten
20661         and the result type is set, no further analysis is needed.
20662         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
20663         mark in function specification, in a context where the formals are
20664         visible and hide outer homographs.
20665
20666         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
20667         as the tagged type for the cases of abstract formal subprograms and
20668         renamings of those.  Clean up spec comments.
20669         (Check_Dispatching_Context): Add error message to indicate "abstract
20670         procedure", covering the case of a call to a formal abstract procedure
20671         that has statically tagged operands.
20672         (Check_Dispatching_Call): Check for the case of an actual given by
20673         a tag-indeterminate function call whose type is an ancestor of the
20674         containing call's associated tagged type. This situation can occur
20675         for inherited primitives with function defaults. In this case we
20676         use the tagged type's tag directly as the controlling argument for
20677         the calls.
20678         (Expand_Call): Name change on call to Expand_Dispatch_Call.
20679
20680         * sprint.adb (Sprint_Node_Actual): Split
20681         N_Formal_Subprogram_Declaration into two alternatives for the new
20682         cases N_Formal_Abstract_Subprogram_Declaration and
20683         N_Formal_Concrete_Subprogram_Declaration.
20684         Char_Literal_Value field is now a Uint.
20685
20686         * trans.c: Get rid of junk Uint2 reference.
20687         Char_Literal_Value field is now a Uint.
20688         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
20689         (gigi): Correct third arg to gimplify_body.
20690
20691         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
20692         (TYPE_LANG_FLAG_0): Check for record or union.
20693
20694         * treepr.adb: Char_Literal_Value field is now a Uint
20695
20696         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
20697         UI_From_CC.
20698
20699         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
20700         Add full UTF-32 support
20701         Char_Code is now 32 bits
20702
20703         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
20704         wide character UTF_32 line terminators.
20705         Initialize Main_Source_File to avoid error when no main
20706         source is loaded.
20707
20708         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
20709         (Main_Source_File) when no main source has been loaded, to avoid
20710         potential crash.
20711
20712 2005-02-09  Robert Dewar  <dewar@adacore.com>
20713
20714         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
20715         Fix name of Set routine
20716
20717         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
20718         fixed packages.
20719
20720         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
20721         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
20722         fixed packages
20723
20724         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
20725         forms of Get_Line subprograms for AI-301.
20726
20727         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
20728         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
20729         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
20730         a-stwima.ads: Minor reformatting.
20731
20732 2005-02-09  Doug Rupp  <rupp@adacore.com>
20733             Thomas Quinot  <quinot@adacore.com>
20734
20735         * adaint.c, adaint.h
20736         [VMS] (to_ptr32): New function.
20737         (MAYBE_TO_PTR32): New macro.
20738         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
20739         for pointer size.
20740         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
20741         [VMS] (#define fork()): Remove since unneccessary.
20742         (__gnat_set_close_on_exec): New routine to support
20743         GNAT.OS_Lib.Set_Close_On_Exec.
20744
20745         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
20746         the parent side as close-on-exec so that they are not inherited by the
20747         child.
20748
20749         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
20750         set or clear the FD_CLOEXEC flag on a file descriptor.
20751
20752 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
20753             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20754
20755         PR ada/19386
20756         * decl.c:
20757         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
20758         on the field if Pragma Component_Alignment (Storage_Unit).
20759         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
20760         side-effects as if it were a constant; also make SAVE_EXPR to protect
20761         side-effects.
20762         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
20763         UNION_TYPE.
20764         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
20765         (components_to_record): Test it.
20766         Fix improper usage of REFERENCE_CLASS_P.
20767
20768         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
20769         RECORD_TYPE.
20770
20771         * utils2.c: Minor reformatting.
20772
20773         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
20774         handle other cases like RECORD_TYPE.
20775
20776         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
20777
20778 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
20779
20780         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
20781         component of an array of arrays in an assignment context, and the
20782         aggregate has component associations that require sliding on
20783         assignment, force reanalysis of the aggregate to generate a temporary
20784         before the assignment.
20785         (Must_Slide): Make global to the package, for use in Gen_Assign.
20786
20787 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
20788
20789         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
20790         unchecked union with no inferable discriminants, return a
20791         Raise_Program_Error node, rather than inserting it at the point the
20792         type is frozen.
20793         (Expand_Record_Equality, Component_Equality): Handle properly the case
20794         where some subcomponent is an unchecked union whose generated equality
20795         code raises program error.
20796
20797 2005-02-09  Doug Rupp  <rupp@adacore.com>
20798
20799         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
20800         [VMS] (#define exit hack): Remove.
20801
20802 2005-02-09  Pascal Obry  <obry@adacore.com>
20803             Arnaud Charlet <charlet@adacore.com>
20804
20805         * init.c (__gnat_initialize): Add a new parameter eh which contains the
20806         address of the exception registration. The Win32 version of this
20807         routine calls __gnat_install_SEH_handler() to initialize the SEH
20808         (Structured Exception Handling) handler.
20809         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
20810         SEH (Structured Exception Handling) now.
20811         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
20812         (__gnat_initialize for ppc-vxworks): Adjust comments and the
20813         preprocessor condition protecting the call to the extra eh setup
20814         subprogram, which is only available for the ppc target.
20815         (__gnat_clear_exception_count): replaced reference to
20816         variable taskIdCurrent by call to taskIdSelf(), cleaner.
20817
20818         * seh_init.c: New file.
20819
20820         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
20821         (GNATBIND_OBJS): Idem.
20822
20823         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
20824         routine takes a new parameter (a pointer to the exception registration
20825         for the SEH (Structured Exception Handling) support.
20826
20827         * raise.h: (__gnat_install_SEH_handler): New prototype.
20828         Update copyright notice.
20829
20830         * s-tassta.adb (Task_Wrapper): Declare the exception registration
20831         record and initialize it by calling __gnat_install_SEH_handler.
20832
20833 2005-02-09  Vincent Celier  <celier@adacore.com>
20834
20835         * make.adb (Gnatmake): Do not fail when the main project has no object
20836         directory.
20837
20838 2005-02-09  Doug Rupp  <rupp@adacore.com>
20839
20840         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
20841         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
20842         [VMS]: Add translations for g-enblsp.adb.
20843
20844         * s-asthan-vms.adb: Removed.
20845         * s-asthan-vms-alpha.adb: Added.
20846
20847 2005-02-09  Pascal Obry  <obry@adacore.com>
20848
20849         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
20850         (LIBGNAT_OBJS): Add seh_init.o.
20851
20852 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
20853
20854         PR ada/16592
20855         * Makefile.in: Link all gnat tools with -static-libgcc, since
20856         -shared-libgcc is now used by default on some systems (e.g. linux with
20857         recent binutils).
20858         Remove references to Makefile.prolog/generic, no longer used.
20859
20860 2005-02-09  Vincent Celier  <celier@adacore.com>
20861
20862         * prj-makr.adb (Process_Directory): Put file name in canonical case
20863         before matching against the patterns.
20864         If gnatname has been invoked as <prefix>-gnatname
20865         then invoke the compiler as <prefix>-gcc, not just "gcc".
20866
20867 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
20868
20869         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
20870         with expansion disabled. The actual subtype is needed among other
20871         places when the selected component appears in the context of a loop
20872         bound, and denotes a packed array.
20873         (Operator_Check): Always use the first subtype in the
20874         error message, to avoid the appearance of internal base types.
20875         (Transform_Object_Operation): Copy each actual in full
20876         to the parameter associations of the constructed call, rather than
20877         using the shallow copy mechanism of New_Copy_List. This ensures that
20878         the chaining of named associations is done properly.
20879         (Complete_Object_Operation): Rewrite node, rather than
20880         replacing it, so that we can trace back to the original selected
20881         component.
20882
20883         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
20884         and calls that use object notation, if the called function is not
20885         declared  in a withed unit, place the elaboration constraint on the
20886         unit in the context that makes the function accessible.
20887         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
20888         imposes an elaboration constraint between two packages.
20889
20890 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
20891
20892         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
20893         views of a private type after handling its private dependents, to
20894         maintain proper stack discipline between entry and exit from the
20895         package.
20896
20897 2005-02-09  Cyrille Comar  <comar@adacore.com>
20898
20899         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
20900         Minor reformatting.
20901
20902 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
20903
20904         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
20905         fields for foreign threads.
20906
20907 2005-02-09  Doug Rupp  <rupp@adacore.com>
20908
20909         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
20910         recursion warnings when compiled with -gnatdm.
20911
20912 2005-02-09  Robert Dewar  <dewar@adacore.com>
20913
20914         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
20915         Slight fix to documentation of -gnaty with no parameters
20916
20917         * xr_tabls.ads: Add ??? comment for missing overall comment
20918
20919         * xsinfo.adb: Make default file name be sinfo.h, since this is what
20920         we now use by default.
20921
20922         * xsnames.adb: Adjust end of file test to look for five space followed
20923         by '#' instead of six spaces. The format of xsnames.adb was modified
20924         in the last update.
20925
20926         * a-numeri.ads: Add reference to AI-388 for greek letter pi
20927         identifier.
20928
20929         * clean.adb: Minor reformatting.
20930
20931         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
20932         gnatname.adb: Minor reformatting
20933         Add 2005 to copyright output when utility is run
20934
20935         * csets.adb: Eliminate obsolete comment
20936
20937         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
20938         Update comments.
20939
20940         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
20941
20942 2005-02-09  Sergey Rybin  <rybin@adacore.com>
20943
20944         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
20945         the difference between compact and incompact layout and add the record
20946         representation clause to the example illustrating different layouts.
20947         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
20948         component clauses").
20949
20950 2005-02-09  Florian Villoing  <villoing@adacore.com>
20951
20952         * gnat_ugn.texi: Fix typos.
20953         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
20954         @file.
20955         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
20956         in the generated documentation.
20957
20958 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
20959
20960         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
20961         longer supported.
20962         Update linker wrapper when linking with non GNU C++.
20963
20964 2005-02-09  Pascal Obry  <obry@adacore.com>
20965
20966         * gnat_ugn.texi:
20967         Document the procedure to debug the DllMain routine on Windows.
20968         Add note about -funwind-tables and mixed Ada and C/C++ programming in
20969         ZCX mode.
20970         Document new BIND qualifer /RETURN_CODES=VMS.
20971
20972 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
20973
20974         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
20975         Edited gnatmetric chapter
20976
20977 2005-02-09  Robert Dewar  <dewar@adacore.com>
20978
20979         * gnat_rm.texi:
20980         Changes to document new wide wide character support
20981         For AI-285
20982         Update documentation on Normalize_Scalars and Initialize_Scalars
20983
20984 2005-02-09  Pascal Obry  <obry@adacore.com>
20985
20986         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
20987
20988 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
20989
20990         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
20991         from the VxWorks kernel) that is needed for getting the active
20992         priority of the different tasks.
20993
20994         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
20995         Use a pragma Elaborate_Body in the spec file instead.
20996         Noticed by code reading.
20997
20998 2005-02-09  Thomas Quinot  <quinot@adacore.com>
20999
21000         * exp_util.ads: Minor correction in comment.
21001
21002 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
21003
21004         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
21005         since this procedure is now too complex to be worth inlining.
21006
21007 2005-02-09  Richard Henderson  <rth@redhat.com>
21008
21009         * utils.c (gnat_define_builtin): Remove.
21010         (gnat_install_builtins): Use build_common_builtin_nodes.
21011
21012 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
21013
21014         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
21015         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
21016         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
21017         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
21018         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
21019         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
21020         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
21021         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
21022         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
21023         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
21024         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
21025         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
21026         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
21027         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
21028         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
21029         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
21030         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
21031         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
21032         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
21033         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
21034         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
21035         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
21036         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
21037         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
21038         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
21039         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
21040         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
21041         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
21042         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
21043         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
21044         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
21045         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
21046         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
21047         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
21048         library.
21049
21050 2005-01-27  Laurent GUERBY <laurent@guerby.net>
21051
21052         * Makefile.in: Fix a-intnam.ads from previous commit,
21053         add 2005 to copyright.
21054         * a-intman-rtems.ads: Renamed to...
21055         * a-intnam-rtems.ads:
21056
21057 2005-01-27  Laurent GUERBY <laurent@guerby.net>
21058
21059         * Makefile.in: Rename GNAT RTEMS specific files.
21060         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
21061         5rosinte.ads, 5rparame.adb: Replaced by files below.
21062         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
21063         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
21064
21065 2005-01-27  Joel Sherrill <joel.sherrill@oarcorp.com>
21066             Laurent GUERBY <laurent@guerby.net>
21067
21068         PR ada/19488
21069         * 5rosinte.ads: Add No_Key constant.
21070         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
21071         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
21072
21073 2005-01-26  Laurent GUERBY <laurent@guerby.net>
21074
21075         PR ada/19414
21076         * i-cobol.adb (Valid_Numeric): Handle zero length case.
21077
21078 2005-01-20  Richard Henderson  <rth@redhat.com>
21079
21080         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
21081         a-intnam-linux.ads and system-linux-alpha.ads.
21082         * a-intnam-linux-alpha.ads: Remove file.
21083         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
21084         * system-linux-alpha.ads: New file.
21085
21086 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
21087
21088         PR ada/13470
21089         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
21090         set to the new string.
21091
21092 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
21093
21094         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
21095         to True.
21096
21097 2005-01-18  Richard Henderson  <rth@redhat.com>
21098
21099         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
21100         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
21101         for alpha-linux.
21102         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
21103
21104 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
21105
21106         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
21107         (GCC_ZCX_Support): Likewise.
21108
21109 2005-01-11  Bastian Blank  <waldi@debian.org>
21110
21111         * system-linux-s390.ads: Define Preallocated_Stacks.
21112         * system-linux-s390x.ads: Likewise.
21113
21114 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
21115
21116         * gnat_ugn.texi: Fix texi errors with null variables.
21117
21118 2005-01-03  Thomas Quinot  <quinot@adacore.com>
21119
21120         * gen-soccon.c: New utility program to generate g-soccon.ads
21121         automatically.
21122
21123         * socket.c, gsocket.h: Split inclusion of system header files into a
21124         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
21125
21126         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
21127         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
21128         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
21129         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
21130         should not be edited by hand anymore, but should be regenerated using
21131         gen-soccon.
21132
21133 2005-01-03  Robert Dewar  <dewar@adacore.com>
21134             Ed Schonberg  <schonberg@adacore.com>
21135             Vincent Celier  <celier@adacore.com>
21136
21137         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
21138         on/off, since this is an obsolescent feature, for which we now generate
21139         a warning.
21140
21141         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
21142         warning mode is set and obsolescent usage of this attribute occurs.
21143         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
21144         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
21145         predates, and partly motivates, the adoption of the AI.
21146         Implement new Ada 2005 attribute Mod
21147
21148         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
21149         attribute Mod.
21150
21151         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
21152
21153         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
21154         pragma restrictions.
21155         New entry for Ada 2005 attribute Mod.
21156
21157         * par-prag.adb:
21158         Add recognition of new pragma Restrictions No_Dependence
21159         Recognize restriction No_Obsolescent_Features at parse time
21160
21161         * bcheck.adb: Add circuitry for checking for consistency of
21162         No_Dependence restrictions.
21163
21164         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
21165         restrictions.
21166
21167         * restrict.ads, restrict.adb: Add subprograms to deal with
21168         No_Dependence restrictions.
21169
21170         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
21171         restrictions.
21172
21173         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
21174         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
21175
21176         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
21177         dummy parameter to scng instantiation.
21178         Needed for new restriction No_Obsolescent_Features
21179
21180         * scn.adb: (Obsolescent_Check): New procedure
21181         Needed for new restriction No_Obsolescent_Features
21182
21183         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
21184         specified by AI-285, needed for implementation of AI-388 (adding greek
21185         pi to Ada.Numerics).
21186         Add new generic formal to scng, needed for new restriction
21187         No_Obsolescent_Features.
21188
21189         * s-rident.ads: Add new restriction No_Obsolescent_Features.
21190
21191         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
21192         restrictions lines.
21193         (Scan_ALI): When finding an unexpected character on an R line, raise
21194         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
21195         Ignore_Errors is True, default restrictions are set and scanning of the
21196         ALI file continues with the next line. Also, when Bad_R_Line is raised
21197         and Ignore_Errors is True, skip to the end of le line.
21198
21199         * sem_ch10.adb: Check that explicit with's do not violate
21200         No_Dependence restrictions.
21201         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
21202         illegal context clauses containing child units of instance.
21203
21204         * sem_prag.adb: Processing and checking for new No_Dependence
21205         restrictions.
21206         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
21207         analyze and check the External argument.
21208
21209         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
21210
21211 2005-01-03  Robert Dewar  <dewar@adacore.com>
21212
21213         * atree.adb: Add a fifth component to entities
21214         This allows us to add 32 flags and four new fields
21215
21216         * atree.ads: Add a fifth component to entities
21217         This allows us to add 32 flags and four new fields
21218
21219         * einfo.ads, einfo.adb: Document new fields and new flags now available
21220         Add routines for printing new fields
21221
21222         * treepr.adb: Call routines to print out additional fields if present
21223
21224 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
21225
21226         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
21227         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
21228
21229         * Makefile.in: Add support to build shared Ada libraries on solaris x86
21230         Remove gpr2make, replaced by gprmake.
21231         Remove references to gnatmem and libaddr2line.
21232         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
21233         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
21234         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
21235         a-numaux-darwin.ads and a-numaux-darwin.adb
21236         Enable mlib-tgt-lynxos.adb on lynxos.
21237
21238         * Make-lang.in: Remove rules for gpr2make.
21239         When generating sdefault.adb, do not call Relocate_Path
21240         on S3 for function Target_Name, as it is not a path.
21241         Remove references to gnatmem and libaddr2line.
21242
21243         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
21244         files.
21245
21246 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
21247
21248         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
21249         address is incompatible with its base type alignment constraints when
21250         this can be decided statically.
21251
21252 2005-01-03  Olivier Hainque  <hainque@adacore.com>
21253
21254         * decl.c (compatible_signatures_p): New function. The intended purpose
21255         is to check if two function signatures for a call-site and a callee are
21256         compatible enough for the call to be valid. The underlying purpose is
21257         to check if a call to a mapped builtin is using the right interface.
21258         The current code actually does not check antyhing - this a placeholder
21259         for future refinements.
21260         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
21261         builtin calls for convention Intrinsic.
21262
21263         * gigi.h (builtin_decl_for): Declare (new function).
21264
21265         * utils.c (gnat_install_builtins): Install the target specific builtins.
21266         (builtin_decl_for): New function, provide a dummy body for now.
21267
21268 2005-01-03  Geert Bosch  <bosch@adacore.com>
21269
21270         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
21271         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
21272         (Pred): Implement in terms of Succ.
21273
21274         * trans.c (convert_with_check): Reimplement conversion of float to
21275         integer.
21276
21277 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
21278             Vincent Celier  <celier@adacore.com>
21279
21280         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
21281         bounds can be negative, and must be declared Int, not Nat.
21282
21283         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
21284         array is checked after using the index in the array.
21285
21286         * makegpr.adb (Add_Switches): Check if there is a package for the
21287         processor. If there is no package, do not look for switches.
21288
21289 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
21290
21291         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
21292         generation of predefined stream operations (specs and bodies) should
21293         proceed. Under various restrictions these subprograms must not be
21294         generated.
21295
21296 2005-01-03  Thomas Quinot  <quinot@adacore.com>
21297
21298         * exp_dist.adb:
21299         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
21300         amount of PCS-specific code in RACW stubs generation.
21301         (Copy_Specification): Set Etype on copied formal parameter entities, as
21302         this information is needed for PolyORB stubs generation.
21303         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
21304         variable Dynamic_Async.
21305         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
21306         (Build_RPC_Receiver_Specification): Make generic again, as recent
21307         changes have allowed RPC receivers to have the same profile for both
21308         variants of the PCS.
21309         Reorganise RPC receiver generation to reduce differences between the
21310         structure of GARLIC and PolyORB RPC receivers.
21311         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
21312         PCS-specific.
21313         Simplify elaboration code for RCI packages.
21314
21315         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
21316         generation to reduce differences between the structure of GARLIC and
21317         PolyORB RPC receivers.
21318
21319         * s-stratt.adb: Fix typo in comment.
21320
21321 2005-01-03  Thomas Quinot  <quinot@adacore.com>
21322
21323         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
21324         copied from Make_Init_Call).
21325
21326         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
21327         reads and assignments on a temporary variable declared with appropriate
21328         discriminants.
21329
21330 2005-01-03  Robert Dewar  <dewar@adacore.com>
21331
21332         * i-c.adb (To_C): Raise CE if string is null and Append_Null
21333
21334 2005-01-03  Robert Dewar  <dewar@adacore.com>
21335
21336         * i-cstrin.adb (Update): Do not append a null in form called with a
21337         String. This avoids unintended behavior.
21338
21339 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
21340
21341         PR ada/17527
21342         * init.c: Fix warnings on Free BSD section.
21343
21344 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
21345
21346         PR ada/16949
21347         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
21348         xsinfo.adb).
21349
21350 2005-01-03  Vincent Celier  <celier@adacore.com>
21351
21352         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
21353         libraries when Unique_Compile is True (-u switch).
21354         (Gnatmake): ditto.
21355
21356 2005-01-03  Robert Dewar  <dewar@adacore.com>
21357
21358         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
21359         upper case letter or underscore after W, as allowed by spec.
21360
21361 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
21362
21363         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
21364         darwin port by using proper type definitions from header files.
21365         Use SIGTERM instead of SIGABRT for SIGADAABORT.
21366
21367 2005-01-03  Robert Dewar  <dewar@adacore.com>
21368
21369         * par.adb: Enhance error message handling for configuration file
21370         pragmas.
21371
21372 2005-01-03  Robert Dewar  <dewar@adacore.com>
21373
21374         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
21375         removed during the previous update (test properly for case of dividing
21376         largest negative number by -1, which generates overflow).
21377
21378 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
21379             Sergey Rybin  <rybin@adacore.com>
21380
21381         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
21382         to use as the defining identifier for a formal package.
21383         (Remove_Parent): If the instance takes place within (an instance of)
21384         a sibling, preserve private declarations of common parent.
21385
21386 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
21387
21388         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
21389         to determine whether one of the operands is a fixed-point type for
21390         which a user-defined multiplication or division operation might be
21391         defined.
21392
21393         * sem_res.adb (Valid_Conversion): The legality rules for conversions
21394         of access types are symmetric in Ada 2005: either designated type can
21395         be unconstrained.
21396
21397 2005-01-03  Vincent Celier  <celier@adacore.com>
21398
21399         * s-fileio.adb (Temp_File_Record): Change length of string component
21400         Name from L_tmpnam + 1 to max_path_len + 1.
21401
21402 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
21403
21404         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
21405         Self_Id.Deferral_Level = 0.
21406         (Do_Pending_Action): Move this function to the spec.
21407
21408         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
21409         Do_Pending_Action explicitely when needed, in case we're using
21410         No_Abort restrictions.
21411
21412         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
21413         deferral level since it will not get changed by the generated code.
21414         Keeping a default value of 1 would prevent some operations (e.g.
21415         select or delay) to proceed successfully.
21416
21417 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
21418             Robert Dewar  <dewar@adacore.com>
21419             Cyrille Comar  <comar@adacore.com>
21420
21421         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
21422         porting guide chapter (vms version).
21423         Revised doc title (removed "for native platforms") and subtitle.
21424         Add discussion on warning flag for obsolescent features. First we
21425         note that it applies to obsolete GNAT features, which was previously
21426         omitted. Second we contrast the behavior with that of the new
21427         Ada 2005 AI-368 restriction No_Obsolescent_Features.
21428         Preliminary rewriting of GNAT & libraries chapter in order to take
21429         into account default project locations & new project manager
21430         capabilities.
21431
21432 2005-01-03  Robert Dewar  <dewar@adacore.com>
21433
21434         * cstand.adb (Create_Operators): Clean up format and documentation of
21435         unary and binary operator result tables. No change in code, just
21436         reformatting and addition of comments.
21437
21438         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
21439         sem_ch2.adb: Minor reformatting
21440
21441         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
21442         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
21443         comments for Tree_Read and Tree_Write.
21444
21445 2005-01-03  Pascal Obry  <obry@adacore.com>
21446
21447         * exp_attr.ads: Minor reformatting.
21448
21449 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
21450
21451         * comperr.adb (Compiler_Abort): Add specialized message for GAP
21452         versions.
21453
21454 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
21455
21456         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
21457         whether the ancestor type is private, as may be the case with nested
21458         instantiations.
21459
21460 2004-12-30  Sohail Somani <sohail@sohailsomani.com>
21461
21462         PR ada/19128
21463         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
21464
21465 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
21466
21467         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
21468         * utils2.c (build_unary_op): Likewise.
21469
21470 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21471
21472         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
21473
21474 2004-12-19  Richard Henderson  <rth@redhat.com>
21475
21476         * trans.c (gigi): Update gimplify_body call.
21477
21478 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
21479
21480         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
21481
21482 2004-12-07  Ed Falis  <falis@adacore.com>
21483
21484         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
21485         current task being suspended.
21486
21487         * init.c (__gnat_clear_exception): added to reset VxWorks exception
21488         count.
21489         (__gnat_map_signal): removed test for current task being suspended.
21490
21491 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
21492
21493         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
21494         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
21495         targets (such as AAMP).
21496
21497 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
21498
21499         * atree.adb (Visit_Itype): Create a new name for the generated itype,
21500         because the back-end may otherwise treat it as a redefinition of the
21501         old symbol.
21502
21503 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
21504
21505         * back_end.adb (Scan_Back_End_Switches): Accept --param.
21506
21507         * lang-specs.h: Accept --param.
21508
21509 2004-12-07  Vincent Celier  <celier@adacore.com>
21510
21511         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
21512         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
21513         Current_Body_Suffix => Ada_Body_Suffix).
21514         Take into account Externally_Built attribute.
21515
21516         * clean.adb (In_Extension_Chain): Always return False when one of the
21517         parameter is No_Project.
21518         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
21519         Ada_Language_Index).
21520         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
21521         Process_Languages for procedure Parse).
21522
21523         * gnatcmd.adb (Carg_Switches): New table.
21524         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
21525         Adapt to name changes in package Prj (Current_Spec_Suffix =>
21526         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
21527
21528         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
21529         Header_Num and function Hash are now declared in package Prj,
21530         not Prj.Com.
21531
21532         * prj.adb (Suffix_Of): New function.
21533         (Set (Suffix)): New procedure.
21534         (Hash): One function moved from Prj.Com
21535         (Is_Present, Language_Processing_Data_Of): New functions
21536         (Set): Two new procedures
21537         (Add_Language_Name, Display_Language_Name): New procedures
21538
21539         * prj.ads: (Suffix_Of): New function
21540         (Set (Suffix)): New procedure
21541         Add several types and tables for multi-language support.
21542         (Header_Num): Type moved from Prj.Com
21543         (Hash): Two functions moved from Prj.Com
21544         (Is_Present, Language_Processing_Data_Of): New functions
21545         (Set): Two new procedures
21546         (Add_Language_Name, Display_Language_Name): New procedures
21547         (Naming): Component name changes:
21548         Current_Spec_Suffix => Ada_Spec_Suffix,
21549         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
21550         Impl_Suffixes, Supp_Suffixes.
21551         (Project_Data): New components: Externally_Built, Supp_Languages,
21552         First_Language_Processing, Supp_Language_Processing, Default_Linker,
21553         Default_Linker_Path.
21554
21555         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
21556         new package Language_Processing with its attributes (Compiler_Driver,
21557         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
21558         Binder_Driver, Default_Linker).
21559
21560         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
21561         (Header_Num): Type moved to package Prj
21562
21563         * prj-env.adb: Adapt to name changes in package Prj
21564         (Current_Spec_Suffix => Ada_Spec_Suffix,
21565         Current_Body_Suffix => Ada_Body_Suffix).
21566
21567         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
21568         default to the project path, except the "-" is one of the directories
21569         in env var ADA_PROJECT_PATH.
21570         (Current_Project_Path): Global variable, replacing Project_Path
21571         that was in the body of Prj.Part.
21572         (Project_Path): New function
21573         (Set_Project_Path): New procedure
21574         Initialize Current_Project_Path during elaboration of the package
21575         Remove dependency on Prj.Com, no longer needed
21576
21577         * prj-ext.ads (Project_Path): New function
21578         (Set_Project_Path): New procedure
21579
21580         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
21581         suffix is defined for language <lang>.
21582         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
21583         accessing directly the components of Naming.
21584         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
21585         Reorganise of this package.
21586         Break procedure Check in several procedures.
21587
21588         * prj-nmsc.ads: Replace all procedures (Ada_Check,
21589         Other_Languages_Check and Language_Independent_Check) with a single
21590         procedure Check.
21591
21592         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
21593         Process_Languages, no longer needed.
21594
21595         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
21596         Current_Project_Path.
21597         Remove elaboration code, moved to the body of Prj.Ext
21598         Use new function Prj.Ext.Project_Path instead of old variable
21599         Project_Path.
21600         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
21601         When comparing with project paths on the stack, first put the resolved
21602         path in canonical case.
21603         (Parse_Single_Project): Set the path name of the project file in the
21604         tree to the normalized path.
21605
21606         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
21607         parameter Process_Languages, no longer needed.
21608         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
21609         Other_Languages_Check.
21610
21611         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
21612         to store the resolved canonical path of the project file.
21613         Remove dependency to Prj.Com, no longer needed
21614
21615         * prj-util.adb: Adapt to name changes in package Prj
21616         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
21617         Ada_Body_Suffix).
21618
21619         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
21620         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
21621         Externally_Built, Include_Option, Language_Processing.
21622
21623         * makegpr.adb: Numerous changes due to changes in packages
21624         Prj and Prj.Nmsc.
21625
21626         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
21627         default to the project path, except whe "-" is one of the directories
21628         in env var ADA_PROJECT_PATH.
21629         (Gnatls): In verbose mode, add the new section "Project Search Path:"
21630
21631 2004-12-07  Robert Dewar  <dewar@adacore.com>
21632
21633         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
21634
21635         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
21636         set -gnatR3m mode.
21637
21638         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
21639         flag. No longer needed now that we handle this in gnat1drv.adb.
21640
21641         * repinfo.ads: Minor reformatting
21642
21643 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21644             Olivier Hainque  <hainque@adacore.com>
21645             Eric Botcazou  <ebotcazou@adacore.com>
21646
21647         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
21648         TYPE_SIZE_UNIT of result type if SIZE is not specified.
21649         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
21650         of a bitfield, which we know is useless and causes trouble because of
21651         alignment implications.
21652
21653         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
21654         BSS sections.
21655         (process_attributes): Clear DECL_COMMON again when a section attribute
21656         is present.
21657         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
21658         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
21659         (create_field_decl): Special case ADDRESSABLE negative to mean
21660         "no bitfield creation", to be used by make_aligning_type. Don't
21661         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
21662         fields claimed addressable still have to be bitfields. Use
21663         value_factor_p instead of a raw binop construction to check for the
21664         position's alignment.
21665
21666 2004-12-07  Geert Bosch  <bosch@adacore.com>
21667
21668         * eval_fat.adb: Revert previous change.
21669
21670 2004-12-07  Thomas Quinot  <quinot@adacore.com>
21671             Ed Schonberg  <schonberg@adacore.com>
21672
21673         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
21674         with an implicit dereference as its prefix, use
21675         Insert_Explicit_Dereference instead of merely rewriting the prefix into
21676         an explicit dereference. This ensures that a reference to the original
21677         prefix is generated, if appropriate.
21678
21679         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
21680         dereference is rewritten to an explicit one, generate a reference to
21681         the entity denoted by its prefix using the original prefix node, so
21682         the dereference can be properly recorded as a read of the denoted
21683         access value, if appropriate.
21684
21685         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
21686         emitting 'assigned but never read' warning on a variable on the basis
21687         that it has an access type.
21688         (Check_References): Emit unreferenced warning when the scope is a
21689         subprogram body.
21690
21691 2004-12-07  Robert Dewar  <dewar@adacore.com>
21692             Ed Schonberg  <schonberg@adacore.com>
21693
21694         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
21695         intrinsic
21696
21697         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
21698         leaving call unchanged.
21699         This deals with the case where the pragma Import specified
21700         an external name, to be handled by the back end.
21701
21702         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
21703         subprogram which is Imported with convention Intrinsic if an
21704         External_Name argument is specified.
21705         (Process_Import_Or_Interface): Properly diagnose link name argument.
21706         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
21707         with Sem_Ch6.Cannot_Inline.
21708         (Process_Inline): Provide separate warning for inapplicable inline
21709         pragma.
21710         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
21711         treatment is uniform on different targets.
21712
21713 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
21714
21715         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
21716         construct is rewritten, preserve end label to permit source navigation.
21717
21718 2004-12-07  Thomas Quinot  <quinot@adacore.com>
21719
21720         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
21721         Specific_Build_Stub_Target): New subprograms.
21722         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
21723         the PCS implementation used, using the above PCS-customized subprograms.
21724         Minor reformatting.
21725         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
21726         for generation of DSA code targeted to the PolyORB PCS.
21727         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
21728         implementation of the partition communication subsystem in ancillary
21729         subprograms.
21730         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
21731         PolyORB_Support.Build_Stub_Type): New subrograms containing the
21732         PCS-specific part of Add_Stub_Type.
21733         (Insert_Partition_Check): Use runtime library function to perform
21734         E.4(19) check.
21735
21736         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
21737         (RE_Same_Partition): New entity, from s-parint.
21738
21739         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
21740
21741 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
21742
21743         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
21744         Output the copyright message on a separate line from the version
21745         message.
21746
21747 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
21748
21749         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
21750         compile-time warning.
21751
21752 2004-12-07  Robert Dewar  <dewar@adacore.com>
21753
21754         * g-regpat.adb: (Match): Change a misuse of or to or else
21755
21756 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
21757
21758         * lib-xref.adb:
21759         (Generate_Reference): Handle properly a reference to an entry formal,
21760          when an accept statement has a pragma Unreferenced for it.
21761
21762         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
21763         and the Has_Pragma_Unreferenced flag for each formal before analyzing
21764         the body, to ensure that warnings are properly emitted for each accept
21765         statement of a given task entry.
21766
21767 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
21768
21769         * Makefile.in: Add support for foreign threads on VMS.
21770
21771 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21772
21773         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
21774         Remove.
21775         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
21776
21777         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
21778
21779         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
21780         exception.
21781         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
21782
21783 2004-12-07  Robert Dewar  <dewar@adacore.com>
21784
21785         * nlists.adb (Prepend_Debug): Remove parameters and nest within
21786         Prepend.
21787         (Remove_Next_Debug): Same fix
21788
21789         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
21790         maintain back pointers now, though we did not used to, and comments
21791         were out of date).
21792         (Prepend): Remove pragma Inline.
21793         (Remove_Next): Same cleanup
21794
21795 2004-12-07  Thomas Quinot  <quinot@adacore.com>
21796
21797         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
21798         used to record an implicit dereference as a read operation on its
21799         prefix when operating under -gnatc. Necessary to avoid spurious
21800         'variable assigned but never read' warnings in that mode.
21801         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
21802         is a non-overloaded implicit dereference, call the above subprogram to
21803         ensure proper recording of references.
21804
21805 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
21806
21807         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
21808         to be resolved later as part of Analyze_Iteration_Scheme's call to
21809         Make_Index.
21810
21811 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
21812
21813         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
21814         prefix is not a scalar type, place error message on prefix, not on
21815         type entity.
21816
21817 2004-12-07  Bernard Banner  <banner@adacore.com>
21818
21819         * vxaddr2line.adb: Add support for x86 vxworks
21820
21821 2004-12-07  Thomas Quinot  <quinot@adacore.com>
21822
21823         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
21824         documentation of the behaviour of these functions when passed an IP
21825         address that has no record in the system hosts database and no reverse
21826         record in the DNS.
21827
21828         * cstand.adb, a-tags.ads: Fix typos in comment.
21829
21830 2004-12-07  Robert Dewar  <dewar@adacore.com>
21831
21832         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
21833         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
21834         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
21835         s-poosiz.ads: Minor reformatting
21836
21837         * make.adb: Minor reformatting
21838         Add some ??? comments asking for more comments
21839
21840         * s-poosiz.adb: Minor reformatting
21841         Add comments on alignment requirement
21842
21843         * sinfo.ads: Remove obsolete comment and fix typo.
21844
21845 2004-12-07  Vincent Celier  <celier@adacore.com>
21846             Sergey Rybin  <rybin@adacore.com>
21847
21848         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
21849         Files" with the new tool and package names.
21850         Reformatting to suppress most of the warnings for line too long
21851         Document the new section "Project Search Path:" in the output of
21852         gnatls -v.
21853         Add gnatmetric section
21854
21855 2004-12-07  Vincent Celier  <celier@adacore.com>
21856
21857         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
21858         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
21859         and -eit to -ept. Added qualifier
21860         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
21861
21862 2004-11-27  Andreas Schwab  <schwab@suse.de>
21863
21864         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
21865
21866 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
21867
21868         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
21869         internal implementation unit GNAT.Sockets.Thin,
21870         as their usage for sockets is non-portable (using the read and write
21871         functions from the system runtime library is fine on UNIX but won't
21872         work under Windows).
21873
21874         * mingw32.h: Update copyright notice.
21875
21876 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
21877
21878         * ada-tree.h: Minor reformatting of previous change to avoid lines
21879         longer than 79 characters.
21880
21881 2004-11-25  Olivier Hainque  <hainque@adacore.com>
21882
21883         * tb-gcc.c: GCC infrastructure based implementation of
21884         __gnat_backtrace.
21885
21886 2004-11-24  Steven Bosscher  <stevenb@suse.de>
21887
21888         * misc.c (gnat_post_options): Don't clear
21889         flag_inline_functions.
21890
21891 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
21892
21893         PR ada/17986
21894         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
21895         tree.
21896
21897 2004-11-21  Andreas Jaeger  <aj@suse.de>
21898
21899         * stylesw.adb: Change Style_Check_Subprogram_Order to
21900         Style_Check_Order_Subprograms.
21901
21902 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
21903
21904         * adaint.h, adaint.c
21905         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
21906         to avoid warnings.
21907         Add also a cast to kill another warning.
21908         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
21909         parameter with the priority class of the parent process instead of
21910         always using the NORMAL_PRIORITY_CLASS.
21911         (__gnat_dup): New function.
21912         (__gnat_dup2): New function.
21913         (__gnat_is_symbolic_link): Enable the effective body of this
21914         function when __APPLE__ is defined.
21915
21916         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
21917         Update comments.
21918
21919 2004-11-18  Olivier Hainque  <hainque@adacore.com>
21920
21921         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
21922         address of which may be used to represent "others" and "all others"
21923         choices in exception tables, instead of the current harcoded
21924         (void *)0 and (void *)1.
21925         (Setup_Exception): Do nothing in the GNAT SJLJ case.
21926
21927         * gigi.h (others_decl, all_others_decl): New decls representing the
21928         new Others_Value and All_Others_Value objects.
21929         (struct attrib): Rename "arg" component as "args", since GCC expects a
21930         list of arguments in there.
21931
21932         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
21933         corresponding objects exported by a-exexpr, instead of hardcoded dummy
21934         addresses.
21935
21936         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
21937         others_decl and all_others_decl instead of hardcoded dummy addresses
21938         to represent "others" and "all others" choices, which is cleaner and
21939         more flexible with respect to the possible eh pointer encoding policies.
21940
21941         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
21942         (process_attributes): Account for the naming change of the "args"
21943         attribute list entry component.
21944
21945         * decl.c (build_attr_list): Rename into prepend_attributes to allow
21946         cumulating attributes for different entities into a single list.
21947         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
21948         attributes for the current entity and propagate first subtype
21949         attributes to other subtypes.
21950         <E_Procedure>: Attribute arguments are attr->args and not
21951         attr->arg any more.
21952         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
21953         argument provided, as this is what GCC expects. Use NULL_TREE instead
21954         of 0 for trees.
21955
21956 2004-11-18  Robert Dewar  <dewar@adacore.com>
21957
21958         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
21959         Minor reformatting througout (including new function specs)
21960         Add ??? comments asking for clarification.
21961
21962 2004-11-18  Thomas Quinot  <quinot@adacore.com>
21963
21964         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
21965         incomplete duplicate implementation of this subprogram from butil.
21966
21967 2004-11-18  Thomas Quinot  <quinot@adacore.com>
21968
21969         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
21970         procedures factors the common processing for building an RPC receiver
21971         for an RCI package or an RACW type.
21972         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
21973         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
21974         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
21975         in use.
21976         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
21977         Add_RACW_Features.
21978         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
21979         Add_RAST_Features.
21980         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
21981         distribution subprogram identifiers that are either subprogram numbers
21982         or strings.
21983         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
21984         string distribution identifiers assigned to a given subprogram.
21985         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
21986         (Add_RAS_Dereference_TSS): Add comments.
21987         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
21988         is not referenced yet because it will be used by the PolyORB DSA
21989         implementation.
21990         (Insert_Partition_Check): Remove fossile code.
21991         (First_RCI_Subprogram_Id): Document this constant.
21992         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
21993         RAS_Access TSS.
21994         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
21995         replaced with calls to Get_Library_Unit_Name_String. Previously there
21996         were several instances of the same code in different locations in the
21997         compiler; this checkin completes the replacement of all of these
21998         instances with calls to a common subprogram.
21999         Minor reformatting.
22000
22001         * sem_dist.adb: Remove comment noting that RPC receiver generation
22002         should be disabled for RACWs that implement RASs.
22003         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
22004
22005         * sem_util.ads, sem_util.adb (Has_Stream): New function
22006         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
22007         qualified name of a library unit into the name buffer.
22008         (Note_Possible_Modification): Generate a reference only
22009         if the context comes from source.
22010
22011         * snames.ads (PCS_Names): New subtype corresponding to names of
22012         supported implementations of the Partition Communication Subsystem
22013         (PCS) (i.e. the runtime library support modules for the distributed
22014         systems annex).
22015
22016 2004-11-18  Robert Dewar  <dewar@adacore.com>
22017             Ed Schonberg  <schonberg@adacore.com>
22018
22019         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
22020         (Has_Rep_Pragma): New function
22021         (Has_Attribute_Definition_Clause): New function
22022         (Record_Rep_Pragma): Moved here from sem_ch13.adb
22023         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
22024
22025         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
22026
22027         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
22028         (Expand_Pragma_Psect_Object): New procedure
22029         These procedures contain the revised and cleaned up processing for
22030         these two pragmas. This processing was formerly in Sem_Prag, but
22031         is more appropriately moved here. The cleanup involves making sure
22032         that the pragmas are properly attached to the tree, and that no
22033         nodes are improperly shared.
22034
22035         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
22036         pragmas to Exp_Prag, which is more appropriate.
22037         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
22038         check for duplicates Remove use of Is_Psected flag, no longer needed.
22039         Use new Make_String_Literal function with string.
22040
22041         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
22042         that are functions return universal values, that have to be converted
22043         to the context type.
22044         Use new Make_String_Literal function with string.
22045         (Get_Stream_Convert_Pragma): New function, replaces the use of
22046         Get_Rep_Pragma, which had to be kludged to work in this case.
22047
22048         * freeze.adb: Use new Has_Rep_Pragma function
22049
22050         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
22051         function with string.
22052         Use new Has_Rep_Pragma function.
22053
22054         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
22055         string argument.
22056
22057 2004-11-18  Robert Dewar  <dewar@adacore.com>
22058
22059         * errout.ads, errout.adb: (First_Sloc): New function
22060
22061         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
22062         check (-gnatyx) instead of being included as a redundant construct
22063         warning.
22064
22065         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
22066         Style_Check_Order_Subprograms.
22067
22068         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
22069         stylesw.adb: Add Style_Check_Xtra_Parens
22070
22071         * usage.adb: Add line for -gnatyx (check extra parens)
22072
22073         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
22074
22075 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
22076             Robert Dewar  <dewar@adacore.com>
22077
22078         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
22079         discriminant of a constrained subtype, analyze the copy of the
22080         corresponding constraint, because in some cases it may be only
22081         partially analyzed.
22082         Removes long-lived ??? comments.
22083
22084         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
22085         handled controlled or secondary-stack expressions within the
22086         iteration_scheme of a loop.
22087
22088         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
22089         bounds that may contain functions calls, to prevent memory leaks when
22090         the bound contains a call to a function that uses the secondary stack.
22091         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
22092         generate temporaries for loop bounds that might contain function calls
22093         that require secondary stack and/or finalization actions.
22094
22095         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
22096         selected component and the selector is overloadable (not just a
22097         function) treat as function call, Analyze_Call will disambiguate if
22098         necessary.
22099         (Analyze_Selected_Component): Do not generate an actual subtype for the
22100         selected component if expansion is disabled. The actual subtype is only
22101         needed for constraint checks.
22102         (Analyze_Allocator): If restriction No_Streams is set, then do
22103         not permit objects to be declared of a stream type, or of a
22104         composite type containing a stream.
22105
22106         * restrict.ads: Remove the a-stream entry from Unit_Array, since
22107         No_Streams no longer prohibits with'ing this package.
22108
22109         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
22110         discriminants, but the parent base has unknown discriminants, there is
22111         no discriminant constraint to inherit. Such a discrepancy can arise
22112         when the actual for a formal type with unknown discriminants is a
22113         similar private type whose full view has discriminants.
22114         (Analyze_Object_Declaration): If restriction No_Streams is set, then
22115         do not permit objects to be declared of a stream type, or of a
22116         composite type containing a stream.
22117
22118 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
22119
22120         * exp_dbug.ads: Update documentation to reflect simpler encoding for
22121         protected operations.
22122
22123         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
22124         generated name, it complicates decoding in gdb and hinders debugging
22125         of protected operations.
22126         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
22127         flag for the protected entry barrier function.
22128         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
22129         flag for the protected entry function.
22130
22131 2004-11-18  Nicolas Setton  <setton@adacore.com>
22132
22133         * expect.c: Define __unix__ when __APPLE__ is defined.
22134
22135         * Makefile.in: Inform the value of the variable GMEM_LIB in the
22136         Darwin-specific section.
22137
22138         * lang-specs.h: Change the placement of the %1 marker.
22139         Works around the fact that gcc adds -fPIC by default under Darwin.
22140
22141 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
22142
22143         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
22144         type of the object with the packed array type, set the Analyzed flag
22145         on the object if it is an entity or simple indexed component, to avoid
22146         spurious type errors.
22147
22148 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
22149
22150         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
22151         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
22152         separate line from the version message.
22153
22154 2004-11-18  Ed Falis  <falis@adacore.com>
22155
22156         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
22157         vthreads.
22158         (init_float): Eliminate initialization of floating point status for
22159         AE653. The instructions have no effect for vThreads.
22160
22161 2004-11-18  Vincent Celier  <celier@adacore.com>
22162
22163         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
22164         gnatbind is invoked with -shared.
22165
22166 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
22167
22168         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
22169         for Detect_Blocking which is redundant with the check done within the
22170         procedure Protected_Single_Entry_Call.
22171         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
22172         Detect_Blocking which is redundant with the check done within the
22173         procedure Protected_Single_Entry_Call.
22174
22175 2004-11-18  Vincent Celier  <celier@adacore.com>
22176
22177         * makegpr.adb (Compile): Put the compiling switches (in package
22178         Compiler and on the command line) immediately after "-c", instead of
22179         at the end of the command line invocation of the compiler, when
22180         compiling a non-Ada file.
22181         (Build_Global_Archive): When there is no need to rebuild the archive,
22182         set Global_Archive_Exists, so that the archive is passed to the linker
22183         if one is needed.
22184
22185 2004-11-18  Robert Dewar  <dewar@adacore.com>
22186             Sergey Rybin  <rybin@adacore.com>
22187
22188         * gnat_ugn.texi:
22189         Remove extra paren check from list of checks for redundant constructs
22190         Add documentation of new -gnatyx style check (check extra parens)
22191         Remove paragraph about gnatelim debug options.
22192
22193         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
22194         objects rather than forbidding dependencies on the package Ada.Streams.
22195
22196         * sinfo.ads: Add ??? note that we should document pragmas passed to
22197         back end.
22198
22199         * g-expect.ads: Fix a few typos in the comments.
22200
22201 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
22202
22203         * misc.c (gnat_handle_option): Use %< and %> for quoting in
22204         warning message.
22205
22206 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
22207
22208         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
22209
22210 2004-11-07  Andreas Schwab  <schwab@suse.de>
22211
22212         * Makefile.in (install-gnatlib): Remove spurious hyphen.
22213
22214 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
22215
22216         PR ada/18228
22217         * Makefile.in (darwin): Set soext to .dylib.
22218
22219 2004-10-26  Vincent Celier  <celier@gnat.com>
22220             Thomas Quinot   <quinot@act-europe.fr>
22221
22222         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
22223         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
22224         there is no use of GNAT.Sockets.Constants.
22225         Remove remaining pragma Import for C_Write
22226         Remove C_Read and C_Write from internal implementation unit
22227         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
22228         the read and write functions from the system runtime library is fine
22229         on UNIX but won't work under Windows).
22230
22231         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
22232         (Check_Selector): Use C_Recv instead of C_Read.
22233         Selectors are the GNAT.Sockets abstraction to perform a select()
22234         call on a set of descriptors. To allow abortion of an ongoing
22235         select operation, some data is written to a dedicated socket that
22236         is always monitored.
22237         Under Windows, the write and read library functions cannot operate
22238         on sockets, so we need to use send and recv instead, which is portable
22239         across all supported platforms.
22240
22241         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
22242         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
22243         (using the read and write functions from the system runtime library is
22244         fine on UNIX but won't work under Windows).
22245
22246 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
22247
22248         * mlib-tgt-darwin.adb: New file.
22249
22250         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22251         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
22252         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
22253         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
22254         subprogram body.
22255
22256         * Makefile.in: Add support for building shared libraries under Darwin.
22257         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
22258         the low level EH init subprogram to be called from __gnat_initialize.
22259
22260         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
22261         indicates which options to pass to the archive indexer.
22262
22263         * mlib-utl.adb: Add support for calling ranlib with additional
22264         options. This is needed for instance under Mac OS X.
22265         (Ranlib_Options): New global variable, used to store the potential
22266         options to pass to ranlib.
22267         (Ar): Use Ranlib_Options when spawning ranlib.
22268         (Initialize): Set the value of ranlib option.
22269
22270 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
22271
22272         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
22273         instead of 8K, to reflect the real potential needs for stack-checking
22274         in the ZCX case.
22275
22276 2004-10-26  Pascal Obry  <obry@gnat.com>
22277
22278         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
22279
22280         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
22281         Windows only the initial thread stack size can be set so it is good to
22282         start we a low stack size.
22283         The OS will adjust the size as needed.
22284
22285 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
22286             Nicolas Setton  <setton@act-europe.fr>
22287
22288         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
22289         "__unix__" instead of "unix".
22290         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
22291         sections were just mistakenly ignored. The former is
22292         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
22293         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
22294         of hpux. This prevents an unwanted definition of the symbol
22295         convert_addresses in adaint.o.
22296
22297 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
22298
22299         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
22300         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
22301
22302 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
22303
22304         * a-filico.ads, a-filico.adb: fix incorrect header.
22305
22306 2004-10-26  Javier Miranda  <miranda@gnat.com>
22307
22308         * a-ststio.ads: Fix typo in identifier
22309
22310 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
22311
22312         * sem_ch4.adb: Minor reformatting.
22313
22314 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
22315
22316         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
22317         enabled, check the result of unary and binary operations when the
22318         expression is the right-hand side of an assignment.
22319
22320 2004-10-26  Vincent Celier  <celier@gnat.com>
22321
22322         * clean.adb (Delete): Do not output warnings when in quiet output and
22323         not in verbose mode.
22324         (Force_Deletions): New Boolean flag, defaulted to False
22325         (Delete): Only delete a file if it is writable, and when
22326         Force_Deletions is True.
22327         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
22328         (Usage): Line for new switch -f
22329         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
22330         own.
22331
22332 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
22333
22334         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
22335         JM type only if its size matches that of the wrapper.  When a size is
22336         prescribed and the field is not aliased, remove the wrapper of a JM
22337         type only if the size is not greater than that of the packed array.
22338         (gnat_to_gnu_entity): Change the extension of packed array wrappers
22339         from LJM to JM.
22340
22341 2004-10-26  Geert Bosch  <bosch@gnat.com>
22342
22343         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
22344         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
22345         (Pred): Implement in terms of Succ.
22346
22347 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
22348
22349         * exp_aggr.adb (Safe_Component): An aggregate component that is an
22350         unchecked conversion is safe for in-place use if the expression of the
22351         conversion is safe.
22352         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
22353         be expandable in place even if the aggregate does not come from source.
22354         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
22355         designated object of an allocator in place, rather than building it
22356         first on the stack. The previous scheme forces a full copy of the array,
22357         and may be altogether unsusable if the size of the array is too large
22358         for stack allocation.
22359
22360 2004-10-26  Robert Dewar  <dewar@gnat.com>
22361
22362         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
22363         compares if the component is atomic.
22364
22365         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
22366         array assignment if the component type is atomic.
22367
22368 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
22369             Eric Botcazou  <ebotcazou@act-europe.fr>
22370
22371         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
22372         is aliased and is a by_reference type, do not pass by copy.
22373         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
22374         detect whether the call is in the right side of an assignment or
22375         the expression of an object declaration.  Recurse on component
22376         association within aggregates.
22377         Call it in the condition that determines whether the temporary is
22378         necessary for correct stack-checking.
22379
22380 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
22381
22382         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
22383         RACW_Type, used in the PolyORB version.
22384         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
22385         version and the GARLIC version.
22386
22387         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
22388         Rename RCI_Info to RCI_Locator for better consistency between the
22389         GARLIC and PolyORB versions of the distributed systems annex.
22390         (DSA_Implementation_Name): This enumeration lists the possible
22391         implementations of the Partition Communication Subsystem for the
22392         Distributed Systems Annex (DSA). The three available implementations
22393         are the dummy stub implementation (No_DSA), and two versions based on
22394         two different distribution runtime libraries: GARLIC and PolyORB. Both
22395         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
22396         technology.
22397         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
22398         that organization.
22399
22400         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
22401         between the GARLIC and PolyORB versions of the distributed systems
22402         annex.
22403         Remove RE_Unbounded_Reclaim_Pool since it is unused.
22404
22405 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
22406
22407         * gnat1drv.adb: Suppress calling the back end when
22408         Frontend_Layout_On_Target is true.
22409
22410 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
22411
22412         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
22413         Set_Read_Only): New subprograms.
22414         These new routines allow the user to set or unset the Owner execute
22415         and Owner write permission flags on a file.
22416
22417         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
22418         GNAT.OS_Lib.Set_Executable instead of rolling our own.
22419
22420 2004-10-26  Matthew Gingell  <gingell@gnat.com>
22421
22422         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
22423
22424 2004-10-26  Pascal Obry  <obry@gnat.com>
22425
22426         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
22427         memory before the faulting page we properly test the process read
22428         access for this address using appropriate Win32 routine.
22429         (HPUX sections): guard with "__hpux__" instead of "hpux".
22430
22431 2004-10-26  Robert Dewar  <dewar@gnat.com>
22432
22433         * lib-xref.adb (Generate_Reference): Don't complain about reference to
22434         entry parameter if pragma Unreferenced set, since we do not properly
22435         handle the case of multiple parameters.
22436
22437 2004-10-26  Vincent Celier  <celier@gnat.com>
22438
22439         * prj-env.adb: (Contains_ALI_Files): New Boolean function
22440         (Ada_Objects_Path.Add): For a library project, add to the object path
22441         the library directory only if there is no object directory or if the
22442         library directory contains ALI files.
22443         (Set_Ada_Paths.Add.Recursive_Add): Ditto
22444
22445 2004-10-26  Vincent Celier  <celier@gnat.com>
22446
22447         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
22448         extension of library projects.
22449
22450         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
22451         path defaults to ".:<prefix>/lib/gnat".
22452         (Parse): For an extending all project, allow direct import of a project
22453         that is virtually extended.
22454
22455         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
22456         the specified name is directly imported, return its ID. Otherwise, if
22457         an extension of this project is imported, return the ID of the
22458         extension.
22459
22460 2004-10-26  Robert Dewar  <dewar@gnat.com>
22461
22462         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
22463         (Sub3): New procedure, used by Scaled_Divide
22464         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
22465         correct more than one instance of failure to propagate carries
22466         correctly.
22467         (Double_Divide): Handle overflow case of largest negative number
22468         divided by minus one.
22469
22470         * s-arit64.ads (Double_Divide): Document that overflow can occur in
22471         the case of a quotient value out of range.
22472         Fix comments.
22473
22474 2004-10-26  Robert Dewar  <dewar@gnat.com>
22475
22476         * s-bitops.adb (Bit_Eq): Remove redundant check.
22477
22478         * s-bitops.ads: Minor comment updates
22479         Change some occurrences of Address to System.Address
22480
22481         * s-carsi8.ads: Fix minor cut-and-paste error in comments
22482
22483 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
22484
22485         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
22486         accessibility check to prefix that is a protected operation.
22487
22488 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
22489
22490         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
22491         empty, post message on stub.
22492
22493 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
22494             Javier Miranda  <miranda@gnat.com>
22495
22496         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
22497         current instance appears within a unit that is directly in the context
22498         of the main unit.
22499         Used to determine whether the body of the instance should be analyzed
22500         immediately after its spec, to make its subprogram bodies available
22501         for front-end inlining.
22502         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
22503         constraint is not allowed on the component type (AARM 12.5.3(3))
22504
22505 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
22506
22507         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
22508         'Storage_Pool): enhance, document & limit detection of non-sharable
22509         internal pools.
22510
22511         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
22512
22513         * s-pooglo.ads: Add more documentation now that this pool is properly
22514         documented.
22515
22516 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
22517
22518         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
22519         or protected type with discriminants, do not constrain the
22520         corresponding record type if the subtype declaration has no
22521         discriminant constraints. This can be the case in source code, or in
22522         the subtype declaration created to rename an actual type within an
22523         instantiation.
22524
22525 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
22526
22527         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
22528         different kind of stub (possibly wrong name for file), do not check
22529         for conformance.
22530         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
22531         includes call to some function that returns an unconstrained type, do
22532         not inline.
22533
22534 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
22535
22536         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
22537         appear in the code for the main unit. Dependencies among units in the
22538         context of the main unit are established when those other units are
22539         compiled. Otherwise spurious elaboration constraints can generate
22540         incorrect elaboration circularities.
22541
22542 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
22543             Ed Schonberg   <schonberg@gnat.com>
22544
22545         * sem_util.adb (Is_Aliased_View): Defend against the case where this
22546         subprogram is called with a parameter that is not an object name. This
22547         situation arises for some cases of illegal code, which is diagnosed
22548         later, and in this case it is wrong to call Is_Aliased, as that might
22549         cause a compiler crash.
22550         (Explain_Limited_Type): Refine previous fix to include
22551         inherited components of derived types, to provide complete information.
22552
22553         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
22554         is the prival for a protected object.
22555         It is necessary to mark this entity as a variable, in addition to
22556         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
22557         modified to avoid checking the Aliased flag on entities that are not
22558         objects. (Checking that flag for non-objects is erroneous and could
22559         lead to a compiler crash).
22560
22561 2004-10-26  Robert Dewar  <dewar@gnat.com>
22562
22563         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
22564         X_Frac = 0.5, then we know that the number X must be positive.
22565         (Succ): Remove the same redundant test, and also fix the primary test
22566         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
22567         Minor reformatting
22568         (Decompose): Add fuller comments to spec
22569
22570 2004-10-26  Pascal Obry  <obry@gnat.com>
22571
22572         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
22573         validity (process must have read access). Set to 0 in all other cases.
22574         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
22575         violation on Win32.
22576         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
22577         segmentation violation.
22578
22579 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
22580
22581         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
22582         whose type is a constructed subtype of an aliased object with an
22583         unconstrained nominal subtype, convert the actual to the constructed
22584         subtype before taking its address.
22585
22586 2004-10-26  Vincent Celier  <celier@gnat.com>
22587
22588         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
22589         (Is_Path_Name_Case_Sensitive): New function
22590
22591         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
22592         (Base_Name, Simple_Name, Current_Directory, Compose,
22593         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
22594         the result.
22595
22596 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
22597             Vasiliy Fofanov  <fofanov@act-europe.fr>
22598             Vincent Celier   <celier@gnat.com>
22599
22600         * gnat_ugn.texi: Generalize "finding memory problems" section into a
22601         "memory management issues" section and document some of the useful
22602         memory pools provided as part of the GNAT library.
22603         Remove "virtual" from declaration of A::method2 in
22604         the simple example of Ada/C++ mixed system.
22605         Library Projects may be virtually extended: their virtual extensions
22606         are not Library Projects.
22607         Added section on extending project hierarchies.
22608
22609 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
22610
22611         * adaint.c (__gnat_get_libraries_from_registry): Cast value
22612         to LPBYTE.
22613         (__gnat_portable_spawn): Remove const.
22614
22615         * mingw32.h (MAXPATHLEN): Check for previous definition.
22616
22617 2004-10-17  Matthias Klose  <doko@debian.org>
22618
22619         * gnatvsn.ads: Set gnat library version to 4.0.
22620
22621 2004-10-05  Vincent Celier  <celier@gnat.com>
22622
22623         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
22624
22625 2004-10-04  Laurent GUERBY <laurent@guerby.net>
22626
22627         PR ada/15156
22628         * Makefile.in: Define and use RANLIB_FLAGS.
22629
22630 2004-10-04  Pascal Obry  <obry@gnat.com>
22631
22632         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
22633         other x86 platforms).
22634
22635 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
22636
22637         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
22638         in general and triggers stack alignment adjustment for thread entry
22639         points on targets where this is necessary.
22640
22641 2004-10-04  Bernard Banner  <banner@gnat.com>
22642
22643         PR ada/13897
22644         * Makefile.in: Add section for powerpc linux
22645         Add variant i-vxwork-x86.ads
22646
22647         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
22648
22649 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
22650
22651         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
22652         table registration calls when need be. Ensures no reference to the crt
22653         ctors symbol are issued in the SJLJ case, which avoids possible
22654         undefined symbol errors in the case of modules to be statically linked
22655         with the kernel.
22656
22657 2004-10-04  Javier Miranda  <miranda@gnat.com>
22658
22659         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
22660         in-line the code corresponding to subprogram Analyze_Actuals. In
22661         addition, analyze the actuals only in case of subprogram call.
22662
22663 2004-10-04  Ed Falis  <falis@gnat.com>
22664
22665         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
22666
22667 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
22668
22669         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
22670         in the documentation.
22671
22672 2004-10-04  Robert Dewar  <dewar@gnat.com>
22673
22674         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
22675         IF and CASE.
22676         (Analyze_Block_Statement): Add circuitry to detect following dead code
22677         (Check_Unreachable_Code): Handle case of block exit
22678
22679 2004-10-04  Robert Dewar  <dewar@gnat.com>
22680
22681         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
22682         (XMatchD): Avoid warning for Logic_Error call
22683
22684 2004-10-04  Robert Dewar  <dewar@gnat.com>
22685
22686         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
22687         consider expressions buried within a procedure actual to be an actual.
22688         This caused some blowups with uses of packed slices within a procedure
22689         actual.
22690
22691 2004-10-04  Robert Dewar  <dewar@gnat.com>
22692
22693         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
22694         longer need to be initialized to zero.
22695         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
22696         initialized to zero.
22697
22698         * checks.adb (Expr_Known_Valid): Packed arrays are now always
22699         considered valid, even if the representation is modular. That's correct
22700         now that we no longer initialize packed modular arrays to zero.
22701
22702         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
22703         suffixes. These are now documented as the only cases in which the
22704         debugger ignores outer records.
22705         Previously, the spec allowed arbitrary suffixes for this purpose.
22706         Change name of LJM to JM for packed array pad records
22707         Create separate section on packed array handling, and add a whole new
22708         set of comments to this section describing the situation with packed
22709         modular types and justification requirements depending on endianness.
22710
22711 2004-10-04  Robert Dewar  <dewar@gnat.com>
22712
22713         * a-except.adb: Add a comment for last change
22714
22715         * einfo.ads: Minor spelling correction in comment
22716
22717         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
22718
22719         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
22720         messages.
22721
22722         * sem_util.ads: Minor comment update
22723
22724 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
22725
22726         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
22727         Inline_Always when in Configurable_Run_Time mode.
22728
22729         * sem_prag.adb (Process_Convention): If entity is an inherited
22730         subprogram, apply convention to parent subprogram if in same scope.
22731         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
22732         when in Configurable_Run_Time mode.
22733
22734 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
22735
22736         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
22737         class_wide type after component list has been inherited.
22738
22739 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
22740
22741         * sem_ch12.adb (Check_Generic_Actuals): New predicate
22742         Denotes_Previous_Actual, to handle properly the case of a private
22743         actual that is also the component type of a subsequent array actual.
22744         The visibility status of the first actual is not affected when the
22745         second is installed.
22746         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
22747         make fully recursive the treatment of formals of packages declared
22748         with a box.
22749         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
22750         the above on exit from an instantiation.
22751         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
22752         current instantiation which is now complete.
22753         (Analyze_Package_Instantiation): No instantiated body is needed if the
22754         main unit is generic. Efficient, and avoid anomalies when a instance
22755         appears in a package accessed through rtsfind.
22756
22757 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
22758
22759         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
22760         do not generate a declaration for a temporary if the call is part of a
22761         library-level instantiation.
22762
22763 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
22764
22765         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
22766         searching for a limited component to flag.
22767
22768         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
22769         expansion of Input, to account for the fact that the implicit call
22770         generated by the attribute reference must freeze the user-defined
22771         stream subprogram. This is only relevant to 'Input, because it can
22772         appear in an object declaration, prior to the body of the subprogram.
22773
22774         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
22775         expansion can proceed and further errors uncovered.
22776         (Minor clean up): Fix cases of using | instead of \ for continuation
22777         messages.
22778
22779 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22780
22781         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
22782
22783         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
22784         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
22785         Use gcc_assert and gcc_unreachable.
22786
22787         * decl.c (gnat_to_gnu_entity, case object): Check and process a
22788         specified alignment before validating size.
22789         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
22790         stripped-down declaration for the type of the inner field when making
22791         a JM type.
22792
22793         * utils.c (finish_record_type): Do not compute the size in units
22794         incrementally. Instead compute it once for the rep clause case.
22795         Use gcc_assert and gcc_unreachable.
22796
22797 2004-10-04  Vincent Celier  <celier@gnat.com>
22798
22799         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
22800         in file name.
22801         (Is_Valid_Path_Name): Take '/' as a directory separator.
22802
22803 2004-10-04  Vincent Celier  <celier@gnat.com>
22804
22805         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
22806         (Extended_Project) only if Extended_Project is defined, to avoid
22807         assertion error.
22808         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
22809         resolved path.
22810         (Parse_Single_Project): Ditto.
22811
22812         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
22813         Add_To_Project_Path for virtual projects.
22814
22815 2004-10-04  Vincent Celier  <celier@gnat.com>
22816
22817         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22818         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
22819         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
22820         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
22821         parameter Options_2.
22822
22823         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
22824         Build_Dynamic_Library with an empty Options_2.
22825
22826         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
22827         default anymore.
22828
22829         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
22830         directory separator, if any.
22831         (Gprmake): Do not allow mains on the command line for library projects.
22832         Do not attempt to link when the project is a library project.
22833         (Library_Opts): New table to store Library_Options.
22834         (Build_Library): If Library_Options is specified, pass these options
22835         when building a shared library.
22836
22837 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
22838
22839         * s-tposen.adb (Service_Entry): The object must be always unlocked at
22840         the end of this procedure now that the unlock operation was inserted
22841         by the expander.
22842
22843 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
22844
22845         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
22846         corresponding to the Preallocated_Stacks flags in System.
22847         (Get_Target_Parameters): Including the processing for
22848         Preallocated_Stacks.
22849
22850         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
22851         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
22852         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
22853         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
22854         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
22855         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
22856         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
22857         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
22858         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
22859         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
22860         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
22861         used to signal whether the compiler creates the required stacks and
22862         descriptors for the different tasks (when True) or it is done by the
22863         underlying operating system at run time (when False).
22864         It is initially set to False in all targets.
22865
22866         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
22867         if it is supported by the target.
22868         (Make_Task_Create_Call): Pass the stack address if it has been
22869         previously created. Otherwise pass a Null_Address.
22870
22871         * snames.adb: Add _stack.
22872
22873         * snames.ads: Add Name_uStack. Required to allow the expander to
22874         statically allocated task stacks.
22875
22876         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
22877         Stack_Address argument.
22878         Check that its value is equal to Null_Address because this target does
22879         not support the static stack allocation.
22880
22881 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
22882
22883         * usage.adb: Change "pragma inline" to "pragma Inline" in information
22884         and error messages
22885
22886 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
22887
22888         * exp_dist.adb: Split declaration of asynchronous flag out of
22889         Add_RACW_Read_Attribute.
22890         Minor reformatting for better alignment with PolyORB version.
22891         Store the entity for the asynchronous flag of an RACW, rather than the
22892         expression, in the asynchronous flags table. This will allow this flag
22893         to be used in other subprograms beside Add_RACW_Read_Attribute.
22894
22895 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
22896
22897         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
22898         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
22899         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
22900         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
22901         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
22902         sockets constant MSG_NOSIGNAL (Linux-specific).
22903         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
22904         all Send operations.
22905         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
22906         from trigerring SIGPIPE.
22907         Rename components to avoid clash with Ada 2005 possible reserved
22908         word 'interface'.
22909         (Check_Selector): When the select system call returns with an error
22910         condition, propagate Socket_Error to the caller.
22911
22912 2004-10-01  Jan Hubicka  <jh@suse.cz>
22913
22914         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
22915
22916 2004-09-23  Robert Dewar  <dewar@gnat.com>
22917
22918         PR ada/17540
22919         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
22920         instead do this at freeze time (we won't do it if there is an address
22921         clause).
22922         Change "pragma inline" to "pragma Inline" in information and error
22923         messages.
22924         Minor reformatting.
22925
22926         * freeze.adb (Check_Address_Clause): Remove previous change, not the
22927         right way of doing things after all.
22928         (Freeze_Entity): For object, set Is_Public for imported entities
22929         unless there is an address clause present.
22930
22931 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
22932
22933         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
22934         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
22935         ensures proper handling of types with rep clauses, which might have
22936         their TYPE_SIZE set already.
22937
22938 2004-09-21  Robert Dewar  <dewar@gnat.com>
22939
22940         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
22941         packed array types in both little- and big-endian cases. This change
22942         ensures that we no longer count on the unused bits being initialized
22943         for such types (and in particular ensures that equality testing will
22944         only read the relevant bits).
22945         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
22946         These changes mean that we no longer need to initialize small packed
22947         arrays.
22948         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
22949         optimization to an LJM field as to its parent field.
22950
22951         * ada-tree.h, trans.c, utils.c, utils2.c:
22952         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
22953
22954 2004-09-20  Jan Hubicka  <jh@suse.cz>
22955
22956         * utils.c (gnat_finalize): Remove.
22957         (end_subprog_body): Directly call cgraph_finalize_function;
22958         do not lower the nested functions.
22959
22960 2004-09-20  Robert Dewar  <dewar@gnat.com>
22961
22962         PR ada/17540
22963         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
22964         if an address clause is present, since that means that the Import
22965         should be ignored.
22966
22967 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
22968
22969         * 5tsystem.ads: Removed, no longer used.
22970
22971 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
22972             Zack Weinberg  <zack@codesourcery.com>
22973
22974         * ada-tree.def: Use tree_code_class enumeration constants
22975         instead of code letters.
22976         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
22977         Update for new tree-class enumeration constants.
22978
22979 2004-09-17  Vincent Celier  <celier@gnat.com>
22980
22981         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
22982         capabilities of the general project manager.
22983
22984 2004-09-09  Vincent Celier  <celier@gnat.com>
22985
22986         * a-direct.ads: Add pragma Ada_05
22987         (Directory_Entry_Type): Give default value to component Kind to avoid
22988         not initialized warnings.
22989
22990         * a-direct.adb (Current_Directory): Remove directory separator at the
22991         end.
22992         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
22993         an existing directory.
22994         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
22995         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
22996         Convert the result to File_Size.
22997
22998         * prj.ads: (Project_Error): New exception
22999
23000         * prj-attr.adb: Except in procedure Initialize, Fail comes from
23001         Prj.Com, not from Osint.
23002         (Attrs, Package_Attributes): Tables moved to private part of spec
23003         (Add_Attribute, Add_Unknown_Package): Moved to new child package
23004         Prj.Attr.PM.
23005         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
23006         Prj.Project_Error after call to Fail.
23007         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
23008         Fail. Check that package name is not already in use.
23009
23010         * prj-attr.ads: Comment updates to indicate that all subprograms may be
23011         used by tools, not only by the project manager, and to indicate that
23012         exception Prj.Prj_Error may be raised in case of problem.
23013         (Add_Unknown_Package, Add_Attribute): Moved to new child package
23014         Prj.Attr.PM.
23015         (Attrs, Package_Attributes): Table instantiations moved from the body to
23016         the private part to be accessible from Prj.Attr.PM body.
23017
23018         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
23019         from new package Prj.Attr.PM.
23020         (Parse_Attribute_Declaration): Call Add_Attribute from new package
23021         Prj.Attr.PM.
23022
23023         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
23024
23025         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
23026         instead of Elaboration_Checks).
23027
23028         * a-calend.adb: Minor reformatting
23029
23030 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23031
23032         * gigi.h (maybe_pad_type): New declaration.
23033         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
23034
23035         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
23036
23037         * cuintp.c: Convert to use buildN.
23038
23039         * decl.c (maybe_pad_type): No longer static.
23040         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
23041         target pointer.
23042         Convert to use buildN.
23043
23044         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
23045         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
23046         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
23047         RHS.
23048         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
23049         (gnat_gimplify_expr, case ADDR_EXPR): New case.
23050         Convert to use buildN.
23051
23052         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
23053         TREE_READONLY for const.
23054         Convert to use buildN.
23055
23056         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
23057         (create_var_decl): Refine when TREE_STATIC is set.
23058         Convert to use buildN.
23059
23060 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
23061
23062         * gnat_ugn.texi: Delete text relating to checking of ali and object
23063         consistency.
23064
23065         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
23066         routines.
23067
23068 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
23069
23070         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
23071         pragmas recognized by GNAT.
23072
23073         * gnat_rm.texi: Document pragma Detect_Blocking.
23074
23075         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
23076         raise Program_Error if called from a protected operation.
23077
23078         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
23079         the protected action nesting level.
23080         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
23081         protected action nesting level.
23082         (Unlock): When pragma Detect_Blocking is active decrease the protected
23083         action nesting level.
23084
23085         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
23086         Protected_Action_Nesting.
23087
23088         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
23089         Common_ATCB record. It contains the dynamic level of protected action
23090         nesting for each task. It is needed for checking whether potentially
23091         blocking operations are called from protected operations.
23092         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
23093         Detect_Blocking is active or not in the partition.
23094
23095         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
23096         raise Program_Error if called from a protected operation.
23097         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
23098         Program_Error if called from a protected operation.
23099         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
23100         Program_Error if called from a protected operation.
23101
23102         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
23103         raise Program_Error if called from a protected operation.
23104
23105         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
23106         raise Program_Error if called from a protected operation, and increase
23107         the protected action nesting level.
23108         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
23109         Program_Error if called from a protected operation, and increase the
23110         protected action nesting level.
23111         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
23112         protected action nesting level.
23113
23114         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
23115         raise Program_Error if called from a protected operation, and increase
23116         the protected action nesting level.
23117         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
23118         Program_Error if called from a protected operation, and increase the
23119         protected action nesting level.
23120         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
23121         raise Program_Error if called from a protected operation.
23122         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
23123         active, raise Program_Error if called from a protected operation.
23124         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
23125         protected action nesting level.
23126
23127         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
23128         insertion of the statement raising Program_Error. The run time
23129         contains the required machinery for handling that.
23130
23131         * sem_util.ads: Change comment associated to procedure
23132         Check_Potentially_Blocking_Operation.
23133         This procedure does not insert a call for raising the exception because
23134         that is currently done by the run time.
23135
23136         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
23137
23138         * init.c: Add the global variable __gl_detect_blocking that indicates
23139         whether pragma Detect_Blocking is active (1) or not (0). Needed for
23140         making the pragma available at run time.
23141         (__gnat_set_globals): Pass and update the detect_blocking parameter.
23142
23143         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
23144         pragma Detect_Blocking is active.
23145
23146         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
23147
23148         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
23149         DB is found in the ali file. Any unit compiled with pragma
23150         Detect_Blocking active forces its effect in the whole partition.
23151
23152         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
23153         Detect_Blocking is active and delay is called from a protected
23154         operation.
23155
23156         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
23157         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
23158         Detect_Blocking is active (0 otherwise).
23159         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
23160         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
23161         otherwise).
23162
23163 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
23164
23165         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
23166         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
23167         package.
23168
23169         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
23170         (Register_Receiving_Stub): Add Subp_Info formal parameter.
23171         Update API in placeholder implemetation of s-parint to reflect changes
23172         in distribution runtime library.
23173
23174         * sem_ch3.adb (Expand_Derived_Record): Rename to
23175         Expand_Record_Extension.
23176
23177         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
23178         primitive operations of potentially distributed object types that have
23179         non-controlling anonymous access formals.
23180
23181         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
23182         subprogram.
23183         New implementation of expansion for remote access-to-subprogram types,
23184         based on the RACW infrastructure.
23185         This version of sem_dist is compatible with PolyORB/DSA as well as
23186         GLADE.
23187
23188         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
23189         Asynchrronous that applies to a remote access-to-subprogram type, mark
23190         the underlying RACW type as asynchronous.
23191
23192         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
23193          __gnat_using_gnu_linker to 1.
23194
23195         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
23196         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
23197         GNAT.Perfect_Hash_Generators, and remove the empty
23198         GNAT.Perfect_Hash package.
23199
23200         * atree.adb: Minor reformatting
23201
23202         * exp_ch3.adb (Expand_Derived_Record): Rename to
23203         Expand_Record_Extension.
23204         (Build_Record_Init_Proc.Build_Assignment): The default expression in
23205         a component declaration must remain attached at that point in the
23206         tree so New_Copy_Tree copies it if the enclosing record type is derived.
23207         It is therefore necessary to take a copy of the expression when building
23208         the corresponding assignment statement in the init proc.
23209         As a side effect, in the case of a derived record type, we now see the
23210         original expression, without any rewriting that could have occurred
23211         during expansion of the ancestor type's init proc, and we do not need
23212         to go back to Original_Node.
23213
23214         * exp_ch3.ads (Expand_Derived_Record): Rename to
23215         Expand_Record_Extension.
23216
23217         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
23218         Returns the RACW type used to implement a remote access-to-subprogram
23219         type.
23220         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
23221         New subprograms. Used to create a proxy tagged object for a remote
23222         subprogram. The proxy object is used as the designated object
23223         for RAS values on the same partition (unless All_Calls_Remote applies).
23224         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
23225         System.Partition_Interface.Get_Unique_Remote_Pointer.
23226         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
23227         Renamed from Add_RAS_*_Attribute.
23228         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
23229         subprograms.
23230         New implementation of expansion for remote access-to-subprogram types,
23231         based on the RACW infrastructure.
23232
23233         * exp_dist.ads (Copy_Specification): Update comment to note that this
23234         function can copy the specification from either a subprogram
23235         specification or an access-to-subprogram type definition.
23236
23237 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
23238
23239         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
23240         in an instance, between an explicit subprogram an one inherited from a
23241         type derived from an actual.
23242
23243         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
23244         add a polling call if the subprogram is to be inlined by the back-end,
23245         to avoid repeated calls with multiple inlinings.
23246
23247         * checks.adb (Apply_Alignment_Check): If the expression in the address
23248         clause is a call whose name is not a static entity (e.g. a dispatching
23249         call), treat as dynamic.
23250
23251 2004-09-09  Robert Dewar  <dewar@gnat.com>
23252
23253         * g-trasym.ads: Minor reformatting
23254
23255         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
23256         packed arrays, since unused bits are expected to be zero for a
23257         comparison.
23258
23259 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
23260
23261         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
23262         comment.
23263
23264 2004-09-09  Pascal Obry  <obry@gnat.com>
23265
23266         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
23267         enable map file generation. Add the right option to generate the map
23268         file if Map_File is set to True.
23269
23270         * gnatdll.adb (Gen_Map_File): New variable.
23271         (Syntax): Add info about new -m (Map_File) option.
23272         (Parse_Command_Line): Add support for -m option.
23273         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
23274         Minor reformatting.
23275
23276 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
23277
23278         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
23279         new gnatdist implementation.
23280         Define a subpackage isolating the output routines specific to this
23281         verbose mode.
23282
23283 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
23284
23285         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
23286
23287         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
23288
23289 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
23290
23291         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
23292         internal unit.
23293
23294         * opt.ads: Add Ada_Version_Runtime constant used to decide which
23295         version of the language is used to compile the run time.
23296
23297 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
23298
23299         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
23300         of variable length temporaries for function return now that the
23301         back-end and gigi support it.
23302
23303 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23304
23305         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
23306
23307         * trans.c (struct stmt_group): Delete field GLOBAL.
23308         (gnat_init_stmt_group): Do not initialize it.
23309         (call_to_gnu): Use save_expr, not protect_multiple_eval.
23310         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
23311         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
23312         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
23313         (start_stmt_group): Likewise.
23314         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
23315
23316         * utils2.c (ggc.h): Include.
23317         (build_call_raise): Call build_int_cst, not build_int_2.
23318
23319         * utils.c (gnat_init_decl_processing): Fix arg to
23320         build_common_tree_nodes.
23321         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
23322         (gnat_define_builtin): Set built_in_decls.
23323         (init_gigi_decls): Call build_int_cst, not build_int_2.
23324
23325         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
23326         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
23327         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
23328         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
23329         SET_TYPE_MODULE): Use them.
23330         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
23331         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
23332         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
23333         SET_TYPE_ADA_SIZE): Likewise.
23334         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
23335         (DECL_CONST_CORRESPONDING_VAR,
23336         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
23337         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
23338         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
23339         (TYPE_RM_SIZE_NUM): New macro.
23340         (TYPE_RM_SIZE): Modified to use above.
23341
23342         * cuintp.c: (build_cst_from_int): New function.
23343         (UI_To_gnu): Use it.
23344
23345         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
23346         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
23347         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
23348         MIN_EXPR for the size, copy it into new.
23349
23350 2004-09-01  Robert Dewar  <dewar@gnat.com>
23351
23352         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
23353         packed indexed component where array is an IN OUT formal. This
23354         generated garbage code previously.
23355
23356         * gnat_ugn.texi: Document -fverbose-asm
23357
23358         * gnat-style.texi: Minor updates (note that boolean constants and
23359         variables are joined with AND/OR rather than short circuit forms).
23360
23361 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
23362
23363         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
23364         it is an upward conversion of an untagged type with no representation
23365         change.
23366
23367 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
23368
23369         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
23370         System.Partition_Interface.
23371
23372         * checks.adb (Apply_Access_Checks): Do not generate checks when
23373         expander is not active (but check for unset reference to prefix of
23374         dereference).
23375
23376         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
23377         pragma Debug as an if statement with a constant condition, for
23378         consistent treatment of entity references contained within the
23379         enclosed procedure call.
23380
23381 2004-09-01  Vincent Celier  <celier@gnat.com>
23382
23383         * bindgen.adb: (Set_EA_Last): New procedure
23384         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
23385         Set_EA_Last.
23386         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
23387         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
23388         linked without errors.
23389         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
23390         ST and EA.
23391         (Gen_Exception_Table_C): Correct same bugs
23392
23393         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
23394
23395         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
23396         on Windows, make sure that the drive letter is in upper case.
23397
23398         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
23399         Windows, when the drive letter is added and Case_Sensitive is True, the
23400         drive letter is forced to upper case.
23401
23402         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
23403         to Options_2 for the call to MLib.Utl.Gcc.
23404
23405         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
23406         directory separator when defining BASE_DIR.
23407
23408 2004-09-01  Pascal Obry  <obry@gnat.com>
23409
23410         * gprcmd.adb (Extend): Do not output trailing directory separator. This
23411         is not needed and it confuses Windows GNU/make which does not report
23412         directory terminated by a slash as a directory.
23413         (gprcmd): Idem for "pwd" internal command.
23414
23415         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
23416         target names rewrite to fix regressions with recent version of
23417         GNU/make. Starting with GNU/make 3.80 the pipe character was not
23418         handled properly anymore.
23419
23420 2004-09-01  Andreas Schwab  <schwab@suse.de>
23421
23422         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
23423         * raise.c [!IN_RTS]: Undef abort.
23424
23425 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
23426
23427         * utils2.c (build_allocator): Use ssize_int.
23428
23429         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
23430
23431 2004-08-27  Andreas Schwab  <schwab@suse.de>
23432
23433         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
23434
23435 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
23436             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23437
23438         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
23439
23440 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
23441
23442         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
23443         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
23444         * utils.c (init_gigi_decls): Likewise.
23445         * utils2.c (build_call_raise, build_allocator): Likewise.
23446
23447 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
23448
23449         * utils.c (gnat_init_decl_processing): Adjust
23450         build_common_tree_nodes call.
23451
23452 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
23453
23454         * utils2.c (build_allocator): Use build_int_cst for negative
23455         size types.
23456
23457 2004-08-18  Richard Henderson  <rth@redhat.com>
23458
23459         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
23460
23461 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
23462
23463         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
23464         call.s
23465         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
23466         (gnat_to_gnu): Likewise.
23467
23468 2004-08-16  Pascal Obry  <obry@gnat.com>
23469
23470         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
23471         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
23472         option and not mdll anymore. Update comment.
23473
23474 2004-08-16  Pascal Obry  <obry@gnat.com>
23475
23476         * bld.adb (Put_Include_Project): Properly handle directory separators
23477         on Windows.
23478
23479 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
23480
23481         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
23482         decreasing the number of allocated junk nodes while searching for the
23483         appropriate subprogram.
23484
23485 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
23486
23487         * cuintp.c (UI_To_gnu): Use build_int_cst..
23488         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
23489         * utils.c (init_gigi_decls): Likewise.
23490         * utils2.c (build_call_raise): Likewise.
23491
23492 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
23493
23494         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
23495         for a global aliased object with a variable size and an unconstrained
23496         nominal subtype, pretend there is no initializer if the one we have is
23497         incomplete, and avoid referencing an inexistant component in there. The
23498         part we have will be rebuilt anyway and the reference may confuse
23499         further operations.
23500
23501 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
23502
23503         * einfo.ads: Minor reformatting
23504
23505         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
23506         restrictions in the ALI if we only want to warn about violations.
23507
23508 2004-08-13  Vincent Celier  <celier@gnat.com>
23509
23510         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
23511         when creating a new Unit_Record in table Units.
23512
23513         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
23514         that are violated, if any.
23515
23516         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
23517         add directory separator if path already ends with a directory separator.
23518
23519 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
23520
23521         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
23522         unit, this is an attempt to inline a construct that is not available in
23523         the current restricted mode, so abort rather than trying to continue.
23524
23525         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
23526         discriminants that rename those of the parent, recover names of
23527         original discriminants for the constraint on the full view of the
23528         parent.
23529         (Complete_Private_Subtype): Do not create a subtype declaration if the
23530         subtype is an itype.
23531
23532         * gnat_rm.texi: Added section on implementation of discriminated
23533         records with default values for discriminants.
23534
23535 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
23536
23537         PR ada/15601
23538         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
23539         the second operand is overloaded.
23540
23541 2004-08-10  Richard Henderson  <rth@redhat.com>
23542
23543         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
23544         add __builtin_alloca.
23545
23546 2004-08-10  Richard Henderson  <rth@redhat.com>
23547
23548         * config-lang.in (boot_language): Yes.
23549
23550 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
23551
23552         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
23553         from complaining on potential uninitialized reference.
23554         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
23555         new specification and test explicitly for non-zero return value.
23556
23557         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
23558         returning C.int, to avoid using a derived boolean type.
23559
23560         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
23561         Duplicate_Subexpr_No_Checks in preference to direct use of
23562         Remove_Side_Effects and New_Copy_Tree.
23563         Clear Comes_From_Source on prefix of 'Size attribute reference.
23564
23565         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
23566         g-socthi-vxworks.adb: Change calls to
23567         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
23568         and test explicitly for non-zero return value.
23569
23570         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
23571         (Is_Socket_In_Set): Declare imported function as returning C.int, to
23572         avoid using a derived boolean type.
23573
23574 2004-08-09  Albert Lee  <lee@gnat.com>
23575
23576         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
23577
23578 2004-08-09  Pascal Obry  <obry@gnat.com>
23579
23580         * gnat_ugn.texi: Document new way to build DLLs on Windows using
23581         GCC's -shared option.
23582
23583         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
23584         Options_2 parameter (options put after object files).
23585
23586 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
23587
23588         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
23589         ignore overflows on low and high bounds of an index to also account for
23590         differences in signedness between sizetype and gnu_index_subtype.
23591         These are as legitimate as the ones caused by a lower TYPE_PRECISION
23592         on sizetype.
23593
23594 2004-08-09  Robert Dewar  <dewar@gnat.com>
23595
23596         * s-solita.ads, s-solita.adb: Minor reformatting
23597
23598         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
23599         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
23600         obsolescent section
23601         Add note that No_Implicit_Conditionals does not suppress
23602         run time constraint checks.
23603
23604         * vms_conv.ads: Minor reformatting
23605
23606         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
23607         and necessary for following change).
23608         (Mark): Return new format Mark_Id containing sec stack address
23609         (Release): Use sec stack address from Mark_Id avoiding Self call
23610
23611         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
23612         pointer (cleanup and necessary for following change).
23613         Define Mark_Id as record containing address of secondary stack, that way
23614         Release does not need to find the stack again, decreasing the number of
23615         calls to Self and improving efficiency.
23616
23617         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
23618
23619         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
23620         case variable into the individual case branches when possible.
23621
23622         * sem_ch11.adb: Minor reformatting
23623
23624         * prj.ads: Correct spelling of suffixs
23625
23626         * prj-nmsc.adb: Minor reformatting
23627         Correct spelling suffixs throughout (also in identifiers)
23628
23629         * freeze.adb: Minor spelling correction
23630
23631         * exp_ch2.adb: Cleanups to handling of Current_Value
23632         (no functional effect).
23633
23634         * bld.adb: Correct spelling of suffixs
23635
23636         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
23637
23638 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
23639
23640         PR ada/15408
23641         * sem_ch7.adb (Install_Private_Declarations): In the body of the
23642         package or of a child, private entities are both immediately_visible
23643         and not hidden.
23644
23645 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
23646
23647         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
23648         there are no range checks on the value of the literal.
23649
23650         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
23651         wrapped is the triggering alternative of an asynchronous select, action
23652         statements mustbe inserted before the select itself.
23653
23654         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
23655         case where the prefix is a protected function call.
23656         (Resolve_Attribute, case 'Access): The attribute reference on a
23657         subprogram is legal in a generic body if the subprogram is declared
23658         elsewhere.
23659
23660 2004-08-09  Vincent Celier  <celier@gnat.com>
23661
23662         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
23663         languages, otherwise building the library may fail with unresolved
23664         symbols.
23665         (Compile_Sources): Do not build libraries if -c switch is used
23666
23667         * gnatlink.adb (Process_Args): New switches -M and -Mmap
23668         (Write_Usage): If map file creation is supported, output new switches
23669         -M and -Mmap.
23670         (Gnatlink): When -M is specified, add the necessary switch(es) to the
23671         gcc call, when supported.
23672
23673         * Makefile.in: Added indepsw.o to the object list for gnatlink
23674         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
23675
23676         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
23677         indepsw.adb, indepsw.ads: New files.
23678
23679 2004-08-09  Bernard Banner  <banner@gnat.com>
23680
23681         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
23682
23683         * Makefile.in: add section for vxworks x86
23684
23685 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
23686
23687         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
23688         per-object constrained components where the discriminant is of an
23689         Access type.
23690         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
23691         the parent initialization procedure for derived Unchecked_Unions.
23692         Instead, derived Unchecked_Unions build their own initialization
23693         procedure.
23694         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
23695         Check the body of the subprogram for details.
23696         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
23697         functions for derived Unchecked_Union types by introducing a condition.
23698         Allow the creation of TSS equality functions for Unchecked_Unions.
23699         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
23700         Add formal parameter Discr to function signature. Discr is used to
23701         control the generated case statement for Unchecked_Union types.
23702         (Make_Eq_If): Rename formal parameter Node to E in function signature.
23703
23704         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
23705         Unchecked_Unions.
23706         Check the body of the subprogram for details.
23707         (Expand_Composite_Equality): Augment composite type equality to include
23708         correct handling of Unchecked_Union components.
23709         (Expand_N_In): Add condition to detect illegal membership tests when the
23710         subtype mark is a constrained Unchecked_Union and the expression lacks
23711         inferable discriminants, and build a Raise_Program_Error node.
23712         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
23713         to detect types that contain components of unconstrained Unchecked_Union
23714         subtype. Add condition to detect equality between types that have an
23715         unconstrained Unchecked_Union component, and build a Raise_Program_Error
23716         node. Add condition to detect equality between Unchecked_Union types
23717         that lack inferable discriminants, and build a Raise_Program_Error node.
23718         Otherwise build a TSS equality function call.
23719         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
23720         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
23721         with the operand lacking inferable discriminants, and build a Raise_
23722         Program_Error node.
23723         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
23724         composite equality.
23725         (Has_Inferable_Discriminants): Implement new predicate for objects and
23726         expressions of Unchecked_Union type. Check the body of subprogram for
23727         details.
23728         (Has_Unconstrained_UU_Components): Add function
23729         Component_Is_Unconstrained_UU. It is used to detect whether a single
23730         component is of an unconstrained Unchecked_Union subtype. Add function
23731         Variant_Is_Unconstrained_UU. It is used to detect whether a single
23732         component inside a variant is of an unconstrained Unchecked_Union type.
23733
23734         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
23735         inferred discriminant values. Add condition to generate a case
23736         statement with an inferred discriminant as the switch.
23737         (Make_Component_List_Assign): Introduce a Boolean flag that determines
23738         the behaviour of the subprogram in the presence of an Unchecked_Union.
23739         Add condition to trigger the usage of the inferred discriminant value
23740         as the generated case statement switch.
23741         (Make_Field_Assign): Introduce a Boolean flag that determines the
23742         behaviour of the subprogram in the presence of an Unchecked_Union. Add
23743         condition to trigger the usage of the inferred discriminant value as
23744         the right-hand side of the generated assignment.
23745
23746         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
23747         parameter generation when dealing with Unchecked_Unions.
23748
23749         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
23750         checks for Unchecked_Unions.
23751
23752         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
23753
23754         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
23755         Raise_Program_Error nodes for the execution of Read and Write
23756         attributes of Unchecked_Union types and the execution of Input and
23757         Output attributes of Unchecked_Union types that lack default
23758         discriminant values.
23759
23760         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
23761         Unchecked_Union. Add procedure Check_Component. It is used to inspect
23762         per-object constrained components of Unchecked_Unions for being
23763         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
23764         check individual components withing a variant.
23765
23766         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
23767         comparison of Unchecked_Unions.
23768         (Resolve_Equality_OP): Remove guard that prevents equality between
23769         Unchecked_Unions.
23770
23771         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
23772         of component subtypes for Unchecked_Union components.
23773         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
23774         since it is the actual subtype.
23775
23776         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
23777         pass of Unchecked_Union subtypes as generic actuals to formal types
23778         that lack known_discriminant_parts or that are derived Unchecked_Union
23779         types, and do nothing. In any other case, produce an error message.
23780
23781         * sem_ch3.adb (Analyze_Component_Declaration): Add function
23782         Contains_POC. It determines whether a constraint uses the discriminant
23783         of an enclosing record type.
23784         Add condition to detect per-object constrained component and set the
23785         appropriate flag.
23786         (Derived_Type_Declaration): Remove guard that prevents derivation from
23787         Unchecked_Union types.
23788         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
23789         Union subtypes.
23790
23791         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
23792         references to Unchecked_Union discriminants.
23793
23794         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
23795         formal generation when dealing with Unchecked_Unions.
23796         (Set_Actual_Subtypes): Add condition to prevent generation of actual
23797         subtypes for Unchecked_Unions.
23798
23799         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
23800         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
23801         completions of discriminated partial views by Unchecked_Unions and
23802         produce an error message.
23803
23804 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23805
23806         * trans.c (struct stmt_group): New field, GLOBAL.
23807         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
23808         (struct elab_info): New struct.
23809         (elab_info_list, gnu_elab_proc_stack): New variables.
23810         (Compilation_Unit_to_gnu): New procedure.
23811         (gigi): Call it and also handle elaboration procs we've saved.
23812         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
23813         global field from parent.
23814         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
23815         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
23816         (start_stmt_group): Initialize global field from parent.
23817         (add_decl_expr): Set to global for current statement group.
23818         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
23819         post.
23820
23821         * utils.c (global_bindings_p): True when no current_function_decl; no
23822         longer check current_binding_level.
23823
23824 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
23825
23826         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
23827         choice.
23828
23829         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
23830
23831 2004-08-06  Andreas Schwab  <schwab@suse.de>
23832
23833         * utils.c (gnat_define_builtin): Remove second parameter of
23834         make_decl_rtl.
23835         (begin_subprog_body): Likewise.
23836
23837 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
23838
23839         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
23840         optimization, not supported by the tree-ssa back-end.
23841
23842 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
23843
23844         * s-mastop-irix.adb: Update comments.
23845
23846         * a-except.adb (Exception_Information): Raise Constraint_Error if
23847         exception Id is Null_Id.
23848         This is required behavior, which is more reliably and clearly checked
23849         at the top level interface level.
23850
23851 2004-07-26  Javier Miranda  <miranda@gnat.com>
23852
23853         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
23854         call if a component has no default_expression and the box is used.
23855
23856         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
23857         default_expression and you use box, it behaves as if you had declared a
23858         stand-alone object.
23859         (Resolve_Record_Aggregate): If a component has no default_expression and
23860         you use box, it behaves as if you had declared a stand-alone object.
23861
23862         * sem_ch10.adb (Install_Siblings): Do not make visible the private
23863         entities of private-with siblings.
23864
23865 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
23866
23867         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
23868         for a component of an itype, set the parent pointer for analysis,
23869         there is no list in which to insert it.
23870
23871         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
23872         bona-fide renamings, not for inherited operations.
23873
23874         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
23875         actual for a formal that is an access parameter, create local
23876         finalization list even if the expression is not an aggregate.
23877
23878 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
23879
23880         PR ada/16213
23881         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
23882         Diagnose properly illegal subprogram renamings that are library units.
23883
23884 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
23885
23886         PR ada/15588
23887         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
23888         conversion rewritten as an unchecked conversion, check that original
23889         expression is a variable.
23890
23891         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
23892         unchecked_conversion, create new node rather than rewriting in place,
23893         to preserve original construct.
23894
23895 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23896
23897         * gigi.h (gnat_expand_body): Deleted.
23898
23899         * Make-lang.in: (trans.o): Depends on function.h.
23900
23901         * misc.c: (gnat_expand_body): Moved to here.
23902
23903         * trans.c (gnat_expand_body_1): Deleted.
23904         (gnat_expand_body): Moved from here.
23905         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
23906         (add_stmt): Check for marked visited with global_bindings_p.
23907         (gnat_gimplify_expr, case COMPONENT_REF): New case.
23908         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
23909
23910         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
23911         VIEW_CONVERT_EXPR if not operation type.
23912
23913         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
23914         fat pointer.
23915
23916         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
23917         changes: reformatting of negation operators, removing unneeded
23918         inequality comparison with zero, converting equality comparisons with
23919         zero to negations, changing int/0/1 to bool/false/true, replace calls
23920         to gigi_abort with abort, and various other similar changes.
23921
23922 2004-07-26  Vincent Celier  <celier@gnat.com>
23923
23924         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
23925         "setup".
23926
23927         * make.adb (Gnatmake): Fail when a library is not present and there is
23928         no object directory.
23929
23930         * mlib-prj.adb (Check_Library): No need to check if the library needs
23931         to be rebuilt if there is no object directory, hence no object files
23932         to build the library.
23933
23934         * opt.ads (Setup_Projects): New Boolean flag.
23935
23936         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
23937         Location.
23938         Create directory when Kind /= "" and in "gnat setup". Report error if
23939         directory cannot be created.
23940         (Ada_Check): Create library interface copy dir if it does not exist
23941         and we are in "gnat setup".
23942         (Find_Sources): No error if in "gnat setup" and no Ada sources were
23943         found.
23944         (Language_Independent_Check): Create object directory, exec directory
23945         and/or library directory if they do not exist and we are in
23946         "gnat setup".
23947
23948         * vms_conv.ads: (Command_Type): New command Setup.
23949
23950         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
23951
23952         * vms_data.ads: Add qualifiers/switches for new built-in command
23953         "setup".
23954
23955 2004-07-25  Richard Henderson  <rth@redhat.com>
23956
23957         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
23958         DECL_IGNORED_P on RESULT_DECL.
23959
23960 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
23961
23962         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
23963         allocation and potentially overflowing update with
23964         Tailored_Exception_Information. Use the sec-stack free procedural
23965         interface to output Exception_Information instead.
23966
23967         * a-except.adb (To_Stderr): New subprogram for character, and string
23968         version moved from a-exextr to be visible from other separate units.
23969         (Tailored_Exception_Information): Remove the procedural version,
23970         previously used by the default Last_Chance_Handler and not any more.
23971         Adjust various comments.
23972
23973         * a-exexda.adb: Generalize the exception information procedural
23974         interface, to minimize the use of secondary stack and the need for
23975         local buffers when the info is to be output to stderr:
23976         (Address_Image): Removed.
23977         (Append_Info_Character): New subprogram, checking for overflows and
23978         outputing to stderr if buffer to fill is of length 0.
23979         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
23980         (Append_Info_Address, Append_Info_Exception_Name,
23981         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
23982         Append_Info_Basic_Exception_Traceback,
23983         Append_Info_Exception_Information): New subprograms.
23984         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
23985         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
23986         Exception_Info_Maxlength, Exception_Name_Length,
23987         Exception_Message_Length): New subprograms.
23988         (Exception_Information): Use Append_Info_Exception_Information.
23989         (Tailored_Exception_Information): Use
23990         Append_Info_Basic_Exception_Information.
23991         Export services for the default Last_Chance_Handler.
23992
23993         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
23994         other separate units.
23995
23996 2004-07-20  Vincent Celier  <celier@gnat.com>
23997
23998         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
23999
24000 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
24001
24002         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
24003         emit itype references for the designated types of component types that
24004         are declared outside of the full record declaration, and that may
24005         denote a partial view of that record type.
24006
24007 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
24008
24009         PR ada/15607
24010         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
24011         which is the designated type in an access component declaration, to the
24012         list of incomplete dependents of the parent type, to avoid elaboration
24013         issues with out-of-scope subtypes.
24014         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
24015         full view of the parent.
24016
24017 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
24018
24019         PR ada/15610
24020         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
24021         entities that are hidden, such as references to generic actuals
24022         outside an instance.
24023
24024 2004-07-20  Javier Miranda  <miranda@gnat.com>
24025
24026         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
24027         support to the new notation.
24028         (Analyze_Selected_Component): Add call to Try_Object_Operation.
24029
24030 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
24031
24032         * s-taprob.adb: Adding the elaboration code required for initializing
24033         the tasking soft links that are common to the full and the restricted
24034         run times.
24035
24036         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
24037         restricted run time has been moved to the package
24038         System.Soft_Links.Tasking.
24039
24040         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
24041         restricted run time has been moved to the package
24042         System.Soft_Links.Tasking.
24043
24044         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
24045
24046         * s-solita.ads, s-solita.adb: New files.
24047
24048 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24049
24050         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
24051         Case_Statement_to_gnu): Split off from gnat_to_gnu.
24052         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
24053         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
24054         Exception_Handler_to_gnu_zcx): Likewise.
24055
24056 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
24057
24058         * gigi.h (builtin_function): Declare.
24059
24060 2004-07-15  Robert Dewar  <dewar@gnat.com>
24061
24062         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
24063         reformatting
24064
24065         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
24066         access values as an example of a warning.
24067
24068         * gnat_rm.texi: Document new attribute Has_Access_Values
24069
24070         * gnat-style.texi: Document that box comments belong on nested
24071         subprograms
24072
24073         * sem_util.ads (Has_Access_Values): Improved documentation
24074
24075         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
24076
24077         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
24078         (Process_Interface_Name): Call to this new procedure
24079         (Set_Extended_Import_Export_External_Name): Call to this new procedure
24080
24081         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
24082
24083         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
24084
24085         * einfo.ads: Minor comment typo fixed
24086
24087 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
24088
24089         * snames.adb: Add _atcb.
24090
24091         * snames.ads: Add Name_uATCB.
24092
24093         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
24094         (in the expanded code) when using the restricted run time.
24095
24096         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
24097         a in parameter in order to allow ATCBs to be preallocated (in the
24098         expanded code).
24099
24100         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
24101         order to allow ATCBs to be preallocated. In case of error, the ATCB is
24102         deallocated in System.Tasking.Stages.
24103
24104         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
24105         order to allow ATCBs to be preallocated.
24106
24107         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
24108         here. It was previously done in Initialize_ATCB.
24109
24110         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
24111
24112         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
24113         Restricted run time.
24114
24115         * exp_ch3.adb: When using the Restricted run time, pass the
24116         preallocated Ada_Task_Control_Block when creating a task.
24117
24118 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
24119
24120         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
24121         function call that is itself an actual in an enclosing call, diagnose
24122         problem here rather than assuming that resolution will catch it.
24123
24124         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
24125         the local copy of a generic unit for a formal package, and the generic
24126         is a child unit, install private part of ancestors before compiling
24127         private part of spec.
24128
24129         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
24130         use scope entities rather than tree structures, to handle properly
24131         parent units that are instances rewritten as bodies for inlining
24132         purposes.
24133
24134         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
24135         Remove_Parents): Handle properly a parent unit that is an
24136         instantiation, when the unit has been rewritten as a body for inlining
24137         purposes.
24138
24139         * par.adb (Goto_List): Global variable to collect goto statements in a
24140         given unit, for use in detecting natural loops.
24141
24142         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
24143         use in detecting natural loops.
24144
24145         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
24146         backwards goto's, and rewrite as a infinite loop, to improve locality
24147         of temporaries.
24148
24149         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
24150         subcomponent that includes an indexed reference, to prevent the
24151         generation of copies that would miscompile the desired assignment
24152         statement.
24153         (Build_Task_Image_Decls): Add a numeric suffix to
24154         generated name for string variable, to avoid spurious conflicts with
24155         the name of the type of a single protected object.
24156
24157         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
24158         loop with an explicit exit statement, to avoid generating an
24159         out-of-range value with 'Succ leading to spurious constraint_errors
24160         when compiling with -gnatVo.
24161
24162 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
24163
24164         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
24165         might not be analyzed yet, even if its Etype is already set (case of an
24166         unchecked conversion built using Unchecked_Convert_To, for example).
24167         If the prefix has already been analyzed, this will be a nop anyway.
24168
24169         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
24170         controller type, or an assignment of a record type with controlled
24171         components, copy only user data, and leave the finalization chain
24172         pointers untouched.
24173
24174 2004-07-15  Vincent Celier  <celier@gnat.com>
24175
24176         * make.adb (Collect_Arguments): Improve error message when attempting
24177         to compile a source not part of any project, when -x is not used.
24178
24179         * prj.ads: (Defined_Variable_Kind): New subtype
24180
24181         * prj-attr.adb (Register_New_Package): Two new procedures to register
24182         a package with or without its attributes.
24183         (Register_New_Attribute): Mew procedure to register a new attribute in a
24184         package.
24185         New attribute oriented subprograms: Attribute_Node_Id_Of,
24186         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
24187         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
24188         Next_Attribute.
24189         New package oriented subprograms: Package_Node_Id_Of,
24190         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
24191
24192         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
24193         type.
24194         (Package_Node_Id): Now a private, self initialized type
24195         (Register_New_Package): New procedure to register a package with its
24196         attributes.
24197         New attribute oriented subprograms: Attribute_Node_Id_Of,
24198         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
24199         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
24200         Next_Attribute.
24201         New package oriented subprograms: Package_Node_Id_Of,
24202         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
24203
24204         * prj-dect.adb (Parse_Attribute_Declaration,
24205         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
24206
24207         * prj-makr.adb (Make): Parse existing project file before creating
24208         other files. Fail if there was an error during parsing.
24209
24210         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
24211         new spec of Prj.Attr.
24212
24213         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
24214         to new spec of Prj.Attr.
24215
24216 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24217
24218         * utils2.c: Fix typo in comment.
24219
24220 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24221
24222         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
24223         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
24224
24225 2004-07-14  Andreas Schwab  <schwab@suse.de>
24226
24227         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
24228
24229 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24230
24231         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
24232         object type.
24233         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
24234         TYPE_STUB_DECL.
24235
24236         * misc.c (gnat_types_compatible_p): New function.
24237         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
24238         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
24239
24240         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
24241         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
24242         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
24243         (mark_visited): Don't mark dummy type.
24244         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
24245         parameter, we must remove any LJM building from GNU_NAME.
24246         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
24247         (pos_to_constructor): Use int_const_binop.
24248         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
24249         PARM_DECL.
24250
24251         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
24252         (gnat_pushlevel): Set TREE_USE on BLOCK node.
24253         (gnat_install_builtins): Add __builtin_memset.
24254
24255 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
24256
24257         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
24258         for a renaming, stabilize the initialization expression if we are at a
24259         local level.  At the local level, uses of the renaming may be performed
24260         by a direct dereference of the initializing expression, and we don't
24261         want possible variables there to be evaluated for every use.
24262
24263         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
24264         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
24265         them on the way.  Account for the fact that we may introduce side
24266         effects in the process.
24267
24268 2004-07-13  Richard Henderson  <rth@redhat.com>
24269
24270         * misc.c (default_pass_by_ref): Use pass_by_reference.
24271
24272 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
24273
24274         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
24275         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
24276
24277 2004-07-08  Richard Henderson  <rth@redhat.com>
24278
24279         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
24280         commentary.
24281
24282 2004-07-06  Vincent Celier  <celier@gnat.com>
24283
24284         * vms_conv.ads: Minor reformatting.
24285         Alphabetical order for enumerated values of type Command_Type, to have
24286         the command in alphabetical order for the usage.
24287
24288         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
24289         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
24290
24291         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
24292
24293         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
24294         (Add_Archive_Path): Only add the global archive if there is one.
24295         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
24296         or not any object file to put in the global archive, and don't build
24297         a global archive if there is none.
24298         (X_Switches): New table
24299         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
24300         in the X_Switches table, if any.
24301         (Initialize): Make sure the X_Switches table is empty
24302         (Scan_Arg): Record -X switches in table X_Switches
24303
24304         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
24305
24306         * make.adb: Minor comment fix
24307
24308         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
24309         invoked with directory information, add the directory in front of the
24310         path.
24311
24312         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
24313         invoked with directory information, add the directory in front of the
24314         path.
24315
24316         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
24317         when Keep_Temporary_Files is False.
24318         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
24319         directory information, add the directory in front of the path.
24320         When not on VMS, handle new switch -dn before the command to set
24321         Keep_Temporary_Files to True.
24322         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
24323         everywhere.
24324
24325         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
24326         invoked with directory information, add the directory in front of the
24327         path.
24328
24329 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
24330
24331         * snames.ads, snames.adb (Name_Stub): New name for the distributed
24332         systems annex.
24333
24334         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
24335         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
24336
24337         * g-socket.adb (To_Timeval): Fix incorrect conversion of
24338         Selector_Duration to Timeval for the case of 0.0.
24339
24340         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
24341         documentation from Evolve_And_Then.
24342
24343 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
24344
24345         * s-taprop-tru64.adb, s-taprop-os2.adb,
24346         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
24347
24348 2004-07-06  Robert Dewar  <dewar@gnat.com>
24349
24350         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
24351         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
24352         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
24353         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
24354         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
24355         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
24356         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
24357         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
24358         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
24359         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
24360         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
24361         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
24362         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
24363         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
24364         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
24365         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
24366         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
24367         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
24368         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
24369         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
24370         vms_data.ads: Minor reformatting,
24371         Fix bad box comment format.
24372
24373         * gnat_rm.texi: Fix minor grammatical error
24374
24375         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
24376
24377         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
24378         more cases of discriminated records to be recognized as not needing a
24379         secondary stack.
24380         (Has_Access_Values): New function.
24381
24382         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
24383
24384         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
24385         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
24386         with LRM terminology).
24387         Change terminology in comments primitive type => elementary type.
24388
24389 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
24390
24391         PR ada/15602
24392         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
24393         parameters do not impose any requirements on the presence of a body.
24394
24395 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
24396
24397         PR ada/15593
24398         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
24399         compilation unit and is in an open scope at the point of instantiation,
24400         assume that a body may be present later.
24401
24402 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
24403
24404         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
24405         Improve error message when specified size is not supported.
24406
24407         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
24408         is never a primitive operation.
24409
24410 2004-07-05  Andreas Schwab  <schwab@suse.de>
24411
24412         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
24413         RECORD_OR_UNION_CHECK.
24414         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
24415
24416 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
24417
24418         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
24419         dependency on xgnatugn, instead build it via a submake.
24420         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
24421
24422 2004-07-04  Richard Henderson  <rth@redhat.com>
24423
24424         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
24425
24426 2004-07-01  Richard Henderson  <rth@redhat.com>
24427
24428         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
24429         * utils.c (max_size): Likewise.
24430
24431 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24432
24433         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
24434         and rest_of_type_compilation; add arg to create_*_decl.
24435         (annotate_decl_with_node): Deleted.
24436         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
24437         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
24438         (get_current_block_context, gnat_pushdecl): New declarations.
24439         (gnat_init_stmt_group): Likewise.
24440         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
24441         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
24442         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
24443         (gnat_init): Call gnat_init_stmt_group.
24444         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
24445         (gnu_pending_elaboration_list): Deleted.
24446         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
24447         (gigi): Rearrange initialization calls and move some to last above.
24448         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
24449         Delete calls to add_decl_expr; add arg to create_*_decl.
24450         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
24451         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
24452         begin_subprog_body and call it.
24453         Don't push and pop ggc context.
24454         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
24455         (add_stmt): Remove handling of DECL_EXPR from here.
24456         If not in function, mark visited.
24457         (add_decl_expr): Put global at top level.
24458         Check for cases of DECL_INITIAL we have to handle here.
24459         (process_type): Add extra arg to create_type_decl.
24460         (build_unit_elab): Rework to just gimplify.
24461         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
24462         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
24463         (get_pending_elaborations, pending_elaborations_p): Likewise.
24464         (push_pending_elaborations, pop_pending_elaborations): Likewise.
24465         (get_elaboration_location, insert_elaboration_list): Likewise.
24466         (gnat_binding_level): Renamed from ada_binding_level.
24467         (init_gnat_to_gnu): Don't clear pending_elaborations.
24468         (global_bindings_p): Treat as global if no current_binding_level.
24469         (set_current_block_context): New function.
24470         (gnat_pushdecl): Renamed from pushdecl; major rework.
24471         All callers changed.
24472         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
24473         (finish_record_type): Call call pushdecl for stub decl.
24474         (function_nesting_depth): Deleted.
24475         (begin_subprog_body): Delete obsolete code.
24476         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
24477
24478 2004-06-28  Robert Dewar  <dewar@gnat.com>
24479
24480         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24481         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
24482         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
24483         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
24484         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
24485
24486         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
24487         deal with problem of inefficient slices on machines with strict
24488         alignment, when the slice is a component of a composite.
24489
24490         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
24491         machines, we need the check there as well.
24492
24493 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
24494
24495         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
24496         determine safe copying direction for overlapping slice assignments
24497         when component is controlled.
24498
24499         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
24500         formal derived type in the actual for a formal package are visible in
24501         the enclosing instance.
24502
24503 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
24504
24505         PR ada/15600
24506         * sem_util.adb (Trace_Components): Diagnose properly an illegal
24507         circularity involving a private type whose completion includes a
24508         self-referential component.
24509         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
24510         renaming or an instantiation from an implicit derived operation.
24511
24512 2004-06-28  Pascal Obry  <obry@gnat.com>
24513
24514         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
24515         DLL.
24516         (Library_File_Name_For): Idem.
24517
24518 2004-06-28  Matthew Gingell  <gingell@gnat.com>
24519
24520         * g-traceb.ads: Add explanatory note on the format of addresses
24521         expected by addr2line.
24522
24523 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
24524
24525         * Makefile.in: Force debugging information on s-tasdeb.adb,
24526         a-except.adb and s-assert.adb needed by the debugger.
24527
24528 2004-06-28  Vincent Celier  <celier@gnat.com>
24529
24530         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
24531         Need_To_Build_Lib.
24532         (Gnatmake): Ditto.
24533
24534         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
24535
24536         * prj.adb: Minor reformatting
24537         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
24538
24539         * prj.ads: Comment updates
24540         Minor reformatting
24541         (Project_Data): Change Flag1 to Need_To_Build_Lib.
24542         Remove Flag2: not used.
24543
24544         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
24545         declaration.
24546
24547         * gnat_ugn.texi: Put a "null;" declaration in one project file example
24548
24549         * gnat_rm.texi: Document Empty declarations "null;".
24550
24551         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
24552         front of the linker options.
24553         (Link_Foreign): Put the global archives and the libraries in front of
24554         the linker options.
24555
24556 2004-06-28  Javier Miranda  <miranda@gnat.com>
24557
24558         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
24559         (RTU_Loaded): Code cleanup
24560         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
24561         withed predefined units.
24562
24563         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
24564         explicitly withed predefined units.
24565         Fix typo in comment
24566
24567         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
24568         explicitly withed predefined units.
24569
24570 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24571
24572         * ada-tree.def (DECL_STMT): Deleted.
24573         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
24574         (DECL_STMT_VAR): Deleted.
24575         * decl.c: add_decl_stmt now add_decl_expr.
24576         * gigi.h: Likewise.
24577         * trans.c: Likewise.
24578         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
24579         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
24580         (add_stmt): Only handle padded type here.
24581         (add_stmt_with_node): Allow gnat_node to not be present.
24582         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
24583         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
24584         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
24585         make a SAVE_EXPR for the entire fat pointer.
24586         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
24587         (create_index_type): Make a DECL_EXPR.
24588         (end_subprog_body): Don't call allocate_struct_function here but
24589         do clear cfun.
24590
24591 2004-06-25  Pascal Obry  <obry@gnat.com>
24592
24593         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
24594         Relocatable from Build_Dynamic_Library call.
24595
24596         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
24597         Relocatable are now synonym.
24598
24599         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
24600
24601         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
24602         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
24603         call.
24604
24605         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
24606         Lib_Address and Relocatable.
24607         (Default_DLL_Address): Removed.
24608
24609         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24610         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24611         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
24612         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
24613         (Default_DLL_Address): Removed.
24614
24615         * mlib-tgt-mingw.adb: Ditto.
24616         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
24617
24618         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
24619         the initial thread stack size.
24620
24621         * a-strmap.ads: Move package L to private part as it is not used in
24622         the spec. Found while reading code.
24623
24624 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
24625
24626         * tracebak.c: Introduce support for a GCC infrastructure based
24627         implementation of __gnat_backtrace.
24628
24629         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
24630         any more. Use accessors instead. This eases maintenance and relaxes
24631         some alignment constraints.
24632         (_GNAT_Exception structure): Remove the Ada specific fields
24633         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
24634         a-exexpr.adb.
24635         (is_handled_by, __gnat_eh_personality): Replace component references to
24636         exception structure by use of the new accessors.
24637
24638         * init.c (__gnat_initialize): Adjust comments to match the just
24639         reverted meaning of the -static link-time option.
24640
24641         * adaint.c (convert_addresses): Arrange not to define a stub for
24642         mips-irix any more, as we now want to rely on a real version from a
24643         recent libaddr2line.
24644
24645         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
24646         the personality routine can use them and not have to rely on a C
24647         counterpart of the record anymore. This simplifies maintenance and
24648         relaxes the constraint of having Standard'Maximum_Alignment match
24649         BIGGEST_ALIGNMENT.
24650         Update comments, and add a section on the common header alignment issue.
24651
24652 2004-06-25  Geert Bosch  <bosch@gnat.com>
24653
24654         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
24655         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
24656
24657 2004-06-25  Robert Dewar  <dewar@gnat.com>
24658
24659         * gnat_rm.texi: Fix section on component clauses to indicate that the
24660         restriction on byte boundary placement still applies for bit packed
24661         arrays.
24662         Add comment on stack usage from Initialize_Scalars
24663
24664         * gnat_ugn.texi: Add documentation for -gnatyLnnn
24665
24666         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
24667         limiting nesting level.
24668
24669         * usage.adb: Add line for -gnatyLnnn switch
24670
24671         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
24672         sem_ch13.adb, exp_aggr.adb: Minor reformatting
24673
24674         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
24675         type as well as on the subtype. This corrects a problem in freeze in
24676         setting alignments of atomic types.
24677
24678         * sem_eval.ads: Minor comment typo fixed
24679
24680         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
24681         level.  Minor reformatting.
24682
24683         * fname.adb (Is_Predefined_File_Name): Require a letter after the
24684         minus sign. This means that file names like a--b.adb will not be
24685         considered predefined.
24686
24687         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
24688         record Test new flag and give diagnostic for bad component clause.
24689         (Freeze_Entity): Set alignment of array from component alignment in
24690         cases where this is safe to do.
24691
24692         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
24693         arrays.
24694
24695         * cstand.adb: (Create_Standard): Set alignment of String to 1
24696
24697         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
24698
24699         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
24700         code in the common constrained array cases.
24701
24702         * a-storio.adb: Change implementation to avoid possible alignment
24703         problems on machines requiring strict alignment (data should be moved
24704         as type Buffer, not type Elmt).
24705
24706         * checks.adb (Apply_Array_Size_Check): Improve these checks by
24707         killing the overflow checks which we really do not need (64-bits is
24708         enough).
24709
24710 2004-06-25  Vincent Celier  <celier@gnat.com>
24711
24712         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
24713         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
24714         inconditionally for the main project.
24715         (Recursive_Add_Archives.Add_Archive_Path): New procedure
24716         (Link_Executables.Check_Time_Stamps): New procedure
24717         (Link_Executables.Link_Foreign): New procedure
24718         Changes made to reduce nesting level of this package
24719         (Check): New procedure
24720         (Add_Switches): When not in quiet output, check that a switch is not
24721         the concatenation of several valid switches. If it is, issue a warning.
24722         (Build_Global_Archive): If the global archive is rebuilt, linking need
24723         to be done.
24724         (Compile_Sources): Rebuilding a library archive does not imply
24725         rebuilding the global archive.
24726         (Build_Global_Archive): New procedure
24727         (Build_Library): New name for Build_Archive, now only for library
24728         project
24729         (Check_Archive_Builder): New procedure
24730         (Create_Global_Archive_Dependency_File): New procedure
24731         (Gprmake): Call Build_Global_Archive before linking
24732         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
24733         throughout.
24734         (Scan_Arg): Display the Copyright notice when -v is used
24735
24736         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
24737         for gnatls.
24738
24739         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
24740         COMPILE.
24741         Add new GNAT LIST qualifier /FILES=
24742         Added qualifier /DIRECTORY= to GNAT METRIC
24743         Added qualifier /FILES= to GNAT METRIC
24744         Added qualifier /FILES to GNAT PRETTY
24745
24746         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
24747         to take into account both versions of the switch.
24748
24749         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
24750         always be the last switch to the gcc driver. Disable switch storing so
24751         that switches automatically added by the gcc driver are not put in the
24752         ALI file.
24753
24754         * prj.adb (Project_Empty): Take into account changes in components of
24755         Project_Data.
24756
24757         * prj.ads (Languages_Processed): New enumaration value All_Languages.
24758
24759         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
24760         used. Split Boolean component Ada_Sources_Present in two Boolean
24761         components Ada_Sources_Present and Other_Sources_Present.
24762         Minor reformatting
24763
24764         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
24765         instead of Sources_Present.
24766         (Set_Ada_Paths.Add.Recursive_Add): Ditto
24767
24768         * prj-nmsc.adb: Minor reformatting
24769         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
24770         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
24771         Check_Ada_Naming_Scheme.
24772         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
24773         throughout.
24774
24775         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
24776         In_Limited.
24777         Make sure that all cycles where there is at least one "limited with"
24778         are detected.
24779         (Parse_Single_Project): New Boolean parameter In_Limited
24780
24781         * prj-proc.adb (Recursive_Check): When Process_Languages is
24782         All_Languages, call first Prj.Nmsc.Ada_Check, then
24783         Prj.Nmsc.Other_Languages_Check.
24784
24785         * prj-proc.adb (Process): Use Ada_Sources_Present or
24786         Other_Sources_Present (instead of Sources_Present) depending on
24787         Process_Languages.
24788
24789         * lang-specs.h: Keep -g and -m switches in the same order, and as the
24790         last switches.
24791
24792         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
24793         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
24794         False.
24795         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
24796         False.
24797
24798         * lib.ads (Disable_Switch_Storing): New procedure.
24799
24800         * make.adb: Modifications to reduce nesting level of this package.
24801         (Check_Standard_Library): New procedure
24802         (Gnatmake.Check_Mains): New procedure
24803         (Gnatmake.Create_Binder_Mapping_File): New procedure
24804         (Compile_Sources.Compile): Add switch -gnatez as the last option
24805         (Display): Never display -gnatez
24806
24807         * Makefile.generic:
24808         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
24809
24810         * gnatcmd.adb (Check_Project): New function
24811         (Process_Link): New procedure to reduce nesting depth
24812         (Check_Files): New procedure to reduce the nesting depth.
24813         For GNAT METRIC, include the inherited sources in extending projects.
24814         (GNATCmd): When GNAT LS is invoked with a project file and no files,
24815         add the list of files from the sources of the project file. If this list
24816         is too long, put it in a temp text files and use switch -files=
24817         (Delete_Temp_Config_Files): Delete the temp text file that contains
24818         a list of source for gnatpp or gnatmetric, if one has been created.
24819         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
24820         in the project file is too large, create a temporary text file that
24821         list them and pass it to the tool with "-files=<temp text file>".
24822         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
24823
24824         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
24825         generated file is in not in Ada.
24826
24827         * gnatls.adb: Remove all parameters And_Save that are no longer used.
24828         (Scan_Ls_Arg): Add processing for -files=
24829         (Usage): Add line for -files=
24830
24831         * g-os_lib.adb (On_Windows): New global constant Boolean flag
24832         (Normalize_Pathname): When on Windows and the path starts with a
24833         directory separator, make sure that the resulting path will start with
24834         a drive letter.
24835
24836         * clean.adb (Clean_Archive): New procedure
24837         (Clean_Project): When there is non-Ada code, delete the global archive,
24838         the archive dependency files, the object files and their dependency
24839         files, if they exist.
24840         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
24841
24842 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
24843
24844         * sinfo.ads: Fix typo in comment.
24845
24846         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
24847         the TSS for remote access-to-subprogram types, since these TSS are
24848         always present once the type has been analyzed.
24849         (RAS_E_Dereference): Same.
24850
24851         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
24852         reference raises Bad_Attribute, mark the reference as analyzed so the
24853         node (and any children resulting from rewrites that could have occurred
24854         during the analysis that ultimately failed) is not analyzed again.
24855
24856         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
24857
24858         * exp_dist.adb: Minor comment fix.
24859
24860         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
24861         type is an anonymous access type, no unchecked deallocation of the
24862         allocated object can occur. If the object is controlled, attach it with
24863         a count of 1. This allows attachment to the Global_Final_List, if
24864         no other relevant list is available.
24865         (Get_Allocator_Final_List): For an anonymous access type that is
24866         the type of a discriminant or record component, the corresponding
24867         finalisation list is the one of the scope of the type.
24868
24869 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
24870
24871         * sem_ch3.adb (Replace_Type): When computing the signature of an
24872         inherited subprogram, use the first subtype if the derived type
24873         declaration has no constraint.
24874
24875         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
24876         before applying previous optimization. Minor code cleanup.
24877
24878         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
24879         placed at the beginning of an unpacked record without explicit
24880         alignment, a slice of it will be aligned and does not need a copy when
24881         used as an actual.
24882
24883 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
24884
24885         PR ada/15591
24886         PR ada/15592
24887         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
24888         reference is written with expressions mimicking parameters.
24889
24890 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
24891
24892         PR ada/15589
24893         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
24894         STEP 2a. The constraints of a full type declaration of a derived record
24895         type are checked for conformance with those declared in the
24896         corresponding private extension declaration. The message
24897         "not conformant with previous declaration" is emitted if an error is
24898         detected.
24899
24900 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
24901
24902         * g-traceb.ads: Document the need for -E binder switch in the spec.
24903
24904         * g-trasym.ads: Document the need for -E binder switch in the spec.
24905
24906 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
24907
24908         * sem_prag.adb: Add handling of pragma Detect_Blocking.
24909
24910         * snames.h, snames.ads, snames.adb: Add entry for pragma
24911         Detect_Blocking.
24912
24913         * s-rident.ads: Change reference to pragma Detect_Blocking.
24914
24915         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
24916         system.ads.
24917
24918         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
24919         to indicate whether pragma Detect_Blocking is active.
24920
24921         * par-prag.adb: Add entry for pragma Detect_Blocking.
24922
24923         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
24924         of not handling WITH.
24925         Note that this replaces the previous update which was incorrect.
24926
24927 2004-06-25  Javier Miranda  <miranda@gnat.com>
24928
24929         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
24930         use-clauses to have a clean environment.
24931
24932         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
24933         the installation of the use-clauses to stablish a clean environment in
24934         case of compilation of a separate unit; otherwise the call to
24935         use_one_package is protected by the barrier Applicable_Use.
24936
24937         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
24938         the installation of the use-clauses to stablish a clean environment in
24939         case of compilation of a separate unit.
24940         (End_Use_Clauses): Minor comment cleanup.
24941
24942 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
24943
24944         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
24945
24946 2004-06-23  Richard Henderson  <rth@redhat.com>
24947
24948         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
24949
24950 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24951
24952         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
24953         now bool instead of int.
24954         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
24955         * trans.c (gnu_switch_label_stack): New function.
24956         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
24957         elaboration of renamed entity returns.
24958         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
24959         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
24960         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
24961         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
24962         DECL_SIZE_UNIT and simplify variable-sized case.
24963         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
24964         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
24965         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
24966         (build_unit_elab): Disable for now.
24967         * utils.c (mark_visited): New function.
24968         (pushdecl): Walk tree to call it for global decl.
24969         (update_pointer_to): Update all variants of pointer and ref types.
24970         Add arg to COMPONENT_REF.
24971         (convert): Likewise.
24972         Move check for converting between variants lower down.
24973         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
24974         (build_allocator): Don't force type of MODIFY_EXPR.
24975         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
24976         put_var_into_stack.
24977
24978 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24979
24980         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
24981         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
24982         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
24983         subprograms.
24984         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
24985         all callers changed.
24986         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
24987         the way that EXIT_STMT finds the loop label.
24988         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
24989         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
24990         (add_stmt): Use annotate_with_locus insted of setting directly.
24991         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
24992         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
24993         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
24994         (build_vms_descriptor): Add extra args to ARRAY_REF.
24995         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
24996         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
24997         New cases.
24998         (build_binary_op): Don't make explicit CONVERT_EXPR.
24999         Add extra rgs to ARRAY_REF.
25000
25001 2004-06-14  Pascal Obry  <obry@gnat.com>
25002
25003         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
25004         Windows.  Fix minor typo.
25005
25006         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
25007         which is now supported on Windows. With this implementation using the
25008         Library Project feature is no different on Windows than on UNIX.
25009
25010 2004-06-14  Vincent Celier  <celier@gnat.com>
25011
25012         * makegpr.adb (Compile_Sources): Nothing to do when there are no
25013         non-Ada sources.
25014
25015         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
25016
25017         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
25018         found, show the project name and the path of the previously parsed
25019         project file.
25020
25021 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
25022
25023         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
25024         array, avoid copying the actual before the call.
25025
25026 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
25027
25028         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
25029         Instead, allocate memory on worst-case alignment assumptions, and then
25030         return an aligned address within the allocated zone.
25031
25032 2004-06-14  Robert Dewar  <dewar@gnat.com>
25033
25034         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
25035         elab entities in predefined units in No_Run_Time_Mode.
25036         (Gen_Adainit_C): Same fix
25037         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
25038         units in No_Run_Time_Mode
25039         (Gen_Elab_Calls_C): Same fix
25040
25041         * symbols-vms-alpha.adb: Minor reformatting
25042
25043         * g-debpoo.ads: Minor reformatting
25044
25045         * lib.adb (In_Same_Extended_Unit): Version working on node id's
25046
25047         * lib.ads (In_Same_Extended_Unit): Version working on node id's
25048
25049         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
25050         working on nodes.
25051
25052         * make.adb: Minor reformatting
25053
25054         * par-ch12.adb: Minor reformatting
25055
25056         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
25057
25058         * prj-strt.adb: Minor reformatting
25059
25060         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
25061         be more general.
25062
25063         * sem_attr.adb: Minor reformatting
25064
25065         * sem_ch7.adb: Minor reformatting
25066
25067         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
25068         for type in the same unit as the object declaration.
25069
25070         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
25071         static string expressions and not just string literals.
25072         Minor reformatting
25073         (Set_Warning): Reset restriction warning flag for restriction pragma
25074         Implement pragma Profile_Warnings
25075         Implement pragma Profile (Restricted)
25076         Give obolescent messages for old restrictions and pragmas
25077
25078         * snames.h, snames.ads, snames.adb: Add new entry for pragma
25079         Profile_Warnings.
25080
25081         * s-rident.ads: Add declarations for restrictions required by profile
25082         Restricted and profile Ravenscar.
25083
25084         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
25085
25086         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
25087         configuration pragmas.
25088
25089 2004-06-11  Vincent Celier  <celier@gnat.com>
25090
25091         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
25092         gnatsym, when symbol policy is Restricted.
25093
25094         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
25095         gnatsym, when symbol policy is Restricted.
25096
25097         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
25098         read the symbol file.
25099         (Finalize): Fail in symbol policy Restricted if a symbol in the original
25100         symbol file is not in the object files. Do not create a new symbol file
25101         when symbol policy is Restricted.
25102
25103         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
25104         in Scng.
25105
25106         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
25107         Restricted.
25108         (Usage): Line for new switch -R
25109
25110         * make.adb (Initialize): When the platform is not VMS, add the
25111         directory where gnatmake is invoked in the front of the path, if
25112         gnatmake is invoked with directory information.  Change the Scan_Args
25113         while loop to a for loop.
25114         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
25115         if Depth is equal or greater than the proposed depth, there is nothing
25116         to do.
25117         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
25118         instead of 0.
25119
25120         * prj.ads: Add new symbol policy Restricted.
25121
25122         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
25123         with the new parameters Check_All_Labels and Case_Location.
25124
25125         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
25126         (Library_Symbol_File needs to be defined).
25127
25128         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
25129         and Case_Location If Check_All_Labels is True, check that all values of
25130         the string type are used, and output warning(s) if they are not.
25131
25132         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
25133         and Case_Location.
25134
25135         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
25136
25137         * gnat_ugn.texi: Update documentation about the library directory in
25138         Library Projects.
25139
25140         * makegpr.adb (Display_Command): In verbose mode, also display the
25141         value of the CPATH env var, when the compiler is gcc.
25142         (Initialize): Change the Scan_Args while loop to a for loop
25143         (Compile_Individual_Sources): Change directory to object directory
25144         before compilations.
25145
25146         * symbols.ads: New symbol policy Restricted.
25147
25148 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
25149
25150         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
25151         is now taken care of internally in the Exception_Propagation package
25152         and does not require clients assistance any more.
25153
25154         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
25155         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
25156         functions. Helpers to maintain a predicate required in the handling of
25157         occurrence transfer between tasks.
25158         This is now handled internally and does not require clients assistance
25159         for the setup/propagate separation anymore.
25160         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
25161         allocation strategy, handle the Setup_And_Not_Propagated predicate and
25162         document.
25163
25164         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
25165         raise_after_setup, now that everything is handled internally within the
25166         setup/propagation engine.
25167
25168 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
25169
25170         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
25171         Add additional conditions for the case of an actual being a simple
25172         name or literal. Improve inlining by preventing the generation
25173         of temporaries with a short lifetime (one use).
25174
25175 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
25176
25177         PR ada/15587
25178         * einfo.ads: Minor comment updates for Has_Completion and
25179         E_Constant list of flags.
25180
25181         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
25182         and constant redeclarations now set the Has_Completion flag of their
25183         defining identifiers.
25184
25185         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
25186         Inspect_Deferred_Constant_Completion.
25187         Used to detect private deferred constants that have not been completed
25188         either by a constant redeclaration or pragma Import. Emits error message
25189         "constant declaration requires initialization expression".
25190
25191         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
25192         completes a deferred constant.
25193
25194 2004-06-11  Geert Bosch  <bosch@gnat.com>
25195
25196         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
25197
25198         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
25199         calculating exponent for scaling denormal numbers.
25200         (Leading_Part): Properly raise Constraint_Error for zero or negative
25201         Adjustment.
25202         (Remainder): Properly raise Constraint_Error for zero divisor.
25203
25204 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
25205
25206         * sem_util.adb: Minor reformatting.
25207
25208         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
25209         dereference when accessing the entry parameter record.
25210         (Check_Array_Type): Always check for possible implicit dereference.
25211         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
25212         Abort if a pointer is still present (denoting that an implicit
25213         dereference was left in the tree by the front-end).
25214
25215         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
25216         dereference when accessing the entry parameter record.
25217         (Check_Array_Type): Always check for possible implicit dereference.
25218         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
25219         Abort if a pointer is still present (denoting that an implicit
25220         dereference was left in the tree by the front-end).
25221
25222 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
25223
25224         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
25225         message, like the compiler itself does. Easier to parse the output.
25226
25227         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
25228
25229         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
25230         be base names, and not includes directories.
25231
25232 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
25233
25234         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
25235         so that dependencies are properly taken into account by make.
25236
25237 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
25238
25239         PR ada/15622
25240         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
25241         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
25242
25243 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
25244
25245         * Makefile.in (install-gnatlib): install target-specific run-time files.
25246
25247         * Make-lang.in: Remove obsolete targets.
25248
25249 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
25250
25251         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
25252         specification, to catch misuses of program unit names.
25253
25254         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
25255         superfluous conversions in an instance.
25256
25257 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
25258
25259         PR ada/15403
25260         * sem_ch12.adb (Save_References): If operator node has been folded to
25261         enumeration literal, associated_node must be discarded.
25262
25263 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
25264
25265         * s-stchop-vxworks.adb: Add required pragma Convention to
25266         Task_Descriptor because it is updated by a C function.
25267
25268 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
25269
25270         PR ada/15568
25271         * Makefile.in: Remove target specific SO_OPT on IRIX
25272
25273 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25274
25275         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
25276         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
25277         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
25278         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
25279         (STMT_STMT, USE_STMT): New statement codes.
25280         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
25281         * ada-tree.h: Reflect above changes.
25282         (struct tree_loop_id): Deleted.
25283         (union lang_tree_node, struct lang_decl, struct lang_type):
25284         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
25285         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
25286         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
25287         (IS_ADA_STMT): New macro.
25288         * decl.c (annotate_decl_with_node): New function.
25289         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
25290         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
25291         Call add_stmt_with_node to do needed assignments.
25292         Add call to update setjmp buffer directly, not via EXPR_STMT.
25293         (maybe_variable): Argment GNAT_NODE deleted.
25294         * gigi.h (maybe_variable): Likewise.
25295         (make_transform, add_stmt_with_node, set_block_for_group): New.
25296         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
25297         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
25298         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
25299         (set_lineno, set_lineno_from_sloc): Likewise.
25300         (record_code_position, insert_code_for): Likewise.
25301         (gnat_poplevel): Now returns void.
25302         (end_subprog_body): Now takes argument.
25303         * misc.c (cgraph.h, tree-inline.h): New includes.
25304         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
25305         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
25306         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
25307         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
25308         (gnat_parse_file): Don't set immediate_size_expand.
25309         Call cgraph functions.
25310         (gnat_expand_expr): Remove most cases.
25311         (record_code_position, insert_code_for): Remove from here.
25312         * trans.c (toplev.h, tree-gimple.h): Now included.
25313         (discard_file_names): Deleted.
25314         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
25315         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
25316         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
25317         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
25318         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
25319         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
25320         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
25321         (set_block_for_group, add_stmt_list): Likewise.
25322         (start_stmt_group): Renamed from start_block_stmt.
25323         (end_stmt_group): Likewise, from end_block_stmt.
25324         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
25325         (gigi): Don't set discard_file_names or call set_lineno.
25326         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
25327         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
25328         Numerous changes throughout to reflect new names and complete
25329         function-at-a-time implementation.
25330         (gnat_expand_stmt): Delete or comment out all cases.
25331         (process_inlined_subprograms): Use add_stmt.
25332         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
25333         call set_lineno; also remove unneeded block handling.
25334         (process_type): Remove unneeded block handling.
25335         (build_unit_elab): Remove calls to deleted functions.
25336         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
25337         (tree-dump.h): Likewise.
25338         (struct ada_binding_level): Add field jmpbuf_decl.
25339         (gnat_define_builtin, gnat_install_builtins): New.
25340         (gnat_gimplify_function, gnat_finalize): Likewise.
25341         (gnat_poplevel): No longer return BLOCK, set it instead.
25342         Remove code dealing with nested functions.
25343         (gnat_init_decl_processing): Also set size_type_node.
25344         Call gnat_install_builtins.
25345         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
25346         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
25347         Remove special-case for "main".
25348         (end_subprog_body): Add arg and rework for tree-ssa.
25349         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
25350         Add case for BOOLEAN_TYPE.
25351         * utils2.c (rtl.h): Now include.
25352         (build_call_raise): Test Debug_Flag_NN directly.
25353         (build_call_alloc_dealloc): Don't use local stack allocation for now.
25354         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
25355         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
25356
25357 2004-06-07  Robert Dewar  <dewar@gnat.com>
25358
25359         * a-direct.ads, einfo.ads: Minor comment updates
25360
25361         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
25362         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
25363         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
25364         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
25365         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
25366
25367         * s-interr-sigaction.adb: Remove unreferenced variable
25368         (Attached_Interrupts).  Minor reformatting.
25369         Avoid use of variable I (replace by J).
25370
25371         * par-ch10.adb: Fix text of one error message
25372
25373         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
25374         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
25375         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
25376         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
25377         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
25378         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
25379         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
25380         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
25381         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
25382         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
25383         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
25384         2005 support.
25385
25386 2004-06-07  Doug Rupp  <rupp@gnat.com>
25387
25388         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
25389
25390         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
25391
25392         * mlib-tgt-vms-ia64.adb: New file.
25393
25394         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
25395         Add mlib-tgt-vms-ia64.adb
25396         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
25397         Move to alpha specific ifeq section.
25398         Add VMS specific versions of symbols.adb
25399         Renaming of 5q vms files.
25400
25401         * 5qsystem.ads renamed to system-vms_64.ads.
25402
25403 2004-06-07  Vincent Celier  <celier@gnat.com>
25404
25405         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
25406         explain that when a time of day corresponding to the non existing hour
25407         on the day switching to DST is specified, Split may return a different
25408         value for Seconds.
25409
25410         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
25411         to GNAT PRETTY.
25412
25413         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
25414         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
25415
25416         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
25417         to False.
25418         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
25419         the linking options.
25420         (Build_Library.Check_Libs): On VMS, if there is a dependency on
25421         g-trasym.ads, set Gtrasymobj_Needed to True.
25422
25423         * prj-attr.adb: Add new package Metrics for gnatmetric
25424
25425         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
25426         canonical case to take into account files with upper case characters on
25427         Windows.
25428         (Ada_Check): Load the reference symbol file name in the name buffer to
25429         check it, not the symbol file name.
25430
25431         * snames.ads, snames.adb: Add standard name Metrics (name of project
25432         file package for gnatmetric).
25433
25434         * vms_conv.ads: Add Metric to Comment_Type
25435
25436         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
25437
25438         * vms_data.ads: Add qualifiers for GNAT METRIC
25439
25440         * makegpr.adb (Link_Executables): Take into account the switches
25441         specified in package Linker of the main project.
25442
25443 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
25444
25445         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
25446         the index of the last element is Units.Last, not Units.Table'Last
25447         (which is usually not a valid index within the actually allocated
25448         storage for the table).
25449
25450         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
25451         determines whether to generate a call to a checked storage pool
25452         Dereference action.
25453         Generate such a call only for a dereference that either comes from
25454         source, or is the result of rewriting a dereference that comes from
25455         source.
25456
25457 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
25458
25459         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
25460
25461 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
25462
25463         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
25464         file level, elaborate the stride for inner dimensions in alignment
25465         units, not bytes.
25466
25467         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
25468         in a comment.
25469
25470 2004-06-07  Javier Miranda  <miranda@gnat.com>
25471
25472         * exp_ch6.adb: Correct wrong modification in previous patch
25473
25474 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
25475
25476         * g-trasym.ads: Corrected comment to properly reflect level of support
25477         on VMS.
25478
25479 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
25480
25481         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
25482         includes case of a variable referenced on the left hand side of an
25483         assignment, therefore remove redundant code. Variables and prefixes of
25484         indexed or selected components are now marked as referenced on left
25485         hand side. Warnings are now properly emitted when variables or prefixes
25486         are assigned but not read.
25487
25488         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
25489         left hand side referenced variables. Private access types do not
25490         produce the warning "variable ... is assigned but never read".
25491         Add also additional checks to left hand side referenced variables.
25492         Aliased, renamed objects and access types do not produce the warning
25493         "variable ... is assigned but never read" since other entities may read
25494         the memory location.
25495
25496 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
25497
25498         * Makefile.in: In the powerpc/vxworks-specific section, restore
25499         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
25500         by mistake).
25501
25502 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
25503
25504         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
25505         predefined operators.
25506         Removes spurious type errors from g-trasym-vms.adb.
25507
25508         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
25509         distinct from the operator appearing in the source, call appropriate
25510         routine to insert conversions when needed, and complete resolution of
25511         node.
25512         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
25513         interpretations for rewritten right operand.
25514         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
25515         the other operand is overloaded and the context is a type conversion.
25516
25517 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25518
25519         * ada-tree.def (BLOCK_STMT): Now has two operands.
25520         (BREAK_STMT): New.
25521
25522         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
25523
25524         * gigi.h: (gnat_poplevel): Now returns a tree.
25525
25526         * trans.c (end_block_stmt): Add arg; all callers changed.
25527         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
25528         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
25529         (add_stmt): Set TREE_TYPE.
25530         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
25531         (gnat_expand_stmt, case BREAK_STMT): New case.
25532
25533         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
25534
25535 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
25536
25537         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
25538         procedure Set_Stack_Size that is not needed.
25539
25540 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
25541
25542         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
25543         used for gnatpp input file and for the files upon which it depends
25544
25545 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
25546
25547         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
25548
25549 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
25550
25551         * gnatvsn.ads: Bump version numbers appropriately.
25552         Add new build type.
25553
25554 2004-06-07  Pascal Obry  <obry@gnat.com>
25555
25556         * gnat_ugn.texi: Improve comments about imported names and link names
25557         on Windows. Add a note about the requirement to use -k gnatdll's option
25558         when working with a DLL which has stripped stdcall symbols (no @nn
25559         suffix).
25560
25561 2004-05-27  Vincent Celier  <celier@gnat.com>
25562
25563         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
25564         COMMENTS_LAYOUT=UNTOUCHED
25565
25566         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
25567         symbols-vms-alpha.adb
25568
25569 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
25570
25571         * sem.ads: Clarify documentation on checks suppression.
25572
25573         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
25574
25575 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
25576
25577         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
25578         the case of multiple derivations.
25579         (Is_Object_Reference): For a selected component, verify that the prefix
25580         is itself an object and not a value.
25581
25582         * sem_ch12.adb (Same_Instantiated_Constant): New name for
25583         Same_Instantiated_Entity.
25584         (Same_Instantiated_Variable): Subsidiary to
25585         Check_Formal_Package_Instance, to recognize actuals for in-out generic
25586         formals that are obtained from a previous formal package.
25587         (Instantiate_Subprogram_Body): Emit proper error when
25588         generating code and the proper body of a stub is missing.
25589
25590         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
25591         has a universal interpretation, do the disambiguation here.
25592
25593         * exp_ch4.adb (Expand_N_Type_Conversion,
25594         Expand_N_Unchecked_Type_Conversion): Special handling when target type
25595         is Address, to avoid typing anomalies when Address is a visible integer
25596         type.
25597
25598         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
25599         to determine whether a subprogram should not be marked Pure, even when
25600         declared in a pure package.
25601
25602 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
25603
25604         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
25605
25606         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
25607         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
25608         Update the documentation about the Ravenscar profile, following the
25609         definition found in AI-249.
25610
25611         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
25612         setting the Profile (Ravenscar). This must be done in addition to
25613         setting the required restrictions.
25614
25615         * rtsfind.ads: Add the set of operations defined in package
25616         Ada.Interrupts.
25617
25618         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
25619         restriction.
25620
25621 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
25622
25623         lang-specs.h: Always require -c or -S and always redirect to /dev/null
25624         if -gnatc or -gnats is passed.
25625
25626 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
25627
25628         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
25629         a significant reference. Warnings are now properly emitted when a
25630         discriminated type is not referenced.
25631
25632         * lib-xref.adb (Generate_Reference): A deferred constant completion,
25633         record representation clause or record type discriminant does not
25634         produce a reference to its corresponding entity. Warnings are now
25635         properly emitted when deferred constants and record types are not
25636         referenced.
25637
25638 2004-05-27  Geert Bosch  <bosch@gnat.com>
25639
25640         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
25641         Fixes ACATS Annex G tests.
25642
25643 2004-05-27  Robert Dewar  <dewar@gnat.com>
25644
25645         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
25646         handling WITH
25647
25648 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
25649
25650         * s-interr.adb (Server_Task): Take into account case of early return
25651         from sigwait under e.g. linux.
25652
25653 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
25654
25655         * gnat_ugn.texi: Add description for the new gnatpp options:
25656          -rnb - replace the original source without creating its backup copy
25657          -c0 - do not format comments
25658
25659 2004-05-24  Geert Bosch  <bosch@gnat.com>
25660
25661         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
25662         with 192 bits of precision, sufficient to reduce a double-extended
25663         arguments X with a maximum relative error of T'Machine_Epsilon, for X
25664         in -2.0**32 .. 2.0**32.
25665         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
25666         reduction by the processor, which only uses a 68-bit approximation of
25667         Pi.
25668         (Tan): Always reduce arguments and compute function either using
25669         the processor's fptan instruction, or by dividing sin and cos as needed.
25670
25671 2004-05-24  Doug Rupp  <rupp@gnat.com>
25672
25673         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
25674         gcc error on 32/64 bit VMS.
25675
25676 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
25677
25678         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
25679         since this is what we get for stack overflows although not documented
25680         as such.
25681         Document the issues which may require adjustments to our signal
25682         handlers.
25683
25684 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
25685
25686         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
25687         enclosing dynamic scope if the instantiation is within a generic unit.
25688
25689 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
25690
25691         * exp_dbug.ads: Fix typo.
25692
25693         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
25694         Rename it to its proper name: system-linux-ia64.ads
25695         (stamp-gnatlib1): Remove extra target specific run time files when
25696         setting up the rts directory.
25697
25698 2004-05-24  Javier Miranda  <miranda@gnat.com>
25699
25700         * einfo.ads, einfo.adb (Limited_Views): Removed.
25701         (Limited_View): New attribute that replaces the previous one. It is
25702         now a bona fide package with the limited-view list through the
25703         first_entity and first_private attributes.
25704
25705         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
25706         limited-private-with clause.
25707         (Install_Limited_Withed_Unit): Install the private declarations of a
25708         limited-private-withed package. Update the installation of the shadow
25709         entities according to the new structure (see Build_Limited_Views)
25710         (Build_Limited_Views): Replace the previous implementation of the
25711         limited view by a package entity that references the first shadow
25712         entity plus the first shadow private entity (required for limited-
25713         private-with clause)
25714         (New_Internal_Shadow_Entity): Code cleanup.
25715         (Remove_Limited_With_Clause): Update the implementation to undo the
25716         new work carried out by Build_Limited_Views.
25717         (Build_Chain): Complete documentation.
25718         Replace Ada0Y by Ada 0Y in comments
25719         Minor reformating
25720
25721         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
25722         types the level of accessibility depends on the enclosing type
25723         declaration.
25724
25725         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
25726         entities. Complete documentation of previous change.
25727
25728 2004-05-24  Robert Dewar  <dewar@gnat.com>
25729
25730         * namet.adb: Minor reformatting
25731         Avoid use of name I (replace by J)
25732         Minor code restructuring
25733
25734         * sem_ch6.adb: Minor reformatting
25735
25736         * lib-writ.adb: Do not set restriction as active if this is a
25737         Restriction_Warning case.
25738
25739         * sem_prag.adb: Reset restriction warning flag if real pragma
25740         restriction encountered.
25741
25742         * s-htable.adb: Minor reformatting
25743         Change rotate count to 3 in Hash (improves hash for small strings)
25744
25745         * 5qsystem.ads: Add comments for type Address (no literals allowed).
25746
25747         * gnat_ugn.texi: Add new section of documentation "Code Generation
25748         Control", which describes the use of -m switches.
25749
25750 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
25751
25752         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
25753         through the DECL_INITIAL for renamed variables.
25754
25755 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
25756
25757         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
25758
25759 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
25760
25761         * exp_dbug.ads: Correct comments concerning handling of overloading,
25762         since we no longer use $ anymore.
25763
25764 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
25765
25766         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
25767         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
25768         with illegal subunits.
25769
25770 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
25771
25772         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
25773         body with front-end inlining enabled, check whether an inline pragma
25774         appears immediately after the body and applies to it.
25775
25776         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
25777         enabled and the pragma appears after the body of the subprogram.
25778
25779 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25780
25781         Part of function-at-a-time conversion
25782
25783         * misc.c (adjust_decl_rtl): Deleted.
25784         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
25785         Define.
25786
25787         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
25788         (add_decl_stmt, add_stmt, block_has_vars): New functions.
25789         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
25790
25791         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
25792         when making a decl.
25793         (gnat_to_gnu_entity): Likewise.
25794         Use add_stmt to update setjmp buffer.
25795         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
25796         flush_addressof.
25797         No longer call adjust_decl_rtl.
25798         (DECL_INIT_BY_ASSIGN_P): New macro.
25799         (DECL_STMT_VAR): Likewise.
25800
25801         * trans.c (gigi): Call start_block_stmt to make the outermost
25802         BLOCK_STMT.
25803         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
25804         Call start_block_stmt and end_block_stmt temporarily.
25805         Use gnat_expand_stmt instead of expand_expr_stmt.
25806         (add_decl_stmt): New function.
25807         (tree_transform): Call it.
25808         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
25809         (end_block_stmt): Set type and NULL_STMT.
25810         (gnat_expand_stmt): Make recursize call instead of calling
25811         expand_expr_stmt.
25812         (gnat_expand_stmt, case DECL_STMT): New case.
25813         (set_lineno_from_sloc): Do nothing if global.
25814         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
25815         (start_block_stmt, add_stmt, end_block_stmt): New functions.
25816         (build_block_stmt): Call them.
25817         (gnat_to_code): Don't expand NULL_STMT.
25818         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
25819         args.
25820         (tree_transform): Likewise.
25821         (tree_transform, case N_Null_Statement): Return NULL_STMT.
25822         (gnat_expand_stmt, case NULL_STMT): New case.
25823         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
25824         IF_STMT_TRUE.
25825
25826         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
25827         TREE_ADDRESSABLE.
25828
25829         * utils.c (create_var_decl): Do not call expand_decl or
25830         expand_decl_init.
25831         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
25832         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
25833         here.
25834         (struct e_stack): Add chain_next to GTY.
25835         (struct binding_level): Deleted.
25836         (struct ada_binding_level): New struct.
25837         (free_block_chain): New.
25838         (global_binding_level, clear_binding_level): Deleted.
25839         (global_bindings_p): Rework to see if no chain.
25840         (kept_level_p, set_block): Deleted.
25841         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
25842         new data structure and work directly on BLOCK node.
25843         (gnat_poplevel): Similarly.
25844         (get_decls): Look at BLOCK_VARS.
25845         (insert_block): Work directly on BLOCK node.
25846         (block_has_var): New function.
25847         (pushdecl): Rework for new binding structures.
25848         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
25849         poplevel.
25850         (build_subprog_body): Likewise.
25851         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
25852
25853         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
25854
25855         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
25856         (DECL_STMT_VAR): Likewise.
25857
25858 2004-05-17  Robert Dewar  <dewar@gnat.com>
25859
25860         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
25861         procedure
25862
25863         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
25864         of restriction synonyums by using
25865         Restrict.Process_Restriction_Synonyms.
25866
25867         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
25868
25869         * s-restri.ads (Tasking_Allowed): Correct missing comment
25870
25871         * s-rident.ads: Add entries for restriction synonyms
25872
25873         * ali.adb: Fix some problems with badly formatted ALI files that can
25874         result in infinite loops.
25875
25876         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
25877         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
25878         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
25879         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
25880         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
25881         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
25882         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
25883         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
25884         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
25885         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
25886         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
25887         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
25888         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
25889         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
25890         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
25891         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
25892         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
25893         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
25894         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
25895         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
25896         to Task_Id (minor cleanup).
25897
25898 2004-05-17  Vincent Celier  <celier@gnat.com>
25899
25900         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
25901         directory separator.
25902
25903         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
25904         project being extended, if Languages is not declared in extending
25905         project.
25906
25907 2004-05-17  Javier Miranda  <miranda@gnat.com>
25908
25909         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
25910         limited view of a visible sibling.
25911
25912 2004-05-14  Robert Dewar  <dewar@gnat.com>
25913
25914         * gnat_ugn.texi: Minor change to -gnatS documentation
25915
25916         * sprint.adb: Remove some instances of Assert (False) and for this
25917         purpose replace them by output of a ??? string.
25918
25919         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
25920         Assert (False).
25921
25922         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
25923         flag processing. This was suppressing required dependencies in
25924         No_Run_Time mode and is not needed since the binder does not generate
25925         references for things in libgnat anyway.
25926
25927         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
25928         warning.
25929
25930 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
25931
25932         * gnat_ugn.texi: Document AIX-specific issue with initialization of
25933         resolver library.
25934
25935         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
25936         action for the case of an actual parameter in an init proc call.
25937
25938 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
25939
25940         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
25941         subtype, check visible entities in base type.
25942
25943         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
25944         actions if the object is a renaming.
25945
25946         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
25947         Check_Formal_Package_Instance, to determine more precisely when the
25948         formal and the actual denote the same entity.
25949
25950 2004-05-14  Javier Miranda  <miranda@gnat.com>
25951
25952         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
25953
25954         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
25955         corresponding to a private_with must be removed from visibility; it
25956         will be made visible later, just before we analyze the private part of
25957         the package.
25958         (Check_Private_Child_Unit): Allow private_with clauses in public
25959         siblings.
25960         (Install_Siblings): Make visible the private entities of private-withed
25961         siblings.
25962         (Install_Withed_Unit): Do not install the private withed unit if we
25963         are compiling a package declaration and the Private_With_OK flag was
25964         not set by the caller. These declarations will be installed later,
25965         just before we analyze the private part of the package.
25966
25967         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
25968         during the evaluation of the expression that initializes the object,
25969         decorate it with the expected type to avoid cascade errors.
25970         Code cleanup.
25971
25972         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
25973         subprogram we have to install the private_with clauses after its
25974         specification has been analyzed (as documented in AI-262.TXT).
25975
25976         * sem_ch8.adb (Has_Private_With): New function. Determines if the
25977         current compilation unit has a private with on a given entity.
25978         (Find_Direct_Name): Detect the Beaujolais problem described in
25979         AI-262.TXT
25980
25981         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
25982         provides the functionality of the function Is_Ancestor that was
25983         previously available in sem_ch10. It has been renamed to avoid
25984         overloading.
25985
25986         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
25987
25988 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25989
25990         * utils.c (build_vms_descriptor): Use SImode pointers.
25991
25992 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
25993
25994         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
25995
25996 2004-05-14  GNAT Script  <nobody@gnat.com>
25997
25998         * Make-lang.in: Makefile automatically updated
25999
26000 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
26001
26002         Renaming of target specific files for clarity
26003
26004         * Makefile.in: Rename GNAT target specific files.
26005
26006         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
26007         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
26008         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
26009         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
26010         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
26011         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
26012         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
26013         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
26014         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
26015         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
26016         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
26017         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
26018         51osinte.adb, 51osinte.ads, 51system.ads,
26019         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
26020         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
26021         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
26022         56tpopsp.adb, 57system.ads, 58system.ads,
26023         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
26024         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
26025         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
26026         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
26027         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
26028         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
26029         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
26030         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
26031         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
26032         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
26033         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
26034         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
26035         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
26036         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
26037         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
26038         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
26039         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
26040         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
26041         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
26042         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
26043         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
26044         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
26045         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
26046         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
26047         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
26048         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
26049         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
26050         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
26051         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
26052         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
26053         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
26054         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
26055         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
26056         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
26057         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
26058         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
26059         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
26060         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
26061         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
26062         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
26063
26064         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
26065         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
26066         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
26067         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
26068         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
26069         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
26070         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
26071         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
26072         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
26073         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
26074         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
26075         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
26076         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
26077         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
26078         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
26079         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
26080         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
26081         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
26082         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
26083         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
26084         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
26085         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
26086         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
26087         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
26088         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
26089         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
26090         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
26091         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
26092         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
26093         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
26094         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
26095         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
26096         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
26097         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
26098         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
26099         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
26100         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
26101         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
26102         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
26103         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
26104         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
26105         s-osinte-vms.ads, s-osinte-vxworks.adb,
26106         s-osinte-vxworks.ads, s-osprim-mingw.adb,
26107         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
26108         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
26109         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
26110         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
26111         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
26112         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
26113         s-stchop-vxworks.adb, s-taprop-dummy.adb,
26114         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
26115         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
26116         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
26117         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
26118         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
26119         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
26120         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
26121         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
26122         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
26123         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
26124         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
26125         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
26126         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
26127         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
26128         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
26129         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
26130         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
26131         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
26132         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
26133         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
26134         system-irix-o32.ads, system-linux-x86_64.ads,
26135         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
26136         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
26137         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
26138         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
26139         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
26140         system-vxworks-mips.ads, system-vxworks-ppc.ads,
26141         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
26142         above.
26143
26144 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
26145
26146         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
26147
26148 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
26149
26150         Merge from tree-ssa-20020619-branch.
26151
26152         * config-lang.in (boot_language, build_by_default): Set
26153         to no.
26154         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
26155         (max_size): Add static chain op for call_expr.
26156
26157 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
26158
26159         PR target/15331
26160         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
26161
26162 2004-05-11  Roger Sayle  <roger@eyesopen.com>
26163
26164         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
26165         COND_EXPR.
26166
26167 2004-05-10  Doug Rupp  <rupp@gnat.com>
26168
26169         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
26170         system.aux_dec.
26171
26172         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
26173
26174         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
26175
26176         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
26177         Fixes undefined symbols in IA64 gnatlib.
26178
26179         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
26180
26181         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
26182         Short_Address). This will be moved to system.auxdec.
26183
26184 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
26185
26186         * sem_util.adb: Replace test for presence of a node that is always
26187         present with a call to Discard_Node.
26188
26189         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
26190         Analyze on the library unit node after generation of distribution stub
26191         constructs.  The call was a no-op because Unit_Node has already been
26192         Analyzed, and the tree fragments for the distribution stubs are
26193         analyzed as they are inserted in Exp_Dist.
26194         Update comment regarding to distribution stubs to reflect that we
26195         do not generate stub in separate files anymore.
26196
26197         * einfo.ads: Clarify the fact that a tagged private type has the
26198         E_Record_Type_With_Private Ekind.
26199
26200         * erroutc.adb: Minor reformatting
26201
26202         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
26203         values if line length is increased using -gnatyM (noticed during code
26204         reading).
26205
26206         * eval_fat.adb: Minor reformatting
26207         Put spaces around exponentiation operator
26208
26209 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
26210
26211         PR ada/15005
26212         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
26213         has been rewritten as an explicit dereference, retrieve type of
26214         original node to check for possibly unconstrained record type.
26215
26216 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
26217
26218         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
26219         overriding, use the operation of the parent unconditionally.
26220
26221         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
26222         operation when either operand is a literal, to avoid further
26223         ambiguities.
26224
26225         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
26226         overridden by a previous explicit declaration, mark the previous entity
26227         as overriding.
26228
26229         * sem_disp.adb (Check_Dispatching_Operation): New predicate
26230         Is_Visibly_Controlled, to determine whether a declaration of a
26231         primitive control operation for a derived type overrides an inherited
26232         one. Add warning if the explicit declaration does not override.
26233
26234 2004-05-10  Vincent Celier  <celier@gnat.com>
26235
26236         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
26237         some cases when the sources are no longer present.
26238
26239         * make.adb (Collect_Arguments): Fail if an external source, not part
26240         of any project need to be compiled, when switch -x has not been
26241         specified.
26242
26243         * makeusg.adb: Document new switch -x
26244
26245         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
26246         defaulted to False.
26247
26248         * switch-m.adb (Scan_Make_Switches): New switch -x
26249
26250         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
26251         gnatmake switch -x.
26252
26253         * gnat_ugn.texi: Document new gnatmake switch -x
26254
26255 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
26256
26257         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
26258
26259         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
26260         (process_attributes): Likewise.
26261
26262 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
26263
26264         * s-inmaop.ads: Fix spelling mistake in one of the comments.
26265
26266 2004-05-10  Robert Dewar  <dewar@gnat.com>
26267
26268         * gnat_ugn.texi: Document that for config pragma files, the maximum
26269         line length is always 32767.
26270
26271         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
26272         literals is now allowed.
26273
26274         * gnat-style.texi: Remove statement about splitting long lines before
26275         an operator rather than after, since we do not follow this rule at all.
26276         Clarify rule (really lack of rule) for spaces around exponentiation
26277
26278         * sem_elim.adb: Allow concatenation of string literals as well as a
26279         single string literal for pragma arguments.
26280
26281         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
26282
26283         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
26284         written for append case.
26285
26286         * frontend.adb: Changes to avoid checking max line length in config
26287         pragma files.
26288
26289         * g-os_lib.ads: Minor reformatting
26290
26291         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
26292         wrong in any case. Instead use standard value. Noticed during code
26293         reading.
26294
26295         * opt.ads (Max_Line_Length): New field, used to implement removal of
26296         limitation on length of lines when scanning config pragma files.
26297
26298         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
26299         makeutl.ads, makeutl.adb: Minor reformatting
26300
26301         * scn.adb: Do not check line length while scanning config pragma files
26302         Do not check line length while scanning out license information
26303
26304         * scng.adb: Changes to avoid line length checks while parsing config
26305         pragma files.
26306
26307 2004-05-10  GNAT Script  <nobody@gnat.com>
26308
26309         * Make-lang.in: Makefile automatically updated
26310
26311 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
26312
26313         * osint.adb (Find_Program_Name): Fix handling of VMS version
26314         number.
26315
26316 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
26317
26318         * g-os_lib.ads (Invalid_Time): New constant
26319
26320         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
26321         return OS_Time instead of time_t to match what is imported by Ada.
26322         Now return -1 if the file doesn't exist, instead of a random value
26323
26324 2004-05-05  Robert Dewar  <dewar@gnat.com>
26325
26326         * usage.adb: Add line for -gnatR?s switch
26327
26328         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
26329
26330         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
26331         and for Match (Data_First, Data_last)
26332
26333         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
26334         written when we are dealing with multi-unit files.
26335
26336 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
26337
26338         * Makefile.in: Remove unused targets and variables.
26339
26340 2004-05-05  Vincent Celier  <celier@gnat.com>
26341
26342         * switch-m.adb: New gnatmake switch -eI
26343
26344         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
26345         of new gnatmake switch -eInnn.
26346
26347         * makegpr.adb: Take into account new parameters Index and Src_Index in
26348         Prj.Util.
26349
26350         * clean.adb: Implement support for multi-unit sources, including new
26351         switch -i.
26352
26353         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
26354         Src_Index.
26355
26356         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
26357         (Extract_From_Q): New out parameter Index
26358         (Mark, Is_Marked): Subprograms moved to Makeutl
26359         (Switches_Of): New parameter Source_Index
26360         (Add_Switch): New parameter Index
26361         (Check): New parameter Source_Index
26362         (Collect_Arguments): New parameter Source_Index
26363         (Collect_Arguments_And_Compile): New parameter Source_Index
26364         (Compile): New parameter Source_Index
26365         Put subprograms in alphabetical order
26366         Add support for multi-source sources, including in project files.
26367
26368         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
26369         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
26370         Make.
26371
26372         * makeusg.adb: New gnatmake switch -eInnn
26373
26374         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
26375         Prj.Util.Value_Of.
26376
26377         * opt.ads (Main_Index): New variable, defaulted to 0.
26378
26379         * osint.ads, osinte.adb (Add_File): New parameter Index
26380         (Current_Source_Index): New function
26381
26382         * prj.adb: Take into account new components Index and Src_Index
26383
26384         * prj.ads (String_Element): New component Index
26385         (Variable_Value): New component Index
26386         (Array_Element): New component Src_Index
26387
26388         * prj-attr.adb: Indicate that optional index may be specified for
26389         attributes Main, Executable, Spec, Body and some of Switches.
26390
26391         * prj-attr.ads (Attribute_Kind): New values for optional indexes
26392         (Attribute_Record): New component Optional_Index
26393
26394         * prj-com.ads (File_Name_Data): New component Index
26395
26396         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
26397
26398         * prj-env.adb (Put): Output optional index
26399
26400         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
26401         attributes Spec and Body.
26402
26403         * prj-nmsc.adb: Process optional indexes
26404
26405         * prj-pp.adb: Ouput "at" for optional indexes
26406
26407         * prj-proc.adb: Take into account optional indexes
26408
26409         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
26410         Optional_Index. For string literal,
26411         process optional index when Optional_Index is True.
26412         (Parse_Expresion): New Boolean parameter Optional_Index
26413
26414         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
26415         (Set_Source_Index_Of): New procedure
26416
26417         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
26418         index.
26419
26420         * prj-util.ads (Executable_Of): New parameter Index
26421         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
26422         New parameter Src_Index, defaulted to 0.
26423
26424 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
26425
26426         PR ada/15257
26427         * sem_ch3.adb (Access_Definition): If this is an access parameter
26428         whose designated type is imported through a limited_with clause, do
26429         not add the enclosing subprogram to the list of private dependents of
26430         the type.
26431
26432 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
26433
26434         PR ada/15258
26435         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
26436         a limited_with clause, and the other is its non-limited view.
26437
26438 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
26439
26440         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
26441
26442         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
26443         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
26444         Stand.Boolean_Literals to produce references to entities
26445         Standard_False and Standard_True from compile-time computed boolean
26446         values.
26447
26448         * stand.ads (Boolean_Literals): New variable, provides the entity
26449         values for False and True, for use by the expander.
26450
26451 2004-05-05  Doug Rupp  <rupp@gnat.com>
26452
26453         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
26454         5vinmaop.adb: Unchecked convert Short_Address vice Address
26455
26456         * adaint.c, raise.c: Caste CRTL function return value
26457         to avoid gcc error on 32/64 bit IVMS.
26458
26459         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
26460         target = IA64/VMS.
26461
26462         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
26463
26464         * 5qsystem.ads (Address): Declare as Long_Integer
26465         (Short_Address): Declare as 32 bit subtype of Address
26466         Declare  abstract address operations to avoid gratuitous ambiguities.
26467
26468 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
26469
26470         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
26471         instead of the old Boolean_Entry_Barriers.
26472         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
26473
26474 2004-05-05  GNAT Script  <nobody@gnat.com>
26475
26476         * Make-lang.in: Makefile automatically updated
26477
26478 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
26479
26480         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
26481
26482 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
26483
26484         PR ada/15152
26485         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
26486         alone. Replacing object references by literals is inappropriate in a
26487         so low level context.
26488
26489 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
26490
26491         * a-exexpr.adb: Add comments
26492
26493 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
26494
26495         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
26496         declare the Ancestor_Tags array in Type_Specific_Data with a small size
26497         without risking a bounds check error when accessing one of its
26498         components.
26499         (Type_Specific_Data): Define Ancestor_Tags as a small array.
26500         This prevents us from hitting a limitation during the debug info
26501         generation when using stabs.
26502
26503         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
26504         small array.
26505         This prevents us from hitting a limitation during the debug info
26506         generation when using stabs.
26507
26508 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
26509
26510         lang-specs.h: Remove -gnatz* from specs.
26511
26512 2004-05-03  Vincent Celier  <celier@gnat.com>
26513
26514         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
26515
26516         * Make-lang.in, Makefile.in: Add gprmake
26517
26518 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
26519
26520         * sem_aggr.adb: Fix typo in comment.
26521
26522 2004-05-03  Robert Dewar  <dewar@gnat.com>
26523
26524         * make.adb: Minor reformatting
26525
26526         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
26527
26528         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
26529         so that it works when address is not a private type.
26530
26531         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
26532         properly with rewritten unchecked conversions. This prevents
26533         order-of-elaboration issues that can otherwise arise.
26534         (Minimum_Size): Don't check size of access types under VMS
26535
26536         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
26537         interpretations of integer literals as type System.Address.
26538
26539         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
26540         (Is_Descendent_Of): New function
26541
26542 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
26543
26544         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
26545         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
26546         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
26547
26548         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
26549         of the old Max_Entry_Queue_Depth.
26550
26551         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
26552         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
26553         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
26554
26555         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
26556         New entry for proper handling of Max_Entry_Queue_Depth.
26557         New entry for proper handling of No_Dynamic_Interrupts.
26558
26559         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
26560         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
26561         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
26562         the GNAT specific restriction Max_Entry_Queue_Depth.
26563         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
26564         the GNAT specific restriction No_Dynamic_Interrupts.
26565
26566         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
26567         instead of the old Boolean_Entry_Barriers.
26568         Use the new restriction No_Dynamic_Attachment instead of the old
26569         No_Dynamic_Interrupts.
26570
26571         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
26572         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
26573
26574         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
26575         of the old Max_Entry_Queue_Depth.
26576
26577 2004-05-03  GNAT Script  <nobody@gnat.com>
26578
26579         * Make-lang.in: Makefile automatically updated
26580
26581 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
26582
26583         * checks.adb (Enable_Range_Check): If the prefix of an index component
26584         is an access to an unconstrained array, perform check unconditionally.
26585
26586 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26587
26588         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
26589         Component_Clause.
26590
26591 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
26592
26593         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
26594         alternate stack setting. There was no support for the tasking cases
26595         and the changes eventually caused a number of side-effect failures in
26596         the non-tasking case too.
26597
26598 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
26599
26600         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
26601         -gnats is passed.
26602
26603 2004-04-29  Vincent Celier  <celier@gnat.com>
26604
26605         * make.adb (Gnatmake): Increase max size of argument array for
26606         gnatbind for the potential addition of -F.
26607         If there are Stand-Alone Library projects, invoke gnatbind with -F to
26608         be sure that elaboration flags will be checked.
26609
26610         * switch-c.adb: Correct call to Scan_Pos for -gnateI
26611
26612 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
26613
26614         * sem_warn.adb (Check_References): Move '<access-variable> may be
26615         null' warning out of under Warn_On_No_Value_Assigned.
26616
26617 2004-04-29  Ed Falis  <falis@gnat.com>
26618
26619         * gnat_ugn.texi: Fixed texi error
26620
26621 2004-04-29  Robert Dewar  <dewar@gnat.com>
26622
26623         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
26624         abstract operations if they come from predefined files.
26625
26626         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
26627         Dynamic, not RM).
26628
26629         * s-addope.adb: Correct obvious error in mod function
26630
26631 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
26632
26633         * Makefile.in: Add target pairs for powerpc darwin*
26634         tasking support.
26635
26636         * a-intnam-darwin.ads, s-osinte-darwin.adb,
26637         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
26638
26639 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
26640
26641         * Makefile.in: Add target macro definitions for s390*-linux*.
26642         * system-linux-s390.ads: New file.
26643         * system-linux-s390x.ads: New file.
26644
26645 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
26646
26647         * gnat_ugn.texi: Correct argument to @setfilename.
26648
26649 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
26650
26651         * a-exexpr.adb (Unwind_Word): New data type.
26652         (Unwind_Exception): Use it as type of Private1 and Private2.
26653
26654         * raise.c (db_action_for): Fix debug printf.
26655
26656 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
26657
26658         * a-wtmoio.ads: Formal type must be a modular type, not a signed
26659         integer type.
26660
26661 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26662
26663         * decl.c (gnat_to_gnu_entity, case object): Call
26664         __builtin_update_setjmp_buf.
26665
26666         * gigi.h (update_setjmp_buf): Deleted.
26667         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
26668
26669         * misc.c: (update_setjmp_buf): Deleted.
26670
26671         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
26672         around block of RTL.
26673
26674         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
26675
26676 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
26677
26678         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
26679         subprogram for which no pragma All_Calls_Remote applies, store the
26680         address of the real subprogram in the underlying record type, so local
26681         dereferences do not go through the PCS.
26682
26683 2004-04-26  Robert Dewar  <dewar@gnat.com>
26684
26685         * i-c.ads: Add some type qualifications to avoid ambiguities when
26686         compiling with s-auxdec.ads and a non-private address type.
26687
26688 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
26689
26690         * Makefile.rtl: Fix error in previous check-in:
26691         Add s-addope.o to non tasking object list (rather than tasking object
26692         list).
26693
26694 2004-04-26  Javier Miranda  <miranda@gnat.com>
26695
26696         * sem_aggr.adb: Fix typo in comments
26697         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
26698         Required to check the null-exclusion attribute.
26699
26700         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
26701         case of anonymous access types in record and array components. For a
26702         component definition the level is the same of the enclosing composite
26703         type.
26704
26705         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
26706         that are anonymous access types the level of accessibility depends on
26707         the enclosing type declaration. In order to have this information, set
26708         the scope of the anonymous access type to the enclosing record type
26709         declaration.
26710         (Array_Type_Declaration): In case of components that are anonymous
26711         access types the level of accessibility depends on the enclosing type
26712         declaration. In order to have this information, set the scope of the
26713         anonymous access type to the enclosing array type declaration.
26714
26715         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
26716         access type.
26717
26718         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
26719         renaming of anonymous access-to-constant types allowed if and only if
26720         the renamed object is access-to-constant.
26721
26722         * sem_util.adb (Type_Access_Level): In case of anonymous access types
26723         that are component_definition or discriminants of a nonlimited type,
26724         the level is the same as that of the enclosing component type.
26725
26726 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
26727
26728         * sem_elim.adb: Some minor code reorganization from code reading. Fix
26729         misprint in the function name (File_Name_Match).
26730
26731 2004-04-23  Laurent GUERBY <laurent@guerby.net>
26732
26733         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
26734         install.
26735
26736 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
26737
26738         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
26739
26740 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
26741
26742         * adaint.c (__gnat_try_lock): No longer requires that the parent
26743         directory be writable, the directory itself is enough.
26744         (gnat_is_absolute_path): Change profile, so that the call from
26745         GNAT.OS_Lib can be made more efficient.
26746
26747         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
26748         from GNAT.OS_Lib can be made more efficient.
26749
26750         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
26751         one copy of the file name. Found by code reading.
26752
26753 2004-04-23  Vincent Celier  <celier@gnat.com>
26754
26755         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
26756         Correct documentation on gnatmake switches transmitted to the compiler
26757
26758         * ali.ads: Minor comment fix
26759
26760 2004-04-23  Javier Miranda  <miranda@gnat.com>
26761
26762         * sem_ch6.adb: (Confirming Types): Code cleanup
26763
26764         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
26765         subprogram types: E_Anonymous_Access_Subprogram_Type and
26766         E_Anonymous_Access_Protected_Subprogram_Type.
26767
26768 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
26769
26770         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
26771         whether a pragma All_Calls_Remote applies to the subprogram on which
26772         'Access is taken.
26773         No functional change is introduced by this revision; the new parameter
26774         will be used to allow calls to local RCI subprograms to be optimized
26775         to not use the PCS in the case where no pragma All_Calls_Remote applies,
26776         as is already done in the PolyORB implementation of the DSA.
26777
26778         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
26779         whether a pragma All_Calls_Remote applies to the subprogram on which
26780         'Access is taken.
26781         No functional change is introduced by this revision; the new parameter
26782         will be used to allow calls to local RCI subprograms to be optimized
26783         to not use the PCS in the case where no pragma All_Calls_Remote applies,
26784         as is already done in the PolyORB implementation of the DSA.
26785
26786 2004-04-23  Robert Dewar  <dewar@gnat.com>
26787
26788         * Makefile.rtl: Add entry for s-addope.o in run time library list
26789         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
26790         * s-addope.ads, s-addope.adb: New files.
26791
26792         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
26793         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
26794         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
26795         System.Address to be non-private and signed.
26796
26797         * sem_elim.adb: Minor reformatting (fairly extensive)
26798         Some minor code reorganization from code reading
26799         Add a couple of ??? comments
26800
26801 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26802
26803         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
26804         (tree_transform, case N_If_Statement): Remove non-determinism.
26805
26806         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
26807
26808 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
26809
26810         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
26811         Eliminate' section.
26812
26813         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
26814         no longer used as a parameter name for Eliminate pragma).
26815
26816 2004-04-22  Laurent GUERBY <laurent@guerby.net>
26817
26818         PR optimization/14984
26819         PR optimization/14985
26820         * trans.c (gigi): Fix non determinism leading to bootstrap
26821         comparison failures.
26822
26823 2004-04-21  Pascal Obry  <obry@gnat.com>
26824
26825         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
26826         passed to spawnvp() to properly handle program pathname with spaces on
26827         Win32.
26828
26829 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
26830
26831         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
26832         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
26833         unlocked in case of exceptions.
26834
26835 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
26836
26837         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
26838         This function does not exist anymore.
26839
26840 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
26841
26842         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
26843
26844         * link.c: Move variables to the __gnat name space.
26845
26846         * Makefile.in: list link.o explicitly when needed.
26847
26848         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
26849
26850 2004-04-21  Javier Miranda  <miranda@gnat.com>
26851
26852         * einfo.adb (Original_Access_Type): New subprogram
26853         (Set_Original_Access_Type): New subprogram
26854         (Write_Field21_Name): Write the name of the new field
26855
26856         * einfo.ads (Original_Access_Type): New field present in access to
26857         subprogram types.
26858         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
26859         E_Anonymous_Access_Protected_Subprogram_Type.
26860
26861         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
26862         subprogram types.
26863
26864         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
26865         to anonymous access to subprogram types.
26866
26867         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
26868         to subprogram types.
26869
26870         * sem_ch3.adb (Access_Definition): Complete decoration of entities
26871         corresponding to anonymous access to subprogram types.
26872         (Analyze_Component_Declaration): Add new actual to the call to
26873         subprogram replace_anonymous_access_to_protected_subprogram.
26874         (Array_Type_Declaration): Add new actual to the call to subprogram
26875         replace_anonymous_access_to_protected_subprogram.
26876         (Process_Discriminants): Add new actual to the call to subprogram
26877         replace_anonymous_access_to_protected_subprogram.
26878         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
26879
26880         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
26881         formal.
26882
26883         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
26884         access to subprogram types.
26885
26886         * sem_util.adb (Has_Declarations): Addition of package_specification
26887         nodes.
26888
26889 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
26890
26891         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
26892         inlined flags to renamed entity only if in current unit.
26893
26894 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
26895
26896         * s-parint.ads: Add DSA implementation marker.
26897
26898         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
26899         value of System.Partition_Interface.DSA_Implementation to determine
26900         what version of the distributed systems annex is available (no
26901         implementation, GLADE, or PolyORB).
26902
26903 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
26904
26905         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
26906
26907 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26908
26909         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
26910         with new type if alias sets differ.
26911         Fixes ACATS c41103b.
26912
26913 2004-04-21  Vincent Celier  <celier@gnat.com>
26914
26915         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
26916         Add array Lang_Args for the language specific compiling argument
26917         switches.
26918
26919         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
26920
26921 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
26922
26923         * gnat_rm.texi: Update the descripton of the Eliminate pragma
26924         according to the recent changes in the format of the parameters of the
26925         pragma (replacing Homonym_Number with Source_Location).
26926
26927 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
26928
26929         * 5isystem.ads: Removed, unused.
26930
26931         * gnat_rm.texi: Redo 1.13 change.
26932
26933 2004-04-19  Robert Dewar  <dewar@gnat.com>
26934
26935         * s-stoele.ads: Clean up definition of Storage_Offset (the new
26936         definition is cleaner, avoids the kludge of explicit Standard operator
26937         references, and also is consistent with a visible System.Address with
26938         no visible operations.
26939
26940         * s-geveop.adb: Add declarations to avoid assumption of visible
26941         operations on type System.Address (since these might not be available
26942         if Address is a non-private type for which the operations
26943         are made abstract).
26944
26945         * sem_eval.adb: Minor reformatting
26946
26947         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
26948         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
26949         reformatting (new function spec format).
26950
26951         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
26952         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
26953         s-caun64.adb: Add declarations to avoid assumption of visible
26954         operations on type System.Address (since these might not be available
26955         if Address is a non-private type for which the operations are made
26956         abstract).
26957
26958         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
26959
26960         * exp_intr.adb: Minor comment update
26961
26962         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
26963
26964         * 5omastop.adb: Add declarations to avoid assumption of visible
26965         operations on type System.Address (since these might not be available
26966         if Address is a non-private type for which the operations
26967         are made abstract).
26968
26969 2004-04-19  Vincent Celier  <celier@gnat.com>
26970
26971         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
26972
26973         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
26974         defaulted to Ada.
26975
26976         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
26977         defaulted to Ada.
26978         Call Check with Process_Languages.
26979         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
26980         with Process_Languages.
26981         (Recursive_Check): New Boolean parameter Process_Languages. Call
26982         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
26983         Process_Languages.
26984
26985         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
26986
26987         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
26988         parameter Ada_Main, defaulted to True.
26989         Check for Ada specific characteristics only when Ada_Main is True.
26990
26991         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
26992
26993         * prj.adb: (Project_Empty): Add new Project_Data components.
26994
26995         * prj.ads: New types and tables for non Ada languages.
26996         (Project_Data): New components Languages, Impl_Suffixes,
26997         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
26998         Include_Path, Include_Data_Set.
26999
27000         * prj-env.ads, prj-env.adb: Minor reformatting
27001
27002         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
27003         Put subprograms in alphabetical order
27004
27005         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
27006         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
27007         Opt.Follow_Links.
27008
27009         * mlib-prj.adb: Back out modification in last version, as they are
27010         incorrect.
27011         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
27012
27013         * make.adb: (Mains): Moved to package Makeutl
27014         (Linker_Opts): Moved to package Makeutl
27015         (Is_External_Assignment): Moved to package Makeutl
27016         (Test_If_Relative_Path): Moved to package Makeutl
27017         (Gnatmake): Move sorting of linker options to function
27018         Makeutl.Linker_Options_Switches.
27019
27020         * makeutl.ads, makeutl.adb: New files.
27021
27022         * Makefile.in: Add makeutl.o to the object files for gnatmake
27023
27024         * makeusg.adb: Add line for new switch -eL.
27025
27026         * gnatls.adb (Image): New function.
27027         (Output_Unit): If in verbose mode, output the list of restrictions
27028         specified by pragmas Restrictions.
27029
27030         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
27031         Text_IO.
27032
27033         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
27034         needed, to put it in the range 1970 (included) - 2026 (excluded).
27035         (Time_Of): Do not shift Unix_Min_Year (1970).
27036         Shift the date by multiple of 56 years, if needed, to put it in the
27037         range 1970 (included) - 2026 (excluded).
27038
27039         * adaint.h, adaint.c (__gnat_set_executable): New function.
27040
27041 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27042
27043         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
27044         and pop GC context.
27045         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
27046         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
27047         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
27048         (tree_transform, case N_Code_Statement): Likewise.
27049         (gnat_expand_stmt, case LABEL_STMT): Don't look at
27050         LABEL_STMT_FIRST_IN_EH.
27051         (gnat_expand_stmt, case ASM_STMT): New case.
27052
27053         * utils2.c (build_unary_op): Properly set TREE_READONLY of
27054         UNCONSTRAINED_ARRAY_REF.
27055
27056         * utils.c (poplevel): Temporarily push/pop GC context around inline
27057         function expansion.
27058
27059         * decl.c (maybe_variable): Properly set TREE_READONLY of
27060         UNCONSTRAINED_ARRAY_REF.
27061         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
27062
27063         * ada-tree.def: (ASM_STMT): New.
27064
27065         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
27066         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
27067         ASM_STMT_INPUT): New.
27068         (ASM_STMT_CLOBBER): Likewise.
27069
27070 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
27071
27072         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
27073         general rcheck mechanism to raise Program_Error for E.4(18), instead
27074         of a custom raiser in System.Partition_Interface.
27075         Part of general cleanup work before PolyORB integration.
27076
27077         * snames.ads, snames.adb: Add new runtime library entities and names
27078         for PolyORB DSA.
27079
27080         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
27081         exp_dist.
27082         (Build_Subprogram_Id): New subprogram provided by exp_dist
27083         Code reorganisation in preparation for PolyORB integration.
27084
27085         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
27086         exp_dist.
27087         (Build_Subprogram_Id): New subprogram provided by exp_dist
27088
27089         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
27090         actual parameter types for call to dereference of an
27091         access-to-subprogram type.
27092
27093         * rtsfind.ads: Add new runtime library entities and names for PolyORB
27094         DSA.
27095
27096         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
27097         instead, which has the same behaviour here since we never pass it a
27098         NULL pointer.
27099
27100         * link.c (run_path_option, Solaris case): Use -Wl, as for other
27101         platforms.
27102
27103         * Makefile.in: adjust object file lists for gnatlink and gnatmake
27104         to account for new dependency upon Interfaces.C.Strings + link.o
27105         For x86 FreeBSD, use 86numaux.
27106
27107         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
27108         from Mlib.Tgt to Mlib.
27109
27110         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
27111         target-independent.
27112
27113         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
27114         target-specific versions of this subprogram, now implemented as a
27115         target-independent function in Mlib.
27116
27117         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
27118         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
27119         (Linker_Library_Path_Option): Remove target-specific versions of this
27120         subprogram, now implemented as a target-independent function in Mlib.
27121
27122         * atree.adb: (Allocate_Initialize_Node): New subprogram.
27123         Factors out node table slots allocation.
27124         (Fix_Parents): New subprogram.
27125         Encapsulate the pattern of fixing up parent pointers for syntactic
27126         children of a rewritten node.
27127         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
27128         (Rewrite): Use New_Copy when creating saved copy of original node.
27129         (Replace): Use Copy_Node to copy nodes.
27130
27131 2004-04-19  Javier Miranda  <miranda@gnat.com>
27132
27133         * sprint.adb (Sprint_Node_Actual): Give support to the new
27134         Access_To_Subprogram node available in Access_Definition nodes. In
27135         addition, give support to the AI-231 node fields: null-exclusion,
27136         all-present, constant-present.
27137
27138         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
27139
27140         * sinfo.ads, sinfo.adb:
27141         New field Access_To_Subprogram_Definition in Access_Definition nodes
27142
27143         * sem_ch6.adb (Process_Formals): Move here the code that creates and
27144         decorates internal subtype declaration corresponding to the
27145         null-excluding formal. This code was previously in Set_Actual_Subtypes.
27146         In addition, carry out some code cleanup on this code. In case of
27147         access to protected subprogram call
27148         Replace_Anonymous_Access_To_Protected_Subprogram.
27149         (Set_Actual_Subtypes): Code cleanup.
27150
27151         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
27152         Find_Type in case of anonymous access renamings. Add warning in case of
27153         null-excluding attribute used in anonymous access renaming.
27154
27155         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
27156         subprogram
27157
27158         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
27159         subprogram.
27160         (Access_Definition): In case of anonymous access to subprograms call
27161         the corresponding semantic routine to decorate the node.
27162         (Access_Subprogram_Declaration): Addition of some comments indicating
27163         some code that probably should be added here. Detected by comparison
27164         with the access_definition subprogram.
27165         (Analyze_Component_Declaration): In case of access to protected
27166         subprogram call Replace_Anonymous_Access_To_Protected.
27167         (Array_Type_Declaration): In case of access to protected subprogram call
27168         Replace_Anonymous_Access_To_Protected_Subprogram.
27169         (Process_Discriminants): In case of access to protected subprogram call
27170         Replace_Anonymous_Access_To_Protected_Subprogram.
27171
27172         * par.adb (P_Access_Definition): New formal that indicates if the
27173         null-exclusion part was present.
27174         (P_Access_Type_Definition): New formal that indicates if the caller has
27175         already parsed the null-excluding part.
27176
27177         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
27178         (P_Identifier_Declarations): Code cleanup and give support to renamings
27179         of anonymous access to subprogram types.
27180         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
27181         (P_Array_Type_Definition): Give support to AI-254.
27182         (P_Component_Items): Give support to AI-254.
27183         (P_Access_Definition): New formal that indicates if the header was
27184         already parsed by the caller.
27185         (P_Access_Type_Definition): New formal that indicates if the caller has
27186         already parsed the null-excluding part.
27187
27188         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
27189         call to P_Access_Definition.
27190
27191 2004-04-19  Geert Bosch  <bosch@gnat.com>
27192
27193         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
27194         the delicate semantics of floating-point to integer conversion.
27195         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
27196
27197         * eval_fat.adb (Machine_Mantissa): Moved to spec.
27198         (Machine_Radix): New function.
27199
27200         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
27201         conversion checks.
27202         (Machine_Radix): New function also for use in conversion checks.
27203
27204 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
27205
27206         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
27207
27208         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
27209         to decorate the access-to-protected subprogram and the equivalent type.
27210
27211         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
27212         to anonymous access to subprogram types.
27213
27214         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
27215         constant-folding, for legality checks in contexts that require an RM
27216         static expression.
27217
27218         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
27219         temporary but stack checking is not enabled, increment serial number
27220         to so that symbol generation is consistent with and without stack
27221         checking.
27222
27223         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
27224         independent on whether stack checking is enabled, caller must check
27225         the corresponding flag.
27226
27227         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
27228         range checks.
27229         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
27230         parent if it has discriminants.
27231         (Build_Derived_Private_Type): Constructed full view does
27232         not come from source.
27233         (Process_Discriminants): Default discriminants on a tagged type are
27234         legal if this is the internal completion of a private untagged
27235         derivation.
27236
27237         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
27238         no constraint checks, because it corresponds to an existing object.
27239
27240         * sem_prag.adb (Process_Convention): Pragma applies
27241         only to subprograms in the same declarative part, i.e. the same unit,
27242         not the same scope.
27243
27244         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
27245         ignore type mismatch on a numeric conversion if expression comes from
27246         expansion.
27247
27248 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
27249
27250         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
27251         Homonym_Number parameter, add processing for Source_Location parameter
27252         corresponding.
27253         (Check_Eliminated): Remove the check for homonym numbers, add the check
27254         for source location traces.
27255
27256         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
27257         with Arg_Source_Location corresponding to the changes in the format of
27258         the pragma.
27259
27260         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
27261         Eliminate pragma corresponding to the changes in the format of the
27262         pragma: Homonym_Number is replaced with Source_Location, two ways of
27263         distinguishing homonyms are mutially-exclusive.
27264
27265 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
27266
27267         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
27268
27269         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
27270         No_Dollar_In_Label, no longer necessary, as it is always True.
27271         (Strip_Suffixes): Likewise.
27272
27273 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
27274
27275         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
27276         modulus for compatibility with size clause on targets with 16-bit
27277         Integer.
27278
27279         * layout.adb (Discrimify): In the case of private types, set Vtyp to
27280         full type to fix type mismatches on calls to size functions for
27281         discriminant-dependent array components.
27282
27283 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
27284
27285         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
27286         lib.
27287
27288 2004-04-19  Pascal Obry  <obry@gnat.com>
27289
27290         * mdll-utl.adb (Locate): New version is idempotent.
27291
27292 2004-04-17  Laurent Guerby <laurent@guerby.net>
27293
27294         PR ada/14988 (partial)
27295         * impunit.adb: Fix typo.
27296
27297 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
27298
27299         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
27300         and install-rts-cert targets.  Remove all gnatlib and gnattools
27301         targets and all other rts-* targets (moved to libada).  Remove (now)
27302         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
27303         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
27304
27305 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27306
27307         * trans.c (tree_transform): Shortcut returning error_mark_node for
27308         statements in annotate_only_mode.
27309         (tree_transform, case N_Label, case N_Return_Statement,
27310         N_Goto_Statement): Make statement tree instead of generating code.
27311         (tree_transform, case N_Assignment_Statement): No longer check
27312         type_annotate_only.
27313         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
27314         RETURN_STMT): New.
27315         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
27316         New fcns.
27317         (gnat_to_gnu): Collect any RTL generated and deal with it.
27318         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
27319         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
27320         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
27321
27322         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
27323
27324         * ada-tree.def (EXPR_STMT): Fix typo in name.
27325         (BLOCK_STMT, IF_STMT): New nodes.
27326
27327         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
27328         LABEL_STMT_FIRST_IN_EH): New macros.
27329         (RETURN_STMT_EXPR): Likewise.
27330
27331         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
27332         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
27333
27334 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
27335
27336         * atree.ads: Correct documentation on extended nodes.
27337
27338         * link.c: Set run_path_option for FreeBSD.
27339
27340 2004-04-08  Vincent Celier  <celier@gnat.com>
27341
27342         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
27343         one of the ALI file, do not link with DEC lib.
27344
27345         * par.adb Remove the last two characters ("%s" or "%b") when checking
27346         if a language defined unit may be recompiled.
27347
27348 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
27349
27350         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
27351         removal of abstract operation leaves no possible interpretation for
27352         expression.
27353
27354         * sem_eval.adb (Eval_Qualified_Expression): Use
27355         Set_Raises_Constraint_Error on node when needed, so that it does not
27356         get optimized away by subsequent optimizations.
27357
27358         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
27359         operands even when they are not wrapped in a type conversion.
27360
27361 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
27362
27363         * sem_prag.adb (Set_Exported): Warn about making static as result of
27364         export only when the export is coming from source. This may be not
27365         be true e.g. on VMS where we expand export pragmas for exception codes
27366         together with imported or exported exceptions, and we don't want the
27367         user to be warned about something he didn't write.
27368
27369 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
27370
27371         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
27372         duplication between normal entities and those declared as renamings.
27373         No functional change.
27374
27375         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
27376         inline functions returning an unconstrained result.
27377
27378 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
27379
27380         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
27381         conform to what other front-ends do.
27382
27383 2004-04-08  Doug Rupp  <rupp@gnat.com>
27384
27385         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
27386         libraries.
27387
27388 2004-04-06  Pascal Obry  <obry@gnat.com>
27389
27390         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
27391
27392         * osint.adb (Program_Name): Do not look past a directory separator.
27393
27394 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
27395
27396         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
27397
27398         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
27399         requirement for preserving a copy of the original assignment node.
27400
27401         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
27402
27403 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
27404
27405         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
27406         when supported.
27407
27408 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
27409
27410         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
27411         operator calls in functional notation, and apply
27412         Universal_Interpretation to operands, not to their type.
27413
27414 2004-04-06  Robert Dewar  <dewar@gnat.com>
27415
27416         * 5wdirval.adb: Minor reformatting
27417
27418 2004-04-06  Ed Falis  <falis@gnat.com>
27419
27420         * gnat_rm.texi: Improve a reference to the GCC manual
27421
27422 2004-04-05  Vincent Celier  <celier@gnat.com>
27423
27424         * adaint.h, adaint.c: Add function __gnat_named_file_length
27425
27426         * impunit.adb: Add Ada.Directories to the list
27427
27428         * Makefile.in: Add VMS and Windows versions of
27429         Ada.Directories.Validity package body.
27430
27431         * Makefile.rtl: Add a-direct and a-dirval
27432
27433         * mlib-tgt.ads: Minor comment update.
27434
27435         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
27436         a-direct.ads, a-direct.adb: New files.
27437
27438 2004-04-05  Vincent Celier  <celier@gnat.com>
27439
27440         PR ada/13620
27441         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
27442         just to the compiler.
27443
27444 2004-04-05  Robert Dewar  <dewar@gnat.com>
27445
27446         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
27447         returned string is 1.
27448
27449         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
27450
27451         * eval_fat.ads: Minor reformatting
27452
27453         * g-curexc.ads: Document that lower bound of returned string values
27454         is always one.
27455
27456         * gnatlink.adb: Add ??? comment for previous change
27457         (need to document why this is VMS specific)
27458
27459         * s-stoele.ads: Minor reformatting
27460
27461         * tbuild.ads: Minor reformatting throughout (new function specs)
27462
27463         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
27464         after WITH.
27465
27466         * scng.adb: Minor reformatting
27467
27468 2004-04-05  Geert Bosch  <bosch@gnat.com>
27469
27470         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
27471         (Leading_Part): Still perform truncation to machine number if the
27472         specified radix_digits is greater or equal to machine_mantissa.
27473
27474 2004-04-05  Javier Miranda  <miranda@gnat.com>
27475
27476         * par-ch3.adb: Complete documentation of previous change
27477         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
27478         (aliased must appear before constant).
27479
27480         * par-ch4.adb: Complete documentation of previous change.
27481
27482         * par-ch6.adb: Complete documentation of previous change.
27483
27484         * sinfo.ads: Fix typo in commment.
27485
27486 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
27487
27488         * sem_ch3.adb (Inherit_Components): If derived type is private and has
27489         stored discriminants, use its discriminants to constrain parent type,
27490         as is done for non-private derived record types.
27491
27492         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
27493         Ada 2005 AI-310: an abstract non-dispatching operation is not a
27494         candidate interpretation in an overloaded call.
27495
27496         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
27497         expression is Null and target type is not an access type (e.g. a
27498         non-private address type).
27499
27500 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
27501
27502         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
27503         statement whose right-hand side is an inlined call, save a copy of the
27504         original assignment subtree to preserve enough consistency for
27505         Analyze_Assignment to proceed.
27506
27507         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
27508         complete assignment subtree which is now unnecessary, as the expansion
27509         of inlined call has been improved to preserve a consistent assignment
27510         tree.  Note_Possible_Modification must be called only
27511         after checks have been applied, or else unnecessary checks will
27512         be generated.
27513
27514         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
27515         of explicit dereferences that do not Come_From_Source:
27516          - be selective on cases where we must go back to the dereferenced
27517            pointer (an assignment to an implicit dereference must not be
27518            recorded as modifying the pointer);
27519          - do not rely on Original_Node being present (Analyze_Assignment
27520            calls Note_Possible_Modification on a copied tree).
27521
27522         * sem_warn.adb (Check_References): When an unset reference to a pointer
27523         that is never assigned is encountered, prefer '<pointer> may be null'
27524         warning over '<pointer> is never assigned a value'.
27525
27526 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
27527
27528         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
27529         the ABI.
27530
27531 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
27532
27533         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
27534         libexc. We currently don't reference anything in this library and
27535         linking it in triggers linker warnings we don't want to see.
27536
27537         * init.c: Update comments.
27538
27539 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27540
27541         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
27542         * utils.c (create_field_decl): Likewise.
27543         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
27544
27545 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
27546
27547         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
27548         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
27549         Add info directory entry and category.
27550
27551 2004-04-02  Jan Hubicka  <jh@suse.cz>
27552
27553         * utils.c: Include function.h
27554         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
27555
27556 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
27557
27558         PR ada/14150
27559         * Make-lang.in: Clean up generation of documentation
27560
27561         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
27562
27563         * xgnatug.adb: Removed, replaced by xgnatugn.adb
27564
27565         * xgnatugn.adb: Replaces xgnatug.adb
27566
27567         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
27568
27569         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
27570
27571         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
27572         gnat_ug_wnt.texi: Removed.
27573
27574 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
27575
27576         * utils2.c: Update copyright notice.
27577
27578 2004-04-01  Robert Dewar  <dewar@gnat.com>
27579
27580         * checks.adb: Minor reformatting throughout
27581         Note that prev checkin added RM reference to alignment warning
27582
27583 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
27584
27585         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
27586         non-static when building aggregate for bit-packed array.
27587
27588         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
27589         function call that is itself the actual in a procedure call, build
27590         temporary for it.
27591
27592         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
27593         a string literal, create a temporary for it, constant folding only
27594         handles scalars here.
27595
27596 2004-04-01  Vincent Celier  <celier@gnat.com>
27597
27598         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
27599         Error_Msg_SP): New empty procedures to instantiate the Scanner.
27600         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
27601         tokens.
27602         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
27603         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
27604         and get the checksum.
27605
27606         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
27607         already in the Q.
27608         Increase the Marking_Label at the end of the Multiple_Main_Loop,
27609         instead of at the beginning.
27610
27611         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
27612         directly.
27613         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
27614         on VMS.
27615
27616         * osint.ads (Multi_Unit_Index_Character): New Character global variable
27617
27618         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
27619         not '~' directly.
27620
27621         * par.adb: Remove test on file name to detect language defined units.
27622         Add test on unit name, after parsing, to detect language defined units
27623         that are not compiled with -gnatg (except System.RPC and its children)
27624
27625         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
27626         following units without style checking.
27627
27628         * switch-c.adb: Change -gnatC to -gnateI
27629
27630         * usage.adb: Document new switch -gnateInnn
27631
27632         * scng.adb (Accumulate_Token_Checksum): New procedure
27633         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
27634         word or literal number.
27635         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
27636         numbers.
27637
27638 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
27639
27640         * a-tasatt.adb,
27641         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
27642         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
27643         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
27644         5vtpopde.adb: Add missing 'constant' keywords.
27645
27646 2004-04-01  Javier Miranda  <miranda@gnat.com>
27647
27648         * par-ch4.adb: (P_Allocator): Code cleanup
27649
27650         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
27651         attribute.
27652
27653         * sinfo.ads: Complete documentation of previous change
27654
27655 2004-04-01  Pascal Obry  <obry@gnat.com>
27656
27657         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
27658         only on VMS.  This special handling was done because an old GNU/ld bug
27659         on Windows which has been fixed.
27660
27661 2004-04-01  GNAT Script  <nobody@gnat.com>
27662
27663         * Make-lang.in: Makefile automatically updated
27664
27665 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27666
27667         * decl.c (gnat_to_gnu_entity, make_type_from_size):
27668         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
27669         * trans.c (tree_transform, convert_with_check): Likewise.
27670         * utils.c (gnat_signed_or_unsigned_type): Likewise.
27671         (build_vms_descriptor, unchecked_convert): Likewise.
27672         * utils2.c (nonbinary_modular_operation): Likewise.
27673
27674 2004-03-29  Javier Miranda  <miranda@gnat.com>
27675
27676         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
27677         (Install_Null_Excluding_Check): Local subprogram that determines whether
27678         an access node requires a runtime access check and if so inserts the
27679         appropriate run-time check.
27680         (Apply_Access_Check): Call Install_Null_Excluding check if required
27681         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
27682
27683         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
27684
27685         * einfo.ads: Fix typo in comment
27686
27687         * exp_ch3.adb (Build_Assignment): Generate conversion to the
27688         null-excluding type to force the corresponding run-time check.
27689         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
27690         type to force the corresponding run-time check.
27691
27692         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
27693         the null-excluding type to force the corresponding run-time check.
27694
27695         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
27696         case of access types unless they have the null-excluding attribute.
27697
27698         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
27699         part.
27700
27701         * exp_util.ads: Fix typo in comment
27702
27703         * par.adb (P_Null_Exclusion): New subprogram
27704         (P_Subtype_Indication): New formal that indicates if the null-excluding
27705         part has been scanned-out and it was present
27706
27707         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
27708
27709         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
27710         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
27711         type to force the corresponding run-time check
27712         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
27713         components
27714         (Resolve_Array_Aggregate): Carry out some static checks
27715         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
27716
27717         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
27718         attribute must be set only if specified by means of the null-excluding
27719         part. In addition, we must also propagate the access-constant attribute
27720         if present.
27721         (Access_Subprogram_Declaration, Access_Type_Declaration,
27722         Analyze_Component_Declaration, Analyze_Object_Declaration,
27723         Array_Type_Declaration, Process_Discriminants,
27724         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
27725         and carry out some static checks.
27726         (Build_Derived_Access_Type): Set the null-excluding attribute
27727         (Derived_Type_Declaration, Process_Subtype): Carry out some static
27728         checks.
27729
27730         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
27731
27732         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
27733
27734         * sem_ch6.adb (Process_Formals): Carry out some static checks.
27735         (Set_Actual_Subtypes): Generate null-excluding subtype if the
27736         null-excluding part was present; it is not required to be done here in
27737         case of anonymous access types.
27738         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
27739         value.
27740
27741         * sem_res.adb (Resolve_Actuals): Carry out some static check
27742         (Resolve_Null): Allow null in anonymous access
27743
27744         * sinfo.adb: New subprogram Null_Exclusion_Present
27745         All_Present and Constant_Present available on access_definition nodes
27746
27747         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
27748         object_declaration, derived_type_definition, component_definition,
27749         discriminant_specification, access_to_object_definition,
27750         access_function_definition, allocator, access_procedure_definition,
27751         access_definition, parameter_specification, All_Present and
27752         Constant_Present flags available on access_definition nodes.
27753
27754 2004-03-29  Robert Dewar  <dewar@gnat.com>
27755
27756         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
27757         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
27758         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
27759         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
27760         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
27761         sem_prag.adb: Updates to handle multiple units/file
27762
27763         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
27764
27765         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
27766         sem_util.adb: Minor reformatting
27767
27768         * sem_ch12.adb: Add comment for previous change
27769
27770 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
27771
27772         * osint.adb (Executable_Prefix): Set Exec_Name to the current
27773         executable name when not initialized. Otherwise, use its current value.
27774
27775         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
27776         initialize it to another executable name than the current one. This
27777         allows to configure paths for an executable name (gnatmake) different
27778         from the current one (gnatdist).
27779
27780 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
27781
27782         * exp_ch6.adb (Expand_Call): A call to a function declared in the
27783         current unit cannot be inlined if it appears in the body of a withed
27784         unit, to avoid order of elaboration problems in gigi.
27785
27786         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
27787         information for protected (wrapper) operation as well, to simplify gdb
27788         use.
27789
27790         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
27791         protected body, indicate that the entity for the generated spec comes
27792         from source, to ensure that references are properly generated for it.
27793         (Build_Body_To_Inline): Do not inline a function that returns a
27794         controlled type.
27795
27796         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
27797         apply convention to homonyms that are declared explicitly.
27798
27799         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
27800         that renames an equality operator and the operands are overloaded,
27801         resolve them with the declared formal types, before rewriting as an
27802         operator.
27803
27804 2004-03-29  GNAT Script  <nobody@gnat.com>
27805
27806         * Make-lang.in: Makefile automatically updated
27807
27808 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
27809
27810         * memtrack.adb: Log realloc calls, which are treated as free followed
27811         by alloc.
27812
27813 2004-03-25  Vincent Celier  <celier@gnat.com>
27814
27815         * prj-makr.adb (Process_Directories): Detect when a file contains
27816         several units. Do not include such files in the config pragmas or
27817         in the naming scheme.
27818
27819         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
27820         Resolve links only when not in Trusted_Mode.
27821         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
27822         Do not resolve links for the display names.
27823
27824         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
27825         resolve links when computing the display names.
27826
27827 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
27828
27829         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
27830         attribute reference does not denote a subtype, it can be any
27831         expression that has a classwide type, potentially after an implicit
27832         dereference.  In particular, the prefix can be a view conversion for
27833         a classwide type (for which Is_Object_Reference holds), but it can
27834         also be a value conversion for an access-to-classwide type. In the
27835         latter case, there is an implicit dereference, and the original node
27836         for the prefix does not verify Is_Object_Reference.
27837
27838         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
27839         conversion of a discriminant-dependent component of a mutable object
27840         is one itself.
27841
27842 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
27843
27844         * freeze.adb (Freeze_Entity): When an inherited subprogram is
27845         inherited, has convention C, and has unconstrained array parameters,
27846         place the corresponding warning on the derived type declaration rather
27847         than the original subprogram.
27848
27849         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
27850         indication on renaming declaration, if formal has a box and actual
27851         is absent.
27852
27853         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
27854         determine whether to generate an implicit or explicit reference to
27855         the renamed entity.
27856
27857         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
27858         subprogram renaming comes from a defaulted formal subprogram in an
27859         instance.
27860
27861 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
27862
27863         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
27864         value expressions to ensure that calls within a component definition
27865         will be checked (since those are evaluated during the record type's
27866         elaboration).
27867
27868 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
27869
27870         * s-tpobop.adb: Code clean up:
27871         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
27872         code.
27873         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
27874
27875 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
27876
27877         * Makefile.in: Clean up in the ravenscar run time.
27878
27879 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27880
27881         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
27882         of No_Strict_Aliasing to build_pointer_type_for_mode.
27883         * utils.c (update_pointer_to): Walk pointer and ref chains.
27884
27885 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
27886
27887         * ali.ads: Fix Comment about Dynamic_Elab.
27888
27889         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
27890         Has_RACW, Is_Generic, etc.)
27891         (Output_Object, Gnatls): Take into account ALI files not attached to
27892         an object.
27893
27894 2004-03-22  Vincent Celier  <celier@gnat.com>
27895
27896         * gprep.adb: Change all String_Access to Name_Id
27897         (Is_ASCII_Letter): new function
27898         (Double_File_Name_Buffer): New procedure
27899         (Preprocess_Infile_Name): New procedure
27900         (Process_Files): New procedure
27901         (Gnatprep): Check if output and input are existing directories.
27902         Call Process_Files to do the real job.
27903
27904 2004-03-22  Robert Dewar  <dewar@gnat.com>
27905
27906         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
27907         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
27908
27909 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
27910
27911         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
27912         case when the source contains only comments.
27913
27914 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
27915
27916         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
27917         declaration for a child subprogram body that acts as a spec, indicate
27918         that the entity in the declaration needs debugging information.
27919
27920         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
27921         full view if the subtype is created for a constrained record component;
27922         gigi has enough information to construct the record, and there is no
27923         place in the tree for the declaration.
27924
27925         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
27926         serial number for the dummy body that is built for analysis, to avoid
27927         inconsistencies in the generation of internal names when compiling
27928         with -gnatN.
27929
27930 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
27931
27932         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
27933         object.
27934
27935 2004-03-22  GNAT Script  <nobody@gnat.com>
27936
27937         * Make-lang.in: Makefile automatically updated
27938
27939 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27940
27941         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
27942         * trans.c (tree_transform, emit_index_check): Likewise.
27943         * utils.c (build_template): Likewise.
27944         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
27945         (maybe_unconstrained_array, unchecked_convert): Likewise.
27946         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
27947         (build_unary_op): Likewise.
27948         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
27949         (fill_vms_descriptor): Likewise.
27950         (build_call_alloc_dealloc): Likewise.
27951         ALIGN is unsigned.
27952         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
27953
27954 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
27955
27956         PR other/14630
27957         * gnat_ug.texi: Add info directory category and entry.
27958         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
27959         gnat_ug_wnt.texi: Regenerate.
27960
27961 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
27962
27963         * ada-tree.h: Update copyright notice.
27964         Minor reformatting.
27965
27966 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
27967
27968         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
27969         as regular exception objects and not as mere integers representing the
27970         condition code.  The latter approach required some dynamics to mask off
27971         severity bits, which did not fit well into the GCC table based model.
27972         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
27973         exception data objects. We don't it and it would conflict with the other
27974         external symbol we have to generate for such exceptions.
27975
27976         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
27977         the special code for VMS exceptions, since these are now represented
27978         as regular exceptions objects.
27979
27980 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27981
27982         * decl.c (debug_no_type_hash): Remove.
27983         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
27984         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
27985
27986 2004-03-19  Laurent Guerby <laurent@guerby.net>
27987
27988         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
27989         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
27990
27991 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27992
27993         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
27994         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
27995         (TYPE_RM_SIZE_INT): Directly use type.values.
27996         (TREE_LOOP_ID): Clean up check.
27997         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
27998         TYPE_VALUES, not TYPE_FIELDS.
27999         * trans.c (convert_with_check): Delay access of bounds of basetype
28000         until sure is numeric.
28001
28002 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
28003
28004         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
28005
28006         Code clean up:
28007         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
28008         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
28009         Specific.Set instead of direct call to e.g pthread_setspecific.
28010
28011 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
28012
28013         * adaint.c: Update comments.
28014
28015         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
28016         GNATLIB_SHARED for FreeBSD.
28017
28018 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
28019
28020         * init.c [VxWorks]: Do not fix the stack size for the environment task.
28021         When needed (stack checking) the stack size is retrieved
28022         from the VxWorks kernel.
28023
28024         * Makefile.in: Flag -nostdinc is required when building the run time
28025         for avoiding looking for files in the base compiler.
28026         Add the VxWorks specific version of the package body for
28027         System.Stack_checking.Operations (5zstchop.adb).
28028
28029         * Make-lang.in: Add the object file for
28030         System.Stack_Checking.Operations.
28031
28032         * Makefile.rtl: Add object file for the package
28033         System.Stack_Checking.Operations.
28034
28035         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
28036
28037         * s-stache.ads, s-stache.adb: Move the operations related to stack
28038         checking from this package to package System.Stack_Checking.Operations.
28039         This way, stack checking operations are only linked in the final
28040         executable when using the -fstack-check flag.
28041
28042 2004-03-18  Doug Rupp  <rupp@gnat.com>
28043
28044         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
28045         Reorganize ifeq's.
28046
28047         * 5qsystem.ads, 5xcrtl.ads: New files.
28048
28049 2004-03-18  Vincent Celier  <celier@gnat.com>
28050
28051         * prj.adb (Reset): Reset hash table Files_Htable
28052
28053         * prj-env.adb (Source_Paths, Object_Paths): New tables.
28054         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
28055         the procedures Add_To_Path_File.
28056         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
28057         making sure that each directory is present only once and, for object
28058         dirs, when a directory already present is added, the duplicate is
28059         removed and the directory is always put as the last in the table.
28060         Write the path files at the end of these accumulations.
28061
28062         * prj-nmsc.adb (Record_Source): Add source file name in hash table
28063         Files_Htable for all sources.
28064
28065         * prj-proc.adb (Process): Remove restrictions between not directly
28066         related extending projects.
28067
28068 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
28069
28070         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
28071         (Find_Sources): Minor speed optimization.
28072
28073         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
28074         parameter Trusted_Mode.
28075
28076 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
28077
28078         * scn.adb (Determine_License): Take into account a degenerated case
28079         when the source contains only comments.
28080
28081 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
28082
28083         * sem_warn.adb (Check_References): For a warning on a selected
28084         component that does not come from source, locate an uninitialized
28085         component of the record type to produce a more precise error message.
28086
28087 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
28088
28089         * 3zsoccon.ads: Fix multicast options.
28090
28091         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
28092         in the spec.
28093
28094 2004-03-15  Robert Dewar  <dewar@gnat.com>
28095
28096         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
28097         pragma used for a private type.
28098
28099         * lib-xref.adb (Generate_Reference): Do not generate warning if
28100         reference is in a different unit from the pragma Unreferenced.
28101
28102         * 5vtpopde.adb: Minor reformatting
28103         Fix casing of To_Task_ID
28104
28105         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
28106         flag if we have an unchecked conversion to an access type in the same
28107         unit.
28108
28109 2004-03-15  Geert Bosch  <bosch@gnat.com>
28110
28111         * a-ngcoty.adb (Modulus): In alternate formula for large real or
28112         imaginary parts, use Double precision throughout.
28113
28114         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
28115         we want to be able to compile run-time with -gnata for testing, but
28116         this may also be instantiated in user code that is compiled with -gnata.
28117
28118 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
28119
28120         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
28121         codes. Having a separate type for this is useful to enforce consistency
28122         throughout the various run-time units.
28123         (Exception_Data): Use Exception_Code for Import_Code.
28124
28125         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
28126         Natural and Integer in various places.
28127         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
28128         with the severity bits masked off.
28129         (Register_VMS_Exception): Handle the additional exception data pointer
28130         argument.
28131
28132         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
28133         component, now reflected by an exported accessor.
28134         (is_handled_by): New routine to compute whether the propagated
28135         occurrence matches some handler choice specification. Extracted out of
28136         get_action_description_for, and expanded to take care of the VMS
28137         specifities.
28138         (get_action_description_for): Use is_handled_by instead of an explicit
28139         complex condition to decide if the current choice at hand catches the
28140         propagated occurrence.
28141
28142         * raise.h (Exception_Code): New type for C.
28143
28144         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
28145         System.Standard_Library.Exception_Code, to allow references from the
28146         pragma import/export expander.
28147
28148         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
28149         New accessors to allow easy access to GNAT exception data
28150         characteristics.
28151         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
28152         redundant Handled_By_Others component, helper for the personality
28153         routine which will now be able to call the appropriate exception data
28154         accessor instead.
28155
28156         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
28157         component of Standard_Exception_Type to be the closest possible to
28158         Exception_Code in System.Standard_Library, that we cannot get at this
28159         point. Expand a ??? comment to notify that this type node should
28160         probably be rewritten later on.
28161
28162         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
28163         registration call to include a pointer to the exception object in the
28164         arguments.
28165
28166         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
28167         instead of int and explicit bitmasks.
28168
28169 2004-03-15  Vincent Celier  <celier@gnat.com>
28170
28171         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
28172         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
28173
28174         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
28175         longer needed now that it is in the spec of
28176         System.Tasking.Task_Attributes.
28177
28178         * adaint.h, adaint.c: (__gnat_create_output_file): New function
28179
28180         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
28181
28182         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
28183
28184         * make.adb (Gnatmake): Do not check the executable suffix; it is being
28185         taken care of in Scan_Make_Arg.
28186         (Scan_Make_Arg): Add the executable suffix only if the argument
28187         following -o, in canonical case, does not end with the executable
28188         suffix.  When in verbose mode and executable file name does not end
28189         with executable suffix, output the executable name, in canonical case.
28190
28191         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
28192         to avoid warnings when instantiating Ada.Task_Attributes.
28193         Minor reformating.
28194
28195         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
28196         in the correct order.
28197
28198         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
28199         redirect standard output and error to a file for the invocation of the
28200         compiler, then read the file.
28201
28202         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
28203         directory, instead of the Value.
28204         (Find_Source_Dirs): Remove useless code & comments.
28205
28206 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
28207
28208         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
28209         tagged type is inherited, and the parent operation is not frozen yet,
28210         force generation of a freeze node for the inherited operation, so the
28211         corresponding dispatch entry is properly initialized.
28212         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
28213         when looking for user-defined equality operation.
28214
28215         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
28216         boolean when locating primitive equality of tagged component.
28217
28218         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
28219         bit-aligned field and the right-hand side a string literal, introduce
28220         a temporary before expanding assignment into a loop.
28221
28222         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
28223         priority in full, to ensure that any expanded subepxressions of it are
28224         elaborated in the scope of the init_proc.
28225
28226         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
28227         after object declaration, skipping over code that may have been
28228         generated for validity checks.
28229
28230         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
28231         discriminants, ignore the known discriminants of its full view, if
28232         any, to check legality.
28233
28234         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
28235         component if type has unknown discriminants.
28236         (Analyze_Private_Extension_Declaration): Discriminant constraint is
28237         null if type has unknown discriminants.
28238
28239         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
28240         for end label when present.
28241
28242         * s-fileio.adb (Open): When called with a C_Stream, use given name for
28243         temporary file, rather than an empty string.
28244
28245 2004-03-15  Ed Falis  <falis@gnat.com>
28246
28247         * s-thread.adb: Removed, no longer used.
28248
28249 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28250
28251         * decl.c (target.h): Now include.
28252         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
28253         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
28254         (validate_size): For POINTER_TYPE, get smallest size permitted on
28255         machine.
28256
28257         * fe.h: Sort Einfo decls and add Set_Mechanism.
28258
28259         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
28260         (ada/decl.o): Depends on target.h.
28261
28262         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
28263         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
28264
28265 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
28266
28267         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
28268
28269         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
28270         Insert_Dereference_Action when rewriting an implicit dereference into
28271         an explicit one, this will be taken care of during expansion of the
28272         explicit dereference.
28273         (Expand_N_Slice): Same. Always do the rewriting, even for the case
28274         of non-packed slices, since the dereference action generated by
28275         expansion of the explicit dereference is needed in any case.
28276         (Expand_N_Selected_Component): When rewriting an implicit dereference,
28277         analyze and resolve the rewritten explicit dereference so it is seen
28278         by the expander.
28279         (Insert_Dereference_Action): This procedure is now called only for the
28280         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
28281         dereferences that do not come from source (including explicit
28282         dereferences resulting from rewriting implicit ones), but do not
28283         recursively insert a check for the dereference nodes contained within
28284         the check.
28285         (Insert_Dereference_Action): Clarify and correct comment.
28286
28287 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
28288
28289         PR ada/14131
28290         Move language detection to the top level.
28291         * config-lang.in: Build by default.
28292
28293 2004-03-05  Robert Dewar  <dewar@gnat.com>
28294
28295         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
28296
28297         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
28298         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
28299         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
28300         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
28301         unchecked conversion to spec to avoid warnings.
28302
28303         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
28304         to Task_ID
28305
28306         * 7stpopsp.adb: Correct casing in To_Task_ID call
28307
28308         * a-strsea.ads, a-strsea.adb: Minor reformatting
28309
28310         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
28311
28312         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
28313         Adjust Max_Msg_Length to be clearly large enough.
28314
28315         * fe.h: Define In_Same_Source_Unit
28316
28317         * osint.adb: Add pragma Warnings Off to suppress warnings
28318         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
28319         aliasing warnings.
28320
28321         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
28322
28323         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
28324
28325         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
28326
28327         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
28328
28329         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
28330
28331         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
28332         node. We now do generate them for gcc back end.
28333
28334         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
28335         warning.
28336
28337         * sinput-c.adb: Fix bad name in header.
28338         Add pragma Warnings Off to suppress aliasing warning.
28339
28340         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
28341
28342         * snames.h, snames.ads, snames.adb: Add entry for pragma
28343         No_Strict_Aliasing.
28344
28345 2004-03-05  Vincent Celier  <celier@gnat.com>
28346
28347         * prj-com.ads: Add hash table Files_Htable to check when a file name
28348         is already a source of another project.
28349
28350         * prj-nmsc.adb (Record_Source): Before recording a new source, check
28351         if its file name is not already a source of another project. Report an
28352         error if it is.
28353
28354         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
28355         source file name, call gnatpp with all the sources of the main project.
28356
28357         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
28358         of file names.
28359
28360         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
28361         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
28362         /RUNTIME_SYSTEM=, converted to --RTS=
28363         /NOTABS, converted to -notabs
28364
28365 2004-03-05  Pascal Obry  <obry@gnat.com>
28366
28367         * make.adb: Minor reformatting.
28368
28369 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
28370
28371         Part of implemention of AI-262.
28372         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
28373
28374         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
28375         procedure.
28376
28377         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
28378         when component type is a partially constrained class-wide subtype.
28379         (Constrain_Discriminated_Type): If parent type has unknown
28380         discriminants, a constraint is illegal, even if full view has
28381         discriminants.
28382         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
28383         with unknown discriminants whose full view is a discriminated record.
28384
28385         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
28386         flag, to handle properly derivations of tagged types with unknown
28387         discriminants.
28388         (Analyze_Package_Spec, Analyze_Package_Body): Install
28389         Private_With_Clauses before analyzing private part or body.
28390
28391         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
28392         Has_Discriminants can be true for a given type (documentation).
28393
28394 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
28395
28396         * s-restri.ads: Fix license (GPL->GMGPL).
28397
28398         * s-tassta.adb: Minor reformatting.
28399
28400         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
28401         by calls to Exit_One_ATC_Level, since additional clean up is performed
28402         by this function.
28403
28404         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
28405         by calls to Exit_One_ATC_Level, since additional clean up is performed
28406         by this function.
28407
28408 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28409
28410         * trans.c: Reflect GCC changes to fix bootstrap problem.
28411         Add warning for suspicious aliasing unchecked conversion.
28412
28413 2004-03-05  GNAT Script  <nobody@gnat.com>
28414
28415         * Make-lang.in: Makefile automatically updated
28416
28417 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
28418
28419         * ali.adb (Read_Instantiation_Instance): Do not modify the
28420         current_file_num when reading information about instantiations, since
28421         this corrupts files in later references.
28422
28423 2004-03-02  Vincent Celier  <celier@gnat.com>
28424
28425         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
28426         before checking if it is read-only.
28427
28428         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
28429         of SRC_DIRS and eliminate duplicates.
28430
28431         * gprcmd.adb: Replace command "path" with command "path_sep" to return
28432         the path separator.
28433         (Usage): Document path_sep
28434
28435         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
28436         C++ compiler. No need for a script.
28437         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
28438         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
28439         subst.
28440
28441         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
28442         where there are Ada sources.
28443         (Set_Ada_Paths): Only add to the include path the source dirs of project
28444         with Ada sources.
28445         (Add_To_Path): Add the Display_Values of the directories, not their
28446         Values.
28447
28448         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
28449         data.
28450
28451         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
28452         is not No_Name.
28453         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
28454         Value is canonicalized.
28455         (Language_Independent_Check): Do not copy Value to Display_Value when
28456         canonicalizing Value.
28457
28458         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
28459         path to find limited with cycles.
28460         (Parse_Single_Project): Use canonical cased path to find the end of a
28461         with cycle.
28462
28463 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
28464
28465         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
28466         and not a child unit.
28467
28468         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
28469         appear in a with_clause.
28470
28471         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
28472         only happen in type_annotate mode, do not try to elaborate it.
28473
28474         * exp_util.adb (Force_Evaluation): If expression is a selected
28475         component on the left of an assignment, use a renaming rather than a
28476         temporary to remove side effects.
28477
28478         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
28479         inlined instance body, which is analyzed before the end of the
28480         enclosing scope.
28481
28482 2004-03-02  Robert Dewar  <dewar@gnat.com>
28483
28484         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
28485         sem_ch4.adb: Use new feature for substitution of keywords in VMS
28486
28487         * errout.ads, errout.adb: Implement new circuit for substitution of
28488         keywords in VMS.
28489
28490         * sem_case.adb (Analyze_Choices): Place message properly when case is
28491         a subtype reference rather than an explicit range.
28492
28493         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
28494
28495 2004-03-02  Doug Rupp  <rupp@gnat.com>
28496
28497         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
28498
28499 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
28500
28501         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
28502
28503 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28504
28505         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
28506         BLKmode bitfield.
28507
28508 2004-02-25  Robert Dewar  <dewar@gnat.com>
28509
28510         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
28511         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
28512         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
28513         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
28514         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
28515         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
28516         the defining instance of the type to avoid aliasing problems.
28517         Fix copyright header.  Fix bad comments in package header.
28518
28519         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
28520
28521 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
28522
28523         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
28524         rewritten as references when aliased through an address clause.
28525
28526         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
28527         whether call can be interpreted as an indirect call to the result of a
28528         parameterless function call returning an access subprogram.
28529
28530 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
28531
28532         Code clean up:
28533         * exp_ch7.adb (Make_Clean): Remove generation of calls to
28534         Unlock[_Entries], since this is now done by Service_Entries directly.
28535
28536         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
28537
28538         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
28539         Requeue_Call for better code readability. Change spec and update calls:
28540         PO_Service_Entries now unlock the PO on exit.
28541         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
28542         PO_Service_Entries.
28543
28544         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
28545
28546         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
28547
28548 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
28549
28550         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
28551         protected subprogram call and analyzing the result of such expanding
28552         in case when the called protected subprogram is eliminated.
28553
28554         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
28555         names.
28556
28557 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
28558
28559         * Makefile.in: Clean ups.
28560
28561 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
28562
28563         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
28564         protected operations if original subprogram is flagged as eliminated.
28565         (Expand_N_Subprogram_Body): For a protected operation, create
28566         discriminals for next operation before checking whether the operation
28567         is eliminated.
28568
28569         * exp_ch9.adb (Expand_N_Protected_Body,
28570         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
28571         for internal protected operations if the original subprogram is
28572         eliminated.
28573
28574         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
28575         declared in a single protected object.
28576
28577 2004-02-23  Vincent Celier  <celier@gnat.com>
28578
28579         * prj-attr.adb: Make attribute Builder'Executable an associative array,
28580         case insensitive if file names are case insensitive, instead of a
28581         standard associative array.
28582
28583         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
28584         them as case insensitive on platforms where the file names are case
28585         sensitive.
28586
28587         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
28588         project file has already been parsed that canonical path are compared.
28589
28590 2004-02-23  Robert Dewar  <dewar@gnat.com>
28591
28592         * sinput-c.ads: Correct bad unit title in header
28593
28594         * freeze.adb: Minor reformatting
28595
28596 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28597
28598         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
28599         nonaddressable COMPONENT_REF that is removing padding that we are
28600         taking the address of, take the address of the padded record instead
28601         if item is variable size.
28602
28603 2004-02-20  Robert Dewar  <dewar@gnat.com>
28604
28605         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
28606
28607 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
28608
28609         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
28610         itype references for the constrained designated type of a component
28611         whose base type is already frozen.
28612
28613 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
28614
28615         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
28616         avoid GCC warnings.
28617
28618 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
28619
28620         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
28621         identifier for a phantom package that rewrites the formal package
28622         declaration with a box. The Add semantic decorations for the defining
28623         identifier from the original node (that represents the formal package).
28624
28625 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
28626
28627         * Make-lang.in (ada/stamp-sdefault): Use the top level
28628         move-if-change.
28629
28630 2004-02-19  Richard Henderson  <rth@redhat.com>
28631
28632         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
28633
28634 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
28635
28636         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
28637         Scan_ALI can be used for multiple ALI files without reinitializing
28638         between calls.
28639
28640 2004-02-18  Robert Dewar  <dewar@gnat.com>
28641
28642         * debug.adb: Minor reformatting.
28643
28644 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28645
28646         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
28647         to zero if there is an address clause.
28648
28649 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
28650
28651         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
28652
28653 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
28654
28655         * layout.adb (Layout_Component_List): Revise generation of call to
28656         discriminant-checking function to pass selections of all of the type's
28657         discriminants rather than just the variant-controlling discriminant.
28658
28659 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
28660
28661         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
28662         fail in the current setup and triggers spurious system error messages.
28663         Pretend it occurred and failed instead.
28664
28665 2004-02-18  Vincent Celier  <celier@gnat.com>
28666
28667         * bld.adb: Mark FLDFLAGS as saved
28668         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
28669         it is not the root project.  Put each directory to be
28670         extended between double quotes to prevent it to be expanded on Windows.
28671         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
28672         the project file. Set them back to their initial values if they have not
28673         been set in the project file.
28674
28675         * gprcmd.adb: (Gprdebug, Debug): New global variables
28676         (Display_Command): New procedure
28677         (Usage): Document new command "linkopts"
28678         Call Display_Command when env var GPRDEBUG has the value "TRUE"
28679         Implement new command "linkopts"
28680         Remove quotes that may be around arguments for "extend"
28681         Always call Normalize_Pathname with arguments formatted for the platform
28682
28683         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
28684         Change @echo to @$(display) in target clean to be able to clean silently
28685
28686         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
28687
28688         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
28689         canonical case.
28690
28691         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
28692         = Extending_All when current project is an extending all project.
28693
28694         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
28695         set to True only for LINK command, after Unix switch -o.
28696         (Process_Arguments): Set Output_File_Expected to True for LINK command
28697         after Unix switch -o. When Output_File_Expected is True, never add an
28698         extension to a file name.
28699
28700         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
28701         option file name, only to the --for-linker= switch.
28702         (Option_File_Name): If option file name do not end with ".opt", append
28703         "/OPTIONS".
28704
28705 2004-02-18  GNAT Script  <nobody@gnat.com>
28706
28707         * Make-lang.in: Makefile automatically updated
28708
28709 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
28710
28711         * Make-lang.in (stamp-sdefault): Do not depend on
28712         move-if-change.
28713
28714 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
28715
28716         * config-lang.in: Disable Ada by default until probe logic for
28717         a bootstrap Ada compiler can be moved to the top level configure
28718         script.
28719
28720 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
28721
28722         * decl.c (components_to_record): Don't claim that the internal fields
28723         we make to hold the variant parts are semantically addressable, because
28724         they are not.
28725
28726         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
28727         adjust the comment describing the modular type form when we can use it.
28728         (Install_PAT): Account for the Esiz renaming.
28729
28730         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
28731         sc_onstack context indication before raising the exception to which
28732         the signal is mapped. Allows better handling of later signals possibly
28733         triggered by the resumed user code if the exception is handled.
28734
28735 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
28736
28737         * 5zinit.adb: Removed, no longer used.
28738
28739 2004-02-12  Robert Dewar  <dewar@gnat.com>
28740
28741         * ali.adb: Remove separating space between parameters on R line. Makes
28742         format consistent with format used by the binder for Set_Globals call.
28743
28744         * atree.ads, atree.adb: Minor reformatting (new function header format)
28745
28746         * bindgen.adb: Add Run-Time Globals documentation section containing
28747         detailed documentation of the globals passed from the binder file to
28748         the run time.
28749
28750         * gnatls.adb: Minor reformatting
28751
28752         * init.c (__gnat_set_globals): Add note pointing to documentation in
28753         bindgen.
28754
28755         * lib-writ.ads, lib-writ.adb: Remove separating space between
28756         parameters on R line.
28757         Makes format consistent with format used by the binder for Set_Globals
28758         call.
28759
28760         * osint.ads: Add 2004 to copyright notice
28761         Minor reformatting
28762
28763         * snames.ads: Correct capitalization of FIFO_Within_Priorities
28764         Noticed during code reading, documentation issue only
28765
28766         * usage.adb: Remove junk line for obsolete C switch
28767         Noticed during code reading
28768
28769 2004-02-12  Vincent Celier  <celier@gnat.com>
28770
28771         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
28772         extend for each directory, so that multiple /** directories are
28773         extended individually.
28774         (Recursive_Process): Set the default for LANGUAGES to ada
28775
28776         * gprcmd.adb: Define new command "ignore", to do nothing.
28777         Implement new comment "path".
28778
28779         * Makefile.generic: Suppress output when SILENT is set
28780         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
28781         used, so that the correct compiler is invoked.
28782         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
28783         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
28784
28785 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
28786
28787         * Makefile.in: Clean ups and remove obsolete targets.
28788
28789 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
28790
28791         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
28792         predicate declared in exp_util.
28793
28794         * exp_util.adb: Add comments.
28795
28796         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
28797         visibility before compiling context of the subunit.
28798
28799         * sem_res.adb (Check_Parameterless_Call): If the context expects a
28800         value but the name is a procedure, do not attempt to analyze as a call,
28801         in order to obtain more telling diagnostics.
28802
28803         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
28804         'Access on parameterless function calls.
28805         (Normalize_Actuals): For a parameterless function call with missing
28806         actuals, defer diagnostic until resolution of enclosing call.
28807
28808         * sem_util.adb (Wrong_Type): If the context type is an access to
28809         subprogram and the expression is a procedure name, suggest a missing
28810         'attribute.
28811
28812 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
28813             Nathanael Nerode  <neroden@gcc.gnu.org>
28814
28815         PR ada/6637
28816         PR ada/5911
28817         Merge with libada-branch:
28818         * config-lang.in: Build libada only when ada is built.
28819
28820 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
28821
28822         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
28823         for a tagged type, verify that both formals have the same type.
28824
28825         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
28826         temporary when the formal is an in-parameter and the actual a possibly
28827         unaligned slice.
28828
28829         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
28830         when expansion is disabled, to ensure proper name capture with
28831         overloaded literals.  Condition can be of any boolean type, resolve
28832         accordingly.
28833
28834         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
28835         renaming is for a formal subprogram with a default operator name, and
28836         there is a usable operator that is visible at the point of
28837         instantiation.
28838
28839 2004-02-09  Robert Dewar  <dewar@gnat.com>
28840
28841         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
28842         rewrite to ignore errors in ali files, intended to allow tools downward
28843         compatibility with new versions of ali files.
28844
28845         * ali.ads: Add new parameter Ignore_Errors
28846
28847         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
28848         duplicating the error message giving the file with restrictions.
28849
28850         * debug.adb: Add debug flag I for gnatbind
28851
28852         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
28853         operators for the case where the operator is a defining operator.
28854
28855         * exp_ch3.adb: Minor reformatting (new function spec format).
28856
28857         * exp_ch4.adb: Add comment for previous change, and make minor
28858         adjustment to loop to always check for improper loop termination.
28859         Minor reformatting throughout (new function spec format).
28860
28861         * gnatbind.adb: Implement -di debug flag for gnatbind
28862
28863         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
28864
28865         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
28866
28867         * lib-load.adb: Fix bad assertion.
28868         Found by testing and code reading.
28869         Minor reformatting.
28870
28871         * lib-load.ads: Minor reformatting.
28872
28873         * lib-writ.adb: There is only one R line now.
28874
28875         * lib-writ.ads: Add documentation on making downward compatible changes
28876         to ali files so old tools work with new ali files.
28877         There is only one R line now.
28878         Add documentation on format incompatibilities (with special GPS note)
28879
28880         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
28881
28882         * par-load.adb: Minor reformatting
28883
28884         * sem_ch8.adb: Fix to error message from last update
28885         Minor reformatting and restructuring of code from last update
28886
28887         * par-prag.adb, snames.adb, snames.ads, snames.h,
28888         sem_prag.adb: Implement pragma Profile.
28889
28890         * stylesw.adb: Implement -gnatyN switch to turn off all style check
28891         options.
28892
28893         * usage.adb: Add line for -gnatyN switch
28894
28895         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
28896
28897 2004-02-09  Albert Lee  <lee@gnat.com>
28898
28899         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
28900
28901 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
28902
28903         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
28904         slices.
28905
28906         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
28907         is nested in an instance that is not frozen yet, to avoid
28908         order-of-elaboration problems in gigi.
28909
28910         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
28911         body the attribute is legal.
28912
28913 2004-02-09  Robert Dewar  <dewar@gnat.com>
28914
28915         * s-rident.ads: Minor comment correction
28916
28917         * targparm.adb: Remove dependence on uintp completely. There was
28918         always a bug in Make in that it called Targparm before initializing
28919         the Uint package. The old code appeared to get away with this, but
28920         the new code did not! This caused an assertion error in gnatmake.
28921
28922         * targparm.ads: Fix bad comment, restriction pragmas with parameters
28923         are indeed fully supported.
28924
28925 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
28926
28927         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
28928
28929 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
28930
28931         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
28932         with targetm.calls.promote_prototypes.
28933
28934 2004-02-04  Robert Dewar  <dewar@gnat.com>
28935
28936         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
28937         ali.ads, gprcmd.adb: Minor reformatting
28938
28939         * bindgen.adb: Output restrictions string for new style restrictions
28940         handling
28941
28942         * impunit.adb: Add s-rident.ads (System.Rident) and
28943         s-restri (System.Restrictions)
28944
28945         * lib-writ.adb: Fix bug in writing restrictions string (last few
28946         entries wrong)
28947
28948         * s-restri.ads, s-restri.adb: Change name Restrictions to
28949         Run_Time_Restrictions to avoid conflict with package name.
28950         Add circuit to read and acquire run time restrictions.
28951
28952 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
28953
28954         * restrict.ads, restrict.adb: Use the new restriction
28955         No_Task_Attributes_Package instead of the old No_Task_Attributes.
28956
28957         * sem_prag.adb: No_Task_Attributes is a synonym of
28958         No_Task_Attributes_Package.
28959
28960         * snames.ads, snames.adb: New entry for proper handling of
28961         No_Task_Attributes.
28962
28963         * s-rident.ads: Adding restriction No_Task_Attributes_Package
28964         (AI-00249) that supersedes the GNAT specific restriction
28965         No_Task_Attributes.
28966
28967 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
28968
28969         * sem_prag.adb:
28970         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
28971          body, an identifier may be wrapped in an unchecked conversion.
28972
28973 2004-02-04  Vincent Celier  <celier@gnat.com>
28974
28975         * lib-writ.ads: Comment update for the W lines
28976
28977         * bld.adb: (Expression): An empty string list is static
28978
28979         * fname-uf.adb: Minor comment update
28980
28981         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
28982
28983         * gnatbind.adb: Initialize Cumulative_Restrictions with the
28984         restrictions on the target.
28985
28986 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
28987
28988         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
28989         gen_rtx.
28990
28991 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
28992
28993         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
28994
28995 2004-02-02  Vincent Celier  <celier@gnat.com>
28996
28997         * gprcmd.adb (Check_Args): If condition is false, print the invoked
28998         comment before the usage.
28999         Gprcmd: Fail when command is not recognized.
29000         (Usage): Document command "prefix"
29001
29002         * g-md5.adb (Digest): Process last block.
29003         (Update): Do not process last block. Store remaining characters and
29004         length in Context.
29005
29006         * g-md5.ads (Update): Document that several call to update are
29007         equivalent to one call with the concatenated string.
29008         (Context): Add fields to allow new Update behaviour.
29009
29010         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
29011         defaulted to False.
29012         When May_Fail is True and no existing file can be found, return No_File.
29013
29014         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
29015         functions.
29016
29017         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
29018         spec file name instead on the W line.
29019
29020 2004-02-02  Robert Dewar  <dewar@gnat.com>
29021
29022         * ali.adb: Read and acquire info from new format restrictions lines
29023
29024         * bcheck.adb: Add circuits for checking restrictions with parameters
29025
29026         * bindgen.adb: Output dummy restrictions data
29027         To be changed later
29028
29029         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
29030         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
29031         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
29032         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
29033         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
29034
29035         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
29036         the warning message on access to possibly uninitialized variable S)
29037         Minor changes for new restrictions handling.
29038
29039         * gnatbind.adb: Minor reformatting
29040         Minor changes for new restrictions handling
29041         Move circuit for -r processing here from bcheck (cleaner)
29042
29043         * gnatcmd.adb, gnatlink.adb: Minor reformatting
29044
29045         * lib-writ.adb: Output new format restrictions lines
29046
29047         * lib-writ.ads: Document new R format lines for new restrictions
29048         handling.
29049
29050         * s-restri.ads/adb: New files
29051
29052         * Makefile.rtl: Add entry for s-restri.ads/adb
29053
29054         * par-ch3.adb: Fix bad error messages starting with upper case letter
29055         Minor reformatting
29056
29057         * restrict.adb: Major rewrite throughout for new restrictions handling
29058         Major point is to handle restrictions with parameters
29059
29060         * restrict.ads: Major changes in interface to handle restrictions with
29061         parameters. Also generally simplifies setting of restrictions.
29062
29063         * snames.ads/adb: New entry for proper handling of No_Requeue
29064
29065         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
29066         restriction counting.
29067         Other minor changes for new restrictions handling
29068
29069         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
29070         Restriction_Warnings now allows full parameter notation
29071         Major rewrite of Restrictions for new restrictions handling
29072
29073 2004-02-02  Javier Miranda  <miranda@gnat.com>
29074
29075         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
29076         syntax rule for object renaming declarations.
29077         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
29078         component definitions.
29079
29080         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
29081         components.
29082         (Array_Type_Declaration): Give support to access components. In addition
29083         it was also modified to reflect the name of the object in anonymous
29084         array types. The old code did not take into account that it is possible
29085         to have an unconstrained anonymous array with an initial value.
29086         (Check_Or_Process_Discriminants): Allow access discriminant in
29087         non-limited types.
29088         (Process_Discriminants): Allow access discriminant in non-limited types
29089         Initialize the new Access_Definition field in N_Object_Renaming_Decl
29090         node.  Change Ada0Y to Ada 0Y in comments
29091
29092         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
29093         equality operators.
29094         Change Ada0Y to Ada 0Y in comments
29095
29096         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
29097         renamings Change Ada0Y to Ada 0Y in comments
29098
29099         * sem_type.adb (Find_Unique_Type): Give support to the equality
29100         operators for universal access types
29101         Change Ada0Y to Ada 0Y in comments
29102
29103         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
29104
29105         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
29106         field.
29107         (N_Object_Renaming_Declaration): Addition of Access_Definition field
29108         Change Ada0Y to Ada 0Y in comments
29109
29110         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
29111         component definition and object renaming nodes
29112         Change Ada0Y to Ada 0Y in comments
29113
29114 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
29115
29116         * restrict.adb: Use the new restriction identifier
29117         No_Requeue_Statements instead of the old No_Requeue for defining the
29118         restricted profile.
29119
29120         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
29121         No_Requeue_Statements.
29122
29123         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
29124         that supersedes the GNAT specific restriction No_Requeue. The later is
29125         kept for backward compatibility.
29126
29127 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
29128
29129         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
29130         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
29131         pragma and fix incorrect ones.
29132
29133         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
29134         warning if the pragma is redundant.
29135
29136 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
29137
29138         * 5staprop.adb: Add missing 'constant' keywords.
29139
29140         * Makefile.in: use consistent value for SYMLIB on
29141         platforms where libaddr2line is supported.
29142
29143 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29144
29145         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
29146         annotating types.
29147
29148 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
29149
29150         * init.c (__gnat_install_handler): Setup an alternate stack for signal
29151         handlers in the environment thread. This allows proper propagation of
29152         an exception on stack overflows in this thread even when the builtin
29153         ABI stack-checking scheme is used without support for a stack reserve
29154         region.
29155
29156         * utils.c (create_field_decl): Augment the head comment about bitfield
29157         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
29158         here, because the former is not accurate enough at this point.
29159         Let finish_record_type decide instead.
29160         Don't make a bitfield if the field is to be addressable.
29161         Always set a size for the field if the record is packed, to ensure the
29162         checks for bitfield creation are triggered.
29163         (finish_record_type): During last pass over the fields, clear
29164         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
29165         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
29166         from DECL_BIT_FIELD.
29167
29168 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
29169
29170         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
29171         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
29172         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
29173
29174 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29175
29176         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
29177
29178         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
29179         (ZCX_By_Default): Likewise.
29180         (Front_End_ZCX_Support): Likewise.
29181
29182         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
29183         (Initialize_Lock): Mark Level unreferenced.
29184         (Sleep): Mark Reason unreferenced.
29185         (Timed_Sleep): Likewise.
29186         (Wakeup): Likewise.
29187         (Exit_Task): Use Result.
29188         (Check_No_Locks): Mark Self_ID unreferenced.
29189
29190         * 5gtasinf.adb (New_Sproc): Make Attr constant.
29191         (Bound_Thread_Attributes): Make Sproc constant.
29192         (New_Bound_Thread_Attributes): Likewise.
29193
29194 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
29195
29196         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
29197         one-dimensional array an slice assignments, when component type is
29198         controlled.
29199
29200         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
29201         component type is controlled, and control_actions are in effect, use
29202         TSS procedure rather than generating inline code.
29203
29204         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
29205         arrays with controlled components.
29206
29207 2004-01-26  Vincent Celier  <celier@gnat.com>
29208
29209         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
29210         command line for the non VMS case.
29211
29212         * gnatlink.adb (Process_Binder_File): When building object file, if
29213         GNU linker is used, put all object paths between quotes, to prevent ld
29214         error when there are unusual characters (such as '!') in the paths.
29215
29216         * Makefile.generic: When there are sources in Ada and the main is in
29217         C/C++, invoke gnatmake with -B, instead of -z.
29218
29219         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
29220         from VMS_Conversion.
29221         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
29222         specification of argument file on the command line.
29223
29224 2004-01-26  Bernard Banner  <banner@gnat.com>
29225
29226         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
29227
29228 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
29229
29230         * snames.adb: Update copyright notice.
29231         Add info on slice assignment for controlled arrays.
29232
29233 2004-01-23  Robert Dewar  <dewar@gnat.com>
29234
29235         * exp_aggr.adb: Minor reformatting
29236
29237         * exp_ch9.adb: Minor code clean up
29238         Minor reformatting
29239         Fix bad character in comment
29240
29241         PR ada/13471
29242         * targparm.adb (Get_Target_Parameters): Give clean abort error on
29243         unexpected end of file, along with more detailed message.
29244
29245 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29246
29247         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
29248         PAT.
29249
29250         * decl.c (copy_alias_set): New function.
29251         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
29252
29253 2004-01-23  Doug Rupp  <rupp@gnat.com>
29254
29255         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
29256         lib$${file} in case subsequent character is not a separator.
29257
29258 2004-01-23  Vincent Celier  <celier@gnat.com>
29259
29260         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
29261         when the GCC version is at least 3.
29262
29263         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
29264         Remove all "Opt.", to prepare for opt split
29265
29266         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
29267         Extends_All. Set to True when the project parsed is an extending all
29268         project. Fails for importing an extending all project only when the
29269         imported project is an extending all project.
29270         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
29271         depending on the value of Extends_All returned.
29272
29273         * prj-proc.adb (Process): Check that no project shares its object
29274         directory with a project that extends it, directly or indirectly,
29275         including a virtual project.
29276         Check that no project extended by another project shares its object
29277         directory with another also extended project.
29278
29279         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
29280         Kind = N_With_Clause
29281
29282         * prj-tree.ads: Minor reformatting
29283         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
29284
29285 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
29286
29287         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
29288         applies to a type with an incomplete view, use full view in Name of
29289         clause, for consistency with uses of Get_Attribute_Definition_Clause.
29290
29291 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
29292
29293         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
29294         SCHED_RR, since other values are not supported by this policy.
29295         (Initialize): Move initialization of mutex attribute to package
29296         elaboration, to prevent early access to this variable.
29297
29298         * Makefile.in: Remove mention of Makefile.adalib, unused.
29299
29300         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
29301         1ssecsta.ads: Removed, unused.
29302
29303 2004-01-21  Javier Miranda  <miranda@gnat.com>
29304
29305         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
29306         entity if already built in the current scope.
29307
29308         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
29309         reminder in internal scopes. Required for nested limited aggregates.
29310
29311 2004-01-21  Doug Rupp  <rupp@gnat.com>
29312
29313         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
29314         VMS. Replace all occurences of libgnat- and libgnarl- with
29315         libgnat$(hyphen) and libgnarl$(hyphen).
29316         Fixed shared library build problem on VMS.
29317
29318 2004-01-21  Robert Dewar  <dewar@gnat.com>
29319
29320         * mlib-prj.adb: Minor reformatting
29321
29322 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
29323
29324         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
29325         'constant' keywords for declaration of pointers that are not modified.
29326
29327         * exp_pakd.adb: Fix English in comment.
29328
29329 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
29330
29331         PR ada/10889
29332         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
29333         copy all attributes of the parent, including the foreign language
29334         convention.
29335
29336 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
29337
29338         PR ada/10565
29339         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
29340         for 'delay until' statement.
29341
29342 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
29343
29344         * Make-lang.in: Replace $(docdir) with doc.
29345         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
29346         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
29347         to use consistent MAKEINFO rule.
29348         (ada.man, ada.srcman): Dummy entry.
29349         (ADA_INFOFILES): Define.
29350         (ada.info, ada.srcinfo): New rules.
29351
29352 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
29353
29354         * utils.c: Update copyright notice, missed in previous change.
29355
29356 2004-01-19  Vincent Celier  <celier@gnat.com>
29357
29358         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
29359         args if Bind is True. Set First_ALI, if not already done.
29360         (Build_Library): For Stand Alone Libraries, extract from one ALI file
29361         an eventual --RTS switch, for gnatbind, and all backend switches +
29362         --RTS, for linking.
29363
29364 2004-01-19  Robert Dewar  <dewar@gnat.com>
29365
29366         * sem_attr.adb, memtrack.adb: Minor reformatting
29367
29368 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
29369
29370         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
29371         that rename enumeration literals. This is properly done in sem_eval.
29372
29373         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
29374         to functions that rename enumeration literals.
29375
29376         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
29377         functions that rename enumeration literals.
29378
29379 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
29380
29381         * Make-lang.in (utils.o): Depend on target.h.
29382         * utils.c: Include target.h.
29383         (process_attributes): Use targetm.have_named_sections instead
29384         of ASM_OUTPUT_SECTION_NAME.
29385
29386 2004-01-16  Andreas Jaeger  <aj@suse.de>
29387
29388         * Makefile.in: Add $(DESTDIR).
29389
29390 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
29391
29392         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
29393         also when not defining if a Size clause applies. That information is
29394         not to be ignored.
29395
29396 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
29397
29398         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
29399         symbolic links for the shared gnat run time when needed.
29400
29401 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
29402
29403         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
29404         for writing, and terminate with an error message if not.
29405
29406 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
29407
29408         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
29409         warning on an access to subprogram in an instance, when the target
29410         type is declared in the same generic unit.
29411         (Eval_Attribute): If 'access is known to fail accessibility check,
29412         rewrite as a raise statement.
29413
29414 2004-01-15  GNAT Script  <nobody@gnat.com>
29415
29416         * Make-lang.in: Makefile automatically updated
29417
29418 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
29419
29420         * Make-lang.in (ada.srcextra): Dummy entry.
29421
29422 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
29423
29424         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
29425
29426 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
29427
29428         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
29429         components that are initialized with aggregates.
29430
29431 2004-01-13  Vincent Celier  <celier@gnat.com>
29432
29433         * gnatlink.adb (Process_Binder_File): To find directory of shared
29434         libgcc, if "gcc-lib" is not a subdirectory, look for the last
29435         subdirectory "lib" in the path of the shared libgnat or libgnarl.
29436
29437         * make.adb (Gnatmake): If GCC version is at least 3, link with
29438         -shared-libgcc, when there is at least one shared library project.
29439
29440         * opt.ads (GCC_Version): New integer constant.
29441
29442         * adaint.c (get_gcc_version): New function.
29443
29444 2004-01-13  Robert Dewar  <dewar@gnat.com>
29445
29446         * sem_dist.adb, sem_res.adb, sem_util.adb,
29447         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
29448         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
29449
29450 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
29451
29452         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
29453         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
29454         declarations.
29455
29456 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
29457
29458         * misc.c: Remove trailing spaces.
29459         Update copyright notice missed in previous change.
29460
29461         PR ada/13572
29462         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
29463         prefix/share/make
29464
29465         * Makefile.generic: Update copyright.
29466         Add license notice.
29467
29468         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
29469         of prefix/share/make.
29470
29471         * Makefile.prolog: Update copyright.
29472         Add license notice.
29473
29474 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
29475
29476         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
29477         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
29478         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
29479         instead of String.
29480
29481         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
29482         signature.
29483
29484 2004-01-12  Javier Miranda  <miranda@gnat.com>
29485
29486         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
29487         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
29488         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
29489         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
29490         Component_Definition node.
29491
29492 2004-01-12  Ed Falis  <falis@gnat.com>
29493
29494         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
29495
29496 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
29497
29498         * link.c: Change default libgnat kind to STATIC for FreeBSD.
29499
29500 2004-01-12  Bernard Banner  <banner@gnat.com>
29501
29502         * Makefile.in: map 86numaux to a-numaux for x86_64
29503
29504 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
29505
29506         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
29507         generated to rename a generic actual, go to the actual itself, the
29508         subtype is not a user-visible entity.
29509
29510         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
29511         part is a private subtype, reset the visibility of its full view, if
29512         any, to be consistent.
29513
29514         PR ada/13417
29515         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
29516         to use a generic package G as a formal package for another generic
29517         declared within G.
29518
29519 2004-01-12  Robert Dewar  <dewar@gnat.com>
29520
29521         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
29522
29523         * usage.adb: Remove mention of obsolete -gnatwb switch
29524         Noticed during code reading
29525
29526 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
29527
29528         * 1ssecsta.adb: Minor changes for -gnatwa warnings
29529
29530 2004-01-12  GNAT Script  <nobody@gnat.com>
29531
29532         * Make-lang.in: Makefile automatically updated
29533
29534 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
29535
29536         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
29537
29538 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29539
29540         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
29541
29542 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
29543
29544         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
29545         Update comment and copyright date.
29546         * stamp-xgnatug: Delete.
29547
29548 2004-01-05  Robert Dewar  <dewar@gnat.com>
29549
29550         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
29551         be modified by the binder generated main program if the -D switch is
29552         used.
29553
29554         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
29555         imported functions (since now we expect this to be done for imported
29556         functions)
29557
29558         * 5vtaprop.adb: Add several ??? for sections requiring more comments
29559         Minor reformatting throughout
29560
29561         * 5zinit.adb: Minor reformatting
29562         Add 2004 to copyright date
29563         Minor changes to avoid -gnatwa warnings
29564         Correct some instances of using OR instead of OR ELSE (noted while
29565         doing reformatting)
29566
29567         * sprint.adb: Minor updates to avoid -gnatwa warnings
29568
29569         * s-secsta.ads, s-secsta.adb:
29570         (SS_Get_Max): New function to obtain high water mark for ss stack
29571         Default_Secondary_Stack is not a constant since it may be modified by
29572         the binder generated main program if the -D switch is used.
29573
29574         * switch-b.adb: New -Dnnn switch for binder
29575
29576         * switch-c.adb:
29577         Make -gnatg imply all warnings currently in -gnatwa
29578
29579         * vms_conv.adb: Minor reformatting
29580         Add 2004 to copyright notice
29581         Add 2004 to printed copyright notice
29582
29583         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
29584         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
29585         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
29586         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
29587         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
29588         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
29589         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
29590         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
29591         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
29592         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
29593         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
29594         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
29595         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
29596         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
29597         checks.adb, clean.adb, cstand.adb, einfo.ads,
29598         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
29599         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
29600         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
29601         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
29602         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
29603         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
29604         Minor reformatting and code clean ups.
29605         Minor changes to prevent -gnatwa warnings
29606
29607         * ali.adb: Minor reformatting and cleanup of code
29608         Acquire new SS indication of secondary stack use from ali files
29609
29610         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
29611         (since now we expect this to be done for imported functions)
29612
29613         * bindgen.adb: Generate call to modify default secondary stack size if
29614         -Dnnn switch given
29615
29616         * bindusg.adb: Add line for new -D switch
29617
29618         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
29619         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
29620         Add circuitry for both records and arrays to avoid gigi
29621         processing if the type involved has non-bit-aligned components
29622
29623         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
29624         N_String_Literal node always references an E_String_Literal_Subtype
29625         entity. This may not be true in the future.
29626         (Possible_Bit_Aligned_Component): Move processing of
29627         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
29628
29629         * exp_ch6.adb (Expand_Thread_Body): Pick up
29630         Default_Secondary_Stack_Size as variable so that we get value modified
29631         by possible -Dnnn binder parameter.
29632
29633         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
29634         (Type_May_Have_Bit_Aligned_Components): New function.
29635
29636         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
29637         (Type_May_Have_Bit_Aligned_Components): New function.
29638
29639         * fe.h: (Set_Identifier_Casing): Fix prototype.
29640         Add declaration for Sem_Elim.Eliminate_Error_Msg.
29641         Minor reformatting.
29642
29643         * freeze.adb (Freeze_Entity): Add RM reference to error message about
29644         importing constant atomic/volatile objects.
29645         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
29646         unless explicit Pure_Function pragma given, to avoid insidious bug of
29647         call to non-pure imported function getting eliminated.
29648
29649         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
29650         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
29651         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
29652         Add 2004 to printed copyright notice
29653
29654         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
29655         stack used.
29656
29657         * Makefile.rtl: Add entry for g-sestin.o
29658         g-sestin.ads: New file.
29659
29660         * mdll.adb: Minor changes to avoid -gnatwa warnings
29661
29662         * mlib-tgt.adb: Minor reformatting
29663
29664         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
29665         New switch Sec_Stack_Used (GNAT, GNATBIND)
29666         Make Default_Secondary_Stack_Size a variable instead of a constant,
29667         so that it can be modified by the new -Dnnn bind switch.
29668
29669         * rtsfind.adb (Load_Fail): Give full error message in configurable
29670         run-time mode if all_errors mode is set. This was not done in the case
29671         of a file not found, which was an oversight.
29672         Note if secondary stack unit is used by compiler.
29673
29674         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
29675         ineffective elaborate all pragmas on non-visible packages (this
29676         happened when a renamed subprogram was called). Now the elaborate all
29677         always goes on the package containing the renaming rather than the one
29678         containing the renamed subprogram.
29679
29680         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
29681         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
29682
29683         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
29684         has an Etype that references an E_String_Literal.
29685         (Eval_String_Literal): Avoid assumption that N_String_Literal node
29686         always references an E_String_Literal_Subtype entity. This may not
29687         be true in the future.
29688
29689         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
29690         pragma location.
29691
29692         * sem_res.adb (Resolve): Specialize msg for function name used in proc
29693         call.
29694
29695 2004-01-05  Ed Falis  <falis@gnat.com>
29696
29697         * g-debuti.adb: Replaced direct boolean operator with short-circuit
29698         form.
29699
29700 2004-01-05  Vincent Celier  <celier@gnat.com>
29701
29702         * bld.adb: Minor comment updates
29703         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
29704         of Item_Name).
29705
29706         * make.adb (Gnatmake): Special process for files to compile/check when
29707         -B is specified. Fail when there are only foreign mains in attribute
29708         Main of the project file and -B is not specified. Do not skip bind/link
29709         steps when -B is specified.
29710
29711         * makeusg.adb: Document new switch -B
29712
29713         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
29714
29715         * switch-m.adb: (Scan_Make_Switches): Process -B switch
29716
29717         * vms_data.ads: Add new GNAT PRETTY qualifier
29718         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
29719
29720 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29721
29722         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
29723         case.
29724
29725         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
29726         Set_Identifier_Casing.
29727
29728         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
29729         has size that overflows.
29730
29731 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
29732
29733         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
29734         -gnatwa warning on static condition.
29735
29736 2004-01-05  Doug Rupp  <rupp@gnat.com>
29737
29738         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
29739
29740 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
29741
29742         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
29743         all attributes, including read-only attribute.
29744
29745 2004-01-05  Pascal Obry  <obry@gnat.com>
29746
29747         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
29748         library naming scheme.
29749
29750         * mlib-prj.adb (Build_Library): Generate different names for the static
29751         or dynamic version of the GNAT runtime. This is needed to support the
29752         new shared library naming scheme.
29753         (Process_Binder_File): Add detection of shared library in binder file
29754         based on the new naming scheme.
29755
29756         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
29757         scheme for the shared runtime libraries.
29758
29759         * Makefile.in:
29760         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
29761         scheme.
29762         (install-gnatlib): Do not create symlinks for shared libraries.
29763         (gnatlib-shared-default): Idem.
29764         (gnatlib-shared-dual-win32): New target. Not used for now as the
29765         auto-import feature does not support arrays/records.
29766         (gnatlib-shared-win32): Do not create copy for the shared libraries.
29767         (gnatlib-shared-vms): Fix shared runtime libraries names.
29768
29769         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
29770         dependent runtime shared library name.
29771
29772 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
29773
29774         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
29775         than the object.
29776
29777 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
29778
29779         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
29780         protected objects when allocator has a subtype indication, not a
29781         qualified expression. Note that qualified expressions may have to be
29782         checked when limited aggregates are implemented.
29783
29784         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
29785         pure, emit warning.
29786         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
29787         subprogram is imported, remove warning.
29788
29789 2004-01-05  Geert Bosch  <bosch@gnat.com>
29790
29791         * s-poosiz.adb: Update copyright notice.
29792         (Allocate): Use Task_Lock to protect against concurrent access.
29793         (Deallocate): Likewise.
29794
29795 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
29796
29797         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
29798         comment.
29799
29800 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
29801
29802         * gnat_ug.texi: Force a CVS commit by updating copyright.
29803         * gnat_ug_vxw.texi: Regenerate.
29804         * gnat_ug_wnt.texi: Regenerate.
29805         * gnat_ug_vms.texi: Regenerate.
29806         * gnat_ug_unx.texi: Regenerate.
29807
29808 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
29809
29810         * trans.c: Remove uses of "register" specifier in
29811         declarations of local variables.
29812
29813 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
29814
29815         * stamp-xgnatug: New stamp file.
29816         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
29817         (ada/doctools/xgnatug): Add $(build_exeext).
29818         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
29819         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
29820
29821 2003-12-17  Ed Falis  <falis@gnat.com>
29822
29823         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
29824         eliminate warning.
29825
29826         * a-exextr.adb: Add context clause for
29827         Ada.Exceptions.Last_Chance_Handler.
29828
29829 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
29830
29831         * cstand.adb (Create_Standard): Change the way how the declaration of
29832         the Duration type is created (making it the same way as it is for all
29833         the other standard types).
29834
29835 2003-12-17  Robert Dewar  <dewar@gnat.com>
29836
29837         * s-crtl.ads: Fix header format
29838         Change Pure to Preelaborate
29839
29840 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
29841
29842         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
29843         the expression type only if it is declared in the current unit.
29844
29845         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
29846         are universal and already analyzed, as can occur in constrained
29847         subcomponents that depend on discriminants, when one constraint is a
29848         subtype mark.
29849
29850         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
29851         type Any_Fixed is legal as the argument of a conversion, if only one
29852         fixed-point type is in context.
29853
29854 2003-12-17  GNAT Script  <nobody@gnat.com>
29855
29856         * Make-lang.in: Makefile automatically updated
29857
29858 2003-12-15  Robert Dewar  <dewar@gnat.com>
29859
29860         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
29861         sec stack size.
29862
29863 2003-12-15  Vincent Celier  <celier@gnat.com>
29864
29865         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
29866         (Gnatchop): Do not set failure status when reporting the number of
29867         warnings.
29868
29869 2003-12-15  Doug Rupp  <rupp@gnat.com>
29870
29871         * s-ctrl.ads: New file.
29872
29873         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
29874
29875         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
29876         (GNATBIND_OBJS): Add ada/s-crtl.o.
29877
29878         * Makefile.in [VMS]: Clean up ifeq rules.
29879
29880         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
29881         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
29882         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
29883         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
29884         s-tasdeb.adb: Update copyright.
29885         Import System.CRTL.
29886         Make minor modifications to use System.CRTL declared functions instead
29887         of importing locally.
29888
29889 2003-12-15  GNAT Script  <nobody@gnat.com>
29890
29891         * Make-lang.in: Makefile automatically updated
29892
29893 2003-12-11  Ed Falis  <falis@gnat.com>
29894
29895         * 5zinit.adb: Clean up.
29896
29897         * 5zintman.adb (Notify_Exception): replaced case statement with a call
29898         to __gnat_map_signal, imported from init.c to support
29899         signal -> exception mappings that depend on the vxWorks version.
29900
29901         * init.c:
29902         Created and exported __gnat_map_signal to support signal -> exception
29903         mapping that is dependent on the VxWorks version.
29904         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
29905
29906 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
29907
29908         * 5wosinte.ads: Link with -mthreads switch.
29909
29910 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
29911
29912         * init.c (__gnat_install_handler [NetBSD]): Set
29913         __gnat_handler_installed, as done on all other platforms.
29914         Remove duplicated code.
29915
29916 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
29917
29918         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
29919
29920 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
29921
29922         * sinfo.ads: Fix inconsistent example code in comment.
29923
29924 2003-12-11  Robert Dewar  <dewar@gnat.com>
29925
29926         * a-tiinau.adb: Add a couple of comments
29927
29928         * sem_ch3.adb: Minor reformatting
29929
29930         * sem_prag.adb:
29931         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
29932         Minor reformatting throughout
29933
29934 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
29935
29936         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
29937         bounds of a loop, create a separate block in order to generate proper
29938         cleanup actions to prevent memory leaks.
29939
29940         * sem_res.adb (Resolve_Call): After a call to
29941         Establish_Transient_Scope, the call may be rewritten and relocated, in
29942         which case no further processing is needed.
29943
29944         * sem_util.adb: (Wrong_Type): Refine previous fix.
29945          Fixes ACATS regressions.
29946
29947         PR ada/13353
29948         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
29949         be inlined.
29950
29951 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
29952
29953         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
29954         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
29955         obsolete files.
29956
29957         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
29958         (rts-zfp): Ditto.
29959
29960 2003-12-08  Robert Dewar  <dewar@gnat.com>
29961
29962         * 7sintman.adb: Minor reformatting
29963
29964         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
29965         standard linker options to get standard libraries linked. We now plan
29966         to provide dummy versions of these libraries to match the appropriate
29967         configurable run-time (e.g. if a library is not needed at all, provide
29968         a dummy empty library).
29969
29970         * targparm.ads: Configurable_Run_Time mode no longer affects linker
29971         options (-L parameters and standard libraries). What we plan to do is
29972         to provide dummy libraries where the libraries are not required.
29973
29974         * gnatbind.adb: Minor comment improvement
29975
29976 2003-12-08  Javier Miranda  <miranda@gnat.com>
29977
29978         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
29979         aggregate in the parent. Otherwise constants with limited aggregates
29980         are not supported. Add new formal to pass the component type (Ctype).
29981         It is required to call the corresponding IP subprogram in case of
29982         default initialized components.
29983         (Gen_Assign): In case of default-initialized component, generate a
29984         call to the IP subprogram associated with the component.
29985         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
29986         of aggregate with default initialized components.
29987         (Has_Default_Init_Comps): Improve implementation to recursively check
29988         all the present expressions.
29989
29990         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
29991         to indicate that the initialization call corresponds to a
29992         default-initialized component of an aggregate.
29993         In case of default initialized aggregate with tasks this parameter is
29994         used to generate a null string (this is just a workaround that must be
29995         improved later). In case of discriminants, this parameter is used to
29996         generate a selected component node that gives access to the discriminant
29997         value.
29998
29999         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
30000         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
30001         allocated aggregates with default-initialized components.
30002
30003         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
30004         the box notation is used in positional aggregates.
30005
30006 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
30007
30008         * lib.ads: Fix typo in comment
30009
30010 2003-12-08  Vincent Celier  <celier@gnat.com>
30011
30012         * prj.adb (Project_Empty): New component Unkept_Comments
30013         (Scan): Remove procedure; moved to Prj.Err.
30014
30015         * prj.ads (Project_Data): New Boolean component Unkept_Comments
30016         (Scan): Remove procedure; moved to Prj.Err.
30017
30018         * prj-dect.adb: Manage comments for the different declarations.
30019
30020         * prj-part.adb (With_Record): New component Node
30021         (Parse): New Boolean parameter Store_Comments, defaulted to False.
30022         Set the scanner to return ends of line and comments as tokens, if
30023         Store_Comments is True.
30024         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
30025         comments are associated with these nodes. Store the node IDs in the
30026         With_Records.
30027         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
30028         With_Records.
30029         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
30030         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
30031         current project. Call Tree.Restore afterwards. Set the various nodes
30032         for comment storage (Next_End, End_Of_Line, Previous_Line,
30033         Previous_End).
30034
30035         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
30036         defaulted to False.
30037
30038         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
30039         to False. When Truncated is True, truncate the string, never go to the
30040         next line.
30041         (Write_End_Of_Line_Comment): New procedure
30042         (Print): Process comments for nodes N_With_Clause,
30043         N_Package_Declaration, N_String_Type_Declaration,
30044         N_Attribute_Declaration, N_Typed_Variable_Declaration,
30045         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
30046         Process nodes N_Comment.
30047
30048         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
30049         without comments and there are some comments, set the flag
30050         Unkept_Comments to True.
30051         (Scan): If there are comments, set the flag Unkept_Comments to True and
30052         clear the comments.
30053         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
30054         (Next_End_Nodes: New table
30055         (Comment_Zones_Of): New function
30056         (Scan): New procedure; moved from Prj. Accumulate comments in the
30057         Comments table and set end of line comments, comments after, after end
30058         and before end.
30059         (Add_Comments): New procedure
30060         (Save, Restore, Seset_State): New procedures
30061         (There_Are_Unkept_Comments): New function
30062         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
30063         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
30064         procedures.
30065         (First_Comment_After, First_Comment_After_End): New functions
30066         (First_Comment_Before, First_Comment_Before_End): New functions
30067         (Next_Comment): New function
30068         (End_Of_Line_Comment, Follows_Empty_Line,
30069         Is_Followed_By_Empty_Line): New functions
30070         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
30071         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
30072         (Set_Next_Comment): New procedure
30073         (Default_Project_Node): Associate comment before if the node can store
30074         comments.
30075
30076         * scans.ads (Token_Type): New enumeration value Tok_Comment
30077         (Comment_Id): New global variable
30078
30079         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
30080         defaulted to False.
30081         (Scan): Store position of start of comment. If comments are tokens, set
30082         Comment_Id and set Token to Tok_Comment when scanning a comment.
30083         (Set_Comment_As_Token): New procedure
30084
30085         * sinput-p.adb: Update Copyright notice
30086         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
30087         that no longer exists.
30088
30089 2003-12-08  Javier Miranda  <miranda@gnat.com>
30090
30091         * sem_aggr.adb: Add dependence on Exp_Tss package
30092         Correct typo in comment
30093         (Resolve_Aggregate): In case of array aggregates set the estimated
30094         type of the aggregate before calling resolve. This is needed to know
30095         the name of the corresponding IP in case of limited array aggregates.
30096         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
30097         in case of default initialized array components.
30098
30099         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
30100         types. Required to give support to limited aggregates in generic
30101         formals.
30102
30103 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
30104
30105         * sem_ch3.adb (Check_Initialization): For legality purposes, an
30106         inlined body functions like an instantiation.
30107         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
30108         until bounds are analyzed, to diagnose premature use of type.
30109
30110         * sem_util.adb (Wrong_Type): Improve error message when the type of
30111         the expression is used prematurely.
30112
30113 2003-12-08  GNAT Script  <nobody@gnat.com>
30114
30115         * Make-lang.in: Makefile automatically updated
30116
30117 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
30118
30119         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
30120         they are automatically generated by Make-lang.in and cause nothing but
30121         maintenance troubles.
30122
30123 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
30124
30125         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
30126         version of this unit).
30127
30128 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
30129
30130         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
30131         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
30132         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
30133         the body of System.Interrupt_Management common to several targets.
30134         Update copyright notice when appropriate.
30135
30136         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
30137         constant.
30138
30139         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
30140         to ensure that the kernel fills in the interrupted context structure
30141         before calling a signal handler, which is necessary to be able to
30142         unwind past it. Update the copyright notice.
30143
30144 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
30145
30146         * a-elchha.ads: New file.
30147
30148         * a-elchha.adb: New default last chance handler. Contents taken from
30149         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
30150
30151         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
30152         is moved to a-elchha.adb to provide a target-independent default last
30153         chance handler.
30154
30155         * Makefile.rtl: Add a-elchha.o
30156
30157         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
30158
30159 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
30160
30161         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
30162         declared in an instance, do not inline the call if the instance is not
30163         frozen yet, to prevent order of elaboration problems.
30164
30165         * sem_prag.adb: Add comments for previous fix.
30166
30167 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
30168
30169         * g-table.adb: Use the right variable in Set_Item.
30170         Update copyright notice.
30171
30172 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
30173
30174         * Makefile.in: Remove unused rules.
30175
30176 2003-12-05  Vincent Celier  <celier@gnat.com>
30177
30178         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
30179         -nostdlib. Not needed here after all.
30180
30181 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
30182
30183         PR ada/11724
30184         * adaint.h, adaint.c, g-os_lib.ads:
30185         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
30186         on some platforms (including FreeBSD), it is a 64 bit value.
30187         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
30188
30189 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
30190
30191         * gnatvsn.ads (Library_Version): Now contain only the relevant
30192         version info.
30193         (Verbose_Library_Version): New constant.
30194
30195         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
30196         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
30197         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
30198
30199         * gnatlbr.adb: Clean up: replace Library_Version by
30200         Verbose_Library_Version.
30201
30202         * make.adb, lib-writ.adb, exp_attr.adb:
30203         Clean up: replace Library_Version by Verbose_Library_Version.
30204
30205         * 5lintman.adb: Removed.
30206
30207         * Makefile.in:
30208         Update and simplify computation of LIBRARY_VERSION.
30209         Fix computation of GSMATCH_VERSION.
30210         5lintman.adb is no longer used: replaced by 7sintman.adb.
30211
30212 2003-12-03  Robert Dewar  <dewar@gnat.com>
30213
30214         * exp_ch5.adb:
30215         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
30216         name. Modified to consider small non-bit-packed arrays as troublesome
30217         and in need of component-by-component assigment expansion.
30218
30219 2003-12-03  Vincent Celier  <celier@gnat.com>
30220
30221         * lang-specs.h: Process nostdlib as nostdinc
30222
30223         * back_end.adb: Update Copyright notice
30224         (Scan_Compiler_Arguments): Process -nostdlib directly.
30225
30226 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
30227
30228         * Makefile.in:
30229         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
30230         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
30231         included in HIE_NONE_TARGET_PAIRS.
30232
30233 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
30234
30235         * sem_attr.adb:
30236         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
30237         is legal in an instance, because legality is cheched in the template.
30238
30239         * sem_prag.adb:
30240         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
30241         appplied to an unchecked conversion of a formal parameter.
30242
30243         * sem_warn.adb:
30244         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
30245         variables.
30246
30247 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
30248
30249         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
30250         routines. The second one is new functionality to deal with backtracing
30251         through signal handlers.
30252         (unwind): Split into the two separate subroutines above.
30253         Update the documentation, and deal properly with sizeof (REG) different
30254         from sizeof (void*).
30255
30256 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
30257
30258         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
30259         so that the debugger can reliably access the value of the parameter,
30260         and therefore is able to display the exception name when an exception
30261         breakpoint is reached.
30262
30263 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
30264
30265         * fmap.adb: Fix typo in warning message.
30266
30267         * g-socket.ads, g-socket.adb: Make Free a visible instance of
30268         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
30269
30270 2003-12-01  Vincent Celier  <celier@gnat.com>
30271
30272         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
30273         ther is no Afile.
30274         (Build_Library): Get the switches only if Default_Switches is declared
30275         in package Binder.
30276
30277 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
30278
30279         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
30280         actuals that are indexed components, reanalyze actual to ensure that
30281         packed array references are properly expanded.
30282
30283         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
30284         attempted assignment to a discriminant.
30285
30286 2003-12-01  Robert Dewar  <dewar@gnat.com>
30287
30288         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
30289         reformatting.
30290
30291         * switch-c.adb: Minor reformatting of comments
30292
30293 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
30294
30295         * Makefile.in: Clean ups.
30296
30297 2003-12-01  GNAT Script  <nobody@gnat.com>
30298
30299         * Make-lang.in: Makefile automatically updated
30300
30301 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
30302
30303         * 5wsystem.ads: Disable zero cost exception, not ready yet.
30304
30305 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
30306
30307         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
30308         to force serialization.
30309
30310 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
30311
30312         * g-socket.ads, g-socket.adb:
30313         Clarify documentation of function Stream. Introduce a Free procedure
30314         to release the returned Stream once it becomes unused.
30315
30316         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
30317
30318 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
30319
30320         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
30321         since NT 4 cannot handle timeout values that are too large,
30322         e.g. DWORD'Last - 1.
30323
30324 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
30325
30326         * exp_ch4.adb:
30327         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
30328         in procedure calls and whose expansion must be deferred.
30329
30330         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
30331         is in exp_ch4.
30332
30333         * sem_ch3.adb:
30334         (Build_Derived_Array_Type): Create operator for unconstrained type
30335         if ancestor is unconstrained.
30336
30337 2003-11-26  Vincent Celier  <celier@gnat.com>
30338
30339         * make.adb (Project_Object_Directory): New global variable
30340         (Change_To_Object_Directory): New procedure
30341         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
30342         of Change_Dir directly. Do not change working directory to object
30343         directory of main project after each compilation.
30344         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
30345         directly.
30346         Change to object directory of main project before binding step.
30347         (Initialize): Initialize Project_Object_Directory to No_Project
30348
30349         * mlib-prj.adb:
30350         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
30351         binding a Stand-Alone Library.
30352
30353         * output.adb: Update Copyright notice
30354         (Write_Char): Output buffer when full
30355
30356 2003-11-26  Robert Dewar  <dewar@gnat.com>
30357
30358         * sem_ch13.adb: (Check_Size): Reset size if size is too small
30359
30360         * sem_ch13.ads:
30361         (Check_Size): Fix documentation to include bit-packed array case
30362
30363         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
30364
30365         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
30366
30367         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
30368
30369 2003-11-24  Arnaud Charlet <charlet@act-europe.fr>
30370
30371         PR ada/13142
30372         * utils.c (init_gigi_decls): Change name of built-in setjmp to
30373         __builtin_setjmp, since this is apparently needed by recent
30374         non Ada changes.
30375
30376 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
30377
30378         * adadecode.c: Only include ctype.h if not IN_GCC.
30379         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
30380
30381 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
30382
30383         * Makefile.in:
30384         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
30385         signals and interrupts.
30386
30387         * 5zintman.ads: New File.
30388
30389         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
30390         add exception signals to the set of unmasked signals.
30391
30392         * 5ztaprop.adb:
30393         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
30394         between signals and interrupts.
30395         Add to Unblocked_Signal_Mask the set of signals that are in
30396         Keep_Unmasked.
30397
30398         * 7sinmaop.adb:
30399         Adding a check to see whether the Interrupt_ID we want to unmask is in
30400         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
30401         reason is that the index type of the Keep_Unmasked array is not always
30402         Interrupt_ID; it may be a subtype of Interrupt_ID.
30403
30404 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
30405
30406         * exp_util.adb:
30407         (Remove_Side_Effects): Condition constantness of object created for a
30408          an unchecked type conversion on the constantness of the expression
30409          to ensure the correct value for 'Constrained when passing components
30410          of view-converted class-wide objects.
30411
30412 2003-11-24  Robert Dewar  <dewar@gnat.com>
30413
30414         * par-load.adb (Load): Improve handling of misspelled and missing units
30415         Removes several cases of compilation abandoned messages
30416
30417         * lib.adb: (Remove_Unit): New procedure
30418
30419         * lib.ads: (Remove_Unit): New procedure
30420
30421         * lib-load.adb: Minor reformatting
30422
30423 2003-11-24  Vincent Celier  <celier@gnat.com>
30424
30425         * make.adb:
30426         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
30427         (Marking_Label): Label to mark processed source files. Incremented for
30428         each executable.
30429         (Gnatmake): Increase Marking_Labet for each executable
30430         (Is_Marked): Compare against marking label
30431         (Mark): Mark with marking label
30432
30433 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
30434
30435         * s-thread.ads:
30436         Move the declaration of the TSD for System.Threads to System.Soft_Links.
30437         Add some comments.
30438
30439         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
30440         (rts-cert): build a single relocatable object for the run-time lib.
30441         Fix perms.
30442
30443 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
30444
30445         * Make-lang.in:
30446         Use gnatls rather than gcc to obtain the location of GNAT RTL for
30447         crosstools build.
30448
30449 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
30450
30451         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
30452         can not use it as before (that is, as a variable) when dumping it into
30453         the tree file. Add a local variable to store the result of this
30454         function and to be used as the string to be written into the tree.
30455
30456         * scn.adb (Initialize_Scanner): Add comments explaining the recent
30457         changes.
30458
30459         * sinput.adb (Source_First, Source_Last): In case of
30460         Internal_Source_File, replace returning attributes of
30461         Internal_Source_Ptr (which is wrong) with returning attributes of
30462         Internal_Source.
30463
30464 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
30465
30466         * sem_ch3.adb:
30467         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
30468         used for implicit concatenation operators.
30469         Code cleanup.
30470
30471         * sem_elab.adb:
30472         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
30473         task bodies that are in the scope of a Suppress pragma.
30474         (Check_A Call): Use the flag to prevent spurious elaboration checks.
30475
30476         * sinfo.ads, sinfo.adb:
30477         New flag No_Elaboration_Check on function/procedure calls, to properly
30478         suppress checks on calls in task bodies that are within a local suppress
30479         pragma.
30480
30481         * exp_ch4.adb:
30482         (Expand_Concatenate_Other): Use the proper integer type for the
30483         expression for the upper bound, to avoid universal_integer computations
30484         when possible.
30485
30486 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
30487
30488         * .cvsignore: Delete.
30489
30490 2003-11-21  Andreas Schwab  <schwab@suse.de>
30491
30492         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
30493
30494 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
30495
30496         * 5wsystem.ads: Enable zero cost exception.
30497
30498 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
30499
30500         * 5ztiitho.adb: Remove an unreferenced variable.
30501
30502 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
30503
30504         * adaint.c: For FreeBSD, use mkstemp.
30505
30506 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
30507
30508         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
30509
30510 2003-11-21  Robert Dewar  <dewar@gnat.com>
30511
30512         * bld.adb: Remove useless USE of gnatvsn
30513
30514         * gnatchop.adb: Minor reformatting
30515         Clean up version handling to be more consistent
30516
30517         * gnatxref.adb: Minor reformatting
30518
30519         * gprcmd.adb: Minor reformatting
30520         Fix output of copyright to be more consistent with other tools
30521
30522 2003-11-21  Vincent Celier  <celier@gnat.com>
30523
30524         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
30525
30526 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
30527
30528         * atree.adb (Initialize): Add initializations for global variables
30529         used in New_Copy_Tree.
30530
30531         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
30532         Internal_Source_File as the actual).
30533         Put the set of statements creating Any_Character before the set of
30534         statements creating Any_Array to have Any_Character fully initialized
30535         when it is used in creating Any_Array.
30536
30537         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
30538         not call Scan in case if the actual is Internal_Source_File
30539         Add 2003 to copyright note.
30540
30541         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
30542         processing Internal_Source_File.
30543
30544         * types.ads: Add the constant Internal_Source_File representing the
30545         source buffer for artificial source-code-like strings created within
30546         the compiler (the definition of Source_File_Index is changed).
30547
30548 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
30549
30550         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
30551         56system.ads: New file, FreeBSD version.
30552
30553 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
30554
30555         * Make-lang.in (ada.extraclean): Delete.
30556
30557 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
30558
30559         * gnatmem.adb: Clean up verbose output.
30560
30561         * gprcmd.adb: Change copyright to FSF.
30562
30563 2003-11-19  Vincent Celier  <celier@gnat.com>
30564
30565         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
30566         and Version (ignored).
30567
30568         * symbols.ads: (Policy): New type
30569         (Initialize): New parameter Reference, Symbol_Policy and
30570         Library_Version.
30571         Remove parameter Force.
30572         Minor reformatting.
30573
30574         * snames.ads, snames.adbadb: New standard names
30575         Library_Reference_Symbol_File and Library_Symbol_Policy
30576
30577         * mlib-prj.adb:
30578         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
30579         project.
30580
30581         * mlib-tgt.adb:
30582         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
30583
30584         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
30585
30586         * prj.adb: (Project_Empty): New component Symbol_Data
30587
30588         * prj.ads: (Policy, Symbol_Record): New types
30589         (Project_Data): New component Symbol_Data
30590
30591         * prj-attr.adb:
30592         New attributes Library_Symbol_File, Library_Symbol_Policy and
30593         Library_Reference_Symbol_File.
30594
30595         * prj-nmsc.adb:
30596         (Ada_Check): When project is a Stand-Alone library project, process
30597         attribute Library_Symbol_File, Library_Symbol_Policy and
30598         Library_Reference_Symbol_File.
30599
30600         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
30601         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
30602         5sml-tgt.adb (Build_Dynamic_Library): New parameter
30603         Symbol_Data (ignored).
30604
30605         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
30606         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
30607         functions Option_File_Name and Version_String. Set new options of
30608         gnatsym related to symbol file, symbol policy and reference symbol
30609         file.
30610
30611         * 5vsymbol.adb:
30612         Extensive modifications to take into account the reference symbol file,
30613         the symbol policy, the library version and to put in the symbol file the
30614         minor and major IDs.
30615
30616         * bld.adb (Process_Declarative_Items): Put second argument of
30617         gprcmd to_absolute between single quotes, to avoid problems with
30618         Windows.
30619
30620         * bld-io.adb: Update Copyright notice.
30621         (Flush): Remove last character of a line, if it is a back slash, to
30622         avoid make problems.
30623
30624         * gnatsym.adb:
30625         Implement new scheme with reference symbol file and symbol policy.
30626
30627         * g-os_lib.ads: (Is_Directory): Clarify comment
30628
30629 2003-11-19  Robert Dewar  <dewar@gnat.com>
30630
30631         * atree.adb: Move New_Copy_Tree global variables to head of package
30632
30633         * errout.adb: Minor reformatting
30634
30635 2003-11-19  Javier Miranda  <miranda@gnat.com>
30636
30637         * sem_ch4.adb: (Diagnose_Call): Improve error message.
30638         Add reference to Ada0Y (AI-50217)
30639
30640         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
30641         sem_util.adb: Add reference to AI-50217
30642
30643         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
30644
30645         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
30646
30647         * sem_aggr.adb: Complete documentation of AI-287 changes
30648
30649         * par-ch4.adb: Document previous changes.
30650
30651         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
30652         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
30653         Ada0Y (AI-50217)
30654
30655         * exp_aggr.adb: Add references to AI-287 in previous changes
30656
30657 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
30658
30659         * exp_ch6.adb:
30660         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
30661         in the rewriting is the result of an inlined call.
30662
30663         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
30664         parameter is a type conversion, use original node to construct the
30665         post-call assignment, because expression may have been rewritten, e.g.
30666         if it is a packed array.
30667
30668         * sem_attr.adb:
30669         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
30670         body, just as it is in an instance.
30671         Categorization routines
30672
30673         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
30674         Instantiate_Object): Set proper sloc reference for message on missing
30675         actual.
30676
30677 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
30678
30679         * Makefile.in: Add FreeBSD libgnat pairs.
30680
30681         * usage.adb: Fix typo in usage message.
30682
30683 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
30684
30685         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
30686         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
30687         pragma Thread_Body.
30688         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
30689
30690         * s-thread.adb: This file is now a dummy implementation of
30691         System.Thread.
30692
30693 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
30694
30695         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
30696
30697 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
30698
30699         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
30700         instanciation references in the parent type description.
30701
30702 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30703
30704         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
30705
30706         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
30707         TYPE_PRECISION directly from esize.
30708
30709 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
30710
30711         * cstreams.c:
30712         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
30713
30714         * init.c: Initialization routines for FreeBSD
30715
30716         * link.c: Link info for FreeBSD
30717
30718         * sysdep.c: Add the case of FreeBSD
30719
30720 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
30721
30722         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
30723         already called in System.Threads.
30724
30725         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
30726         environment task, as it has been moved to System.Threads.Initialization.
30727
30728 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
30729
30730         * adaint.c (__gnatlib_install_locks): Only reference
30731         __gnat_install_locks on VMS, since other platforms can avoid using
30732         --enable-threads=gnat
30733
30734 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30735
30736         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
30737
30738         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
30739         TYPE_PACKED_ARRAY_TYPE_P.
30740         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
30741
30742         Part of PR ada/12806
30743         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
30744         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
30745
30746 2003-11-17  Vincent Celier  <celier@gnat.com>
30747
30748         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
30749         to False.
30750         Do not set exit status to Failure when Warning is True.
30751         (Gnatchop): Make errors "no compilation units found" and
30752         "no source files written" warnings only.
30753
30754         * make.adb (Gnatmake): When using a project file, set
30755         Look_In_Primary_Dir to False.
30756         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
30757         and Local_Configuration_Pragmas in the project where they are declared
30758         not an extending project which might have inherited them.
30759
30760         * osint.adb (Locate_File): If Name is already an absolute path, do not
30761         look for a directory.
30762
30763         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
30764         -gnats (Check_Syntax) is used, issue only a warning, not an error.
30765
30766         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
30767         in objects of type Variable_Value.
30768
30769         * prj.ads: (Variable_Value): New component Project
30770
30771         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
30772         is in a project extended by Project.
30773
30774         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
30775         Project of Variable_Values to this new parameter value.
30776         (Expression): Set component Project of Variable_Values.
30777         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
30778         Set the component Project in array elements.
30779
30780 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
30781
30782         * errout.adb: (Initialize): Add initialization for error nodes.
30783
30784         * sem_ch12.adb (Initialize): Add missing initializations for
30785         Exchanged_Views and Hidden_Entities.
30786
30787 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
30788
30789         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
30790         already instantiated tree for use in subsequent inlining.
30791         (Analyze_Associations, Instantiate_Formal_Subprogram,
30792         Instantiate_Object): improve error message for mismatch in
30793         instantiations.
30794
30795         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
30796         instantiations of subprograms declared in instances.
30797
30798 2003-11-17  Javier Miranda  <miranda@gnat.com>
30799
30800         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
30801         executed only under the Extensions_Allowed flag.
30802
30803 2003-11-17  Robert Dewar  <dewar@gnat.com>
30804
30805         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
30806         zeroes suppressed.
30807         (Address_Image): Fix bug of returning 0x instead of 0x0
30808         Minor reformatting (function specs).
30809
30810         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
30811         (missed case of 33-63)
30812
30813         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
30814
30815         * s-thread.adb: Add comments for pragma Restriction
30816
30817         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
30818         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
30819
30820 2003-11-17  Ed Falis  <falis@gnat.com>
30821
30822         * s-thread.adb: Added No_Tasking restriction for this implementation.
30823
30824 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
30825
30826         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
30827         instanciation references in the parent type description.
30828
30829 2003-11-17  GNAT Script  <nobody@gnat.com>
30830
30831         * Make-lang.in: Makefile automatically updated
30832
30833 2003-11-16  Jason Merrill  <jason@redhat.com>
30834
30835         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
30836         and TAGS files that include them for each front end.
30837
30838 2003-11-14  Andreas Jaeger  <aj@suse.de>
30839
30840         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
30841         is the canonical version.
30842         * misc.c (gnat_handle_option): Likewise.
30843
30844         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
30845
30846         * 5nsystem.ads: New file for x86_64-linux-gnu.
30847
30848 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
30849
30850         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
30851
30852         * comperr.adb: Fix logic in previous change.
30853
30854 2003-11-13  Vincent Celier  <celier@gnat.com>
30855
30856         * 5bml-tgt.adb (Build_Dynamic_Library): Use
30857         Osint.Include_Dir_Default_Prefix instead of
30858         Sdefault.Include_Dir_Default_Name.
30859
30860         * gnatlbr.adb: Update Copyright notice
30861         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
30862         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
30863         instead of Sdefault.Object_Dir_Default_Name
30864
30865         * gnatlink.adb:
30866         (Process_Binder_File): Never suppress the option following -Xlinker
30867
30868         * mdll-utl.adb:
30869         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
30870         Sdefault.Object_Dir_Default_Name.
30871
30872         * osint.ads, osint.adb:
30873         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
30874         Minor reformatting.
30875
30876         * vms_conv.ads: Minor reformating
30877         Remove GNAT STANDARD and GNAT PSTA
30878
30879         * vms_conv.adb:
30880         Allow GNAT MAKE to have several files on the command line.
30881         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
30882         Sdefault.Object_Dir_Default_Name.
30883         Minor Reformating
30884         Remove data for GNAT STANDARD
30885
30886         * vms_data.ads:
30887         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
30888         Remove data for GNAT STANDARD
30889         Remove options and documentation for -gnatwb/-gnatwB: these warning
30890         options no longer exist.
30891
30892 2003-11-13  Ed Falis  <falis@gnat.com>
30893
30894         * 5zthrini.adb: (Init_RTS): Made visible
30895
30896         * 5zthrini.adb:
30897         (Register): Removed unnecessary call to taskVarGet that checked whether
30898          an ATSD was already set as a task var for the argument thread.
30899
30900         * s-thread.adb:
30901         Updated comment to reflect that this is a VxWorks version
30902         Added context clause for System.Threads.Initialization
30903         Added call to System.Threads.Initialization.Init_RTS
30904
30905 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
30906
30907         * 5zthrini.adb:
30908         (Init_RTS): New procedure, for the initialization of the run-time lib.
30909
30910         * s-thread.adb:
30911         Remove dependancy on System.Init, so that this file can be used in the
30912         AE653 sequential run-time lib.
30913
30914 2003-11-13  Robert Dewar  <dewar@gnat.com>
30915
30916         * bindgen.adb: Minor reformatting
30917
30918 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
30919
30920         * checks.adb:
30921         (Apply_Discriminant_Check): Do no apply check if target type is derived
30922         from source type with no applicable constraint.
30923
30924         * lib-writ.adb:
30925         (Ensure_System_Dependency): Do not apply the style checks that may have
30926         been specified for the main unit.
30927
30928         * sem_ch8.adb:
30929         (Find_Selected_Component): Further improvement in error message, with
30930         RM reference.
30931
30932         * sem_res.adb:
30933         (Resolve): Handle properly the case of an illegal overloaded protected
30934         procedure.
30935
30936 2003-11-13  Javier Miranda  <miranda@gnat.com>
30937
30938         * exp_aggr.adb:
30939         (Has_Default_Init_Comps): New function to check the presence of
30940         default initialization in an aggregate.
30941         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
30942         extension aggregate of a limited record. In addition, a new formal
30943         was added to do not initialize the record controller (if any) during
30944         this recursive expansion of ancestors.
30945         (Init_Controller): Add support for limited record components.
30946         (Expand_Record_Aggregate): In case of default initialized components
30947         convert the aggregate into a set of assignments.
30948
30949         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
30950         describing the new syntax.
30951         Nothing else needed to be done because this subprogram delegates part of
30952         its work to P_Precord_Or_Array_Component_Association.
30953         (P_Record_Or_Array_Component_Association): Give support to the new
30954         syntax for default initialization of components.
30955
30956         * sem_aggr.adb:
30957         (Resolve_Aggregate): Relax the strictness of the frontend in case of
30958         limited aggregates.
30959         (Resolve_Record_Aggregate): Give support to default initialized
30960         components.
30961         (Get_Value): In case of default initialized components, duplicate
30962         the corresponding default expression (from the record type
30963         declaration). In case of default initialization in the *others*
30964         choice, do not check that all components have the same type.
30965         (Resolve_Extension_Aggregate): Give support to limited extension
30966         aggregates.
30967
30968         * sem_ch3.adb:
30969         (Check_Initialization): Relax the strictness of the front-end in case
30970         of aggregate and extension aggregates. This test is now done in
30971         Get_Value in a per-component manner.
30972
30973         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
30974         expression corresponds to a limited aggregate. This test is now done
30975         in Get_Value.
30976
30977         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
30978         Box_Present flag.
30979
30980         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
30981         present in an N_Component_Association node
30982
30983 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
30984
30985         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
30986         type-conformant entry only if they are homographs.
30987
30988 2003-11-13  GNAT Script  <nobody@gnat.com>
30989
30990         * Make-lang.in: Makefile automatically updated
30991
30992 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
30993
30994         * adadecode.c: Use <> form of include for ctype.h.
30995         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
30996
30997 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
30998
30999         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
31000         Works around PR middle-end/6552.
31001
31002 2003-11-10  Ed Falis  <falis@gnat.com>
31003
31004         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
31005
31006         * 5zinit.adb: (Install_Handler): Moved back to spec
31007         (Install_Signal_Handlers): Deleted
31008
31009         * 5zthrini.adb: Added context clause for System.Storage_Elements
31010         (Register): Only handles creation of taskVar; initialization moved to
31011         Thread_Body_Enter.
31012         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
31013         Added declaration of environment task secondary stack and
31014         initialization.
31015
31016         * s-thread.adb: Implement bodies for thread body processing
31017
31018         * s-thread.ads:
31019         Added comment identifying supported targets for pragma Thread_Body.
31020
31021 2003-11-10  Pascal Obry  <obry@gnat.com>
31022
31023         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
31024         GNAT_MAX_PATH_LEN.
31025
31026         * s-fileio.adb:
31027         (Open): Properly check for string length before copying into the buffer.
31028         Raises Name_Error if buffer is too small. Note that this was a potential
31029         buffer overflow.
31030
31031 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
31032
31033         * bindgen.adb, comperr.adb: Code clean ups.
31034         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
31035
31036 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
31037
31038         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
31039
31040 2003-11-10  Vincent Celier  <celier@gnat.com>
31041
31042         * gprcmd.adb:
31043         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
31044         installation.
31045
31046         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
31047
31048         * prj.adb: (Project_Empty): Add new boolean component Virtual
31049
31050         * prj.ads: (Virtual_Prefix): New constant string
31051         (Project_Data): New boolean component Virtual
31052
31053         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
31054         a library project is extended by a virtual extending project.
31055
31056         * prj-part.adb:
31057         Modifications throughout to implement extending-all project, including:
31058         (Virtual_Hash, Processed_Hash): New hash tables
31059         (Create_Virtual_Extending_Project): New procedure
31060         (Look_For_Virtual_Projects_For): New procedure
31061
31062         * prj-proc.adb:
31063         (Process): After checking the projects, if main project is an
31064         extending-all project, set the object directory of all virtual extending
31065         project to the object directory of the main project.
31066         Adjust error message when a virtual extending project has the same
31067         object directory as an project being extended.
31068         (Recursive_Process): If name starts with the virtual prefix, set Virtual
31069         to True in the project data.
31070
31071         * prj-tree.adb:
31072         (Default_Project_Node): Add new boolean component Extending_All
31073         (Is_Extending_All): New function
31074         (Set_Is_Extending_All): New procedure
31075
31076         * prj-tree.ads: (Is_Extending_All): New function
31077         (Set_Is_Extending_All): New procedure
31078         (Project_Node_Record): New boolean component Extending_All
31079
31080         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
31081
31082         * vms_data.ads:
31083         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
31084
31085         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
31086         "gprcmd prefix" to define it.
31087
31088 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
31089
31090         * einfo.ads: Fix a typo and remove an extraneous word in comments.
31091
31092         * lib-load.adb:
31093         (Create_Dummy_Package_Unit): Set the scope of the entity for the
31094         created dummy package to Standard_Standard, not to itself, to
31095         defend other parts of the front-end against encoutering a cycle in
31096         the scope chain.
31097
31098         * sem_ch10.adb:
31099         (Analyze_With_Clause): When setting the entities for the successive
31100         N_Expanded_Names that constitute the name of a child unit, do not
31101         attempt to go further than Standard_Standard in the chain of scopes.
31102         This case arises from the placeholder units created by
31103         Create_Dummy_Package_Unit in the case of a with_clause for a
31104         nonexistent child unit.
31105
31106 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
31107
31108         * exp_ch6.adb:
31109         (Expand_Thread_Body): Place subprogram on scope stack, so that new
31110         declarations are given the proper scope.
31111
31112         * sem_ch13.adb:
31113         (Check_Expr_Constants): Reject an expression that contains a constant
31114         created during expansion, and that appears after the object to which
31115         the address clause applies.
31116
31117         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
31118         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
31119         that uses 'Range of a function call with controlled components, so
31120         that the function result can be finalized before starting the loop.
31121
31122         * sem_ch8.adb:
31123         (Find_Selected_Component): Improve error message when prefix is
31124         an implicit dereference of an incomplete type.
31125
31126 2003-11-10  Robert Dewar  <dewar@gnat.com>
31127
31128         * opt.ads: New Print_Standard flag for -gnatS switch
31129
31130         * sem_ch13.adb: Remove some additional checks for unaligned arrays
31131
31132         * cstand.adb (Create_Standard): Print out package standard if -gnatS
31133         switch set
31134
31135         * debug.adb: Update doc for -gnatds to discuss relationship with new
31136         -gnatS flag
31137
31138         * sinfo.adb: Add new field Entity_Or_Associated_Node
31139
31140         * sinfo.ads: Add new field Entity_Or_Associated_Node
31141         Update documentation for Associated_Node and Entity fields to clarify
31142         relationship and usage.
31143
31144         * sprint.adb:
31145         (Write_Id): Properly process Associated_Node field in generic template
31146
31147         * switch-c.adb:
31148         Recognize new -gnatS switch for printing package Standard
31149         This replaces gnatpsta
31150
31151         * usage.adb:
31152         Add line for  new -gnatS switch for printing package Standard
31153         This replaces gnatpsta
31154
31155 2003-11-10  Andreas Jaeger  <aj@suse.de>
31156
31157         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
31158         integer.
31159
31160 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
31161
31162         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
31163         by gnat1.
31164
31165 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
31166
31167         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
31168         no longer needed.
31169
31170         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
31171
31172         * sysdep.c: Add handling of cygwin.
31173
31174 2003-11-10  GNAT Script  <nobody@gnat.com>
31175
31176         * Make-lang.in: Makefile automatically updated
31177
31178 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
31179
31180         PR 12950
31181         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
31182         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
31183         Replace GNAT_ROOT by GCC_ROOT.
31184
31185         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
31186
31187 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
31188
31189         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
31190         and update for changed meaning of GET_MODE_BITSIZE.
31191
31192 2003-11-04  Doug Rupp  <rupp@gnat.com>
31193
31194         * sysdep.c: Problem discovered during IA64 VMS port.
31195         [VMS] #include <unixio.h> to get proper prototypes.
31196
31197         * adaint.c:
31198         Issues discovered/problems fixed during IA64 VMS port.
31199         [VMS] #define _POSIX_EXIT for proper semantics.
31200         [VMS] #include <unixio.h> for proper prototypes.
31201         [VMS] (fork): #define IA64 version.
31202         (__gnat_os_exit): Remove unnecessary VMS specific code.
31203
31204 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31205
31206         Part of PR ada/12806
31207         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
31208         tree, not integer.
31209
31210         * decl.c:
31211         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
31212         not integer.
31213
31214         * targtyps.c, decl.c, misc.c,
31215         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
31216         routines to work around change in FP sizing semantics in GCC.
31217
31218         * utils.c:
31219         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
31220
31221         * gigi.h: (enumerate_modes): New function.
31222
31223         * Make-lang.in: (ada/misc.o): Add real.h.
31224
31225         * misc.c: (enumerate_modes): New function.
31226
31227 2003-11-04  Robert Dewar  <dewar@gnat.com>
31228
31229         * 3vtrasym.adb: Minor reformatting
31230         Use terminology encoded/decoded name, rather than C++ specific notion
31231         of mangling (this is the terminology used throughout GNAT).
31232
31233         * einfo.h: Regenerated
31234
31235         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
31236
31237         * exp_ch6.adb:
31238         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
31239
31240         * par-prag.adb: Add dummy entry for Thread_Body pragma
31241
31242         * rtsfind.ads:
31243         Add entries for System.Threads entities for thread body processing
31244
31245         * sem_attr.adb:
31246         (Analyze_Pragma, Access attributes): Check these are not applied to a
31247         thread body, since this is not permitted
31248
31249         * sem_prag.adb: Add processing for Thread_Body pragma.
31250         Minor comment fix.
31251
31252         * sem_res.adb:
31253         (Resolve_Call): Check for incorrect attempt to call a thread body
31254          procedure with a direct call.
31255
31256         * snames.ads, snames.adb: Add entry for Thread_Body pragma
31257         Add names associated with thread body expansion
31258
31259         * snames.h: Add entry for Thread_Body pragma
31260
31261         * s-thread.adb: Add entries for thread body processing
31262         These are dummy bodies so far
31263
31264         * s-thread.ads: Add documentation on thread body handling.
31265         Add entries for thread body processing.
31266
31267 2003-11-04  Javier Miranda  <miranda@gnat.com>
31268
31269         * sem_ch10.adb:
31270         (Build_Limited_Views): Return after posting an error in case of limited
31271         with_clause on subprograms, generics, instances or generic renamings
31272         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
31273         on subprograms, generics, instances or generic renamings
31274
31275 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
31276
31277         * raise.c (setup_to_install): Correct mistake in last revision; two
31278         arguments out of order.
31279
31280         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
31281         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
31282         notice, missed in previous change.
31283         Remove trailing blanks and other style errors introduced in previous
31284         change.
31285
31286 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
31287
31288         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
31289         rid of the wrapper for a LJM type, ensuring we don't do that if the
31290         field is addressable.  This avoids potential low level type view
31291         mismatches later on, for instance in a by-reference argument passing
31292         process.
31293
31294 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31295
31296         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
31297         aligned at byte boundary.
31298
31299 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
31300
31301         * decl.c (components_to_record): Do not delete the empty variants from
31302         the end of the union type.
31303
31304 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
31305
31306         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
31307         operation for a derived type, an explicit declaration may use a local
31308         subtype of Boolean.
31309
31310 2003-11-04  Vincent Celier  <celier@gnat.com>
31311
31312         * make.adb (Gnatmake): Allow main sources on the command line with a
31313         library project when it is only for compilation (no binding or
31314         linking).
31315
31316 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
31317
31318         * Makefile.in: Remove many duplicate variables.
31319
31320 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
31321
31322         * Make-lang.in (dvi): Move targets to $(docobjdir).
31323         (gnat_ug_vms.dvi): Simplify rule and adjust target.
31324         (gnat_ug_wnt.dvi): Likewise.
31325         (gnat_ug_unx.dvi): Likewise.
31326         (gnat_ug_vxw.dvi): Likewise.
31327         (gnat_rm.dvi): Likewise.
31328         (gnat-style.dvi): Likewise.
31329
31330 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
31331
31332         * gigi.h: Missed commit from update for C90.
31333
31334 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
31335
31336         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
31337
31338 2003-10-31  Andreas Schwab  <schwab@suse.de>
31339
31340         * raise.c (get_action_description_for): Fix typo in last change.
31341
31342 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
31343
31344         PR ada/12761
31345         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
31346         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
31347
31348 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
31349
31350         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
31351         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
31352         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
31353         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
31354         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
31355
31356 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
31357
31358         * 3vtrasym.adb:
31359         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
31360         numbers when symbol name is too long.
31361
31362 2003-10-30  Ed Falis  <falis@gnat.com>
31363
31364         * g-signal.ads, g-signal.adb: New files
31365
31366         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
31367
31368         * Makefile.rtl: Introduce GNAT.Signals
31369
31370 2003-10-30  Robert Dewar  <dewar@gnat.com>
31371
31372         * freeze.adb: Minor reformatting
31373
31374         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
31375
31376         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
31377         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
31378         New handling of Id_Check parameter to improve recognition of keywords
31379         used as identifiers.
31380         Update copyright notice to include 2003
31381
31382 2003-10-29  Robert Dewar  <dewar@gnat.com>
31383
31384         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
31385         sem_ch10.adb: Minor reformatting
31386
31387         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
31388         (Expand_Assign_Record): Test right hand side for bit unaligned as well
31389
31390 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
31391
31392         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
31393         Support for TBK$SYMBOLIZE-based symbolic traceback.
31394
31395 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
31396
31397         * exp_disp.adb:
31398         Revert previous change, that did not work well when pragma No_Run_Time
31399         was used in conjunction with a run-time other than ZFP.
31400
31401 2003-10-29  Vincent Celier  <celier@gnat.com>
31402
31403         * make.adb:
31404         (Gnatmake): When there are no Ada mains in attribute Main, disable the
31405          bind and link steps only is switch -z is not used.
31406
31407 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
31408
31409         * Makefile.generic: Remove duplicated setting of CC.
31410
31411         * Makefile.prolog: Set CC to gcc by default, to override make's
31412         default (cc).
31413
31414         * einfo.h: Regenerated.
31415
31416 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
31417
31418         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
31419         current body, after compiling subunit.
31420
31421         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
31422         when in deleted code, because gigi needs properly ordered freeze
31423         actions to annotate types.
31424
31425         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
31426         prevent the premature freezing of record type that contains
31427         subcomponents with a private type that does not yet have a completion.
31428
31429 2003-10-29  Javier Miranda  <miranda@gnat.com>
31430
31431         * sem_ch12.adb:
31432         (Analyze_Package_Instantiation): Check that instances can not be used in
31433         limited with_clauses.
31434
31435         * sem_ch8.adb:
31436         (Analyze_Package_Renaming): Check that limited withed packages cannot
31437         be renamed. Improve text on error messages related to limited
31438         with_clauses.
31439
31440         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
31441
31442         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
31443         Update copyright notice.
31444
31445         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
31446         (Install_Limited_Context_Clauses): New subprogram that isolates all the
31447         checks required for limited context_clauses and installs the limited
31448         view.
31449         (Install_Limited_Withed_Unit): Complete its documentation.
31450         (Analyze_Context): Check that limited with_clauses are only allowed in
31451         package specs.
31452         (Install_Context): Call Install_Limited_Context_Clauses after the
31453         parents have been installed.
31454         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
31455         package as 'From_With_Type'; this mark indicates that the limited view
31456         is installed. Used to check bad usages of limited with_clauses.
31457         (Build_Limited_Views): Do not add shadow entities to the scope's list
31458         of entities. Do not add real entities to the Non_Limited_Views chain.
31459         Improve error notification.
31460         (Remove_Context_Clauses): Remove context clauses in two phases:
31461         limited views first and regular views later (to maintain the
31462         stack model).
31463         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
31464         its visible entities.
31465
31466 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
31467
31468         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
31469         with any type that Is_Fixed_Point_Type.
31470
31471         * sinfo.ads: Fix documentation for Associated_Node attribute.
31472
31473 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
31474
31475         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
31476         both '-gnatc' and '-gnatt' are specified.
31477
31478         * atree.adb (Initialize): Add initialization for Node_Count (set to
31479         zero).
31480
31481 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31482
31483         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
31484         do not consider as Pure.
31485
31486         Part of implementation of function-at-a-time:
31487
31488         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
31489         (tree_transform): Add new argument to build_component_ref.
31490         (tree_transform, case N_Assignment_Statement): Make and return an
31491         EXPR_STMT.
31492         (tree_transform): If result IS_STMT, set flags and return it.
31493         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
31494
31495         * utils2.c (build_simple_component_ref, build_component_ref): Add new
31496         arg, NO_FOLD_P.
31497         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
31498         (build_allocator): Likewise.
31499
31500         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
31501         Add new arg to build_component_ref.
31502         (maybe_unconstrained_array, unchecked_convert): Likewise.
31503
31504         * ada-tree.def (EXPR_STMT): New code.
31505
31506         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
31507
31508         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
31509         build_component_ref calls.
31510
31511         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
31512
31513         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
31514         (build_component_ref): Add new argument, NO_FOLD_P.
31515
31516 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
31517
31518         * Makefile.generic: Add missing substitution on object_deps handling.
31519
31520         PR ada/5909
31521         * Make-lang.in (check-ada): Enable ACATS test suite.
31522
31523 2003-10-27  Robert Dewar  <dewar@gnat.com>
31524
31525         * exp_ch3.adb:
31526         (Freeze_Array_Type): We do not need an initialization routine for types
31527         derived from String or Wide_String. They should be treated the same
31528         as String and Wide_String themselves. This caused problems with the
31529         use of Initialize_Scalars.
31530
31531         * exp_ch5.adb:
31532         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
31533         composites. This allows use of component clauses that are not byte
31534         aligned.
31535
31536         * sem_prag.adb:
31537         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
31538         is an attempt to pack an array of atomic objects.
31539
31540         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
31541
31542 2003-10-27  Pascal Obry  <obry@gnat.com>
31543
31544         * g-dirope.adb:
31545         (Basename): Check for drive letters in a pathname only on DOS based OS.
31546
31547 2003-10-27  Vincent Celier  <celier@gnat.com>
31548
31549         * make.adb:
31550         (Gnatmake): When unable to change dir to the object dir, display the
31551         content of the parent dir of the obj dir, to try to understand why this
31552         happens.
31553
31554 2003-10-27  GNAT Script  <nobody@gnat.com>
31555
31556         * Make-lang.in: Makefile automatically updated
31557
31558 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
31559
31560         * sem_ch12.adb:
31561         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
31562         should not be done in Save/Restore_Scope_Stack, because it is performed
31563         locally.
31564
31565         * sem_ch8.adb:
31566         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
31567         whether use clauses should be removed/restored.
31568
31569         * sem_ch8.ads:
31570         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
31571         whether use clauses should be removed/restored.
31572
31573 2003-10-26  Andreas Jaeger  <aj@suse.de>
31574
31575         * Makefile.in: Remove duplicated lines.
31576
31577 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
31578
31579         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
31580         minimize the differences with ACT tree.
31581
31582         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
31583         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
31584         Gnatvsn.Gnat_Static_Version_String to reduce differences between
31585         ACT and FSF trees.
31586
31587 2003-10-24  Pascal Obry  <obry@gnat.com>
31588
31589         PR ada/12014
31590         * adadecode.c (ostrcpy): New function.
31591         (__gnat_decode): Use ostrcpy of strcpy.
31592         (has_prefix): Set first parameter a const.
31593         (has_suffix): Set first parameter a const.
31594         Update copyright notice. Fix source name in header.
31595         Removes a trailing space.
31596
31597 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
31598
31599         * exp_disp.adb:
31600         Remove the test against being in No_Run_Time_Mode before generating a
31601         call to Register_Tag. It is redundant with the test against the
31602         availability of the function Register_Tag.
31603
31604 2003-10-24  Vincent Celier  <celier@gnat.com>
31605
31606         * g-catiio.adb: (Month_Name): Correct spelling of February
31607
31608         * make.adb: (Mains): New package
31609         (Initialize): Call Mains.Delete
31610         (Gnatmake): Check that each main on the command line is a source of a
31611         project file and, if there are several mains, each of them is a source
31612         of the same project file.
31613         (Gnatmake): When a foreign language is specified in attribute Languages,
31614         no main is specified on the command line and attribute Mains is not
31615         empty, only build the Ada main. If there is no Ada main, just compile
31616         the Ada sources and their closure.
31617         (Gnatmake): If a main is specified on the command line with directory
31618         information, check that the source exists and, if it does, that the path
31619         is the actual path of a source of a project.
31620
31621         * prj-env.adb:
31622         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
31623         Full_Path is True, return the full path instead of the simple file name.
31624         (Project_Of): New function
31625
31626         * prj-env.ads:
31627         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
31628         defaulted to False.
31629         (Project_Of): New function
31630
31631 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
31632
31633         * Makefile.generic:
31634         Ensure objects of main project are always checked and rebuilt if needed.
31635         Set CC to gcc by default.
31636         Prepare new handling of link by creating a global archive (not activated
31637         yet).
31638
31639         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
31640         stringt.h: Update copyright notice. Remove trailing blanks.
31641         Fix source name in header.
31642
31643 2003-10-24  Robert Dewar  <dewar@gnat.com>
31644
31645         * sem_ch12.adb: Minor reformatting
31646
31647         * sem_ch3.adb:
31648         Minor reformatting (including new function return style throughout)
31649
31650         * sem_ch3.ads:
31651         Minor reformatting (including new function return style throughout)
31652
31653 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
31654
31655         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
31656         stringt.h: Update copyright notice. Remove trailing blanks.
31657         Fix source name in header.
31658
31659 2003-10-24  GNAT Script  <nobody@gnat.com>
31660
31661         * Make-lang.in: Makefile automatically updated
31662
31663 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
31664
31665         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
31666         stringt.h: Convert to ISO C90 declarations and definitions.
31667
31668 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
31669
31670         PR ada/11978
31671         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
31672         External_Tag attribute definition clauses.
31673
31674 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
31675
31676         PR ada/7613
31677         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
31678         child unit, generate a fully qualified name to avoid spurious errors
31679         when the context contains renamings of different child units with
31680         the same simple name.
31681
31682         * exp_dbug.ads: Add documentation on name qualification for renamings
31683         of child units.
31684
31685 2003-10-23  Robert Dewar  <dewar@gnat.com>
31686
31687         * g-regpat.ads, g-regpat.adb: Minor reformatting
31688
31689 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
31690
31691         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
31692
31693 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31694
31695         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
31696         Machine call.
31697
31698         * urealp.h: (Machine): Update to proper definition.
31699
31700 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
31701
31702         * init.c, adaint.c: Minor reformatting.
31703
31704 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
31705
31706         * adaint.c (w32_epoch_offset): Define static const at file level.
31707         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
31708         rather than t_create, t_access in call to GetFileTime. Use union
31709         to convert between FILETIME and  unsigned long long.
31710         (__gnat_file_time_name): Test for invalid file handle.
31711         (__gnat_set_filetime_name): Support win32 targets using
31712         w32api SetFileTime.
31713
31714 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
31715
31716         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
31717
31718         * ctrl_c.c (__gnat_int_handler): Remove declaration.
31719
31720         * decl.c (creat_concat_name):  Const-ify prefix.
31721
31722         * adaint.c: Include ctype.h if __MINGW32__.
31723         (__gnat_readlink): Mark arguments as possibly unused.
31724         (__gnat_symlink): Likewise.
31725         (__gnat_is_symbolic_link): Likewise.
31726         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
31727         declaration
31728         (__gnat_file_time_name): Don't declare struct stat statbuf when
31729         not needed.
31730         (__gnat_is_absolute_path): Add parenthesis around condition of
31731         'if' statement to avoid warning.
31732         (__gnat_plist_init): Specify void as parameter.
31733         (plist_enter): Likewise.
31734         (plist_leave): Likewise.
31735         (remove_handle): Make static. Initialize prev.
31736
31737 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
31738
31739         PR ada/10110
31740         * Makefile.in: Disable build of gnatpsta.
31741         * cstreams.c (__gnat_full_name): Minor improvements and clean up
31742         of previous change.
31743
31744 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
31745
31746         * tracebak.c (MAX): Avoid redefinition warning.
31747
31748         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
31749         Change msg to const char *.
31750         (__gnat_install_handler): Remove ss, unused.
31751         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
31752         to const char *.
31753         * cstreams.c (__gnat_full_name): Declare p only when used.
31754         (__gnat_full_name) [sgi] Return buffer.
31755
31756 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
31757
31758         * mingw32.h: New file.
31759         * gnat_wrapper.adb: New file.
31760
31761 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
31762
31763         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
31764         string match a pre compiled regular expression (the corresponding
31765         version of the function working on a raw regular expression)
31766         Fix typos in various comments
31767         Update copyright notice in spec
31768
31769 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
31770
31771         * exp_ch3.adb:
31772         (Component_Needs_Simple_Initialization): Return False when the type is a
31773         packed bit array. Revise spec comments to document this case.
31774
31775         * exp_prag.adb:
31776         (Expand_Pragma_Import): Set any expression on the imported object to
31777         empty to avoid initializing imported objects (in particular this
31778         covers the case of zero-initialization of bit arrays).
31779         Update copyright notice.
31780
31781 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
31782
31783         * sem_ch12.adb:
31784         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
31785         a subunit is missing.
31786         (Instantiate_Subprogram_Body): If body of function is missing, set type
31787         of return expression explicitly in dummy body, to prevent cascaded
31788         errors when a subunit is missing.
31789         Fixes PR 5677.
31790
31791         * sem_ch3.adb:
31792         (Access_Subprogram_Declaration): Verify that return type is valid.
31793         Fixes PR 8693.
31794
31795         * sem_elab.adb:
31796         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
31797         generic.
31798         Fixes PR 12318.
31799
31800         * sem_util.adb:
31801         (Corresponding_Discriminant): If the scope of the discriminant is a
31802         private type without discriminant, use its full view.
31803         Fixes PR 8247.
31804
31805 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
31806
31807         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
31808         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
31809         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
31810         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
31811         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
31812         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
31813         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
31814         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
31815         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
31816         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
31817         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
31818         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
31819         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
31820         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
31821         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
31822         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
31823         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
31824         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
31825         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
31826         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
31827         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
31828         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
31829         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
31830         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
31831         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
31832         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
31833         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
31834         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
31835         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
31836         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
31837         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
31838         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
31839         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
31840         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
31841         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
31842         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
31843         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
31844         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
31845         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
31846         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
31847         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
31848         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
31849         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
31850         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
31851         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
31852         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
31853         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
31854         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
31855         vms_conv.ads, vms_conv.adb, vms_data.ads,
31856         vxaddr2line.adb: Files added. Merge with ACT tree.
31857
31858         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
31859         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
31860         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
31861         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
31862         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
31863         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
31864         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
31865         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
31866         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
31867         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
31868
31869         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
31870         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
31871         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
31872         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
31873         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
31874         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
31875         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
31876         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
31877         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
31878         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
31879         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
31880         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
31881         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
31882         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
31883         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
31884         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
31885         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
31886         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
31887         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
31888         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
31889         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
31890         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
31891         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
31892         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
31893         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
31894         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
31895         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
31896         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
31897         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
31898         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
31899         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
31900         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
31901         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
31902         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
31903         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
31904         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
31905         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
31906         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
31907         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
31908         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
31909         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
31910         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
31911         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
31912         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
31913         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
31914         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
31915         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
31916         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
31917         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
31918         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
31919         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
31920         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
31921         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
31922         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
31923         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
31924         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
31925         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
31926         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
31927         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
31928         checks.adb, checks.ads, cio.c, comperr.adb,
31929         comperr.ads, csets.adb, cstand.adb, cstreams.c,
31930         debug_a.adb, debug_a.ads, debug.adb, decl.c,
31931         einfo.adb, einfo.ads, errout.adb, errout.ads,
31932         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
31933         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
31934         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
31935         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
31936         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
31937         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
31938         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
31939         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
31940         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
31941         fe.h, fmap.adb, fmap.ads, fname.adb,
31942         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
31943         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
31944         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
31945         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
31946         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
31947         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
31948         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
31949         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
31950         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
31951         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
31952         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
31953         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
31954         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
31955         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
31956         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
31957         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
31958         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
31959         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
31960         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
31961         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
31962         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
31963         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
31964         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
31965         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
31966         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
31967         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
31968         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
31969         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
31970         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
31971         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
31972         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
31973         layout.adb, lib.adb, lib.ads, lib-list.adb,
31974         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
31975         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
31976         link.c, live.adb, make.adb, make.ads,
31977         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
31978         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
31979         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
31980         misc.c, mkdir.c, mlib.adb, mlib.ads,
31981         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
31982         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
31983         namet.adb, namet.ads, namet.h, nlists.ads,
31984         nlists.h, nmake.adt, opt.adb, opt.ads,
31985         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
31986         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
31987         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
31988         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
31989         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
31990         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
31991         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
31992         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
31993         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
31994         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
31995         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
31996         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
31997         prj-util.adb, prj-util.ads, raise.c, raise.h,
31998         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
31999         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
32000         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
32001         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
32002         scans.ads, scn.adb, scn.ads, s-crc32.adb,
32003         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
32004         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
32005         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
32006         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
32007         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
32008         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
32009         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
32010         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
32011         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
32012         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
32013         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
32014         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
32015         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
32016         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
32017         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
32018         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
32019         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
32020         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
32021         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
32022         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
32023         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
32024         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
32025         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
32026         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
32027         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
32028         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
32029         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
32030         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
32031         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
32032         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
32033         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
32034         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
32035         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
32036         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
32037         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
32038         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
32039         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
32040         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
32041         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
32042         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
32043         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
32044         stringt.adb, stringt.ads, stringt.h, style.ads,
32045         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
32046         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
32047         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
32048         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
32049         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
32050         table.adb, table.ads, targparm.adb, targparm.ads,
32051         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
32052         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
32053         ttypes.ads, types.ads, types.h, uintp.adb,
32054         uintp.ads, uintp.h, uname.adb, urealp.adb,
32055         urealp.ads, urealp.h, usage.adb, utils2.c,
32056         utils.c, validsw.adb, validsw.ads, widechar.adb,
32057         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
32058         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
32059         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
32060         gnatvsn.ads: Merge with ACT tree.
32061
32062         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
32063
32064 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
32065
32066         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
32067         (gnat_ug_vmx.info): Likewise.
32068         (gnat_ug_vxw.info): Likewise.
32069         (gnat_ug_wnt.info): Likewise.
32070         (gnat_rm.info): Likewise.
32071         (gnat-style.info): Likewise.
32072
32073         * Make-lang.in (ada.install-info): Remove target.
32074         (info): New target.
32075         (install-info): Likewise.
32076         (gnat_ug_unx.info): Simplify rule.
32077         (gnat_ug_vmx.info): Likewise.
32078         (gnat_ug_vxw.info): Likewise.
32079         (gnat_ug_wnt.info): Likewise.
32080         (gnat_rm.info): Likewise.
32081         (gnat-style.info): Likewise.
32082
32083 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
32084
32085         * Make-lang.in: Replace uses of $(target_alias) with
32086         $(target_noncanonical).
32087         * ada/Makefile.in: Remove unused mention of $(target_alias).
32088
32089 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
32090
32091         * Make-lang.in (ada.info): Replace with ...
32092         (info): ... this.
32093         (ada.dvi): Replace with ...
32094         (dvi): ... this.
32095
32096 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
32097
32098         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
32099         initialize dconstp5 and dconstmp5.
32100
32101 2003-09-28  Richard Henderson  <rth@redhat.com>
32102
32103         * trans.c (tree_transform): Update call to expand_asm_operands.
32104
32105 2003-09-21  Richard Henderson  <rth@redhat.com>
32106
32107         * trans.c, utils.c: Revert.
32108
32109 2003-09-21  Richard Henderson  <rth@redhat.com>
32110
32111         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
32112         change to const.
32113
32114 2003-09-04  Michael Matz  <matz@suse.de>
32115
32116         * misc.c: Include "target.h".
32117         * Make-lang.in (misc.o): Add dependency on target.h.
32118
32119 2003-09-03  DJ Delorie  <dj@redhat.com>
32120
32121         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
32122         hook.
32123
32124 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
32125
32126         * Makefile.in: Update substitutions to match changes to
32127         configure.  Use include directives instead of @-insertions
32128         to read in host and target fragments.  Add a rule to
32129         regenerate ada/Makefile.
32130
32131 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
32132
32133         * lang-options.h: Remove.
32134         * lang.opt: Add help text.
32135
32136 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
32137
32138         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
32139         calls.
32140
32141 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
32142
32143         * misc.c (gnat_handle_option): Don't handle filenames.
32144
32145 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
32146
32147         * Make-lang.in: Replace PWD with PWD_COMMAND.
32148         * Makefile.adalib: Likewise.
32149         * Makefile.in: Likewise.
32150
32151 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
32152
32153         * misc.c (gnat_argv): Revert last change.
32154         (gnat_handle_option, gnat_init_options): Copy arguments.
32155
32156 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
32157
32158         * misc.c (gnat_argv): Make const.
32159
32160 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
32161
32162         * misc.c (save_argc, save_argv): Keep non-static!
32163
32164 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
32165
32166         * misc.c (save_argc, save_argv): Make static.
32167         (gnat_init_options): New prototype.
32168         (gnat_init_options): Update.
32169
32170 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
32171
32172         * gnat_ug.texi: Remove unlikely characters from @vars.
32173         * gnat_ug_vms.texi: Regenerate.
32174
32175 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
32176
32177         * misc.c (record_code_position): Adjust emit_note call.
32178
32179 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
32180
32181         * misc.c (gnat_handle_option): Don't check for missing arguments.
32182
32183 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
32184
32185         * utils.c (end_subprog_body): Adjust expand_function_end call.
32186
32187 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
32188
32189         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
32190         Bind_Main_Program.
32191
32192 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
32193
32194         * lang.opt: Declare Ada.
32195         * misc.c (gnat_init_options): Update.
32196
32197 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
32198
32199         * utils.c (begin_subprog_body): Adjust init_function_start call.
32200
32201 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
32202
32203         * Make-lang.in: Update to use options.c and options.h.
32204         * misc.c: Include options.h not aoptions.h.
32205         (gnat_handle_option): Abort on unrecognized switch.
32206         (gnat_init_options): Request Ada switches.
32207
32208 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
32209
32210         * lang.opt: Add -Wall.
32211         * misc.c (gnat_handle_option): Handle it.
32212
32213 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
32214
32215         * misc.c (gnat_handle_option): Fix warnings.
32216
32217 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
32218
32219         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
32220
32221 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
32222
32223         * Make-lang.in: Update to handle command-line options.
32224         * lang.opt: New file.
32225         * misc.c: Include aoptions.h.
32226         (cl_options_count, cl_options): Remove.
32227         (gnat_handle_option): New.
32228         (gnat_decode_option): Remove.
32229         (LANG_HOOKS_DECODE_OPTION): Remove.
32230         (LANG_HOOKS_HANDLE_OPTION): Override.
32231
32232 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
32233
32234         * init.c, misc.c, trans.c, utils.c: Remove dead code.
32235
32236 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
32237
32238         * Makefile.in: Replace "host_canonical" with "host" for autoconf
32239         substitution.
32240
32241 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
32242
32243         * Make-lang.in: Update.
32244         * misc.c: Include opts.h. Define cl_options_count and cl_options.
32245
32246 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
32247
32248         * misc.c (gnat_init_options): Update.
32249
32250 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
32251
32252         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
32253         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
32254         __attribute__ ((__unused__)).
32255
32256 2003-06-05  Jan Hubicka  <jh@suse.cz>
32257
32258         * Make-lang.in:  Add support for stageprofile and stagefeedback
32259
32260 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
32261
32262         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
32263         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
32264
32265 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
32266
32267         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
32268         Remove non-VMS directive.
32269         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
32270         alternatives.
32271         (Examples of gnatls Usage): Remove VMS alternative.
32272
32273 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
32274
32275         PR ada/9953
32276         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
32277         and turn ZCX_By_Default back to False since the underlying support
32278         is not quite there yet.
32279
32280 2003-06-01  Andreas Jaeger  <aj@suse.de>
32281
32282         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
32283         and ROUND_TYPE_SIZE_UNIT.
32284
32285 2003-05-22   Geert Bosch <bosch@gnat.com>
32286
32287         * gnat_rm.texi : Remove reference to Ada Core Technologies.
32288
32289 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
32290
32291         * trans.c (tree_transform): Use location_t and input_location
32292         directly.
32293         (build_unit_elab): Likewise.
32294         * utils.c (create_label_decl): Likewise.
32295
32296 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
32297
32298         * trans.c (tree_transform, build_unit_elab,
32299         set_lineno): Rename lineno to input_line.
32300         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
32301         end_subprog_body): Likewise.
32302         * utils2.c (build_call_raise): Likewise.
32303
32304 2003-05-01  Laurent Guerby <guerby@acm.org>
32305
32306         PR ada/10546
32307         * 5iosinte.ads: Increase pthread_cond_t size to match recent
32308         LinuxThread and NPTL version, merge from ACT.
32309
32310 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
32311
32312         * utils.c (convert): No need to clear TREE_CST_RTL.
32313
32314 2003-04-23   Geert Bosch <bosch@gnat.com>
32315
32316         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
32317         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
32318         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
32319         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
32320         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
32321         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
32322         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
32323         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
32324         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
32325         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
32326         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
32327         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
32328         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
32329         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
32330         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
32331         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
32332         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
32333         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
32334         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
32335         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
32336         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
32337         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
32338         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
32339         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
32340         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
32341         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
32342         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
32343         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
32344         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
32345         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
32346         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
32347         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
32348         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
32349         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
32350         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
32351         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
32352         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
32353         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
32354         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
32355         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
32356         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
32357         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
32358         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
32359         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
32360         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
32361         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
32362         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
32363         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
32364         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
32365         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
32366         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
32367         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
32368         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
32369         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
32370         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
32371         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
32372         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
32373         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
32374         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
32375         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
32376         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
32377         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
32378         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
32379         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
32380         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
32381         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
32382         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
32383         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
32384         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
32385         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
32386         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
32387         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
32388         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
32389         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
32390         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
32391         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
32392         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
32393         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
32394         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
32395         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
32396         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
32397         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
32398         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
32399         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
32400         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
32401         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
32402         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
32403         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
32404         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
32405         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
32406         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
32407         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
32408         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
32409         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
32410         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
32411         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
32412         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
32413         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
32414         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
32415         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
32416         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
32417         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
32418         ali.adb, ali.ads, alloc.ads, argv.c,
32419         atree.adb, atree.ads, atree.h, aux-io.c,
32420         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
32421         binde.adb, binde.ads, binderr.adb, binderr.ads,
32422         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
32423         butil.adb, butil.ads, cal.c, calendar.ads,
32424         casing.adb, casing.ads, ceinfo.adb, checks.adb,
32425         checks.ads, cio.c, comperr.adb, comperr.ads,
32426         config-lang.in, csets.adb, csets.ads, csinfo.adb,
32427         cstand.adb, cstand.ads, cuintp.c, debug.adb,
32428         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
32429         dec-io.ads, dec.ads, deftarg.c, directio.ads,
32430         einfo.adb, einfo.ads, elists.adb, elists.ads,
32431         elists.h, errno.c, errout.adb, errout.ads,
32432         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
32433         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
32434         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
32435         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
32436         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
32437         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
32438         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
32439         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
32440         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
32441         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
32442         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
32443         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
32444         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
32445         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
32446         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
32447         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
32448         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
32449         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
32450         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
32451         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
32452         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
32453         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
32454         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
32455         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
32456         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
32457         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
32458         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
32459         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
32460         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
32461         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
32462         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
32463         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
32464         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
32465         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
32466         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
32467         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
32468         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
32469         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
32470         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
32471         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
32472         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
32473         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
32474         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
32475         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
32476         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
32477         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
32478         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
32479         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
32480         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
32481         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
32482         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
32483         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
32484         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
32485         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
32486         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
32487         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
32488         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
32489         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
32490         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
32491         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
32492         lib.adb, lib.ads, live.adb, live.ads,
32493         machcode.ads, make.adb, make.ads, makeusg.adb,
32494         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
32495         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
32496         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
32497         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
32498         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
32499         mlib.ads, namet.adb, namet.ads, nlists.adb,
32500         nlists.ads, opt.adb, opt.ads, osint-b.adb,
32501         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
32502         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
32503         osint.ads, output.adb, output.ads, par-ch10.adb,
32504         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
32505         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
32506         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
32507         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
32508         par-tchk.adb, par-util.adb, par.adb, par.ads,
32509         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
32510         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
32511         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
32512         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
32513         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
32514         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
32515         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
32516         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
32517         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
32518         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
32519         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
32520         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
32521         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
32522         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
32523         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
32524         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
32525         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
32526         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
32527         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
32528         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
32529         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
32530         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
32531         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
32532         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
32533         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
32534         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
32535         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
32536         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
32537         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
32538         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
32539         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
32540         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
32541         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
32542         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
32543         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
32544         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
32545         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
32546         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
32547         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
32548         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
32549         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
32550         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
32551         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
32552         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
32553         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
32554         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
32555         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
32556         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
32557         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
32558         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
32559         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
32560         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
32561         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
32562         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
32563         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
32564         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
32565         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
32566         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
32567         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
32568         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
32569         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
32570         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
32571         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
32572         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
32573         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
32574         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
32575         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
32576         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
32577         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
32578         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
32579         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
32580         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
32581         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
32582         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
32583         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
32584         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
32585         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
32586         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
32587         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
32588         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
32589         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
32590         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
32591         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
32592         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
32593         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
32594         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
32595         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
32596         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
32597         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
32598         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
32599         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
32600         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
32601         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
32602         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
32603         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
32604         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
32605         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
32606         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
32607         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
32608         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
32609         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
32610         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
32611         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
32612         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
32613         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
32614         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
32615         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
32616         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
32617         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
32618         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
32619         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
32620         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
32621         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
32622         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
32623         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
32624         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
32625         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
32626         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
32627         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
32628         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
32629         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
32630         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
32631         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
32632         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
32633         snames.ads, sprint.adb, sprint.ads, stand.adb,
32634         stand.ads, stringt.adb, stringt.ads, style.adb,
32635         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
32636         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
32637         switch-m.ads, switch.adb, switch.ads, system.ads,
32638         table.adb, table.ads, targparm.adb, targparm.ads,
32639         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
32640         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
32641         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
32642         ttypef.ads, ttypes.ads, types.adb, types.ads,
32643         uintp.adb, uintp.ads, uname.adb, uname.ads,
32644         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
32645         usage.adb, usage.ads, validsw.adb, validsw.ads,
32646         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
32647         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
32648         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
32649         formatting and other trivial changes from ACT.
32650
32651 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
32652
32653         * gigi.h, utils2.c (build_constructor):
32654         Rename gnat_build_constructor. Use build_constructor.
32655         * decl.c (gnat_to_gnu_entity)
32656         * trans.c (tree_transform, pos_to_constructor, extract_values)
32657         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
32658         (unchecked_convert)
32659         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
32660         (fill_vms_descriptor):
32661         Update to match.
32662
32663 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
32664
32665         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
32666         * misc.c (gnat_tree_size): New function.
32667         (LANG_HOOKS_TREE_SIZE): Override.
32668
32669 2003-04-03  Jason Merrill  <jason@redhat.com>
32670
32671         * misc.c (gnat_adjust_rli): #if 0.
32672
32673 2003-03-31   Geert Bosch <bosch@gnat.com>
32674
32675         PR ada/10020
32676         * link.c : Fix misspelled "const" keyword
32677
32678 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
32679
32680         PR c++/7086
32681         * utils2.c: Adjust calls to put_var_into_stack.
32682
32683 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
32684
32685         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
32686
32687 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
32688
32689         * misc.c (gnat_init): Update for new prototype.
32690
32691 2003-03-05  Olivier Hainque  <hainque@gnat.com>
32692
32693         ada/9961
32694         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
32695         warning, and fix return type for the IN_RTS && !SJLJ case.
32696
32697 2003-03-04  Tom Tromey  <tromey@redhat.com>
32698
32699         * Make-lang.in (ada.tags): New target.
32700
32701 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
32702
32703         ada/9911
32704         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
32705         wrapper, which name remains constant whatever underlying GCC
32706         scheme.
32707
32708         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
32709         the stable interface needed for a-except.
32710
32711 2003-03-02  Andreas Jaeger  <aj@suse.de>
32712
32713         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
32714         gnat_ug_wnt.texi: Regenerate.
32715
32716 2003-03-02  Laurent Guerby <guerby@acm.org>
32717
32718         * Makefile.in (install-gnatlib): Match previous change there
32719         so it works.
32720
32721 2003-02-28  Andreas Schwab  <schwab@suse.de>
32722
32723         * Make-lang.in (install-gnatlib): Change to ada directory before
32724         running make instead of using ada/Makefile directly.
32725
32726 2003-02-18  Ben Elliston  <bje@redhat.com>
32727
32728         Part of PR ada/9406
32729         * gnat_ug.texi (Binder output file): Grammar fix.
32730
32731 2003-02-18  Ben Elliston  <bje@redhat.com>
32732
32733         PR other/7350
32734         * 5qtaprop.adb (Sleep): Fix typo in comment.
32735
32736 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
32737
32738         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
32739         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
32740         gnat_ug_wnt.texi: Regenerate.
32741
32742 2003-02-03  Christian Cornelssen <ccorn@cs.tu-berlin.de>
32743
32744         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
32745         be created if necessary.
32746         (ada.install-common): Let $(DESTDIR)$(bindir) be created
32747         if necessary.  Remove erroneous and redundant gnatchop
32748         installation commands.  Test for gnatdll before attempting
32749         to install it.
32750         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
32751         and gnatdll from all plausible locations.
32752
32753 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
32754
32755         * utils2.c (build_unary_op): Don't check flag_volatile.
32756         * gnat_ug.texi: Remove -fvolatile from example.
32757         * gnat_ug_vxw.texi: Likewise.
32758
32759 2003-01-29  Laurent Guerby <guerby@acm.org>
32760
32761         PR ada/8344
32762         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
32763         * Makefile.in: match previous change.
32764         * Make-lang.in: match previous change.
32765
32766 2003-01-29      Joel Sherrill <joel@OARcorp.com>
32767
32768         * 5rosinte.ads: Add SIGXCPU.
32769         * 5rtpopsp.adb: New file.
32770         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
32771         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
32772         specific file 5rtpopsp.adb.
32773         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
32774         is likely needed for all newlib targets.
32775         * init.c: Add RTEMS specific version of __gnat_initialize().
32776
32777 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32778
32779         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
32780
32781 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32782
32783         * init.c (__gnat_error_handler): Make msg const.
32784
32785         * gmem.c (convert_addresses): Move declaration ...
32786         * adaint.h: ... here.
32787         * adaint.c (convert_addresses): Adapt addrs type to match
32788         prototype.
32789
32790         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
32791
32792 2003-01-24  Andreas Schwab  <schwab@suse.de>
32793
32794         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
32795         size_t to avoid warning.
32796
32797 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
32798
32799         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
32800
32801 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
32802
32803         * gnat_rm.texi: Remove RCS version number.
32804
32805         * ada-tree.h (union lang_tree_node): Add chain_next option.
32806
32807 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
32808
32809         * Make-lang.in (ada.install-info, ada.install-common,
32810         ada.uninstall): Prepend $(DESTDIR) to the destination
32811         directory in all (un)installation commands.
32812         * Makefile.in (install-gnatlib, install-rts): Ditto.
32813
32814 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
32815
32816         * gnat_rm.texi, gnat_ug.texi: Use @copying.
32817         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
32818         gnat_ug_wnt.texi: Regenerate.
32819
32820 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
32821
32822         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
32823         only.
32824         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
32825         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
32826         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
32827         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
32828         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
32829         $(srcdir)/doc/include/gcc-common.texi.
32830
32831 2002-12-15   Geert Bosch <bosch@gnat.com>
32832
32833         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
32834
32835 2002-12-14   Geert Bosch <bosch@gnat.com>
32836
32837         PR ada/5690
32838         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
32839         case of a body created for a Renaming_As_Body, on which
32840         conformance checks are not performed.
32841
32842 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
32843
32844         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
32845         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
32846         not already included.
32847         * Make-lang.in: Update dependencies.
32848
32849 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
32850         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
32851         solution to buffer overflow bug on GNU/Linux.
32852
32853 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
32854
32855         PR ada/5856
32856         PR ada/6919
32857         * bindgen.adb: Remove all references to Public_Version.
32858         * comperr.adb: Remove all references to Public_Version and
32859         GNATPRO_Version; correct bug reporting instructions.
32860         * comperr.ads: Change to match bug box.
32861         * gnatvsn.ads: Remove all references to Public version and
32862         GNATPRO version.
32863
32864 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
32865
32866         PR ada/6919
32867         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
32868         GNU/Linux.
32869
32870         PR ada/6558
32871         * config-lang.in: Remove diff_excludes.
32872
32873 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
32874
32875         PR ada/8358
32876         * trans.c (gnu_pending_elaboration_lists): New GC root.
32877         (build_unit_elab): Use..
32878
32879 2002-10-30   Geert Bosch <bosch@gnat.com>
32880
32881         PR ada/6558
32882         * misc.c : Include optabs.h
32883
32884         * Make-lang.in (misc.o): Add dependency on optabs.h
32885
32886 2002-10-29   Geert Bosch <bosch@gnat.com>
32887
32888         PR ada/6558
32889         * Make-lang.in (gnatbind): Depend on CONFIG_H
32890
32891 2002-10-29  Geert bosch  <bosch@gnat.com>
32892
32893         PR ada/6558
32894         * misc.c: Unrevert misc.c (1.13)
32895
32896 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
32897
32898         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
32899         maintainership comments.
32900
32901 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
32902
32903         PR ada/5904
32904         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
32905         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
32906         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
32907         7staprop.adb: Correct statements in comments about
32908         maintainership of GNAT.
32909
32910         PR ada/5904
32911         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
32912         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
32913         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
32914         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
32915         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
32916         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
32917         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
32918         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
32919         comments about maintainership of GNAT.
32920
32921         PR ada/6919 (forward port of patch for PR ada/5904)
32922         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
32923         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
32924         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
32925         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
32926         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
32927         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
32928         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
32929         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
32930         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
32931         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
32932         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
32933         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
32934         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
32935         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
32936         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
32937         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
32938         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
32939         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
32940         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
32941         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
32942         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
32943         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
32944         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
32945         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
32946         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
32947         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
32948         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
32949         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
32950         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
32951         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
32952         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
32953         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
32954         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
32955         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
32956         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
32957         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
32958         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
32959         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
32960         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
32961         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
32962         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
32963         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
32964         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
32965         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
32966         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
32967         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
32968         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
32969         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
32970         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
32971         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
32972         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
32973         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
32974         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
32975         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
32976         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
32977         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
32978         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
32979         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
32980         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
32981         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
32982         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
32983         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
32984         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
32985         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
32986         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
32987         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
32988         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
32989         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
32990         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
32991         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
32992         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
32993         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
32994         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
32995         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
32996         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
32997         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
32998         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
32999         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
33000         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
33001         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
33002         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
33003         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
33004         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
33005         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
33006         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
33007         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
33008         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
33009         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
33010         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
33011         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
33012         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
33013         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
33014         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
33015         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
33016         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
33017         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
33018         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
33019         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
33020         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
33021         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
33022         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
33023         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
33024         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
33025         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
33026         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
33027         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
33028         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
33029         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
33030         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
33031         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
33032         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
33033         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
33034         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
33035         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
33036         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
33037         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
33038         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
33039         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
33040         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
33041         par-endh.adb par-labl.adb par-load.adb par-prag.adb
33042         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
33043         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
33044         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
33045         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
33046         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
33047         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
33048         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
33049         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
33050         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
33051         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
33052         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
33053         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
33054         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
33055         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
33056         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
33057         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
33058         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
33059         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
33060         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
33061         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
33062         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
33063         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
33064         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
33065         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
33066         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
33067         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
33068         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
33069         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
33070         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
33071         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
33072         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
33073         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
33074         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
33075         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
33076         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
33077         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
33078         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
33079         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
33080         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
33081         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
33082         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
33083         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
33084         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
33085         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
33086         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
33087         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
33088         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
33089         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
33090         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
33091         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
33092         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
33093         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
33094         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
33095         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
33096         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
33097         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
33098         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
33099         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
33100         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
33101         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
33102         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
33103         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
33104         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
33105         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
33106         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
33107         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
33108         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
33109         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
33110         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
33111         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
33112         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
33113         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
33114         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
33115         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
33116         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
33117         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
33118         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
33119         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
33120         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
33121         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
33122         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
33123         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
33124         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
33125         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
33126         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
33127         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
33128         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
33129         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
33130         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
33131         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
33132         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
33133         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
33134         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
33135         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
33136         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
33137         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
33138         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
33139         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
33140         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
33141         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
33142         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
33143         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
33144         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
33145         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
33146         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
33147         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
33148         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
33149         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
33150         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
33151         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
33152         stringt.ads stringt.h style.adb style.ads stylesw.adb
33153         stylesw.ads switch.adb switch.ads sysdep.c system.ads
33154         table.adb table.ads targparm.adb targparm.ads targtyps.c
33155         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
33156         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
33157         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
33158         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
33159         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
33160         usage.ads utils.c utils2.c validsw.adb validsw.ads
33161         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
33162         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
33163         xtreeprs.adb: Correct statements in comments about maintainership
33164         of GNAT.
33165
33166 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
33167
33168         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
33169         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
33170         * gnatvsn.ads: Gnat_Version_String is now a function.
33171         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
33172         copy the C version_string into a String and return it.
33173         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
33174         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
33175         Remove pragma Ident (Gnat_Version_String).  If this was the
33176         sole use of package Gnatvsn, remove the with statement too.
33177         * gnat1drv.adb: Tweak -gnatv output.
33178
33179 2002-09-17  Richard Henderson  <rth@redhat.com>
33180
33181         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
33182         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
33183         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
33184         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
33185         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
33186         and real_2expN instead of a loop.
33187         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
33188         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
33189
33190 2002-08-25  Andre Leis <a.leis@gmx.net>
33191             David Billinghurst (David.Billinghurst@riotinto.com>
33192
33193         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
33194
33195 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
33196
33197         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
33198         Remove $(CONFIG_H) dependency.
33199
33200 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
33201
33202         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
33203
33204 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
33205
33206         * adadecode.c (ada_demangle): Use xstrdup in lieu of
33207         xmalloc/strcpy.
33208         * misc.c (gnat_decode_option): Likewise.
33209
33210 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
33211
33212         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
33213         function approach did not work well because of a side effect (the
33214         function call could reallocate the table which was being indexed
33215         using its result). Fixes ada/4851. [RESURRECTED]
33216
33217 2002-07-01  Roger Sayle  <roger@eyesopen.com>
33218
33219         * ada/utils.c (builtin_function): Accept an additional parameter.
33220
33221 2002-06-28  Andreas Jaeger  <aj@suse.de>
33222
33223         PR ada/7144
33224         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
33225         <adi@thur.de>.
33226
33227 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
33228
33229         * Makefile.in (SHELL): Set to @SHELL@.
33230
33231 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
33232
33233         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
33234         array size calculation.
33235
33236 2002-06-04  Andreas Jaeger  <aj@suse.de>
33237
33238         * Make-lang.in (gnatbind): Readd rule that has been lost in last
33239         patch.
33240
33241 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
33242
33243         Merge from pch-branch:
33244
33245         * config-lang.in (gtfiles): Add ada-tree.h.
33246         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
33247         (SET_TYPE_MODULUS): New.
33248         (SET_TYPE_INDEX): New.
33249         (SET_TYPE_DIGITS_VALUE): New.
33250         (SET_TYPE_RM_SIZE): New.
33251         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
33252         (SET_TYPE_ADA_SIZE): New.
33253         (SET_TYPE_ACTUAL_BOUNDS): New.
33254         (SET_DECL_CONST_CORRESPONDING_VAR): New.
33255         (SET_DECL_ORIGINAL_FIELD): New.
33256         (TREE_LOOP_ID): Correct typo.
33257         * decl.c: Use new macros.
33258         * utils.c: Include debug.h, use new macros.
33259         * utils2.c: Use new macros.
33260
33261         * ada-tree.h: Update all macros for new tree description.
33262         (struct tree_loop_id): New.
33263         (union lang_tree_node): New.
33264         (struct lang_decl): New.
33265         (struct lang_type): New.
33266         * misc.c (gnat_mark_tree): Delete.
33267         (LANG_HOOKS_MARK_TREE): Delete.
33268         * trans.c (tree_transform): No longer any need to cast
33269         for TREE_LOOP_ID.
33270
33271         * utils.c (struct language_function): New dummy structure.
33272
33273         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
33274         (misc.o): Likewise.
33275         (utils.o): Likewise; also gtype-ada.h.
33276         * Make-lang.in (gnat1): Add dependency on s-gtype.
33277         (gnatbind): Add dependency on $(CONFIG_H).
33278         * utils.c: Correct last #include.
33279         (stuct e_stack): Remove unnecessary 'static'.
33280         (mark_e_stack): Remove unused prototype.
33281
33282         * scn-nlit.adb: Remove whitespace after version number to
33283         keep lines under 80 chars.
33284         * snames.adb: Likewise.
33285         * treepr.ads: Likewise.
33286
33287         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
33288         (misc.o): Likewise.
33289         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
33290         * config-lang.in (gtfiles): New.
33291         * decl.c: Use gengtype for roots.
33292         * gigi.h: Use gengtype for roots.
33293         * trans.c: Use gengtype for roots.
33294         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
33295
33296 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
33297
33298         * misc.c (gnat_init): Adjust setting of internal_error_function.
33299
33300 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
33301
33302         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
33303         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33304         gnat_ug_wnt.texi: Regenerate.
33305
33306 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
33307
33308         * 5ntaprop.adb (with System.OS_Primitives): Remove.
33309
33310         * cstreams.c (max_path_len): Move from here ...
33311         * adaint.c (__gnat_max_path_len): ... to here.
33312         * adaint.c (__gnat_max_path_len): Declare.
33313         * g-dirope.adb (Max_Path): Adjust.
33314         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
33315         * i-cstrea.ads (max_path_len): Adjust.
33316         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
33317         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
33318
33319         * Makefile.in, Make-lang.in: Documentation is now built in
33320         Make-lang.in.  Store Info and generated Texinfo files in the
33321         source directory.
33322         * gnat_ug.texi: Remove CVS keywords, correct version number.
33323         Set file name correctly.
33324
33325         * gnat_ug_*.texi: Add.
33326         * .cvsignore: Ignore generated Texinfo files.
33327
33328 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
33329
33330         * ada.h: Add MI guard macro.
33331         (SUBTYPE): Define constants with an anonymous enum, not static
33332         const variables.
33333         (IN): Cast constants to appropriate type before use.
33334
33335 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
33336
33337         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
33338         (experimental)".
33339
33340 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
33341
33342         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
33343         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
33344         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
33345         (ALL_ADA_CFLAGS): Likewise.
33346         (ADA_INCLUDES): Likewise.
33347         Adapt for new working dir.
33348         (GNATBIND): Use Makefile.in version.
33349         (.SUFFIXES): Copy from Makefile.in.
33350         (ada-warn): Define.
33351         (.adb.o, .ads.o): Copy from Makefile.in.
33352         Added $(OUTPUT_OPTION).
33353         (GNAT1_C_OBJS): Moved from Makefile.in.
33354         Prefix with ada subdir.
33355         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
33356         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
33357         Adapt for new working dir.
33358         (EXTRA_GNATBIND_OBJS): Likewise.
33359         (ADA_BACKEND): Moved from Makefile.in.
33360         Renamed to avoid conflict with global BACKEND.
33361         Use that one.
33362         (TARGET_ADA_SRCS): Moved from Makefile.in.
33363         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
33364         Use ADA_BACKEND.
33365         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
33366         (ada_extra_files): Moved from Makefile.in.
33367         Prefix with ada subdir.
33368         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
33369         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
33370         (ada/nmake.ads): Likewise.
33371         (update-sources): Moved from Makefile.in.
33372         Prefix with ada subdir.
33373         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
33374         (ADA_TREE_H): Likewise.
33375         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
33376         (ada/memtrack.o): Likewise.
33377         (ada/adadecode.o): Likewise.
33378         Update dependencies.
33379         (ada/adaint.o): New.
33380         (ada/argv.o): Moved from Makefile.in.
33381         Prefix with ada subdir.
33382         Update dependencies.
33383         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
33384         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
33385         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
33386         Prefix with ada subdir.
33387         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
33388         (GNAT DEPENDENCIES): Regenerate.
33389         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
33390         toplevel Makefile.in.
33391         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
33392         (TARGET_ADA_SRCS): Removed.
33393         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
33394         (GNATBIND_OBJS): Likewise.
33395         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
33396         (BACKEND): Removed.
33397         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
33398         (TREE_H): Likewise.
33399         (ada_extra_files): Likewise.
33400         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
33401         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
33402         (update-sources): Likewise.
33403         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
33404         (ADA_TREE_H): Likewise.
33405         (adadecoce.o): Likewise.
33406         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
33407         (GNAT DEPENDENCIES): Likewise.
33408
33409 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
33410
33411         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
33412         * Makefile.in: Likewise.
33413
33414 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
33415
33416         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
33417         Restore $(CONFIG_H) and prefix.o dependencies.
33418         (ada.stage[1-4]): Depend on stage?-start.
33419
33420         * Makefile.in (b_gnatb.c): Depend on interfac.o.
33421
33422 2002-05-02  Jim Wilson  <wilson@redhat.com>
33423
33424         * utils.c (finish_record_type): Change record_size to record_type.
33425
33426 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
33427
33428         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
33429         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
33430         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
33431
33432 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
33433
33434         * misc.c (gnat_parse_file): Update.
33435
33436 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
33437
33438         * misc.c (gnat_init): Don't set lang_attribute_common.
33439
33440 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
33441
33442         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
33443
33444 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
33445
33446         * gnat_ug.texi: New file.
33447
33448         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
33449         instead of gfdl.texi
33450
33451         * xgnatug.adb, ug_words: New files.
33452
33453         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
33454         gnat_rm and gnat-style manuals.
33455
33456 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
33457
33458         * gigi.h (incomplete_type_error): Remove.
33459         * utils.c (incomplete_type_error): Remove.
33460
33461 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
33462
33463         * trans.c (tree_transform): Add has_scope argument to
33464         expand_start_stmt_expr.
33465
33466 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
33467
33468         * gigi.h (truthvalue_conversion): Rename.
33469         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
33470         * trans.c (tree_transform): Update.
33471         * utils2.c (truthvalue_conversion): Rename, update.
33472         (build_binary_op, build_unary_op): Update.
33473
33474 2002-04-04  Laurent Guerby  <guerby@acm.org>
33475
33476         * make.adb: Implement -margs, remove restriction about file name placement.
33477         * makeusg.adb: Documentation update.
33478         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
33479         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
33480
33481 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
33482
33483         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
33484         (builtin_function): Similarly.
33485
33486 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
33487
33488         * decl.c (gnat_to_gnu_entity): Update.
33489         * gigi.h (mark_addressable): Rename.
33490         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
33491         * trans.c (tree_transform): Update.
33492         * utils.c (create_var_decl): Update.
33493         * util2.c (build_binary_op, build_unary_op,
33494         fill_vms_descriptor): Update.
33495         (mark_addressable): Rename, update.
33496
33497 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
33498
33499         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
33500         Rename.
33501         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
33502         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
33503         * trans.c (tree_transform, convert_with_check): Update.
33504         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
33505         Rename.
33506
33507 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
33508
33509         * gigi.h (finish_incomplete_decl): Rename.
33510         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
33511         * utils.c (gnat_init_decl_processing): Don't set hook.
33512         (finish_incomplete_decl): Rename.
33513
33514 2002-03-29  Andreas Schwab  <schwab@suse.de>
33515
33516         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
33517         directory.
33518
33519 2001-03-28  Robert Dewar <dewar@gnat.com>
33520
33521         * checks.ads:
33522         (Remove_Checks): New procedure
33523
33524         * checks.adb:
33525         (Remove_Checks): New procedure
33526
33527         * exp_util.adb:
33528         Use new Duplicate_Subexpr functions
33529         (Duplicate_Subexpr_No_Checks): New procedure
33530         (Duplicate_Subexpr_No_Checks_Orig): New procedure
33531         (Duplicate_Subexpr): Restore original form (checks duplicated)
33532         (Duplicate_Subexpr): Call Remove_Checks
33533
33534         * exp_util.ads:
33535         (Duplicate_Subexpr_No_Checks): New procedure
33536         (Duplicate_Subexpr_No_Checks_Orig): New procedure
33537         Add 2002 to copyright notice
33538
33539         * sem_util.adb: Use new Duplicate_Subexpr functions
33540
33541         * sem_eval.adb:
33542         (Eval_Indexed_Component): This is the place to call
33543         Constant_Array_Ref and to replace the value. We simply merge
33544         the code of this function in here, since it is now no longer
33545         used elsewhere. This fixes the problem of the back end not
33546         realizing we were clever enough to see that this was
33547         constant.
33548         (Expr_Val): Remove call to Constant_Array_Ref
33549         (Expr_Rep_Val): Remove call to Constant_Array_Ref
33550         Minor reformatting
33551         (Constant_Array_Ref): Deal with string literals (patch
33552         suggested by Zack Weinberg on the gcc list)
33553
33554 2001-03-28  Ed Schonberg <schonber@gnat.com>
33555
33556         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
33557         Duplicate_Subexpr_Move_Checks.
33558
33559         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
33560         Duplicate_Subexpr_Move_Checks.
33561
33562         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
33563         value of array exists before retrieving it (it may a private
33564         protected component in a function).
33565
33566 2002-03-28   Geert Bosch <bosch@gnat.com>
33567
33568         * prj-pp.adb : New file.
33569
33570         * prj-pp.ads : New file.
33571
33572 2002-03-28  Andreas Jaeger  <aj@suse.de>
33573
33574         * Makefile.in (stamp-sdefault): Fix path for Makefile.
33575
33576 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
33577
33578         * misc.c (gnat_expand_expr): Move prototype.
33579
33580 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
33581
33582         * misc.c (insert_default_attributes): Remove.
33583
33584 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
33585
33586         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
33587         (gnat_init): Don't set hook.
33588         (gnat_expand_expr): Fix prototype.
33589
33590 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
33591
33592         * misc.c (ggc_p): Remove.
33593
33594 2002-03-27  Geert Bosch  <bosch@gnat.com>
33595
33596         * prj-makr.ads, prj-makr.adb : New files.
33597
33598 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
33599
33600         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
33601         (lang_mark_tree): Make static, rename.
33602
33603 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
33604
33605         * misc.c (maybe_build_cleanup): Remove.
33606
33607 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
33608
33609         * gigi.h (yyparse): Remove.
33610
33611 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
33612
33613         * gnat_rm.texi: Sync with ACT version.
33614           (From Ben Brosgol <brosgol@gnat.com>)
33615
33616 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
33617
33618         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
33619         (gnat_init): Remove old hook.
33620
33621 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
33622
33623         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
33624         (yyparse): Rename gnat_parse_file.
33625
33626 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
33627
33628         Delete all lines containing "$Revision:".
33629         * xeinfo.adb: Don't look for revision numbers.
33630         * xnmake.adb: Likewise.
33631         * xsinfo.adb: Likewise.
33632         * xsnames.adb: Likewise.
33633         * xtreeprs.adb: Likewise.
33634
33635 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
33636
33637         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
33638         gnat_tree_code_name): Delete.
33639         (tree_code_type, tree_code_length, tree_code_name): Define.
33640         (gnat_init): Don't try to copy into the various tree_code
33641         arrays.
33642
33643 2002-03-11  Richard Henderson  <rth@redhat.com>
33644
33645         * Makefile.in (.NOTPARALLEL): Add fake tag.
33646
33647 2002-03-07  Geert Bosch  <bosch@gnat.com>
33648
33649         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
33650         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
33651         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
33652         switch-m.adb, switch-m.ads : New files.
33653
33654 2002-03-07  Geert Bosch  <bosch@gnat.com>
33655
33656         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
33657         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
33658         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
33659         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
33660         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
33661         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
33662         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
33663         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
33664         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
33665         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
33666         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
33667         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
33668         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
33669         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
33670         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
33671         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
33672         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
33673         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
33674         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
33675         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
33676         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
33677         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
33678         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
33679         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
33680         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
33681         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
33682         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
33683         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
33684         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
33685         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
33686         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
33687         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
33688         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
33689         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
33690         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
33691         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
33692         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
33693         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
33694         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
33695         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
33696         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
33697         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
33698         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
33699         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
33700         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
33701         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
33702         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
33703         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
33704         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
33705         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
33706         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
33707         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
33708         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
33709         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
33710         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
33711         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
33712         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
33713         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
33714         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
33715         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
33716         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
33717         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
33718         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
33719         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
33720         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
33721         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
33722         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
33723         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
33724         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
33725         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
33726         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
33727         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
33728         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
33729         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
33730         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
33731         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
33732         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
33733         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
33734         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
33735         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
33736         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
33737         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
33738         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
33739         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
33740         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
33741         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
33742         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
33743         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
33744         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
33745         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
33746         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
33747         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
33748         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
33749         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
33750         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
33751         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
33752         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
33753
33754         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
33755         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
33756         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
33757         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
33758
33759         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
33760         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
33761
33762         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
33763         to mdll-fil.ad[bs] and mdll-util.ad[bs]
33764
33765         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
33766         from mdllfile.ad[bs] and mdlltool.ad[bs]
33767
33768 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
33769
33770         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
33771         lieu of explicit sizeof/sizeof.
33772
33773 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
33774
33775         * misc.c (copy_lang_decl): Remove.
33776
33777 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
33778
33779         * misc.c: Delete traditional-mode-related code copied from the
33780         C front end but not used, or used only to permit the compiler
33781         to link.
33782
33783 2002-02-07  Richard Henderson  <rth@redhat.com>
33784
33785         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
33786         * adaint.h (__gnat_to_gm_time): Update prototype.
33787
33788 2002-01-30  Richard Henderson  <rth@redhat.com>
33789
33790         * trans.c (tree_transform) [N_Loop_Statement]: Use
33791         expand_exit_loop_top_cond.
33792
33793 2001-12-23  Richard Henderson  <rth@redhat.com>
33794
33795         * utils.c (end_subprog_body): Push GC context around
33796         rest_of_compilation for nested functions.
33797
33798 2001-12-23  Richard Henderson  <rth@redhat.com>
33799
33800         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
33801
33802 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
33803
33804         * gnat-style.texi (Declarations and Types): Remove ancient style
33805         rule which was mandated by code generation issues.
33806
33807         * gnat-style.texi (header): Add @dircategory, @direntry.
33808         (title page): Remove date.
33809         (general) Add @./@: where approriate, and two spaces after the
33810         full stop at the end of a sentence.  Use @samp markup when
33811         referring concrete lexical entities (keywords, attribute names
33812         etc.), and @syntax for ARM grammar elements. Use @r for English
33813         text in comments.  Use @emph for emphasis.  Change "if-statements"
33814         etc. to "if statements" (without @samp). Break long lines.  Make
33815         casing of section names consistent.
33816         (Identifiers): Use @samp markup for variable names.
33817         (Comments): Use @samp markup for comment characters. Line-end
33818         comments may follow any Ada code, not just statements.  Fix
33819         misspelling of "Integer" as "integer".
33820         (Loop statements): Do not use variable name "I", use "J".
33821         (Subprogram Declarations): Document alignment.
33822         (Subprogram Bodies, Block statements): Document empty line before
33823         "begin".
33824
33825 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
33826
33827         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
33828         function approach did not work well because of a side effect (the
33829         function call could reallocate the table which was being indexed
33830         using its result). Fixes ada/4851.
33831
33832 2001-12-19  Robert Dewar <dewar@gnat.com>
33833
33834         * bindgen.adb: Minor reformatting
33835
33836         * cstand.adb: Minor reformatting
33837
33838         * fmap.adb: Minor reformatting
33839         Change name from Add for Add_To_File_Map (Add is much too generic)
33840         Change Path_Name_Of to Mapped_Path_Name
33841         Change File_Name_Of to Mapped_File_Name
33842         Fix copyright dates in header
33843
33844         * fmap.ads:
33845         Change name from Add for Add_To_File_Map (Add is much too generic)
33846         Change Path_Name_Of to Mapped_Path_Name
33847         Change File_Name_Of to Mapped_File_Name
33848         Fix copyright dates in header
33849
33850         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
33851         Add use clause for Fmap.
33852
33853         * make.adb: Minor reformatting
33854
33855         * osint.adb: Minor reformatting.  Change of names in Fmap.
33856         Add use clause for Fmap.
33857
33858         * prj-env.adb: Minor reformatting
33859
33860         * prj-env.ads: Minor reformatting
33861
33862         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
33863         error found (there were odd exceptions to this general rule in
33864         -gnatec/-gnatem processing)
33865
33866 2001-12-19  Olivier Hainque <hainque@gnat.com>
33867
33868         * raise.c (__gnat_eh_personality): Exception handling personality
33869         routine for Ada.  Still in rough state, inspired from the C++ version
33870         and still containing a bunch of debugging artifacts.
33871         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
33872         inspired from the C++ library.
33873
33874         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
33875         exception handling integration.
33876
33877 2001-12-19  Arnaud Charlet <charlet@gnat.com>
33878
33879         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
33880         (HIE_SOURCES): Add s-secsta.ad{s,b}.
33881         (HIE_OBJS): Add s-fat*.o
33882         (RAVEN_SOURCES): Remove files that are no longer required. Add
33883         interrupt handling files.
33884         (RAVEN_MOD): Removed, no longer needed.
33885
33886 2001-12-19  Robert Dewar <dewar@gnat.com>
33887
33888         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
33889         Add 2001 to copyright date
33890
33891         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
33892         need to force universal inlining for these cases.
33893
33894 2001-12-19  Arnaud Charlet <charlet@gnat.com>
33895
33896         * s-taprob.adb: Minor clean ups so that this unit can be used in
33897         Ravenscar HI.
33898
33899         * exp_ch7.adb: Allow use of secondary stack in HI mode.
33900         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
33901
33902 2001-12-19  Vincent Celier <celier@gnat.com>
33903
33904         * prj-tree.ads (Project_Node_Record): Add comments for components
33905         Pkg_Id and Case_Insensitive.
33906
33907 2001-12-19  Pascal Obry <obry@gnat.com>
33908
33909         * g-socket.adb: Minor reformatting. Found while reading code.
33910
33911 2001-12-19  Robert Dewar <dewar@gnat.com>
33912
33913         * prj-tree.ads: Minor reformatting
33914
33915 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
33916
33917         * config-lang.in (diff_excludes): Remove.
33918
33919 2001-12-17  Ed Schonberg <schonber@gnat.com>
33920
33921         * sem_res.adb (Resolve_Selected_Component): do not generate a
33922         discriminant check if the selected component is a component of
33923         the argument of an initialization procedure.
33924
33925         * trans.c (tree_transform, case of arithmetic operators): If result
33926         type is private, the gnu_type is the base type of the full view,
33927         given that the full view itself may be a subtype.
33928
33929 2001-12-17  Robert Dewar <dewar@gnat.com>
33930
33931         * sem_res.adb: Minor reformatting
33932
33933         * trans.c (tree_transform, case N_Real_Literal): Add missing third
33934         parameter in call to Machine (unknown horrible effects from this
33935         omission).
33936
33937         * urealp.h: Add definition of Round_Even for call to Machine
33938         Add third parameter for Machine
33939
33940 2001-12-17  Ed Schonberg <schonber@gnat.com>
33941
33942         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
33943         predefined units in No_Run_Time mode.
33944
33945 2001-12-17  Richard Kenner <kenner@gnat.com>
33946
33947         * misc.c (insn-codes.h): Now include.
33948
33949 2001-12-17  Olivier Hainque <hainque@gnat.com>
33950
33951         * a-except.adb: Preparation work for future integration of the GCC 3
33952         exception handling mechanism
33953         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
33954         to factorize previous code sequences and make them externally callable,
33955         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
33956         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
33957         Use the new notification routines.
33958
33959 2001-12-17  Emmanuel Briot <briot@gnat.com>
33960
33961         * prj-tree.ads (First_Choice_Of): Document the when others case
33962
33963 2001-12-17  Arnaud Charlet <charlet@gnat.com>
33964
33965         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
33966         HI-E mode, in order to support Ravenscar profile properly.
33967
33968         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
33969         mode on 32 bits targets.
33970
33971 2001-12-17  Vincent Celier <celier@gnat.com>
33972
33973         * fmap.adb: Initial version.
33974
33975         * fmap.ads: Initial version.
33976
33977         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
33978         If search is successfully done, add to mapping.
33979
33980         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
33981
33982         * make.adb:
33983         (Gnatmake): Add new local variable Mapping_File_Name.
33984          Create mapping file when using project file(s).
33985          Delete mapping file before exiting.
33986
33987         * opt.ads (Mapping_File_Name): New variable
33988
33989         * osint.adb (Find_File): Use path name found in mapping, if any.
33990
33991         * prj-env.adb (Create_Mapping_File): New procedure
33992
33993         * prj-env.ads (Create_Mapping_File): New procedure.
33994
33995         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
33996         (Mapping_File)
33997
33998         * usage.adb: Add entry for new switch -gnatem.
33999
34000         * Makefile.in: Add dependencies for fmap.o.
34001
34002 2001-12-17  Ed Schonberg <schonber@gnat.com>
34003
34004         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
34005         is a package instantiation rewritten as a package body.
34006         (Install_Withed_Unit): Undo previous change, now redundant.
34007
34008 2001-12-17  Gary Dismukes <dismukes@gnat.com>
34009
34010         * layout.adb:
34011         (Compute_Length): Move conversion to Unsigned to callers.
34012         (Get_Max_Size): Convert Len expression to Unsigned after calls to
34013         Compute_Length and Determine_Range.
34014         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
34015         Compute_Length and Determine_Range.
34016         Above changes fix problem with length computation for supernull arrays
34017         where Max (Len, 0) wasn't getting applied due to the Unsigned
34018         conversion used by Compute_Length.
34019
34020 2001-12-17  Arnaud Charlet <charlet@gnat.com>
34021
34022         * rtsfind.ads:
34023         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
34024          System.Secondary_Stack.
34025         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
34026          in HI-E mode.
34027         Remove unused entity RE_Exception_Data.
34028
34029         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
34030
34031         * rident.ads (No_Secondary_Stack): New restriction.
34032
34033 2001-12-17  Joel Brobecker <brobecke@gnat.com>
34034
34035         * gnat_rm.texi: Fix minor typos. Found while reading the section
34036         regarding "Bit_Order Clauses" that was sent to a customer.
34037         Very interesting documentation!
34038
34039 2001-12-17  Robert Dewar <dewar@gnat.com>
34040
34041         * sem_case.adb (Choice_Image): Avoid creating improper character
34042         literal names by using the routine Set_Character_Literal_Name. This
34043         fixes bombs in certain error message cases.
34044
34045 2001-12-17  Arnaud Charlet <charlet@gnat.com>
34046
34047         * a-reatim.adb: Minor reformatting.
34048
34049 2001-12-17  Ed Schonberg <schonber@gnat.com>
34050
34051         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
34052         case where the formal is an extension of another formal in the current
34053         unit or in a parent generic unit.
34054
34055 2001-12-17  Arnaud Charlet <charlet@gnat.com>
34056
34057         * s-tposen.adb: Update comments.  Minor reformatting.
34058         Minor code clean up.
34059
34060         * s-tarest.adb: Update comments.  Minor code reorganization.
34061
34062 2001-12-17  Gary Dismukes <dismukes@gnat.com>
34063
34064         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
34065         when Java_VM.
34066
34067 2001-12-17  Robert Dewar <dewar@gnat.com>
34068
34069         * exp_attr.adb: Minor reformatting
34070
34071 2001-12-17  Ed Schonberg <schonber@gnat.com>
34072
34073         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
34074         derivations nested within a child unit: verify that the parent
34075         type is declared in an outer scope.
34076
34077 2001-12-17  Robert Dewar <dewar@gnat.com>
34078
34079         * sem_ch12.adb: Minor reformatting
34080
34081 2001-12-17  Ed Schonberg <schonber@gnat.com>
34082
34083         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
34084         warning if current unit is a predefined one, from which bodies may
34085         have been deleted.
34086
34087 2001-12-17  Robert Dewar <dewar@gnat.com>
34088
34089         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
34090         Fix header format. Add 2001 to copyright date.
34091
34092         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
34093         which caused CE during compilation if checks were enabled.
34094
34095 2001-12-17  Vincent Celier <celier@gnat.com>
34096
34097         * make.adb:
34098         (Switches_Of): New function
34099         (Test_If_Relative_Path): New procedure
34100         (Add_Switches): Use new function Switches_Of
34101         (Collect_Arguments_And_Compile): Use new function Switches_Of.
34102         When using a project file, test if there are any relative
34103         search path. Fail if there are any.
34104         (Gnatmake): Only add switches for the primary directory when not using
34105         a project file. When using a project file, change directory to the
34106         object directory of the main project file. When using a project file,
34107         test if there are any relative search path. Fail if there are any.
34108         When using a project file, fail if specified executable is relative
34109         path with directory information, and prepend executable, if not
34110         specified as an absolute path, with the exec directory.  Make sure
34111         that only one -o switch is transmitted to the linker.
34112
34113         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
34114
34115         * prj-nmsc.adb:
34116         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
34117         when using a non standard naming scheme.
34118         (Check_Ada_Naming_Scheme): Make sure that error messages
34119         do not raise exceptions.
34120         (Is_Illegal_Append): Return True if there is no dot in the suffix.
34121         (Language_Independent_Check): Check the exec directory.
34122
34123         * prj.adb (Project_Empty): Add new component Exec_Directory
34124
34125         * prj.ads:
34126         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
34127         (Project_Data): Add component Exec_Directory
34128
34129         * snames.adb: Updated to match snames.ads revision 1.215
34130
34131         * snames.ads: Added Exec_Dir
34132
34133 2001-12-17  Robert Dewar <dewar@gnat.com>
34134
34135         * make.adb: Minor reformatting
34136
34137         * prj-nmsc.adb: Minor reformatting
34138
34139         * snames.adb: Updated to match snames.ads
34140
34141         * snames.ads: Alphebetize entries for project file
34142
34143 2001-12-17  Ed Schonberg <schonber@gnat.com>
34144
34145         * trans.c (process_freeze_entity): Do nothing if the entity is a
34146         subprogram that was already elaborated.
34147
34148 2001-12-17  Richard Kenner <kenner@gnat.com>
34149
34150         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
34151         and Esize if object is referenced via pointer.
34152
34153 2001-12-17  Ed Schonberg <schonber@gnat.com>
34154
34155         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
34156         is discrete before analyzing choices.
34157
34158 2001-12-17  Joel Brobecker <brobecke@gnat.com>
34159
34160         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
34161         containing the name of the Ada Main Program. This string is mainly
34162         intended for the debugger.
34163         (Gen_Output_File_C): Do the equivalent change when generating a C file.
34164
34165 2001-12-17  Robert Dewar <dewar@gnat.com>
34166
34167         * ali.adb: Set new Dummy_Entry field in dependency entry
34168
34169         * ali.ads: Add Dummy_Entry field to source dependency table
34170
34171         * bcheck.adb (Check_Consistency): Ignore dummy D lines
34172
34173         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
34174
34175         * lib-writ.ads: Document dummy D lines for missing files.
34176
34177         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
34178
34179 2001-12-17  Robert Dewar <dewar@gnat.com>
34180
34181         * ali.adb: Type reference does not reset current file.
34182
34183         * ali.adb: Recognize and scan renaming reference
34184
34185         * ali.ads: Add spec for storing renaming references.
34186
34187         * lib-xref.ads: Add documentation for handling of renaming references
34188
34189         * lib-xref.adb: Implement output of renaming reference.
34190
34191         * checks.adb:
34192         (Determine_Range): Document local variables
34193         (Determine_Range): Make sure Hbound is initialized. It looks as though
34194          there could be a real problem here with an uninitialized reference
34195          to Hbound, but no actual example of failure has been found.
34196
34197 2001-12-17  Laurent Pautet <pautet@gnat.com>
34198
34199         * g-socket.ads:
34200         Fix comment of Shutdown_Socket and Close_Socket. These functions
34201         should not fail silently because if they are called twice, this
34202         probably means that there is a race condition in the user program.
34203         Anyway, this behaviour is consistent with the rest of this unit.
34204         When an error occurs, an exception is raised with the error message
34205         as exception message.
34206
34207 2001-12-17  Robert Dewar <dewar@gnat.com>
34208
34209         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
34210         that it happens before modification of Sloc values for -gnatD.
34211
34212         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
34213         so that it happens before modification of Sloc values for -gnatD.
34214
34215         * switch.adb: Minor reformatting
34216
34217 2001-12-15  Richard Henderson  <rth@redhat.com>
34218
34219         * sem_ch7.adb: Wrap comment.
34220
34221 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
34222
34223         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
34224         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
34225         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
34226         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
34227         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
34228         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
34229         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
34230         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
34231         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
34232         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
34233         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
34234         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
34235         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
34236         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
34237         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
34238         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
34239         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
34240         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
34241         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
34242         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
34243         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
34244         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
34245         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
34246         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
34247         spelling errors.
34248
34249 2001-12-14  Vincent Celier <celier@gnat.com>
34250
34251         * osint.adb(Create_Debug_File): When an object file is specified,
34252         put the .dg file in the same directory as the object file.
34253
34254 2001-12-14  Robert Dewar <dewar@gnat.com>
34255
34256         * osint.adb: Minor reformatting
34257
34258         * lib-xref.adb (Output_Instantiation): New procedure to generate
34259         instantiation references.
34260
34261         * lib-xref.ads: Add documentation of handling of generic references.
34262
34263         * ali.adb (Read_Instantiation_Ref): New procedure to read
34264         instantiation references
34265
34266         * ali.ads: Add spec for storing instantiation references
34267
34268         * bindusg.adb: Minor reformatting
34269
34270         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
34271
34272         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
34273
34274         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
34275
34276         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
34277
34278         * csets.ads:
34279         Fix header format
34280         Add 2001 to copyright date
34281         Add entry for Latin-5 (Cyrillic ISO-8859-5)
34282
34283 2001-12-14  Matt Gingell <gingell@gnat.com>
34284
34285         * adaint.c: mktemp is a macro on Lynx and can not be used as an
34286         expression.
34287
34288 2001-12-14  Richard Kenner <kenner@gnat.com>
34289
34290         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
34291         if operand is CONSTRUCTOR.
34292
34293 2001-12-14  Ed Schonberg <schonber@gnat.com>
34294
34295         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
34296         before emiting check on right-hand side, so that exception information
34297         is correct.
34298
34299 2001-12-14  Richard Kenner <kenner@gnat.com>
34300
34301         * utils.c (create_var_decl): Throw away initializing expression
34302         if just annotating types and non-constant.
34303
34304 2001-12-14  Vincent Celier <celier@gnat.com>
34305
34306         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
34307         Default_Ada_...
34308
34309         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
34310         Remove functions.
34311         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
34312
34313         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
34314         Remove functions.
34315         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
34316
34317 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
34318
34319         * ChangeLog: Remove piece of diff output.
34320
34321 2001-12-14  Geert Bosch <bosch@gnat.com>
34322
34323         * config-lang.in: Update copyright notice
34324
34325         * layout.adb: Remove commented out code.
34326
34327         * mdllfile.ads: Update copyright notice. Fix header format.
34328
34329         * sem_case.ads: Likewise.
34330
34331         * sem_ch3.adb: Minor reformatting.
34332
34333 2001-12-12  Geert Bosch <bosch@gnat.com>
34334
34335         * freeze.ads: Update copyright date.
34336
34337         * g-comlin.ads: Minor reformatting.
34338
34339         * gnat-style.texi: Fix typo.
34340
34341 2001-12-12  Geert Bosch <bosch@gnat.com>
34342
34343         *  einfo.h: Regenerate.
34344
34345 2001-12-12  Ed Schonberg <schonber@gnat.com>
34346
34347         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
34348         on known node types, rather than untyped fields. Further cleanups.
34349
34350 2001-12-12  Robert Dewar <dewar@gnat.com>
34351
34352         * sem_ch12.adb:
34353         (Save_Entity_Descendant): Minor comment update.
34354         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
34355          of an N_Attribute_Reference node. As per note below, this does not
34356         eliminate need for Associated_Node in attribute ref nodes.
34357         (Associated_Node): Documentation explicitly mentions attribute
34358         reference nodes, since this field is used in such nodes.
34359
34360         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
34361
34362 2001-12-12  Robert Dewar <dewar@gnat.com>
34363
34364         * s-stalib.adb: Add more comments on with statements being needed
34365
34366         * par-ch12.adb: Minor reformatting
34367
34368         * prj-dect.ads: Fix copyright header
34369
34370         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
34371         inputs fit in 32 bits, but the result still overflows.
34372
34373         * s-fatgen.ads: Minor comment improvement
34374
34375 2001-12-12  Ed Schonberg <schonber@gnat.com>
34376
34377         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
34378         formal derived type, look for an inherited component from the full
34379         view of the parent, if any.
34380
34381 2001-12-12  Robert Dewar <dewar@gnat.com>
34382
34383         * checks.ads (Apply_Alignment_Check): New procedure.
34384
34385         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
34386         ensure that the alignment of objects with address clauses is
34387         appropriate, and raise PE if not.
34388
34389         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
34390         Exp_Pakd.Known_Aligned_Enough
34391
34392         * mdllfile.ads: Minor reformatting
34393
34394         * mlib-fil.ads: Minor reformatting
34395
34396 2001-12-12  Ed Schonberg <schonber@gnat.com>
34397
34398         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
34399         fix to any component reference if enclosing record has non-standard
34400         representation.
34401
34402 2001-12-12  Vincent Celier <celier@gnat.com>
34403
34404         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
34405         Iteration
34406
34407 2001-12-12  Ed Schonberg <schonber@gnat.com>
34408
34409         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
34410         sem_attr.
34411
34412 2001-12-12  Robert Dewar <dewar@gnat.com>
34413
34414         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
34415
34416 2001-12-12  Emmanuel Briot <briot@gnat.com>
34417
34418         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
34419         and it adds dependencies to system.io.
34420
34421 2001-12-12  Pascal Obry <obry@gnat.com>
34422
34423         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
34424         variable name.
34425
34426 2001-12-11  Ed Schonberg <schonber@gnat.com>
34427
34428         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
34429         that is the parent of other generics, the instance body replaces the
34430         instance node.  Retrieve the instance of the spec, which is the one
34431         that is visible in clients and within the body.
34432
34433 2001-12-11  Vincent Celier <celier@gnat.com>
34434
34435         * gnatmain.adb: Initial version.
34436
34437         * gnatmain.ads: Initial version.
34438
34439         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
34440
34441         * snames.adb: Updated to match snames.ads.
34442
34443         * snames.ads: Added Gnatstub.
34444
34445 2001-12-11  Vincent Celier <celier@gnat.com>
34446
34447         * prj-attr.adb (Initialization_Data): Change name from
34448         Initialisation_Data.
34449
34450 2001-12-11  Emmanuel Briot <briot@gnat.com>
34451
34452         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
34453         + and * applied to backslashed expressions like \r.
34454
34455 2001-12-11  Vasiliy Fofanov <fofanov@gnat.com>
34456
34457         * g-os_lib.ads: String_List type added, Argument_List type is now
34458         subtype of String_List.
34459
34460 2001-12-11  Robert Dewar <dewar@gnat.com>
34461
34462         * g-os_lib.ads: Change copyright to FSF
34463         Add comments for String_List type
34464
34465 2001-12-11  Vincent Celier <celier@gnat.com>
34466
34467         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
34468         string to the buffer).
34469
34470 2001-12-11  Ed Schonberg <schonber@gnat.com>
34471
34472         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
34473         sem_attr.
34474
34475         * sem_attr.adb: Simplify previous fix for Address.
34476         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
34477         to avoid anomalies where the bound of the type appears to raise
34478         constraint error.
34479
34480 2001-12-11  Robert Dewar <dewar@gnat.com>
34481
34482         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
34483         handled.
34484
34485 2001-12-11  Ed Schonberg <schonber@gnat.com>
34486
34487         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
34488         renamed unit before checking for recursive instantiations.
34489
34490 2001-12-11  Emmanuel Briot <briot@gnat.com>
34491
34492         * prj.ads: Add comments for some of the fields.
34493
34494 2001-12-11  Robert Dewar <dewar@gnat.com>
34495
34496         * lib-xref.adb (Output_Refs): Don't output type references outside
34497         the main unit if they are not otherwise referenced.
34498
34499 2001-12-11  Ed Schonberg <schonber@gnat.com>
34500
34501         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
34502         code and diagnose additional illegal uses
34503
34504         * sem_util.adb (Is_Object_Reference): An indexed component is an
34505         object only if the prefix is.
34506
34507 2001-12-11  Vincent Celier <celier@gnat.com>
34508
34509         * g-diopit.adb: Initial version.
34510
34511         * g-diopit.ads: Initial version.
34512
34513         * g-dirope.adb:
34514         (Expand_Path): Avoid use of Unbounded_String
34515         (Find, Wildcard_Iterator): Moved to child package Iteration
34516
34517         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
34518
34519 2001-12-11  Robert Dewar <dewar@gnat.com>
34520
34521         * sem_attr.adb: Minor reformatting
34522
34523 2001-12-11  Ed Schonberg <schonber@gnat.com>
34524
34525         * sem_ch3.adb: Clarify some ???.
34526
34527 2001-12-11  Robert Dewar <dewar@gnat.com>
34528
34529         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
34530         Exp_Pakd.Known_Aligned_Enough
34531
34532         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
34533         version is moved to Exp_Ch13.
34534
34535 2001-12-11  Robert Dewar <dewar@gnat.com>
34536
34537         * einfo.ads: Minor reformatting
34538
34539         * exp_ch5.adb: Add comment for previous.change
34540
34541         * ali.adb: New interface for extended typeref stuff.
34542
34543         * ali.ads: New interface for typeref stuff.
34544
34545         * checks.adb (Apply_Alignment_Check): New procedure.
34546
34547         * debug.adb: Add -gnatdM for modified ALI output
34548
34549         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
34550
34551         * lib-xref.adb: Extend generation of <..> notation to cover
34552         subtype/object types. Note that this is a complete rewrite,
34553         getting rid of the very nasty quadratic algorithm previously
34554         used for derived type output.
34555
34556         * lib-xref.ads: Extend description of <..> notation to cover
34557         subtype/object types. Uses {..} for these other cases.
34558         Also use (..) for pointer types.
34559
34560         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
34561
34562         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
34563         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
34564
34565 2001-12-11  Vincent Celier <celier@gnat.com>
34566
34567         * gnatcmd.adb:
34568         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
34569         Changed /BIND_ONLY to /ACTIONS=BIND
34570         Changed /LINK_ONLY to /ACTIONS=LINK
34571
34572 2001-12-11  Ed Schonberg  <schonber@gnat.com>
34573
34574         * sem_ch8.adb (Find_Selected_Component): improved search for a
34575         candidate package in case of error.
34576
34577         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
34578         chain back on scope stack before reinstalling use clauses.
34579
34580         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
34581         is enabled, do not kill the code for the condition, to preserve
34582         warning.
34583
34584 2001-12-11  Robert Dewar <dewar@gnat.com>
34585
34586         * checks.adb (Insert_Valid_Check): Apply validity check to expression
34587         of conversion, not to result of conversion.
34588
34589 2001-12-11  Ed Schonberg <schonber@gnat.com>
34590
34591         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
34592         before freezing parent. If the declarations are mutually recursive,
34593         an access to the current record type may be frozen before the
34594         derivation is complete.
34595
34596 2001-12-05  Vincent Celier <celier@gnat.com>
34597
34598         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
34599         -c /COMPILE_ONLY, -l /LINK_ONLY
34600
34601         * opt.ads:
34602         (Bind_Only): New Flag
34603         (Link_Only): New flag
34604
34605         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
34606         and -l (Link_Only)
34607
34608         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
34609
34610         * make.adb:
34611         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
34612         (Gnatmake): Set the step flags. Only perform a step if the
34613         corresponding step flag is True.
34614         (Scan_Make_Arg): Reset the bind and link step flags when -u
34615         or -gnatc has been specified.
34616
34617 2001-12-05  Ed Schonberg <schonber@gnat.com>
34618
34619         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
34620         get bounds from right operand.
34621
34622         * sem_eval.adb: Minor reformatting
34623
34624         * exp_util.adb (Make_Literal_Range): use bound of literal rather
34625         than Index'First, its lower bound may be different from 1.
34626
34627         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
34628         and C48009J
34629
34630 2001-12-05  Vincent Celier <celier@gnat.com>
34631
34632         * prj-nmsc.adb Minor reformatting
34633
34634         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
34635         set and libraries are not supported.
34636
34637 2001-12-05  Ed Schonberg <schonber@gnat.com>
34638
34639         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
34640         private view explicitly, so the back-end can treat as a global
34641         when appropriate.
34642
34643 2001-12-05  Ed Schonberg <schonber@gnat.com>
34644
34645         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
34646          unit, always replace instance node with new body, for ASIS use.
34647
34648 2001-12-05  Vincent Celier <celier@gnat.com>
34649
34650         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
34651         libraries are not supported and both attributes Library_Name and
34652         Library_Dir are specified.
34653
34654         * prj-proc.adb (Expression): Set location of Result to location of
34655         first term.
34656
34657         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
34658         (prj-nmsc is now importing MLib.Tgt)
34659
34660         * prj-proc.adb: Put the change indicated above that was forgotten.
34661
34662 2001-12-05  Robert Dewar <dewar@gnat.com>
34663
34664         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
34665
34666 2001-12-05  Ed Schonberg <schonber@gnat.com>
34667
34668         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
34669         constraint, introduce explicit subtype declaration and derive from it.
34670
34671         * sem_ch3.adb: Minor reformatting
34672
34673 2001-12-05  Robert Dewar <dewar@gnat.com>
34674
34675         * checks.adb (Determine_Range): Increase cache size for checks.
34676         Minor reformatting
34677
34678         * exp_ch6.adb: Minor reformatting
34679         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
34680         a parameter whose root type is System.Address, since treating such
34681         subprograms as pure in the code generator is almost surely a mistake
34682         that will lead to unexpected results.
34683
34684         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
34685         change handling of conversions.
34686
34687         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
34688
34689 2001-12-05  Ed Schonberg <schonber@gnat.com>
34690
34691         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
34692         aggregate with static wrong size, attach generated Raise node to
34693         declaration.
34694
34695 2001-12-05  Robert Dewar <dewar@gnat.com>
34696
34697         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
34698         Fixes compilation abandoned bomb in B24009B.
34699
34700 2001-12-05  Ed Schonberg <schonber@gnat.com>
34701
34702         * sem_ch12.adb:
34703         Document use of Associated_Node on Selected_Components.
34704         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
34705         to clarify use of untyped descendant fields.
34706
34707 2001-12-05  Robert Dewar <dewar@gnat.com>
34708
34709         * prj-dect.ads: Add ??? comment
34710         Add 2001 to copyright notice (was not done in after all)
34711
34712         * prj-part.adb: Minor reformatting. Reword one awkward error message.
34713
34714         * prj.ads: Minor reformatting throughout, and add some ??? comments
34715
34716         * snames.ads: Minor reformatting
34717
34718 2001-12-05  Geert Bosch <bosch@gnat.com>
34719
34720         * snames.adb: Autoupdate
34721
34722 2001-12-05  Vincent Celier <celier@gnat.com>
34723
34724         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
34725
34726         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
34727
34728         * prj-env.adb: Minor comment changes (modifying -> extends).
34729
34730         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
34731
34732         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
34733         Tok_Extends.
34734
34735         * prj.adb (Initialize): Change Modifying to Extends.
34736
34737         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
34738
34739         * prj.ads: Minor comment change (Modifying -> extending).
34740
34741         * snames.ads: Change modifying to extends.
34742
34743 2001-12-05  Robert Dewar <dewar@gnat.com>
34744
34745         * sem_warn.adb: Remove stuff for conditionals, we are not going to
34746         do this after all.
34747
34748         * sem_warn.ads: Remove stuff for conditionals, we are not going to
34749         do this after all.  Add 2001 to copyright notice
34750
34751 2001-12-04  Geert Bosch <bosch@gnat.com>
34752
34753         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
34754
34755 2001-12-04  Robert Dewar <dewar@gnat.com>
34756
34757         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
34758         location if we already have errors. Stops some cases of cascaded
34759         errors.
34760
34761         * errout.adb: Improve comment.
34762
34763 2001-12-04  Robert Dewar <dewar@gnat.com>
34764
34765         * sem_ch12.adb:
34766         (Analyze_Formal_Type_Definition): Defend against Error.
34767         (Analyze_Formal_Subprogram): Defend against Error.
34768
34769         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
34770         remove following semicolon if present. Removes cascaded error.
34771
34772 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
34773
34774         * bindgen.adb:
34775         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
34776          exceptions equals 0.
34777         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
34778         Fixes PIWG E tests (which have to be run with -gnatL).
34779
34780 2001-12-04  Robert Dewar <dewar@gnat.com>
34781
34782         * einfo.ads: Minor reformatting
34783
34784 2001-12-04  Ed Schonberg <schonber@gnat.com>
34785
34786         * einfo.ads: Block_Node points to the identifier of the block, not to
34787         the block node itself, to preserve the link when the block is
34788         rewritten, e.g. within an if-statement with a static condition.
34789
34790         * inline.adb (Cleanup_Scopes): recover block statement from block
34791         entity using new meaning of Block_Node.
34792
34793         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
34794         identifier of block node, rather than to node itself.
34795
34796 2001-12-04  Gary Dismukes <dismukes@gnat.com>
34797
34798         * layout.adb:
34799         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
34800         (Discrimify): Go back to setting the Etypes of the selected component
34801         because the Vname component does not exist at this point and will
34802         fail name resolution. Also set Analyzed.
34803         Remove with and use of Sem_Res.
34804
34805 2001-12-04  Arnaud Charlet <charlet@gnat.com>
34806
34807         * Makefile.in: (HIE_SOURCES): add s-fat*.
34808
34809 2001-12-04  Robert Dewar <dewar@gnat.com>
34810
34811         * sem_attr.adb:
34812         (Compile_Time_Known_Attribute): New procedure.
34813         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
34814          proper range check.
34815
34816 2001-12-04  Ed Schonberg <schonber@gnat.com>
34817
34818         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
34819         processing discriminants to diagnose illegal default values.
34820
34821 2001-12-04  Ed Schonberg <schonber@gnat.com>
34822
34823         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
34824         access discriminant within a type extension that constrains its
34825         parent discriminants.
34826
34827 2001-12-04  Ed Schonberg <schonber@gnat.com>
34828
34829         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
34830         is malformed, use instance of Any_Id to allow analysis to proceed.
34831
34832         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
34833         type definition is illegal.
34834         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
34835         misplaced.
34836
34837 2001-12-04  Ed Schonberg <schonber@gnat.com>
34838
34839         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
34840         constants.
34841
34842 2001-12-04  Robert Dewar <dewar@gnat.com>
34843
34844         * errout.adb: Minor reformatting
34845
34846 2001-12-04  Robert Dewar <dewar@gnat.com>
34847
34848         * exp_util.adb: Minor reformatting from last change
34849
34850         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
34851         which is a rewriting of an expression, traverse the original
34852         expression to remove warnings that may have been posted on it.
34853
34854 2001-12-04  Ed Schonberg <schonber@gnat.com>
34855
34856         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
34857         record that has other packed components.
34858
34859 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
34860
34861         * adaint.c: Minor cleanups.
34862
34863 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
34864
34865         * adaint.c: Do not use utime.h on vxworks.
34866
34867 2001-12-04  Arnaud Charlet <charlet@gnat.com>
34868
34869         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
34870         more confusion than it solves.
34871
34872 2001-12-04  Geert bosch <bosch@gnat.com>
34873
34874         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
34875
34876 2001-12-04  Geert Bosch  <bosch@gnat.com>
34877
34878         * Makefile.in (update-sources): New target.
34879         For use by gcc_release script.
34880
34881 2001-12-04  Ed Schonberg <schonber@gnat.com>
34882
34883         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
34884         a configuration pragma, it is now legal wherever a pragma can appear.
34885
34886 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
34887
34888         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
34889         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
34890         is now @CROSS@ -DIN_GCC; update comment.
34891
34892 2001-12-04  Robert Dewar <dewar@gnat.com>
34893
34894         * einfo.adb (Has_Pragma_Pure_Function): New flag.
34895         Fix problem that stopped ceinfo from working
34896
34897         * einfo.ads (Has_Pragma_Pure_Function): New flag.
34898
34899         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
34900
34901 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
34902
34903         * gnatchop.adb:
34904         (File_Time_Stamp): New procedure.
34905         (Preserve_Mode): New boolean.
34906         (Write_Unit): Pass time stamp.
34907         Implement -p switch (preserve time stamps).
34908
34909         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
34910
34911         * gnatchop.adb: Do usage info for -p switch
34912
34913         * adaint.h (__gnat_set_file_time_name): New function
34914
34915         * adaint.c (__gnat_set_file_time_name): Implement
34916
34917         * adaint.h: Fix typo
34918
34919 2001-12-03  Robert Dewar <dewar@gnat.com>
34920
34921         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
34922         have Associated_Node.
34923
34924 2001-12-03  Robert Dewar <dewar@gnat.com>
34925
34926         * prj-proc.adb: Minor reformatting
34927
34928         * make.adb: Minor reformatting
34929
34930 2001-12-03  Geert Bosch <bosch@gnat.com>
34931
34932         * make.adb: Minor reformatting.
34933
34934 2001-12-03 Robert Dewar  <dewar@gnat.com>
34935
34936         * sem_ch12.adb: Minor reformatting
34937
34938 2001-12-03  Ed Schonberg <schonber@gnat.com>
34939
34940         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
34941         push Standard on the stack before analyzing the instance body,
34942         in order to have a clean visibility environment.
34943
34944         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
34945
34946 2001-12-03  Ed Schonberg <schonber@gnat.com>
34947
34948         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
34949         instantiation of a body that contains an inlined body.
34950
34951 2001-12-03  Ed Schonberg <schonber@gnat.com>
34952
34953         * sem_ch12.adb:
34954         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
34955         to prevent freezing within formal packages.
34956         (Freeze_Subprogram_Body): If body comes from another instance that
34957         appeared before its own body, place freeze node at end of current
34958         declarative part, to prevent a back-end crash.
34959         (Inline_Instance_Body): Handle properly a package instance within
34960         a subprogram instance that is a child unit.
34961
34962 2001-12-01  Graham Stott  <grahams@redhat.com>
34963
34964         * Makefile.in (misc.o): Add missing $(srcdir) prefix
34965         and add optabs.h dependency.
34966
34967         * misc.c: Include optabs.h
34968         (gnat_tree_code_type): Make static and const.
34969         (gnat_tree_code_length): Likewise.
34970         (gnat_tree_code_name): Likewise.
34971         (update_setjmp_buf): Obtain operands mode from insn_data.
34972
34973 2001-11-29  Richard Henderson  <rth@redhat.com>
34974
34975         * init.c: Remove obsolete dwarf2 frame.h section.
34976
34977 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
34978
34979         * Make-lang.in (ada.generated-manpages): New dummy target.
34980
34981 2001-11-29  Ed Schonberg <schonber@gnat.com>
34982
34983         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
34984         into Command, an array conversion is illegal here. Uncovered by
34985         ACATS B460005.
34986
34987 2001-11-28  Geert Bosch <bosch@gnat.com>
34988
34989         * init.c: Minor whitespace changes.
34990
34991 2001-11-28  Doug Rupp <rupp@gnat.com>
34992
34993         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
34994         signal stack.
34995
34996 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
34997
34998         * misc.c (gnat_expand_constant): Move declaration above
34999         definition of lang_hooks.
35000         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
35001         (gnat_init): lang_expand_constant no longer exists.
35002
35003         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
35004         always have vprintf.
35005         (gnat_init): Always call set_internal_error_function.
35006
35007 2001-11-27  Andreas Jaeger  <aj@suse.de>
35008
35009         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
35010
35011 2001-11-27  Laurent Guerby  <guerby@acm.org>
35012
35013         * Makefile.in: Regenerate Ada dependencies.
35014
35015 2001-11-26  Richard Henderson  <rth@redhat.com>
35016
35017         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
35018         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
35019         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
35020
35021 2001-11-25  Laurent Guerby  <guerby@acm.org>
35022
35023         * sysdep.c (rts_get_*): Fix style.
35024
35025 2001-11-19  Laurent Guerby  <guerby@acm.org>
35026
35027         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
35028         since it is of no apparent use and cause warnings.
35029
35030 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
35031
35032         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
35033         static too.
35034         (gnat_init): Don't return NULL.
35035         (finish_parse): Remove.
35036
35037 2001-11-17  Laurent Guerby  <guerby@acm.org>
35038
35039         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
35040         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
35041         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
35042         * lang-spec.h: Add missing struct field to silence warnings.
35043         * sysdep.c (rts_get_*): Provide K&R prototype.
35044         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
35045         * traceback.c (Unlock_Task, Lock_Task): Likewise.
35046         * tracebak.c (__gnat_backtrace): Remove unused variable.
35047         * utils.c (end_subprog_body): Move to K&R style.
35048
35049 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35050
35051         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
35052
35053 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
35054
35055         * misc.c (gnat_init): Change prototype.  Include the
35056         functionality of the old init_parse and init_decl_processing.
35057         (gnat_init_decl_processing): New prototype.
35058         (init_parse): Remove.
35059         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
35060
35061 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
35062
35063         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
35064         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
35065         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
35066         set_yydebug): Remove.
35067
35068 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
35069
35070         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
35071         (struct lang_hooks): Constify.
35072         (language_string, lang_identify): Remove.
35073         * utils.c (init_decl_processing): Update.
35074
35075 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
35076
35077         * misc.c: Include langhooks-def.h.
35078         * Makefile.in: Update.
35079
35080 2001-10-30  Robert Dewar <dewar@gnat.com>
35081
35082         * style.adb:
35083         (Check_Identifier): Rewrite circuit to be compatible with use of letters
35084         in the upper half of ASCII.
35085         (Check_Identifier): Minor reformatting
35086
35087 2001-10-30  Geert Bosch <bosch@gnat.com>
35088
35089         * (Associated_Node, Set_Associated_Node): Do not check for
35090         Freeze_Entity.
35091
35092 2001-10-30  Robert Dewar <dewar@gnat.com>
35093
35094         * a-reatim.ads: Minor reformatting
35095
35096 2001-10-30  Robert Dewar <dewar@gnat.com>
35097
35098         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
35099         undocumented declarations.
35100
35101 2001-10-30  Pascal Obry <obry@gnat.com>
35102
35103         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
35104         to the binder and linker.
35105         Minor style fix.
35106
35107         * mdll.ads: Fix layout.  Update copyright notice.
35108
35109         * mdll.adb: Fix layout.  Update copyright notice.
35110
35111 2001-10-30  Robert Dewar <dewar@gnat.com>
35112
35113         * usage.adb: Minor fix to output for -gnaty.
35114
35115 2001-10-30  Ed Schonberg <schonber@gnat.com>
35116
35117         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
35118         to accommodate all its possible values.
35119
35120         * a-reatim.adb (Split): Special-case handling of Time_Span_First
35121         and of small absolute values of T.
35122
35123 2001-10-30  Richard Kenner <kenner@gnat.com>
35124
35125         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
35126         set_mem_attributes since not needed and wrong if RESULT if a REG;
35127         fixes ACATS failures.
35128
35129 2001-10-30  Geert Bosch <bosch@gnat.com>
35130
35131         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
35132         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
35133
35134 2001-10-30  Robert Dewar <dewar@gnat.com>
35135
35136         * bindusg.adb: Undocument -f switch.
35137
35138         * gnatcmd.adb: Remove /FULL_ELABORATION.
35139
35140         * opt.ads (Force_RM_Elaboration_Order): Document that this is
35141         obsolescent.
35142
35143         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
35144
35145         * gnatbind.adb: Minor update of warning msg.
35146
35147 2001-10-30  Vincent Celier <celier@gnat.com>
35148
35149         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
35150         for project file switches (-P (/PROJECT_FILE=),
35151          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
35152         or MEDIUM or HIGH)
35153
35154 2001-10-30  Geert Bosch <bosch@gnat.com>
35155
35156         * decl.c: Minor whitespace fixes.
35157
35158 2001-10-30  Richard Kenner <kenner@gnat.com>
35159
35160         * utils2.c (build_allocator): Test for SIZE overflow in array case too
35161
35162 2001-10-30  Geert Bosch <bosch@gnat.com>
35163
35164         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
35165         Found due to GCC 3.0 warning of using uninitialized value.
35166
35167         * layout.adb:
35168         (Get_Max_Size): Use variant record for tracking value/expression.
35169          Makes logic clearer and prevents warnings for uninitialized variables.
35170         (Layout_Array_Type): Use variant record for tracking value/expression.
35171          Makes logic clearer and prevents warnings for uninitialized variables.
35172
35173 2001-10-30  Robert Dewar <dewar@gnat.com>
35174
35175         * lib.adb: Minor reformatting
35176
35177         * s-taprop.ads: Minor reformatting
35178
35179 2001-10-29  Laurent Guerby  <guerby@acm.org>
35180
35181         * init.c:
35182         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
35183         const.
35184         (_gnat_error_handler): Make MSG const.
35185
35186 2001-10-29  Richard Kenner <kenner@gnat.com>
35187
35188         * sysdep.c: Fix localtime_r problem on LynxOS.
35189         Also remove #elif to avoid warnings.
35190
35191         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
35192         used by this.
35193
35194         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
35195
35196 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
35197
35198         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
35199         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
35200         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
35201         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
35202         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
35203         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
35204         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
35205         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
35206         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
35207         types.ads, urealp.adb: Fix spelling errors.
35208
35209 2001-10-27  Laurent Guerby <guerby@acm.org>
35210
35211         * trans.c (gigi): Fix non determinism leading to bootstrap
35212         comparison failures for debugging information.
35213
35214 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
35215
35216         * gnat_rm.texi: Use @./@: where appropriate.
35217
35218 2001-10-26  Robert Dewar <dewar@gnat.com>
35219
35220         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
35221
35222 2001-10-26  Richard Kenner <kenner@gnat.com>
35223
35224         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
35225
35226 2001-10-26  Richard Kenner <kenner@gnat.com>
35227
35228         * decl.c (validate_size): Modify message for bad size to avoid
35229         implication that compiler is modifying the size.
35230
35231 2001-10-26  Robert Dewar <dewar@gnat.com>
35232
35233         * prj-util.adb: Minor reformatting. Fix bad header format.
35234
35235 2001-10-26  Robert Dewar <dewar@gnat.com>
35236
35237         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
35238
35239         * sinfo.ads: Clarify use of Associated_Node (documentation only).
35240
35241         * sem_ch12.adb: Change Node4 to Associated_Node. Change
35242         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
35243         much more narrowly in places where needed. These are cleanups.
35244
35245 2001-10-26  Joel Brobecker <brobecke@gnat.com>
35246
35247         * 5zosinte.ads (null_pthread): new constant.
35248
35249         * 5ztaprop.adb:
35250         (Initialize_TCB): Initialize thread ID to null, to be able to verify
35251          later that this field has been set.
35252         (Finalize_TCB): ditto.
35253         (Suspend_Task): Verify that the thread ID is not null before using it.
35254         (Resume_Task): ditto.
35255
35256         * s-tasdeb.adb:
35257         (Resume_All_Tasks): Lock the tasks list before using it.
35258         (Suspend_All_Tasks): ditto.
35259
35260 2001-10-26  Richard Kenner <kenner@gnat.com>
35261
35262         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
35263         Make constant variant of designated type for Is_Access_Constant.
35264         Call update_pointer_to with main variant.
35265
35266         * trans.c (process_freeze_entity, process_type):
35267         Call update_pointer_to on main variant.
35268
35269         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
35270         If main variant, update all other variants.
35271
35272         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
35273         TREE_STATIC.
35274
35275 2001-10-26  Robert Dewar <dewar@gnat.com>
35276
35277         * prj-util.adb: Minor reformatting
35278
35279 2001-10-26  Robert Dewar <dewar@gnat.com>
35280
35281         * prj-util.adb: Minor reformatting
35282
35283 2001-10-26  Robert Dewar <dewar@gnat.com>
35284
35285         * prj-attr.adb: Minor reformatting throughout
35286
35287 2001-10-26  Robert Dewar <dewar@gnat.com>
35288
35289         * prj-attr.ads: Minor reformatting
35290         Add ??? comment (this whole spec has almost no comments)
35291
35292 2001-10-26  Vincent Celier <celier@gnat.com>
35293
35294         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
35295         ("//") that precede the drive letter on Interix.
35296
35297 2001-10-26  Geert Bosch <bosch@gnat.com>
35298
35299         * gnat_rm.texi: Add GNAT Reference Manual.
35300
35301 2001-10-25  Robert Dewar <dewar@gnat.com>
35302
35303         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
35304         is Error. Similar change for other renaming cases.
35305
35306 2001-10-25  Robert Dewar <dewar@gnat.com>
35307
35308         * s-atacco.ads: Add pragma Inline_Always for functions.
35309         Fix header format. Add copyright 2001
35310
35311 2001-10-25  Ed Schonberg <schonber@gnat.com>
35312
35313         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
35314         return Error rather than Empty so that analysis can proceed.
35315
35316 2001-10-25  Ed Schonberg <schonber@gnat.com>
35317
35318         * sem_util.adb (Enter_Name): better handling of cascaded error
35319         messages when a unit appears in its own context.
35320
35321 2001-10-25  Ed Schonberg <schonber@gnat.com>
35322
35323         * sem_util.adb (Defining_Entity): in case of error, attach created
35324         entity to specification, so that semantic analysis can proceed.
35325
35326 2001-10-25  Robert Dewar <dewar@gnat.com>
35327
35328         * sem_util.adb
35329         (Defining_Entity): Deal with Error.
35330         (Process_End_Label): Deal with bad end label for.
35331
35332 2001-10-25  Ed Schonberg <schonber@gnat.com>
35333
35334         * sem_elab.adb (Check_A_Call): refine message when call is in an
35335         instance but callee is not declared in the generic unit.
35336
35337 2001-10-25  Ed Schonberg <schonber@gnat.com>
35338
35339         * sem_elab.adb (Check_A_Call): check for renaming before finding the
35340         enclosing unit, which may already be different from the calling unit.
35341
35342 2001-10-25  Geert Bosch <bosch@gnat.com>
35343
35344         * 4gintnam.ads: fix header format.
35345
35346 2001-10-25  Ed Schonberg <schonber@gnat.com>
35347
35348         * sem_res.adb (Resolve_Call): if the call is actually an indexing
35349         operation on the result of a parameterless call, perform elaboration
35350         check after the node has been properly rewritten.
35351
35352         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
35353         inlined within the generic tree, the defining identifier is not a
35354         compilation_unit.
35355
35356 2001-10-25  Ed Schonberg <schonber@gnat.com>
35357
35358         * sem_res.adb (Resolve): special-case resolution of Null in an
35359          instance or an inlined body to avoid view conflicts.
35360
35361         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
35362          compatibility by retrieving the access type of the generic copy.
35363
35364 2001-10-25  Robert Dewar <dewar@gnat.com>
35365
35366         * sem_ch3.adb:
35367         (Analyze_Number_Declaration): Handle error expression.
35368         (Signed_Integer_Type_Declaration): Handle error bound.
35369         (Analyze_Subtype_Indication): Handle error range.
35370
35371         * sem_util.adb (Get_Index_Bounds): Check for Error.
35372
35373 2001-10-25  Robert Dewar <dewar@gnat.com>
35374
35375         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
35376         in no run time mode.
35377
35378 2001-10-25  Pascal Obry <obry@gnat.com>
35379
35380         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
35381         mode case for ALLOC case.
35382
35383         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
35384         all platforms. Improvement of last change.
35385
35386 2001-10-25  Robert Dewar <dewar@gnat.com>
35387
35388         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
35389
35390 2001-10-25  Geert Bosch  <bosch@gnat.com>
35391
35392         * osint.adb (Is_Relative): Remove duplicate.
35393
35394 2001-10-25  Pascal Obry <obry@gnat.com>
35395
35396         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
35397         pathnames in UNIX and DOS style with drive letter.
35398         (Is_Relative): new routine.
35399
35400         * osint.adb: Minor reformatting
35401
35402         * osint.adb (Is_Relative): implementation using
35403         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
35404
35405 2001-10-25  Pascal Obry <obry@gnat.com>
35406
35407         * g-dirope.adb (Basename): correctly compute offset between the
35408         original Path and the translated one.
35409
35410         * g-dirope.adb: (Base_Name): add some comments.
35411
35412 2001-10-25  Robert Dewar <dewar@gnat.com>
35413
35414         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
35415         in HIE mode, avoids compilation abandoned message
35416
35417         * exp_imgv.adb: Correct typo in previous change
35418
35419         * exp_imgv.adb: Correct typo in previous change (not my day!)
35420
35421 2001-10-25  Robert Dewar <dewar@gnat.com>
35422
35423         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
35424
35425 2001-10-25  Pascal Obry <obry@gnat.com>
35426
35427         * g-awk.ads: Move all pragma inlines next to the routine
35428          declarations. This is more uniform with other GNAT spec.
35429
35430 2001-10-22  Geert Bosch  <bosch@gnat.com>
35431
35432         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
35433
35434 2001-10-19  Geert Bosch  <bosch@gnat.com>
35435
35436         * Makefile.in (tools, gnattools): Remove gnatmem.
35437
35438 2001-10-17  Richard Henderson  <rth@redhat.com>
35439
35440         * Makefile.in (misc.o): Depend on langhooks.h.
35441         * misc.c: Include it.
35442         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
35443         (LANG_HOOKS_DECODE_OPTION): New.
35444         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
35445
35446 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
35447
35448         * trans.c (tree_transform): Adjust to recent change in
35449         expand_asm_operands to implement named asm operands.
35450
35451 2001-10-11  Ed Schonberg  <schonber@gnat.com>
35452
35453         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
35454         renaming of discriminant for mutable record type.
35455
35456 2001-10-11  Robert Dewar  <dewar@gnat.com>
35457
35458         * validsw.adb: Properly save -gnatVn status.
35459
35460 2001-10-11  Robert Dewar <dewar@gnat.com>
35461
35462         * usage.adb: Add lines for V switch.
35463
35464         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
35465         (/VALIDITY_CHECKING).
35466
35467 2001-10-11  Ed Schonberg <schonber@gnat.com>
35468
35469         * sem_type.adb (Add_One_Interp): an operator for a type declared in
35470         an extension of System is known to be visible.
35471
35472 2001-10-11  Ed Schonberg <schonber@gnat.com>
35473
35474         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
35475         properly. Fixes regression on ACATS C34005G.
35476
35477 2001-10-11  Robert Dewar <dewar@gnat.com>
35478
35479         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
35480         loop in generic instance, since this is likely not very useful.
35481
35482 2001-10-11  Robert Dewar <dewar@gnat.com>
35483
35484         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
35485         the error message for high integrity mode.
35486
35487         * rtsfind.adb (RTE): Give message if we try to find an entity that
35488         is not available in high integrity mode.
35489
35490         * rtsfind.ads:
35491         (OK_To_Use_In_HIE_Mode): New array.
35492         (RTE): May return Empty in high integrity mode.
35493
35494         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
35495         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
35496
35497         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
35498         unit if not inlined always and in no runtime mode. Fixes problem
35499         caused by new Rtsfind changes.
35500
35501         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
35502         body is deleted.
35503
35504         * rtsfind.adb (RTE): Make sure we do not try to load unit after
35505         giving message for entity not available in high integrity mode.
35506
35507 2001-10-11  Pascal Obry <obry@gnat.com>
35508
35509         * impunit.adb: Add GNAT.CRC32.
35510
35511 2001-10-11  Ed Schonberg <schonber@gnat.com>
35512
35513         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
35514         properly the case where one universal operand in a non-static
35515         exponentiation of a real literal.
35516
35517 2001-10-11  Ed Schonberg <schonber@gnat.com>
35518
35519         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
35520         clause, return the gobal finalization list, for lack of anthing else.
35521
35522 2001-10-11  Ed Schonberg <schonber@gnat.com>
35523
35524         * exp_ch7.adb (Make_Transient_Block): if statement is within
35525         exception handler, always use new transient scope to place Clean
35526         procedure.
35527
35528 2001-10-11  Pascal Obry <obry@gnat.com>
35529
35530         * Makefile.in:
35531         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
35532         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
35533         (GNATLS_RTL_OBJS): add g-crc32.o
35534         (GNATMAKE_RTL_OBJS): add g-crc32.o
35535
35536         * ali-util.adb:
35537         (CRC_Match): new function.
35538         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
35539         instead of the previous simple checksum algorithm.
35540         (Time_Stamp_Mismatch): use CRC_Match for comparison.
35541         (Set_Source_Table): idem.
35542
35543         * ali-util.ads:
35544         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
35545         instead of simple checksum.
35546         (CRC_Match): new function.
35547         (CRC_Error): new constant.
35548
35549         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
35550         a CRC now and not a simple checksum. A CRC uses lower-case hex
35551         letters, fixes ambiguity in parsing.
35552
35553         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
35554         is what this variable will store.
35555
35556         * bcheck.adb: Change reference to chechsum in comments by CRC.
35557         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
35558         rename All_Checksum_Match to All_CRC_Match. Change due to API
35559         renaming since now GNAT does not use a simple checksum but a
35560         CRC using GNAT.CRC32.
35561
35562         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
35563         now and not anymore a simple checksum.
35564
35565         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
35566         places.
35567
35568         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
35569
35570         * scans.adb:
35571         (Restore_Scan_State): rename Checksum to CRC.
35572         (Save_Scan_State): idem.
35573
35574         * scans.ads:
35575         With GNAT.CRC32.
35576         (Checksum): rename to CRC.
35577         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
35578
35579         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
35580         GNAT.CRC32).  Update copyright notice.
35581
35582         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
35583         GNAT.CRC32).  Update copyright notice.
35584
35585         * scn.adb:
35586         (Accumulate_Checksum): removed.
35587         (Update): new procedure. Add a wide-character into the CRC.
35588
35589         * sinput-l.adb:
35590         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
35591         (Load_File): fix initialization of S (change Source_Checksum to
35592         Source_CRC)
35593
35594         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
35595         Source_CRC in S initialization.
35596
35597         * sinput.adb (Source_Checksum): renamed to Source_CRC.
35598
35599         * sinput.ads (Source_Checksum): renamed to Source_CRC.
35600         Update comments for the CRC.
35601
35602         * types.adb (Hex): Use lowercase for the letter part.
35603
35604         * types.ads (Get_Hex_String): Returns the hexadecimal representation
35605         for a word. This is currently used only for CRC. In previous version,
35606         the checksum was using a representation with all letter being
35607         upper-case. With the new implementation (using CRC) we do not remove
35608         the 32th bit of the CRC, so we can have an upper-case starting letter
35609         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
35610         It is ambigous since the CRC was optional and could be followed by
35611         options like EB, EE. So now this routines uses lower-case letter for
35612         the hexadecimal representation. Strange enough only lower case letters
35613         where checked in Scan_ALI (even if this was not a possible case).
35614
35615         * gnatvsn.ads (Library_Version): changed to 3.15a.
35616
35617         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
35618         for the compiler.
35619
35620         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
35621         for the compiler.
35622
35623         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
35624         Add 2001 to copyright notice
35625         (Accumulate_Checksum): Modify to use System.CRC32.
35626
35627         * ali-util.ads: Redo changes of previous revision to continue to use
35628         the word Checksum. Add 2001 to copyright notice.
35629
35630         * ali.adb: Undo some of previous changes, not needed.
35631         Keep the change for lower case letters in the checksum.
35632
35633         * ali.ads: Undo previous change not needed.
35634
35635         * bcheck.adb: Undo most of previous change, not needed.
35636         But do use Checksums_Match for checksum comparison.
35637
35638         * gnatls.adb: Undo most of previous change, not needed.
35639         But do use Checksums_Match for comparing checksums.
35640
35641         * lib-load.adb: Undo previous change, not needed.
35642
35643         * lib-writ.adb: Undo previous change, not needed.
35644
35645         * lib-writ.ads: Document that checksums use lower case,
35646         not upper case letters.
35647
35648         * scans.adb: Undo previous change, not needed
35649
35650         * scans.ads: Undo previous change, not needed.
35651
35652         * scn-nlit.adb: Undo previous changes, not needed.
35653
35654         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
35655
35656         * scn.adb:
35657         (Accumulate_Checksum): Use System.CRC32.
35658         (Initialize_Checksum): New procedure.
35659         Remove other changes of previous revision.
35660
35661         * sinput-p.adb: Undo previous change, not needed.
35662
35663         * sinput.adb: Undo previous change, not needed.
35664
35665         * sinput-l.adb: Undo previous change, not needed.
35666
35667         * sinput.ads: Undo previous change, not needed.  Keep only comment
35668         on new checksum algorithm
35669
35670         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
35671         Also remove a-tags and a-stream from GNAT sources.
35672
35673         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
35674
35675         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
35676
35677 2001-10-11  Geert Bosch  <bosch@gnat.com>
35678
35679         * einfo.h: Regenerate.
35680
35681         * nmake.ads: Regenerate.
35682
35683         * nmake.adb: Regenerate.
35684
35685         * sinfo.h: Regenerate.
35686
35687         * treeprs.adb: Regenerate.
35688
35689 2001-10-10  Geert Bosch  <bosch@gnat.com>
35690
35691         * gnat-style.texi: New file describing coding guidelines for Ada.
35692
35693 2001-10-10  Ed Schonberg <schonber@gnat.com>
35694
35695         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
35696         is Flag174.
35697
35698 2001-10-10  Geert Bosch  <bosch@gnat.com>
35699
35700         * snames.ads: Add new names for project facility.
35701
35702         * snames.adb: Update to reflect snames.ads changes.
35703
35704         * snames.h: Update to reflect snames.ads changes.
35705
35706 2001-10-10  Vincent Celier <celier@gnat.com>
35707
35708         * make.adb:
35709         (Add_Switches): reflect the changes for the switches attributes
35710         Default_Switches indexed by the programming language,
35711         Switches indexed by the file name.
35712         (Collect_Arguments_And_Compile): Idem.
35713         Reflect the attribute name changes.
35714
35715         * prj-attr.adb:
35716         (Initialisation_Data): Change the names of some packages and
35717         attributes.
35718         (Initialize): process case insensitive associative arrays.
35719
35720         * prj-attr.ads:
35721         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
35722
35723         * prj-dect.adb:
35724         (Parse_Attribute_Declaration): For case insensitive associative
35725          arrays, set the index string to lower case.
35726
35727         * prj-env.adb:
35728         Reflect the changes of the project attributes.
35729
35730         * prj-nmsc.adb:
35731         Replace Check_Naming_Scheme by Ada_Check and
35732         Language_Independent_Check.
35733
35734         * prj-nmsc.ads:
35735         Replaced Check_Naming_Scheme by 2 procedures:
35736         Ada_Check and Language_Independent_Check.
35737
35738         * prj-proc.adb:
35739         (Process_Declarative_Items): For case-insensitive associative
35740         arrays, set the index string to lower case.
35741         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
35742         Prj.Nmsc.Check_Naming_Scheme.
35743
35744         * prj-tree.adb:
35745         (Case_Insensitive): New function
35746         (Set_Case_Insensitive): New procedure
35747
35748         * prj-tree.ads:
35749         (Case_Insensitive): New function
35750         (Set_Case_Insensitive): New procedure
35751         (Project_Node_Record): New flag Case_Insensitive.
35752
35753         * prj-util.adb:
35754         (Value_Of): new function to get the string value of a single
35755         string variable or attribute.
35756
35757         * prj-util.ads:
35758         (Value_Of): new function to get the string value of a single
35759         string variable or attribute.
35760
35761         * prj.adb:
35762         (Ada_Default_Spec_Suffix): New function
35763         (Ada_Default_Impl_Suffix): New function
35764         Change definitions of several constants to reflect
35765         new components of record types.
35766
35767         * prj.ads:
35768         (Naming_Data): Change several components to reflect new
35769         elements of naming schemes.
35770         (Project_Data): New flags Sources_Present and
35771         Language_Independent_Checked.
35772         (Ada_Default_Spec_Suffix): New function.
35773         (Ada_Default_Impl_Suffix): New function.
35774
35775         * snames.ads:
35776         Modification of predefined names for project manager: added
35777         Implementation, Specification_Exceptions, Implementation_Exceptions,
35778         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
35779         Default_Switches, _Languages, Builder, Cross_Reference,
35780         Finder. Removed Body_Part, Specification_Append, Body_Append,
35781         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
35782         Gnatlink.
35783
35784         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
35785         Add comments.
35786
35787         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
35788         not that it is Nil_Variable_Value.
35789
35790         * prj.ads: Add ??? for uncommented declarations
35791
35792 2001-10-10  Ed Schonberg <schonber@gnat.com>
35793
35794         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
35795         constant, do not indicate possible modification, so that gigi can
35796         treat it as a bona fide constant.
35797
35798 2001-10-10  Robert Dewar <dewar@gnat.com>
35799
35800         * sem_prag.adb: Add processing for pragma External.
35801
35802         * snames.ads: Add entry for pragma External.
35803
35804         * par-prag.adb: Add pragma External.
35805
35806         * snames.adb: Updated to match snames.ads.
35807
35808 2001-10-10  Ed Schonberg <schonber@gnat.com>
35809
35810         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
35811         a dynamic task if the allocator appears in an indexed assignment
35812         or selected component assignment.
35813
35814         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
35815         For a dynamic task in an assignment statement, use target of
35816         assignment to generate meaningful name.
35817
35818 2001-10-10  Ed Schonberg <schonber@gnat.com>
35819
35820         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
35821         a generic package.
35822
35823         * einfo.ads: Body_Entity is also defined for generic package.
35824         Documentation change only
35825
35826         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
35827         others_choice for a discriminated component initialization,
35828         convert discriminant references into the corresponding discriminals.
35829
35830         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
35831         only if original type is private and expression has to be wrapped
35832         in a conversion.
35833
35834         * checks.adb:
35835         (Apply_Constraint_Check): Do not perform length check
35836         if expression is an aggregate with only an others_choice.
35837         (Length_N_Cond): two references to the same in_parameter
35838         (typically the discriminal in an init_proc) denote the same value.
35839         Two useful optimization uncovered by bugfixes above.
35840
35841 2001-10-10  Robert Dewar <dewar@gnat.com>
35842
35843         * xeinfo.adb: Change int to char in translation of enumeration types.
35844         This fixes a problem in the C representation of component alignment.
35845         Add 2001 to copyright notice
35846
35847 2001-10-10  Richard Kenner <kenner@gnat.com>
35848
35849         * decl.c: (validate_size): Do check size of object of integral type
35850         if it is a packed array type.
35851
35852 2001-10-10  Richard Kenner <kenner@gnat.com>
35853
35854         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
35855         VAR_DECL for constant if not Is_Public but -O0.
35856
35857 2001-10-10  Richard Kenner  <kenner@gnat.com>
35858
35859         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
35860
35861 2001-10-10  Geert Bosch  <bosch@gnat.com>
35862
35863         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
35864         use '/' as switch character, allowing for absolute file names.
35865
35866 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
35867
35868         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
35869         FSF address.
35870
35871 2001-10-08  Geert Bosch  <bosch@gnat.com>
35872
35873         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
35874         Automatically build utilities when files need to be regenerated.
35875
35876 2001-10-08  Geert Bosch  <bosch@gnat.com>
35877
35878         * xsnames.adb: New utility for updating snames.ads and snames.adb
35879
35880 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
35881
35882         * Make-lang.in (ADAFLAGS): Add -W -Wall.
35883         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
35884         (gnat1): Also depend on attribs.o.
35885         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
35886         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
35887         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
35888         (ADAFLAGS): Add -W -Wall.
35889         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
35890         take out CFLAGS.
35891
35892         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
35893         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
35894         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
35895         Use $(ADAC), not $(CC), as compilation command.
35896
35897         (gnattools): Depend directly on tools to build, don't use
35898         recursive make.
35899         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
35900
35901         * einfo.h, sinfo.h: New files (autogenerated).
35902
35903 2001-10-08  Richard Henderson  <rth@redhat.com>
35904
35905         * comperr.adb (Abort_In_Progress): New.
35906         (Compiler_Abort): Use it to prevent recursion.
35907
35908 2001-10-08  Robert Dewar <dewar@gnat.com>
35909
35910         * atree.adb: Set Error_Posted in Error node, helps error recovery.
35911
35912         * par-endh.adb (Output_End_Expected): We should also not test
35913         Error_Posted on the Error node, since now it is always set.
35914
35915         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
35916         to help error recovery. Part of general work on 9407-004.
35917
35918         * par.adb: Add ??? for misuse of error
35919
35920         * sem_res.adb:
35921         (Resolve): Defend against Error, fixes 9407-003.
35922         (Resolve_Discrete_Subtype_Indication): Defend against Error.
35923
35924         * sinfo.ads (N_Error): Now has Etype field (which will be set
35925         to Any_Type to help error recovery).
35926
35927 2001-10-08  Richard Kenner (kenner@gnat.com)
35928
35929         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
35930         Consistently set MEM attributes from expression; fixes
35931         bootstrap failure on x86.
35932
35933 2001-10-08  Geert Bosch  (bosch@gnat.com)
35934
35935         * 5oosinte.adb: Add 2001 to copyright notice.
35936
35937 2001-10-08  Geert Bosch  (bosch@gnat.com)
35938
35939         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
35940
35941         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
35942
35943 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
35944
35945         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
35946
35947 2001-10-05  Geert Bosch  (bosch@gnat.com)
35948
35949         * adaint.h: Small formatting fix.
35950
35951 2001-10-04  Geert Bosch  <bosch@gnat.com>
35952
35953         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
35954         Arg is int, not FILE *, in dummy version of functions.
35955
35956         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
35957         Arg is int, not FILE *.
35958
35959 2001-10-04  Geert Bosch  <bosch@gnat.com>
35960
35961         * 3lsoccon.ads: Added file, missed with initial check ins.
35962
35963         * 4lintnam.ads: Fix header format.
35964         Change Linux to GNU/Linux.
35965
35966         * 5iosinte.adb: Change Linux to GNU/Linux.
35967
35968         * 5iosinte.ads: Change Linux to GNU/Linux.
35969
35970         * 5itaprop.adb: Change Linux to GNU/Linux.
35971
35972         * 5itaspri.ads: Change Linux to GNU/Linux.
35973         Update copyright notice.
35974
35975         * 5lintman.adb: Change Linux to GNU/Linux.
35976
35977         * 5lml-tgt.adb: Change Linux to GNU/Linux.
35978
35979         * 5losinte.ads: Change Linux to GNU/Linux.
35980
35981         * 5lsystem.ads: Change Linux to GNU/Linux.
35982
35983         * 5qosinte.adb: Change Linux to GNU/Linux.
35984
35985         * 5qosinte.ads: Change Linux to GNU/Linux.
35986
35987         * 5qparame.ads: Change Linux to GNU/Linux.
35988
35989         * 5qtaprop.adb: Change Linux to GNU/Linux.
35990
35991         * 5qtaspri.ads: Change Linux to GNU/Linux.
35992         Add 2001 to copyright notice.
35993
35994         * 5vintman.ads: Change Linux to GNU/Linux.
35995         Fix header format.  Add 2001 to copyright notice.
35996
35997         * g-soccon.ads: Change Linux to GNU/Linux.
35998
35999         * g-trasym.ads: Change Linux to GNU/Linux.
36000         Add 2001 to copyright notice.
36001
36002         * memtrack.adb: Change Linux to GNU/Linux.
36003
36004         * s-intman.ads: Change Linux to GNU/Linux.
36005         Add 2001 to copyright notice.  Fix header format.
36006
36007         * s-stache.adb: Change Linux to GNU/Linux.
36008
36009         * adaint.c: Change Linux to GNU/Linux.
36010
36011         * cio.c: Change Linux to GNU/Linux.
36012
36013         * cstreams.c: Change Linux to GNU/Linux.
36014
36015         * init.c: Change Linux to GNU/Linux.
36016
36017         * gmem.c: Change Linux to GNU/Linux.
36018
36019         * tracebak.c: Change Linux to GNU/Linux.
36020
36021
36022 2001-10-02  Geert Bosch  <bosch@gnat.com>
36023
36024         * misc.c (insert_default_attributes): Add dummy version.